@ensnode/ensnode-sdk 0.0.0-next-20260401023306 → 0.0.0-next-20260401115620
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.cjs +12 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -28
- package/dist/index.d.ts +43 -28
- package/dist/index.js +12 -9
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -953,7 +953,6 @@ var makeFullyPinnedLabelSetSchema = (valueLabel = "Label set") => {
|
|
|
953
953
|
var makeNonEmptyStringSchema = (valueLabel = "Value") => import_v43.z.string().nonempty({ error: `${valueLabel} must be a non-empty string.` });
|
|
954
954
|
var makeEnsIndexerVersionInfoSchema = (valueLabel = "Value") => import_v43.z.object(
|
|
955
955
|
{
|
|
956
|
-
nodejs: makeNonEmptyStringSchema(),
|
|
957
956
|
ponder: makeNonEmptyStringSchema(),
|
|
958
957
|
ensDb: makeNonEmptyStringSchema(),
|
|
959
958
|
ensIndexer: makeNonEmptyStringSchema(),
|
|
@@ -1056,23 +1055,27 @@ var TheGraphFallbackSchema = import_v45.z.discriminatedUnion("canFallback", [
|
|
|
1056
1055
|
]);
|
|
1057
1056
|
|
|
1058
1057
|
// src/ensapi/config/zod-schemas.ts
|
|
1058
|
+
var makeEnsApiVersionInfoSchema = (valueLabel = "ENS API version info") => import_v46.z.object({
|
|
1059
|
+
ensApi: import_v46.z.string().nonempty(`${valueLabel}.ensApi must be a non-empty string`),
|
|
1060
|
+
ensNormalize: import_v46.z.string().nonempty(`${valueLabel}.ensNormalize must be a non-empty string`)
|
|
1061
|
+
});
|
|
1059
1062
|
function makeEnsApiPublicConfigSchema(valueLabel) {
|
|
1060
1063
|
const label = valueLabel ?? "ENSApiPublicConfig";
|
|
1061
1064
|
return import_v46.z.object({
|
|
1062
|
-
version: import_v46.z.string().min(1, `${label}.version must be a non-empty string`),
|
|
1063
1065
|
theGraphFallback: TheGraphFallbackSchema,
|
|
1064
|
-
ensIndexerPublicConfig: makeEnsIndexerPublicConfigSchema(`${label}.ensIndexerPublicConfig`)
|
|
1066
|
+
ensIndexerPublicConfig: makeEnsIndexerPublicConfigSchema(`${label}.ensIndexerPublicConfig`),
|
|
1067
|
+
versionInfo: makeEnsApiVersionInfoSchema(`${label}.versionInfo`)
|
|
1065
1068
|
});
|
|
1066
1069
|
}
|
|
1067
1070
|
var makeENSApiPublicConfigSchema = makeEnsApiPublicConfigSchema;
|
|
1068
1071
|
function makeSerializedEnsApiPublicConfigSchema(valueLabel) {
|
|
1069
1072
|
const label = valueLabel ?? "ENSApiPublicConfig";
|
|
1070
1073
|
return import_v46.z.object({
|
|
1071
|
-
version: import_v46.z.string().min(1, `${label}.version must be a non-empty string`),
|
|
1072
|
-
theGraphFallback: TheGraphFallbackSchema,
|
|
1073
1074
|
ensIndexerPublicConfig: makeSerializedEnsIndexerPublicConfigSchema(
|
|
1074
1075
|
`${label}.ensIndexerPublicConfig`
|
|
1075
|
-
)
|
|
1076
|
+
),
|
|
1077
|
+
theGraphFallback: TheGraphFallbackSchema,
|
|
1078
|
+
versionInfo: makeEnsApiVersionInfoSchema(`${label}.versionInfo`)
|
|
1076
1079
|
});
|
|
1077
1080
|
}
|
|
1078
1081
|
|
|
@@ -1132,11 +1135,11 @@ var serializeENSIndexerPublicConfig = serializeEnsIndexerPublicConfig;
|
|
|
1132
1135
|
|
|
1133
1136
|
// src/ensapi/config/serialize.ts
|
|
1134
1137
|
function serializeEnsApiPublicConfig(config) {
|
|
1135
|
-
const {
|
|
1138
|
+
const { ensIndexerPublicConfig, theGraphFallback, versionInfo } = config;
|
|
1136
1139
|
return {
|
|
1137
|
-
|
|
1140
|
+
ensIndexerPublicConfig: serializeEnsIndexerPublicConfig(ensIndexerPublicConfig),
|
|
1138
1141
|
theGraphFallback,
|
|
1139
|
-
|
|
1142
|
+
versionInfo
|
|
1140
1143
|
};
|
|
1141
1144
|
}
|
|
1142
1145
|
var serializeENSApiPublicConfig = serializeEnsApiPublicConfig;
|