imean-cassandra-orm 2.7.2 → 2.7.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/dist/mod.cjs +1 -0
- package/dist/mod.d.cts +1 -0
- package/dist/mod.d.ts +1 -0
- package/dist/mod.js +1 -0
- package/package.json +1 -1
package/dist/mod.cjs
CHANGED
|
@@ -1602,6 +1602,7 @@ var Types = {
|
|
|
1602
1602
|
enum: zod.z.enum,
|
|
1603
1603
|
object: zod.z.object,
|
|
1604
1604
|
json: () => createCassandraType(zod.z.any(), "text"),
|
|
1605
|
+
record: (keyType, valueType) => createCassandraType(zod.z.record(keyType, valueType), `text`),
|
|
1605
1606
|
float: () => createCassandraType(
|
|
1606
1607
|
zod.z.number().transform((val) => parseFloat(val.toString())),
|
|
1607
1608
|
"float"
|
package/dist/mod.d.cts
CHANGED
|
@@ -133,6 +133,7 @@ declare const Types: {
|
|
|
133
133
|
};
|
|
134
134
|
object: <T extends z.ZodRawShape>(shape: T, params?: z.RawCreateParams) => z.ZodObject<T, "strip", z.ZodTypeAny, z.objectOutputType<T, z.ZodTypeAny, "strip">, z.objectInputType<T, z.ZodTypeAny, "strip">>;
|
|
135
135
|
json: () => z.ZodAny & CassandraTypeMarker;
|
|
136
|
+
record: <Keys extends z.ZodTypeAny, Value extends z.ZodTypeAny>(keyType: Keys, valueType: Value) => z.ZodRecord<Keys, Value> & CassandraTypeMarker;
|
|
136
137
|
float: () => z.ZodEffects<z.ZodNumber, number, number> & CassandraTypeMarker;
|
|
137
138
|
int: () => z.ZodNumber & CassandraTypeMarker;
|
|
138
139
|
bigint: () => z.ZodBigInt & CassandraTypeMarker;
|
package/dist/mod.d.ts
CHANGED
|
@@ -133,6 +133,7 @@ declare const Types: {
|
|
|
133
133
|
};
|
|
134
134
|
object: <T extends z.ZodRawShape>(shape: T, params?: z.RawCreateParams) => z.ZodObject<T, "strip", z.ZodTypeAny, z.objectOutputType<T, z.ZodTypeAny, "strip">, z.objectInputType<T, z.ZodTypeAny, "strip">>;
|
|
135
135
|
json: () => z.ZodAny & CassandraTypeMarker;
|
|
136
|
+
record: <Keys extends z.ZodTypeAny, Value extends z.ZodTypeAny>(keyType: Keys, valueType: Value) => z.ZodRecord<Keys, Value> & CassandraTypeMarker;
|
|
136
137
|
float: () => z.ZodEffects<z.ZodNumber, number, number> & CassandraTypeMarker;
|
|
137
138
|
int: () => z.ZodNumber & CassandraTypeMarker;
|
|
138
139
|
bigint: () => z.ZodBigInt & CassandraTypeMarker;
|
package/dist/mod.js
CHANGED
|
@@ -1600,6 +1600,7 @@ var Types = {
|
|
|
1600
1600
|
enum: z.enum,
|
|
1601
1601
|
object: z.object,
|
|
1602
1602
|
json: () => createCassandraType(z.any(), "text"),
|
|
1603
|
+
record: (keyType, valueType) => createCassandraType(z.record(keyType, valueType), `text`),
|
|
1603
1604
|
float: () => createCassandraType(
|
|
1604
1605
|
z.number().transform((val) => parseFloat(val.toString())),
|
|
1605
1606
|
"float"
|