@514labs/moose-lib 0.6.238-ci-6-g1a6f273f → 0.6.239-ci-14-g85f6cfc1

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.
Files changed (35) hide show
  1. package/dist/{browserCompatible-CKgEUuZc.d.ts → browserCompatible-bG7qUssc.d.mts} +2 -26
  2. package/dist/{browserCompatible-DCc9Zd_X.d.mts → browserCompatible-mRmtV1to.d.ts} +2 -26
  3. package/dist/browserCompatible.d.mts +2 -2
  4. package/dist/browserCompatible.d.ts +2 -2
  5. package/dist/browserCompatible.js +43 -25
  6. package/dist/browserCompatible.js.map +1 -1
  7. package/dist/browserCompatible.mjs +43 -25
  8. package/dist/browserCompatible.mjs.map +1 -1
  9. package/dist/compilerPlugin.js +1 -25
  10. package/dist/compilerPlugin.js.map +1 -1
  11. package/dist/compilerPlugin.mjs +1 -25
  12. package/dist/compilerPlugin.mjs.map +1 -1
  13. package/dist/dataModels/toDataModels.js +1 -25
  14. package/dist/dataModels/toDataModels.js.map +1 -1
  15. package/dist/dataModels/toDataModels.mjs +1 -25
  16. package/dist/dataModels/toDataModels.mjs.map +1 -1
  17. package/dist/dmv2/index.d.mts +1 -1
  18. package/dist/dmv2/index.d.ts +1 -1
  19. package/dist/dmv2/index.js +43 -25
  20. package/dist/dmv2/index.js.map +1 -1
  21. package/dist/dmv2/index.mjs +43 -25
  22. package/dist/dmv2/index.mjs.map +1 -1
  23. package/dist/{index-CYFF3a0J.d.mts → index-DtHRzX8Z.d.mts} +12 -1
  24. package/dist/{index-CYFF3a0J.d.ts → index-DtHRzX8Z.d.ts} +12 -1
  25. package/dist/index.d.mts +3 -3
  26. package/dist/index.d.ts +3 -3
  27. package/dist/index.js +43 -25
  28. package/dist/index.js.map +1 -1
  29. package/dist/index.mjs +43 -25
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/moose-runner.js +5 -2
  32. package/dist/moose-runner.js.map +1 -1
  33. package/dist/moose-runner.mjs +5 -2
  34. package/dist/moose-runner.mjs.map +1 -1
  35. package/package.json +1 -1
@@ -421,22 +421,6 @@ var handleDefault = (t, checker) => {
421
421
  }
422
422
  return defaultType.value;
423
423
  };
424
- var handleMaterialized = (t, checker) => {
425
- const materializedType = getTaggedType(
426
- t,
427
- checker,
428
- "_clickhouse_materialized"
429
- );
430
- if (materializedType === null) {
431
- return null;
432
- }
433
- if (!materializedType.isStringLiteral()) {
434
- throw new UnsupportedFeature(
435
- 'ClickHouseMaterialized must use a string literal, e.g. ClickHouseMaterialized<"toDate(timestamp)">'
436
- );
437
- }
438
- return materializedType.value;
439
- };
440
424
  var handleTtl = (t, checker) => {
441
425
  const ttlType = getTaggedType(t, checker, "_clickhouse_ttl");
442
426
  if (ttlType === null) {
@@ -927,21 +911,13 @@ var toColumns = (t, checker) => {
927
911
  isJwt,
928
912
  node?.type
929
913
  );
930
- const defaultValue = defaultExpression ?? handleDefault(type, checker);
931
- const materializedValue = handleMaterialized(type, checker);
932
- if (defaultValue && materializedValue) {
933
- throw new UnsupportedFeature(
934
- `Column '${prop.name}' cannot have both ClickHouseDefault and ClickHouseMaterialized. Use one or the other.`
935
- );
936
- }
937
914
  return {
938
915
  name: prop.name,
939
916
  data_type: dataType,
940
917
  primary_key: isKey,
941
918
  required: !nullable,
942
919
  unique: false,
943
- default: defaultValue,
944
- materialized: materializedValue,
920
+ default: defaultExpression ?? handleDefault(type, checker),
945
921
  ttl: handleTtl(type, checker),
946
922
  codec: handleCodec(type, checker),
947
923
  annotations