@helium/blockchain-api 0.3.1 → 0.3.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/index.d.ts +8 -0
- package/dist/index.js +13 -2
- package/package.json +1 -9
package/dist/index.d.ts
CHANGED
|
@@ -1577,6 +1577,10 @@ declare const apiContract: {
|
|
|
1577
1577
|
ok: zod.ZodBoolean;
|
|
1578
1578
|
error: zod.ZodOptional<zod.ZodString>;
|
|
1579
1579
|
}, zod_v4_core.$strip>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, Record<never, never>>>, Record<never, never>>;
|
|
1580
|
+
testSentry: _orpc_contract.ContractProcedure<_orpc_contract.Schema<unknown, unknown>, zod.ZodObject<{
|
|
1581
|
+
ok: zod.ZodBoolean;
|
|
1582
|
+
error: zod.ZodOptional<zod.ZodString>;
|
|
1583
|
+
}, zod_v4_core.$strip>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, Record<never, never>>>, Record<never, never>>;
|
|
1580
1584
|
};
|
|
1581
1585
|
tokens: {
|
|
1582
1586
|
getBalances: _orpc_contract.ContractProcedure<zod.ZodObject<{
|
|
@@ -3361,6 +3365,10 @@ declare const fullApiContract: {
|
|
|
3361
3365
|
ok: zod.ZodBoolean;
|
|
3362
3366
|
error: zod.ZodOptional<zod.ZodString>;
|
|
3363
3367
|
}, zod_v4_core.$strip>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, Record<never, never>>>>, Record<never, never>>;
|
|
3368
|
+
testSentry: _orpc_contract.ContractProcedure<_orpc_contract.Schema<unknown, unknown>, zod.ZodObject<{
|
|
3369
|
+
ok: zod.ZodBoolean;
|
|
3370
|
+
error: zod.ZodOptional<zod.ZodString>;
|
|
3371
|
+
}, zod_v4_core.$strip>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, Record<never, never>>>>, Record<never, never>>;
|
|
3364
3372
|
};
|
|
3365
3373
|
tokens: {
|
|
3366
3374
|
getBalances: _orpc_contract.ContractProcedure<zod.ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -497,7 +497,13 @@ var UpdateHotspotInfoOutputSchema = z.object({
|
|
|
497
497
|
mobile: z.boolean()
|
|
498
498
|
})
|
|
499
499
|
});
|
|
500
|
-
var
|
|
500
|
+
var CRON_REGEX = /^(\*|[0-9,\-\/]+)\s+(\*|[0-9,\-\/]+)\s+(\*|[0-9,\-\/]+)\s+(\*|[0-9,\-\/]+)\s+(\*|[0-9,\-\/]+)$/;
|
|
501
|
+
var RewardSchedule = z.string().regex(
|
|
502
|
+
CRON_REGEX,
|
|
503
|
+
"Invalid cron format. Expected 5 fields: minute hour day month weekday"
|
|
504
|
+
).describe(
|
|
505
|
+
`UTC cron expression with 5 fields (e.g. '30 9 * * *' or '0 0 1,15 * *')`
|
|
506
|
+
);
|
|
501
507
|
var RecipientShareInput = z.discriminatedUnion("type", [
|
|
502
508
|
z.object({
|
|
503
509
|
type: z.literal("FIXED"),
|
|
@@ -861,7 +867,12 @@ var SIMULATION_FAILED = {
|
|
|
861
867
|
})
|
|
862
868
|
};
|
|
863
869
|
var healthContract = oc.tag("Health").router({
|
|
864
|
-
check: oc.route({ method: "GET", path: "/health", summary: "Health check" }).output(HealthResponseSchema)
|
|
870
|
+
check: oc.route({ method: "GET", path: "/health", summary: "Health check" }).output(HealthResponseSchema),
|
|
871
|
+
testSentry: oc.route({
|
|
872
|
+
method: "GET",
|
|
873
|
+
path: "/health/test-sentry",
|
|
874
|
+
summary: "Test Sentry error reporting"
|
|
875
|
+
}).output(HealthResponseSchema)
|
|
865
876
|
});
|
|
866
877
|
var tokensContract = oc.tag("Tokens").router({
|
|
867
878
|
/** Public: Get token balances for a wallet */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helium/blockchain-api",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "TypeScript client and schemas for the Helium Blockchain API",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -20,14 +20,6 @@
|
|
|
20
20
|
"files": [
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
|
-
"publishConfig": {
|
|
24
|
-
"exports": {
|
|
25
|
-
".": {
|
|
26
|
-
"types": "./dist/index.d.ts",
|
|
27
|
-
"default": "./dist/index.js"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
23
|
"scripts": {
|
|
32
24
|
"build": "tsup",
|
|
33
25
|
"dev": "tsup --watch",
|