hysteria-orm 10.9.2 → 10.9.4

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/lib/index.d.cts CHANGED
@@ -6669,6 +6669,21 @@ interface ColNamespace {
6669
6669
  * ```
6670
6670
  */
6671
6671
  enum<const V extends readonly string[], O extends ColEnumOptions = ColEnumOptions>(values: V, options?: O & TypedSerialize<NullableColumn<V[number], O>> & TypedPrepare<NullableColumn<V[number], O>> & TypedDefault<V[number]>): ColumnDef<NullableColumn<V[number], O>>;
6672
+ /**
6673
+ * Native enum column from a TypeScript enum object.
6674
+ * Handles both string and numeric enums (numeric values are coerced to strings).
6675
+ * Type: `E[keyof E]` (nullable-aware).
6676
+ *
6677
+ * ```ts
6678
+ * enum Status { Active = "active", Inactive = "inactive" }
6679
+ * col.nativeEnum(Status) // Status | null
6680
+ * col.nativeEnum(Status, { nullable: false }) // Status
6681
+ *
6682
+ * enum Priority { Low = 0, Medium = 1, High = 2 }
6683
+ * col.nativeEnum(Priority) // Priority | null
6684
+ * ```
6685
+ */
6686
+ nativeEnum<E extends Record<string, string | number>, O extends ColEnumOptions = ColEnumOptions>(enumObj: E, options?: O & TypedSerialize<NullableColumn<E[keyof E], O>> & TypedPrepare<NullableColumn<E[keyof E], O>> & TypedDefault<E[keyof E]>): ColumnDef<NullableColumn<E[keyof E], O>>;
6672
6687
  /**
6673
6688
  * CHAR column (fixed-length string). Accepts an optional `length` option.
6674
6689
  * Type: `string` (nullable-aware).
package/lib/index.d.ts CHANGED
@@ -6669,6 +6669,21 @@ interface ColNamespace {
6669
6669
  * ```
6670
6670
  */
6671
6671
  enum<const V extends readonly string[], O extends ColEnumOptions = ColEnumOptions>(values: V, options?: O & TypedSerialize<NullableColumn<V[number], O>> & TypedPrepare<NullableColumn<V[number], O>> & TypedDefault<V[number]>): ColumnDef<NullableColumn<V[number], O>>;
6672
+ /**
6673
+ * Native enum column from a TypeScript enum object.
6674
+ * Handles both string and numeric enums (numeric values are coerced to strings).
6675
+ * Type: `E[keyof E]` (nullable-aware).
6676
+ *
6677
+ * ```ts
6678
+ * enum Status { Active = "active", Inactive = "inactive" }
6679
+ * col.nativeEnum(Status) // Status | null
6680
+ * col.nativeEnum(Status, { nullable: false }) // Status
6681
+ *
6682
+ * enum Priority { Low = 0, Medium = 1, High = 2 }
6683
+ * col.nativeEnum(Priority) // Priority | null
6684
+ * ```
6685
+ */
6686
+ nativeEnum<E extends Record<string, string | number>, O extends ColEnumOptions = ColEnumOptions>(enumObj: E, options?: O & TypedSerialize<NullableColumn<E[keyof E], O>> & TypedPrepare<NullableColumn<E[keyof E], O>> & TypedDefault<E[keyof E]>): ColumnDef<NullableColumn<E[keyof E], O>>;
6672
6687
  /**
6673
6688
  * CHAR column (fixed-length string). Accepts an optional `length` option.
6674
6689
  * Type: `string` (nullable-aware).