pqb 0.0.4 → 0.0.6

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.js CHANGED
@@ -1075,6 +1075,13 @@ const intersection = (left, right) => {
1075
1075
  });
1076
1076
  };
1077
1077
 
1078
+ const union = (types) => {
1079
+ return constructType({
1080
+ dataType: "union",
1081
+ types
1082
+ });
1083
+ };
1084
+
1078
1085
  var __defProp$h = Object.defineProperty;
1079
1086
  var __defProps$d = Object.defineProperties;
1080
1087
  var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
@@ -1094,47 +1101,6 @@ var __spreadValues$h = (a, b) => {
1094
1101
  return a;
1095
1102
  };
1096
1103
  var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
1097
- const array = (element) => {
1098
- return constructType(__spreadValues$h({
1099
- dataType: "array",
1100
- element,
1101
- deepPartial() {
1102
- return __spreadProps$d(__spreadValues$h({}, this), {
1103
- element: this.element.deepPartial()
1104
- });
1105
- },
1106
- nonEmpty() {
1107
- return this.min(1);
1108
- }
1109
- }, arrayMethods));
1110
- };
1111
-
1112
- const union = (types) => {
1113
- return constructType({
1114
- dataType: "union",
1115
- types
1116
- });
1117
- };
1118
-
1119
- var __defProp$g = Object.defineProperty;
1120
- var __defProps$c = Object.defineProperties;
1121
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
1122
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
1123
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
1124
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
1125
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1126
- var __spreadValues$g = (a, b) => {
1127
- for (var prop in b || (b = {}))
1128
- if (__hasOwnProp$h.call(b, prop))
1129
- __defNormalProp$g(a, prop, b[prop]);
1130
- if (__getOwnPropSymbols$h)
1131
- for (var prop of __getOwnPropSymbols$h(b)) {
1132
- if (__propIsEnum$h.call(b, prop))
1133
- __defNormalProp$g(a, prop, b[prop]);
1134
- }
1135
- return a;
1136
- };
1137
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
1138
1104
  const baseTypeMethods = {
1139
1105
  type: void 0,
1140
1106
  data: {},
@@ -1162,22 +1128,22 @@ const baseTypeMethods = {
1162
1128
  return this;
1163
1129
  },
1164
1130
  transform(fn) {
1165
- return __spreadProps$c(__spreadValues$g({}, this), {
1131
+ return __spreadProps$d(__spreadValues$h({}, this), {
1166
1132
  chain: [...this.chain, ["transform", fn]]
1167
1133
  });
1168
1134
  },
1169
1135
  to(fn, type) {
1170
- return __spreadProps$c(__spreadValues$g({}, type), {
1136
+ return __spreadProps$d(__spreadValues$h({}, type), {
1171
1137
  chain: [...this.chain, ["to", fn, type], ...type.chain]
1172
1138
  });
1173
1139
  },
1174
1140
  refine(check) {
1175
- return __spreadProps$c(__spreadValues$g({}, this), {
1141
+ return __spreadProps$d(__spreadValues$h({}, this), {
1176
1142
  chain: [...this.chain, ["refine", check]]
1177
1143
  });
1178
1144
  },
1179
1145
  superRefine(check) {
1180
- return __spreadProps$c(__spreadValues$g({}, this), {
1146
+ return __spreadProps$d(__spreadValues$h({}, this), {
1181
1147
  chain: [...this.chain, ["superRefine", check]]
1182
1148
  });
1183
1149
  },
@@ -1190,7 +1156,7 @@ const baseTypeMethods = {
1190
1156
  },
1191
1157
  default(value) {
1192
1158
  const cloned = Object.create(this);
1193
- cloned.data = __spreadProps$c(__spreadValues$g({}, cloned.data), { default: value });
1159
+ cloned.data = __spreadProps$d(__spreadValues$h({}, cloned.data), { default: value });
1194
1160
  return cloned;
1195
1161
  },
1196
1162
  array() {
@@ -1198,7 +1164,41 @@ const baseTypeMethods = {
1198
1164
  }
1199
1165
  };
1200
1166
  const constructType = (type) => {
1201
- return __spreadValues$g(__spreadValues$g({}, baseTypeMethods), type);
1167
+ return __spreadValues$h(__spreadValues$h({}, baseTypeMethods), type);
1168
+ };
1169
+
1170
+ var __defProp$g = Object.defineProperty;
1171
+ var __defProps$c = Object.defineProperties;
1172
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
1173
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
1174
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
1175
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
1176
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1177
+ var __spreadValues$g = (a, b) => {
1178
+ for (var prop in b || (b = {}))
1179
+ if (__hasOwnProp$h.call(b, prop))
1180
+ __defNormalProp$g(a, prop, b[prop]);
1181
+ if (__getOwnPropSymbols$h)
1182
+ for (var prop of __getOwnPropSymbols$h(b)) {
1183
+ if (__propIsEnum$h.call(b, prop))
1184
+ __defNormalProp$g(a, prop, b[prop]);
1185
+ }
1186
+ return a;
1187
+ };
1188
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
1189
+ const array = (element) => {
1190
+ return constructType(__spreadValues$g({
1191
+ dataType: "array",
1192
+ element,
1193
+ deepPartial() {
1194
+ return __spreadProps$c(__spreadValues$g({}, this), {
1195
+ element: this.element.deepPartial()
1196
+ });
1197
+ },
1198
+ nonEmpty() {
1199
+ return this.min(1);
1200
+ }
1201
+ }, arrayMethods));
1202
1202
  };
1203
1203
 
1204
1204
  var __defProp$f = Object.defineProperty;
@@ -1220,104 +1220,6 @@ var __spreadValues$f = (a, b) => {
1220
1220
  return a;
1221
1221
  };
1222
1222
  var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
1223
- const any = () => {
1224
- return constructType({
1225
- dataType: "any"
1226
- });
1227
- };
1228
- const bigIntMethods = __spreadValues$f({
1229
- dataType: "bigint"
1230
- }, numberTypeMethods);
1231
- const bigint = () => {
1232
- return constructType(bigIntMethods);
1233
- };
1234
- const boolean = () => {
1235
- return constructType({
1236
- dataType: "boolean"
1237
- });
1238
- };
1239
- const nan = () => {
1240
- return constructType({
1241
- dataType: "nan"
1242
- });
1243
- };
1244
- const never = () => {
1245
- return constructType({
1246
- dataType: "never"
1247
- });
1248
- };
1249
- const nullType = () => {
1250
- return constructType({
1251
- dataType: "null"
1252
- });
1253
- };
1254
- const numberMethods = __spreadProps$b(__spreadValues$f({}, numberTypeMethods), {
1255
- dataType: "number"
1256
- });
1257
- const number = () => {
1258
- return constructType(numberMethods);
1259
- };
1260
- const dateMethods = __spreadProps$b(__spreadValues$f({}, dateTypeMethods), {
1261
- dataType: "date"
1262
- });
1263
- const date = () => {
1264
- return constructType(dateMethods);
1265
- };
1266
- const stringMethods = __spreadProps$b(__spreadValues$f({}, stringTypeMethods()), {
1267
- dataType: "string"
1268
- });
1269
- const string = () => {
1270
- return constructType(stringMethods);
1271
- };
1272
- const undefinedType = () => {
1273
- return constructType({
1274
- dataType: "undefined"
1275
- });
1276
- };
1277
- const unknown = () => {
1278
- return constructType({
1279
- dataType: "unknown"
1280
- });
1281
- };
1282
- const voidType = () => {
1283
- return constructType({
1284
- dataType: "void"
1285
- });
1286
- };
1287
- const scalarTypes = {
1288
- any,
1289
- bigint,
1290
- boolean,
1291
- date,
1292
- nan,
1293
- never,
1294
- null: nullType,
1295
- number,
1296
- string,
1297
- undefined: undefinedType,
1298
- unknown,
1299
- void: voidType
1300
- };
1301
-
1302
- var __defProp$e = Object.defineProperty;
1303
- var __defProps$a = Object.defineProperties;
1304
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
1305
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
1306
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
1307
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
1308
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1309
- var __spreadValues$e = (a, b) => {
1310
- for (var prop in b || (b = {}))
1311
- if (__hasOwnProp$f.call(b, prop))
1312
- __defNormalProp$e(a, prop, b[prop]);
1313
- if (__getOwnPropSymbols$f)
1314
- for (var prop of __getOwnPropSymbols$f(b)) {
1315
- if (__propIsEnum$f.call(b, prop))
1316
- __defNormalProp$e(a, prop, b[prop]);
1317
- }
1318
- return a;
1319
- };
1320
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
1321
1223
  const discriminatedUnion = (discriminator, options) => {
1322
1224
  const optionsMap = /* @__PURE__ */ new Map();
1323
1225
  options.forEach((option) => {
@@ -1337,7 +1239,7 @@ const discriminatedUnion = (discriminator, options) => {
1337
1239
  partial.shape[discriminator] = option.shape[discriminator];
1338
1240
  newOptionsMap.set(key, partial);
1339
1241
  });
1340
- return __spreadProps$a(__spreadValues$e({}, this), {
1242
+ return __spreadProps$b(__spreadValues$f({}, this), {
1341
1243
  options: newOptionsMap
1342
1244
  });
1343
1245
  }
@@ -1366,25 +1268,25 @@ const instanceOf = (cls) => {
1366
1268
  });
1367
1269
  };
1368
1270
 
1369
- var __defProp$d = Object.defineProperty;
1370
- var __defProps$9 = Object.defineProperties;
1371
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
1372
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
1373
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
1374
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
1375
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1376
- var __spreadValues$d = (a, b) => {
1271
+ var __defProp$e = Object.defineProperty;
1272
+ var __defProps$a = Object.defineProperties;
1273
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
1274
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
1275
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
1276
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
1277
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1278
+ var __spreadValues$e = (a, b) => {
1377
1279
  for (var prop in b || (b = {}))
1378
- if (__hasOwnProp$e.call(b, prop))
1379
- __defNormalProp$d(a, prop, b[prop]);
1380
- if (__getOwnPropSymbols$e)
1381
- for (var prop of __getOwnPropSymbols$e(b)) {
1382
- if (__propIsEnum$e.call(b, prop))
1383
- __defNormalProp$d(a, prop, b[prop]);
1280
+ if (__hasOwnProp$f.call(b, prop))
1281
+ __defNormalProp$e(a, prop, b[prop]);
1282
+ if (__getOwnPropSymbols$f)
1283
+ for (var prop of __getOwnPropSymbols$f(b)) {
1284
+ if (__propIsEnum$f.call(b, prop))
1285
+ __defNormalProp$e(a, prop, b[prop]);
1384
1286
  }
1385
1287
  return a;
1386
1288
  };
1387
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
1289
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
1388
1290
  const lazy = (fn) => {
1389
1291
  return constructType({
1390
1292
  dataType: "lazy",
@@ -1392,7 +1294,7 @@ const lazy = (fn) => {
1392
1294
  return this.typeCache || (this.typeCache = fn());
1393
1295
  },
1394
1296
  deepPartial() {
1395
- return __spreadProps$9(__spreadValues$d({}, this), {
1297
+ return __spreadProps$a(__spreadValues$e({}, this), {
1396
1298
  typeCache: void 0,
1397
1299
  getter: () => this.getter().deepPartial()
1398
1300
  });
@@ -1405,32 +1307,32 @@ const literal = (value) => constructType({
1405
1307
  value
1406
1308
  });
1407
1309
 
1408
- var __defProp$c = Object.defineProperty;
1409
- var __defProps$8 = Object.defineProperties;
1410
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
1411
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
1412
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
1413
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
1414
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1415
- var __spreadValues$c = (a, b) => {
1310
+ var __defProp$d = Object.defineProperty;
1311
+ var __defProps$9 = Object.defineProperties;
1312
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
1313
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
1314
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
1315
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
1316
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1317
+ var __spreadValues$d = (a, b) => {
1416
1318
  for (var prop in b || (b = {}))
1417
- if (__hasOwnProp$d.call(b, prop))
1418
- __defNormalProp$c(a, prop, b[prop]);
1419
- if (__getOwnPropSymbols$d)
1420
- for (var prop of __getOwnPropSymbols$d(b)) {
1421
- if (__propIsEnum$d.call(b, prop))
1422
- __defNormalProp$c(a, prop, b[prop]);
1319
+ if (__hasOwnProp$e.call(b, prop))
1320
+ __defNormalProp$d(a, prop, b[prop]);
1321
+ if (__getOwnPropSymbols$e)
1322
+ for (var prop of __getOwnPropSymbols$e(b)) {
1323
+ if (__propIsEnum$e.call(b, prop))
1324
+ __defNormalProp$d(a, prop, b[prop]);
1423
1325
  }
1424
1326
  return a;
1425
1327
  };
1426
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
1328
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
1427
1329
  const map = (keyType, valueType) => {
1428
1330
  return constructType({
1429
1331
  dataType: "map",
1430
1332
  keyType,
1431
1333
  valueType,
1432
1334
  deepPartial() {
1433
- return __spreadProps$8(__spreadValues$c({}, this), {
1335
+ return __spreadProps$9(__spreadValues$d({}, this), {
1434
1336
  keyType: this.keyType.deepPartial(),
1435
1337
  valueType: this.valueType.deepPartial()
1436
1338
  });
@@ -1456,25 +1358,25 @@ const nativeEnum = (givenEnum) => {
1456
1358
  });
1457
1359
  };
1458
1360
 
1459
- var __defProp$b = Object.defineProperty;
1460
- var __defProps$7 = Object.defineProperties;
1461
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
1462
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
1463
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
1464
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
1465
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1466
- var __spreadValues$b = (a, b) => {
1361
+ var __defProp$c = Object.defineProperty;
1362
+ var __defProps$8 = Object.defineProperties;
1363
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
1364
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
1365
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
1366
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
1367
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1368
+ var __spreadValues$c = (a, b) => {
1467
1369
  for (var prop in b || (b = {}))
1468
- if (__hasOwnProp$c.call(b, prop))
1469
- __defNormalProp$b(a, prop, b[prop]);
1470
- if (__getOwnPropSymbols$c)
1471
- for (var prop of __getOwnPropSymbols$c(b)) {
1472
- if (__propIsEnum$c.call(b, prop))
1473
- __defNormalProp$b(a, prop, b[prop]);
1370
+ if (__hasOwnProp$d.call(b, prop))
1371
+ __defNormalProp$c(a, prop, b[prop]);
1372
+ if (__getOwnPropSymbols$d)
1373
+ for (var prop of __getOwnPropSymbols$d(b)) {
1374
+ if (__propIsEnum$d.call(b, prop))
1375
+ __defNormalProp$c(a, prop, b[prop]);
1474
1376
  }
1475
1377
  return a;
1476
1378
  };
1477
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
1379
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
1478
1380
  const object = (shape) => {
1479
1381
  return constructType({
1480
1382
  dataType: "object",
@@ -1483,12 +1385,12 @@ const object = (shape) => {
1483
1385
  catchAllType: void 0,
1484
1386
  extend(add) {
1485
1387
  return object(
1486
- Object.assign(__spreadValues$b({}, this.shape), add)
1388
+ Object.assign(__spreadValues$c({}, this.shape), add)
1487
1389
  );
1488
1390
  },
1489
1391
  merge(obj) {
1490
1392
  return object(
1491
- Object.assign(__spreadValues$b({}, this.shape), obj.shape)
1393
+ Object.assign(__spreadValues$c({}, this.shape), obj.shape)
1492
1394
  );
1493
1395
  },
1494
1396
  pick(...arr) {
@@ -1506,7 +1408,7 @@ const object = (shape) => {
1506
1408
  return object(picked);
1507
1409
  },
1508
1410
  partial(...arr) {
1509
- const mapped = __spreadValues$b({}, this.shape);
1411
+ const mapped = __spreadValues$c({}, this.shape);
1510
1412
  if (arr.length) {
1511
1413
  arr.forEach((key) => {
1512
1414
  mapped[key] = mapped[key].optional();
@@ -1523,33 +1425,131 @@ const object = (shape) => {
1523
1425
  for (const key in this.shape) {
1524
1426
  newShape[key] = optional(this.shape[key].deepPartial());
1525
1427
  }
1526
- return __spreadProps$7(__spreadValues$b({}, this), {
1428
+ return __spreadProps$8(__spreadValues$c({}, this), {
1527
1429
  shape: newShape
1528
1430
  });
1529
1431
  },
1530
1432
  passthrough() {
1531
- return __spreadProps$7(__spreadValues$b({}, this), {
1433
+ return __spreadProps$8(__spreadValues$c({}, this), {
1532
1434
  unknownKeys: "passthrough"
1533
1435
  });
1534
1436
  },
1535
1437
  strict() {
1536
- return __spreadProps$7(__spreadValues$b({}, this), {
1438
+ return __spreadProps$8(__spreadValues$c({}, this), {
1537
1439
  unknownKeys: "strict"
1538
1440
  });
1539
1441
  },
1540
1442
  strip() {
1541
- return __spreadProps$7(__spreadValues$b({}, this), {
1443
+ return __spreadProps$8(__spreadValues$c({}, this), {
1542
1444
  unknownKeys: "strip"
1543
1445
  });
1544
1446
  },
1545
1447
  catchAll(type) {
1546
- return __spreadProps$7(__spreadValues$b({}, this), {
1448
+ return __spreadProps$8(__spreadValues$c({}, this), {
1547
1449
  catchAllType: type
1548
1450
  });
1549
1451
  }
1550
1452
  });
1551
1453
  };
1552
1454
 
1455
+ var __defProp$b = Object.defineProperty;
1456
+ var __defProps$7 = Object.defineProperties;
1457
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
1458
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
1459
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
1460
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
1461
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1462
+ var __spreadValues$b = (a, b) => {
1463
+ for (var prop in b || (b = {}))
1464
+ if (__hasOwnProp$c.call(b, prop))
1465
+ __defNormalProp$b(a, prop, b[prop]);
1466
+ if (__getOwnPropSymbols$c)
1467
+ for (var prop of __getOwnPropSymbols$c(b)) {
1468
+ if (__propIsEnum$c.call(b, prop))
1469
+ __defNormalProp$b(a, prop, b[prop]);
1470
+ }
1471
+ return a;
1472
+ };
1473
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
1474
+ const any = () => {
1475
+ return constructType({
1476
+ dataType: "any"
1477
+ });
1478
+ };
1479
+ const bigIntMethods = __spreadValues$b({
1480
+ dataType: "bigint"
1481
+ }, numberTypeMethods);
1482
+ const bigint = () => {
1483
+ return constructType(bigIntMethods);
1484
+ };
1485
+ const boolean = () => {
1486
+ return constructType({
1487
+ dataType: "boolean"
1488
+ });
1489
+ };
1490
+ const nan = () => {
1491
+ return constructType({
1492
+ dataType: "nan"
1493
+ });
1494
+ };
1495
+ const never = () => {
1496
+ return constructType({
1497
+ dataType: "never"
1498
+ });
1499
+ };
1500
+ const nullType = () => {
1501
+ return constructType({
1502
+ dataType: "null"
1503
+ });
1504
+ };
1505
+ const numberMethods = __spreadProps$7(__spreadValues$b({}, numberTypeMethods), {
1506
+ dataType: "number"
1507
+ });
1508
+ const number = () => {
1509
+ return constructType(numberMethods);
1510
+ };
1511
+ const dateMethods = __spreadProps$7(__spreadValues$b({}, dateTypeMethods), {
1512
+ dataType: "date"
1513
+ });
1514
+ const date = () => {
1515
+ return constructType(dateMethods);
1516
+ };
1517
+ const stringMethods = __spreadProps$7(__spreadValues$b({}, stringTypeMethods()), {
1518
+ dataType: "string"
1519
+ });
1520
+ const string = () => {
1521
+ return constructType(stringMethods);
1522
+ };
1523
+ const undefinedType = () => {
1524
+ return constructType({
1525
+ dataType: "undefined"
1526
+ });
1527
+ };
1528
+ const unknown = () => {
1529
+ return constructType({
1530
+ dataType: "unknown"
1531
+ });
1532
+ };
1533
+ const voidType = () => {
1534
+ return constructType({
1535
+ dataType: "void"
1536
+ });
1537
+ };
1538
+ const scalarTypes = {
1539
+ any,
1540
+ bigint,
1541
+ boolean,
1542
+ date,
1543
+ nan,
1544
+ never,
1545
+ null: nullType,
1546
+ number,
1547
+ string,
1548
+ undefined: undefinedType,
1549
+ unknown,
1550
+ void: voidType
1551
+ };
1552
+
1553
1553
  var __defProp$a = Object.defineProperty;
1554
1554
  var __defProps$6 = Object.defineProperties;
1555
1555
  var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
@@ -5549,28 +5549,46 @@ exports.addWhereIn = addWhereIn;
5549
5549
  exports.addWhereNot = addWhereNot;
5550
5550
  exports.aggregate1FunctionNames = aggregate1FunctionNames;
5551
5551
  exports.applyMixins = applyMixins;
5552
+ exports.array = array;
5553
+ exports.arrayToEnum = arrayToEnum;
5552
5554
  exports.columnTypes = columnTypes;
5553
5555
  exports.columnUtils = utils;
5556
+ exports.constructType = constructType;
5554
5557
  exports.createDb = createDb;
5555
5558
  exports.createOperator = createOperator;
5556
5559
  exports.defaultsKey = defaultsKey;
5560
+ exports.discriminatedUnion = discriminatedUnion;
5557
5561
  exports.emptyObject = emptyObject;
5562
+ exports.enumType = enumType;
5558
5563
  exports.getClonedQueryData = getClonedQueryData;
5559
5564
  exports.getColumnTypes = getColumnTypes;
5560
5565
  exports.getQueryAs = getQueryAs;
5561
5566
  exports.getQueryParsers = getQueryParsers;
5562
5567
  exports.getRaw = getRaw;
5563
5568
  exports.getTableData = getTableData;
5569
+ exports.getValidEnumValues = getValidEnumValues;
5564
5570
  exports.getValueKey = getValueKey;
5565
5571
  exports.handleResult = handleResult;
5572
+ exports.instanceOf = instanceOf;
5573
+ exports.intersection = intersection;
5566
5574
  exports.isRaw = isRaw;
5567
5575
  exports.isRequiredRelationKey = isRequiredRelationKey;
5568
5576
  exports.joinTruthy = joinTruthy;
5569
5577
  exports.jsonTypes = jsonTypes;
5578
+ exports.lazy = lazy;
5579
+ exports.literal = literal;
5570
5580
  exports.logColors = logColors;
5571
5581
  exports.logParamToLogObject = logParamToLogObject;
5582
+ exports.map = map;
5583
+ exports.nativeEnum = nativeEnum;
5572
5584
  exports.newTableData = newTableData;
5573
5585
  exports.noop = noop;
5586
+ exports.notNullable = notNullable;
5587
+ exports.notNullish = notNullish;
5588
+ exports.nullable = nullable;
5589
+ exports.nullish = nullish;
5590
+ exports.object = object;
5591
+ exports.optional = optional;
5574
5592
  exports.parseRecord = parseRecord;
5575
5593
  exports.parseResult = parseResult;
5576
5594
  exports.processSelectArg = processSelectArg;
@@ -5582,10 +5600,16 @@ exports.queryKeysOfNotSimpleQuery = queryKeysOfNotSimpleQuery;
5582
5600
  exports.queryMethodByReturnType = queryMethodByReturnType;
5583
5601
  exports.quote = quote;
5584
5602
  exports.raw = raw;
5603
+ exports.record = record;
5585
5604
  exports.relationQueryKey = relationQueryKey;
5586
5605
  exports.removeFromQuery = removeFromQuery;
5606
+ exports.required = required;
5587
5607
  exports.resetTableData = resetTableData;
5608
+ exports.scalarTypes = scalarTypes;
5609
+ exports.set = set;
5588
5610
  exports.setQueryObjectValue = setQueryObjectValue;
5589
5611
  exports.toArray = toArray;
5590
5612
  exports.toSql = toSql;
5613
+ exports.tuple = tuple;
5614
+ exports.union = union;
5591
5615
  //# sourceMappingURL=index.js.map