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.esm.js CHANGED
@@ -1071,6 +1071,13 @@ const intersection = (left, right) => {
1071
1071
  });
1072
1072
  };
1073
1073
 
1074
+ const union = (types) => {
1075
+ return constructType({
1076
+ dataType: "union",
1077
+ types
1078
+ });
1079
+ };
1080
+
1074
1081
  var __defProp$h = Object.defineProperty;
1075
1082
  var __defProps$d = Object.defineProperties;
1076
1083
  var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
@@ -1090,47 +1097,6 @@ var __spreadValues$h = (a, b) => {
1090
1097
  return a;
1091
1098
  };
1092
1099
  var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
1093
- const array = (element) => {
1094
- return constructType(__spreadValues$h({
1095
- dataType: "array",
1096
- element,
1097
- deepPartial() {
1098
- return __spreadProps$d(__spreadValues$h({}, this), {
1099
- element: this.element.deepPartial()
1100
- });
1101
- },
1102
- nonEmpty() {
1103
- return this.min(1);
1104
- }
1105
- }, arrayMethods));
1106
- };
1107
-
1108
- const union = (types) => {
1109
- return constructType({
1110
- dataType: "union",
1111
- types
1112
- });
1113
- };
1114
-
1115
- var __defProp$g = Object.defineProperty;
1116
- var __defProps$c = Object.defineProperties;
1117
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
1118
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
1119
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
1120
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
1121
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1122
- var __spreadValues$g = (a, b) => {
1123
- for (var prop in b || (b = {}))
1124
- if (__hasOwnProp$h.call(b, prop))
1125
- __defNormalProp$g(a, prop, b[prop]);
1126
- if (__getOwnPropSymbols$h)
1127
- for (var prop of __getOwnPropSymbols$h(b)) {
1128
- if (__propIsEnum$h.call(b, prop))
1129
- __defNormalProp$g(a, prop, b[prop]);
1130
- }
1131
- return a;
1132
- };
1133
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
1134
1100
  const baseTypeMethods = {
1135
1101
  type: void 0,
1136
1102
  data: {},
@@ -1158,22 +1124,22 @@ const baseTypeMethods = {
1158
1124
  return this;
1159
1125
  },
1160
1126
  transform(fn) {
1161
- return __spreadProps$c(__spreadValues$g({}, this), {
1127
+ return __spreadProps$d(__spreadValues$h({}, this), {
1162
1128
  chain: [...this.chain, ["transform", fn]]
1163
1129
  });
1164
1130
  },
1165
1131
  to(fn, type) {
1166
- return __spreadProps$c(__spreadValues$g({}, type), {
1132
+ return __spreadProps$d(__spreadValues$h({}, type), {
1167
1133
  chain: [...this.chain, ["to", fn, type], ...type.chain]
1168
1134
  });
1169
1135
  },
1170
1136
  refine(check) {
1171
- return __spreadProps$c(__spreadValues$g({}, this), {
1137
+ return __spreadProps$d(__spreadValues$h({}, this), {
1172
1138
  chain: [...this.chain, ["refine", check]]
1173
1139
  });
1174
1140
  },
1175
1141
  superRefine(check) {
1176
- return __spreadProps$c(__spreadValues$g({}, this), {
1142
+ return __spreadProps$d(__spreadValues$h({}, this), {
1177
1143
  chain: [...this.chain, ["superRefine", check]]
1178
1144
  });
1179
1145
  },
@@ -1186,7 +1152,7 @@ const baseTypeMethods = {
1186
1152
  },
1187
1153
  default(value) {
1188
1154
  const cloned = Object.create(this);
1189
- cloned.data = __spreadProps$c(__spreadValues$g({}, cloned.data), { default: value });
1155
+ cloned.data = __spreadProps$d(__spreadValues$h({}, cloned.data), { default: value });
1190
1156
  return cloned;
1191
1157
  },
1192
1158
  array() {
@@ -1194,7 +1160,41 @@ const baseTypeMethods = {
1194
1160
  }
1195
1161
  };
1196
1162
  const constructType = (type) => {
1197
- return __spreadValues$g(__spreadValues$g({}, baseTypeMethods), type);
1163
+ return __spreadValues$h(__spreadValues$h({}, baseTypeMethods), type);
1164
+ };
1165
+
1166
+ var __defProp$g = Object.defineProperty;
1167
+ var __defProps$c = Object.defineProperties;
1168
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
1169
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
1170
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
1171
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
1172
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1173
+ var __spreadValues$g = (a, b) => {
1174
+ for (var prop in b || (b = {}))
1175
+ if (__hasOwnProp$h.call(b, prop))
1176
+ __defNormalProp$g(a, prop, b[prop]);
1177
+ if (__getOwnPropSymbols$h)
1178
+ for (var prop of __getOwnPropSymbols$h(b)) {
1179
+ if (__propIsEnum$h.call(b, prop))
1180
+ __defNormalProp$g(a, prop, b[prop]);
1181
+ }
1182
+ return a;
1183
+ };
1184
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
1185
+ const array = (element) => {
1186
+ return constructType(__spreadValues$g({
1187
+ dataType: "array",
1188
+ element,
1189
+ deepPartial() {
1190
+ return __spreadProps$c(__spreadValues$g({}, this), {
1191
+ element: this.element.deepPartial()
1192
+ });
1193
+ },
1194
+ nonEmpty() {
1195
+ return this.min(1);
1196
+ }
1197
+ }, arrayMethods));
1198
1198
  };
1199
1199
 
1200
1200
  var __defProp$f = Object.defineProperty;
@@ -1216,104 +1216,6 @@ var __spreadValues$f = (a, b) => {
1216
1216
  return a;
1217
1217
  };
1218
1218
  var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
1219
- const any = () => {
1220
- return constructType({
1221
- dataType: "any"
1222
- });
1223
- };
1224
- const bigIntMethods = __spreadValues$f({
1225
- dataType: "bigint"
1226
- }, numberTypeMethods);
1227
- const bigint = () => {
1228
- return constructType(bigIntMethods);
1229
- };
1230
- const boolean = () => {
1231
- return constructType({
1232
- dataType: "boolean"
1233
- });
1234
- };
1235
- const nan = () => {
1236
- return constructType({
1237
- dataType: "nan"
1238
- });
1239
- };
1240
- const never = () => {
1241
- return constructType({
1242
- dataType: "never"
1243
- });
1244
- };
1245
- const nullType = () => {
1246
- return constructType({
1247
- dataType: "null"
1248
- });
1249
- };
1250
- const numberMethods = __spreadProps$b(__spreadValues$f({}, numberTypeMethods), {
1251
- dataType: "number"
1252
- });
1253
- const number = () => {
1254
- return constructType(numberMethods);
1255
- };
1256
- const dateMethods = __spreadProps$b(__spreadValues$f({}, dateTypeMethods), {
1257
- dataType: "date"
1258
- });
1259
- const date = () => {
1260
- return constructType(dateMethods);
1261
- };
1262
- const stringMethods = __spreadProps$b(__spreadValues$f({}, stringTypeMethods()), {
1263
- dataType: "string"
1264
- });
1265
- const string = () => {
1266
- return constructType(stringMethods);
1267
- };
1268
- const undefinedType = () => {
1269
- return constructType({
1270
- dataType: "undefined"
1271
- });
1272
- };
1273
- const unknown = () => {
1274
- return constructType({
1275
- dataType: "unknown"
1276
- });
1277
- };
1278
- const voidType = () => {
1279
- return constructType({
1280
- dataType: "void"
1281
- });
1282
- };
1283
- const scalarTypes = {
1284
- any,
1285
- bigint,
1286
- boolean,
1287
- date,
1288
- nan,
1289
- never,
1290
- null: nullType,
1291
- number,
1292
- string,
1293
- undefined: undefinedType,
1294
- unknown,
1295
- void: voidType
1296
- };
1297
-
1298
- var __defProp$e = Object.defineProperty;
1299
- var __defProps$a = Object.defineProperties;
1300
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
1301
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
1302
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
1303
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
1304
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1305
- var __spreadValues$e = (a, b) => {
1306
- for (var prop in b || (b = {}))
1307
- if (__hasOwnProp$f.call(b, prop))
1308
- __defNormalProp$e(a, prop, b[prop]);
1309
- if (__getOwnPropSymbols$f)
1310
- for (var prop of __getOwnPropSymbols$f(b)) {
1311
- if (__propIsEnum$f.call(b, prop))
1312
- __defNormalProp$e(a, prop, b[prop]);
1313
- }
1314
- return a;
1315
- };
1316
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
1317
1219
  const discriminatedUnion = (discriminator, options) => {
1318
1220
  const optionsMap = /* @__PURE__ */ new Map();
1319
1221
  options.forEach((option) => {
@@ -1333,7 +1235,7 @@ const discriminatedUnion = (discriminator, options) => {
1333
1235
  partial.shape[discriminator] = option.shape[discriminator];
1334
1236
  newOptionsMap.set(key, partial);
1335
1237
  });
1336
- return __spreadProps$a(__spreadValues$e({}, this), {
1238
+ return __spreadProps$b(__spreadValues$f({}, this), {
1337
1239
  options: newOptionsMap
1338
1240
  });
1339
1241
  }
@@ -1362,25 +1264,25 @@ const instanceOf = (cls) => {
1362
1264
  });
1363
1265
  };
1364
1266
 
1365
- var __defProp$d = Object.defineProperty;
1366
- var __defProps$9 = Object.defineProperties;
1367
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
1368
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
1369
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
1370
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
1371
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1372
- var __spreadValues$d = (a, b) => {
1267
+ var __defProp$e = Object.defineProperty;
1268
+ var __defProps$a = Object.defineProperties;
1269
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
1270
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
1271
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
1272
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
1273
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1274
+ var __spreadValues$e = (a, b) => {
1373
1275
  for (var prop in b || (b = {}))
1374
- if (__hasOwnProp$e.call(b, prop))
1375
- __defNormalProp$d(a, prop, b[prop]);
1376
- if (__getOwnPropSymbols$e)
1377
- for (var prop of __getOwnPropSymbols$e(b)) {
1378
- if (__propIsEnum$e.call(b, prop))
1379
- __defNormalProp$d(a, prop, b[prop]);
1276
+ if (__hasOwnProp$f.call(b, prop))
1277
+ __defNormalProp$e(a, prop, b[prop]);
1278
+ if (__getOwnPropSymbols$f)
1279
+ for (var prop of __getOwnPropSymbols$f(b)) {
1280
+ if (__propIsEnum$f.call(b, prop))
1281
+ __defNormalProp$e(a, prop, b[prop]);
1380
1282
  }
1381
1283
  return a;
1382
1284
  };
1383
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
1285
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
1384
1286
  const lazy = (fn) => {
1385
1287
  return constructType({
1386
1288
  dataType: "lazy",
@@ -1388,7 +1290,7 @@ const lazy = (fn) => {
1388
1290
  return this.typeCache || (this.typeCache = fn());
1389
1291
  },
1390
1292
  deepPartial() {
1391
- return __spreadProps$9(__spreadValues$d({}, this), {
1293
+ return __spreadProps$a(__spreadValues$e({}, this), {
1392
1294
  typeCache: void 0,
1393
1295
  getter: () => this.getter().deepPartial()
1394
1296
  });
@@ -1401,32 +1303,32 @@ const literal = (value) => constructType({
1401
1303
  value
1402
1304
  });
1403
1305
 
1404
- var __defProp$c = Object.defineProperty;
1405
- var __defProps$8 = Object.defineProperties;
1406
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
1407
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
1408
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
1409
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
1410
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1411
- var __spreadValues$c = (a, b) => {
1306
+ var __defProp$d = Object.defineProperty;
1307
+ var __defProps$9 = Object.defineProperties;
1308
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
1309
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
1310
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
1311
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
1312
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1313
+ var __spreadValues$d = (a, b) => {
1412
1314
  for (var prop in b || (b = {}))
1413
- if (__hasOwnProp$d.call(b, prop))
1414
- __defNormalProp$c(a, prop, b[prop]);
1415
- if (__getOwnPropSymbols$d)
1416
- for (var prop of __getOwnPropSymbols$d(b)) {
1417
- if (__propIsEnum$d.call(b, prop))
1418
- __defNormalProp$c(a, prop, b[prop]);
1315
+ if (__hasOwnProp$e.call(b, prop))
1316
+ __defNormalProp$d(a, prop, b[prop]);
1317
+ if (__getOwnPropSymbols$e)
1318
+ for (var prop of __getOwnPropSymbols$e(b)) {
1319
+ if (__propIsEnum$e.call(b, prop))
1320
+ __defNormalProp$d(a, prop, b[prop]);
1419
1321
  }
1420
1322
  return a;
1421
1323
  };
1422
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
1324
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
1423
1325
  const map = (keyType, valueType) => {
1424
1326
  return constructType({
1425
1327
  dataType: "map",
1426
1328
  keyType,
1427
1329
  valueType,
1428
1330
  deepPartial() {
1429
- return __spreadProps$8(__spreadValues$c({}, this), {
1331
+ return __spreadProps$9(__spreadValues$d({}, this), {
1430
1332
  keyType: this.keyType.deepPartial(),
1431
1333
  valueType: this.valueType.deepPartial()
1432
1334
  });
@@ -1452,25 +1354,25 @@ const nativeEnum = (givenEnum) => {
1452
1354
  });
1453
1355
  };
1454
1356
 
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) => {
1357
+ var __defProp$c = Object.defineProperty;
1358
+ var __defProps$8 = Object.defineProperties;
1359
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
1360
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
1361
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
1362
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
1363
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1364
+ var __spreadValues$c = (a, b) => {
1463
1365
  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]);
1366
+ if (__hasOwnProp$d.call(b, prop))
1367
+ __defNormalProp$c(a, prop, b[prop]);
1368
+ if (__getOwnPropSymbols$d)
1369
+ for (var prop of __getOwnPropSymbols$d(b)) {
1370
+ if (__propIsEnum$d.call(b, prop))
1371
+ __defNormalProp$c(a, prop, b[prop]);
1470
1372
  }
1471
1373
  return a;
1472
1374
  };
1473
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
1375
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
1474
1376
  const object = (shape) => {
1475
1377
  return constructType({
1476
1378
  dataType: "object",
@@ -1479,12 +1381,12 @@ const object = (shape) => {
1479
1381
  catchAllType: void 0,
1480
1382
  extend(add) {
1481
1383
  return object(
1482
- Object.assign(__spreadValues$b({}, this.shape), add)
1384
+ Object.assign(__spreadValues$c({}, this.shape), add)
1483
1385
  );
1484
1386
  },
1485
1387
  merge(obj) {
1486
1388
  return object(
1487
- Object.assign(__spreadValues$b({}, this.shape), obj.shape)
1389
+ Object.assign(__spreadValues$c({}, this.shape), obj.shape)
1488
1390
  );
1489
1391
  },
1490
1392
  pick(...arr) {
@@ -1502,7 +1404,7 @@ const object = (shape) => {
1502
1404
  return object(picked);
1503
1405
  },
1504
1406
  partial(...arr) {
1505
- const mapped = __spreadValues$b({}, this.shape);
1407
+ const mapped = __spreadValues$c({}, this.shape);
1506
1408
  if (arr.length) {
1507
1409
  arr.forEach((key) => {
1508
1410
  mapped[key] = mapped[key].optional();
@@ -1519,33 +1421,131 @@ const object = (shape) => {
1519
1421
  for (const key in this.shape) {
1520
1422
  newShape[key] = optional(this.shape[key].deepPartial());
1521
1423
  }
1522
- return __spreadProps$7(__spreadValues$b({}, this), {
1424
+ return __spreadProps$8(__spreadValues$c({}, this), {
1523
1425
  shape: newShape
1524
1426
  });
1525
1427
  },
1526
1428
  passthrough() {
1527
- return __spreadProps$7(__spreadValues$b({}, this), {
1429
+ return __spreadProps$8(__spreadValues$c({}, this), {
1528
1430
  unknownKeys: "passthrough"
1529
1431
  });
1530
1432
  },
1531
1433
  strict() {
1532
- return __spreadProps$7(__spreadValues$b({}, this), {
1434
+ return __spreadProps$8(__spreadValues$c({}, this), {
1533
1435
  unknownKeys: "strict"
1534
1436
  });
1535
1437
  },
1536
1438
  strip() {
1537
- return __spreadProps$7(__spreadValues$b({}, this), {
1439
+ return __spreadProps$8(__spreadValues$c({}, this), {
1538
1440
  unknownKeys: "strip"
1539
1441
  });
1540
1442
  },
1541
1443
  catchAll(type) {
1542
- return __spreadProps$7(__spreadValues$b({}, this), {
1444
+ return __spreadProps$8(__spreadValues$c({}, this), {
1543
1445
  catchAllType: type
1544
1446
  });
1545
1447
  }
1546
1448
  });
1547
1449
  };
1548
1450
 
1451
+ var __defProp$b = Object.defineProperty;
1452
+ var __defProps$7 = Object.defineProperties;
1453
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
1454
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
1455
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
1456
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
1457
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1458
+ var __spreadValues$b = (a, b) => {
1459
+ for (var prop in b || (b = {}))
1460
+ if (__hasOwnProp$c.call(b, prop))
1461
+ __defNormalProp$b(a, prop, b[prop]);
1462
+ if (__getOwnPropSymbols$c)
1463
+ for (var prop of __getOwnPropSymbols$c(b)) {
1464
+ if (__propIsEnum$c.call(b, prop))
1465
+ __defNormalProp$b(a, prop, b[prop]);
1466
+ }
1467
+ return a;
1468
+ };
1469
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
1470
+ const any = () => {
1471
+ return constructType({
1472
+ dataType: "any"
1473
+ });
1474
+ };
1475
+ const bigIntMethods = __spreadValues$b({
1476
+ dataType: "bigint"
1477
+ }, numberTypeMethods);
1478
+ const bigint = () => {
1479
+ return constructType(bigIntMethods);
1480
+ };
1481
+ const boolean = () => {
1482
+ return constructType({
1483
+ dataType: "boolean"
1484
+ });
1485
+ };
1486
+ const nan = () => {
1487
+ return constructType({
1488
+ dataType: "nan"
1489
+ });
1490
+ };
1491
+ const never = () => {
1492
+ return constructType({
1493
+ dataType: "never"
1494
+ });
1495
+ };
1496
+ const nullType = () => {
1497
+ return constructType({
1498
+ dataType: "null"
1499
+ });
1500
+ };
1501
+ const numberMethods = __spreadProps$7(__spreadValues$b({}, numberTypeMethods), {
1502
+ dataType: "number"
1503
+ });
1504
+ const number = () => {
1505
+ return constructType(numberMethods);
1506
+ };
1507
+ const dateMethods = __spreadProps$7(__spreadValues$b({}, dateTypeMethods), {
1508
+ dataType: "date"
1509
+ });
1510
+ const date = () => {
1511
+ return constructType(dateMethods);
1512
+ };
1513
+ const stringMethods = __spreadProps$7(__spreadValues$b({}, stringTypeMethods()), {
1514
+ dataType: "string"
1515
+ });
1516
+ const string = () => {
1517
+ return constructType(stringMethods);
1518
+ };
1519
+ const undefinedType = () => {
1520
+ return constructType({
1521
+ dataType: "undefined"
1522
+ });
1523
+ };
1524
+ const unknown = () => {
1525
+ return constructType({
1526
+ dataType: "unknown"
1527
+ });
1528
+ };
1529
+ const voidType = () => {
1530
+ return constructType({
1531
+ dataType: "void"
1532
+ });
1533
+ };
1534
+ const scalarTypes = {
1535
+ any,
1536
+ bigint,
1537
+ boolean,
1538
+ date,
1539
+ nan,
1540
+ never,
1541
+ null: nullType,
1542
+ number,
1543
+ string,
1544
+ undefined: undefinedType,
1545
+ unknown,
1546
+ void: voidType
1547
+ };
1548
+
1549
1549
  var __defProp$a = Object.defineProperty;
1550
1550
  var __defProps$6 = Object.defineProperties;
1551
1551
  var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
@@ -5446,5 +5446,5 @@ const createDb = (_a) => {
5446
5446
 
5447
5447
  const defaultsKey = Symbol("defaults");
5448
5448
 
5449
- export { Adapter, Aggregate, ArrayColumn, ArrayOfColumnsObjects, BigIntColumn, BigSerialColumn, BitColumn, BitVaryingColumn, BooleanColumn, BoxColumn, ByteaColumn, CharColumn, CidrColumn, CircleColumn, Clear, ColumnInfoMethods, ColumnType, ColumnsObject, DateBaseColumn, DateColumn, DateTimeBaseClass, DateTimeWithTimeZoneBaseClass, Db, DecimalBaseColumn, DecimalColumn, Delete, DoublePrecisionColumn, EMPTY_OBJECT, EnumColumn, For, From, Having, InetColumn, Insert, IntegerBaseColumn, IntegerColumn, IntervalColumn, JSONColumn, JSONTextColumn, Join, Json, LimitedTextBaseColumn, LineColumn, LsegColumn, MacAddr8Column, MacAddrColumn, MoneyColumn, MoreThanOneRowError, NotFoundError, NumberAsStringBaseColumn, NumberBaseColumn, OnConflictQueryBuilder, OnQueryBuilder, Operators, PathColumn, PointColumn, PolygonColumn, QueryCallbacks, QueryGet, QueryLog, QueryMethods, QueryUpsert, RealColumn, Select, SerialColumn, SmallIntColumn, SmallSerialColumn, TableSchema, TextBaseColumn, TextColumn, Then, TimeColumn, TimeWithTimeZoneColumn, TimestampColumn, TimestampWithTimeZoneColumn, Transaction, TransactionAdapter, TsQueryColumn, TsVectorColumn, UUIDColumn, Union, Update, VarCharColumn, Where, WhereQueryBuilder, With, XMLColumn, addOr, addOrNot, addParserForRawExpression, addParserForSelectItem, addParserToQuery, addQueryOn, addQueryOrOn, addWhere, addWhereIn, addWhereNot, aggregate1FunctionNames, applyMixins, columnTypes, utils as columnUtils, createDb, createOperator, defaultsKey, emptyObject, getClonedQueryData, getColumnTypes, getQueryAs, getQueryParsers, getRaw, getTableData, getValueKey, handleResult, isRaw, isRequiredRelationKey, joinTruthy, jsonTypes, logColors, logParamToLogObject, newTableData, noop, parseRecord, parseResult, processSelectArg, pushQueryArray, pushQueryOn, pushQueryOrOn, pushQueryValue, queryKeysOfNotSimpleQuery, queryMethodByReturnType, quote, raw, relationQueryKey, removeFromQuery, resetTableData, setQueryObjectValue, toArray, toSql };
5449
+ export { Adapter, Aggregate, ArrayColumn, ArrayOfColumnsObjects, BigIntColumn, BigSerialColumn, BitColumn, BitVaryingColumn, BooleanColumn, BoxColumn, ByteaColumn, CharColumn, CidrColumn, CircleColumn, Clear, ColumnInfoMethods, ColumnType, ColumnsObject, DateBaseColumn, DateColumn, DateTimeBaseClass, DateTimeWithTimeZoneBaseClass, Db, DecimalBaseColumn, DecimalColumn, Delete, DoublePrecisionColumn, EMPTY_OBJECT, EnumColumn, For, From, Having, InetColumn, Insert, IntegerBaseColumn, IntegerColumn, IntervalColumn, JSONColumn, JSONTextColumn, Join, Json, LimitedTextBaseColumn, LineColumn, LsegColumn, MacAddr8Column, MacAddrColumn, MoneyColumn, MoreThanOneRowError, NotFoundError, NumberAsStringBaseColumn, NumberBaseColumn, OnConflictQueryBuilder, OnQueryBuilder, Operators, PathColumn, PointColumn, PolygonColumn, QueryCallbacks, QueryGet, QueryLog, QueryMethods, QueryUpsert, RealColumn, Select, SerialColumn, SmallIntColumn, SmallSerialColumn, TableSchema, TextBaseColumn, TextColumn, Then, TimeColumn, TimeWithTimeZoneColumn, TimestampColumn, TimestampWithTimeZoneColumn, Transaction, TransactionAdapter, TsQueryColumn, TsVectorColumn, UUIDColumn, Union, Update, VarCharColumn, Where, WhereQueryBuilder, With, XMLColumn, addOr, addOrNot, addParserForRawExpression, addParserForSelectItem, addParserToQuery, addQueryOn, addQueryOrOn, addWhere, addWhereIn, addWhereNot, aggregate1FunctionNames, applyMixins, array, arrayToEnum, columnTypes, utils as columnUtils, constructType, createDb, createOperator, defaultsKey, discriminatedUnion, emptyObject, enumType, getClonedQueryData, getColumnTypes, getQueryAs, getQueryParsers, getRaw, getTableData, getValidEnumValues, getValueKey, handleResult, instanceOf, intersection, isRaw, isRequiredRelationKey, joinTruthy, jsonTypes, lazy, literal, logColors, logParamToLogObject, map, nativeEnum, newTableData, noop, notNullable, notNullish, nullable, nullish, object, optional, parseRecord, parseResult, processSelectArg, pushQueryArray, pushQueryOn, pushQueryOrOn, pushQueryValue, queryKeysOfNotSimpleQuery, queryMethodByReturnType, quote, raw, record, relationQueryKey, removeFromQuery, required, resetTableData, scalarTypes, set, setQueryObjectValue, toArray, toSql, tuple, union };
5450
5450
  //# sourceMappingURL=index.esm.js.map