@helium/blockchain-api 0.3.0 → 0.3.2
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 +27 -2
- package/package.json +1 -2
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,27 @@ 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,\-\/]+)\s+(\*|[0-9,\-\/]+)$/;
|
|
501
|
+
var RewardSchedule = z.string().regex(
|
|
502
|
+
CRON_REGEX,
|
|
503
|
+
"Invalid cron format. Expected 6 fields: seconds minutes hours dayOfMonth month dayOfWeek"
|
|
504
|
+
).describe(
|
|
505
|
+
`UTC cron expression with 6 fields (e.g. '0 30 9 * * *').
|
|
506
|
+
|
|
507
|
+
If using tools like crontab.guru, note that the clockwork parser uses 6-7 columns instead of the standard 5. Add seconds as the leftmost column (year is optional as the rightmost).
|
|
508
|
+
|
|
509
|
+
Standard 5-column cron:
|
|
510
|
+
min hour dayOfMonth month dayOfWeek
|
|
511
|
+
0 18 * * FRI
|
|
512
|
+
|
|
513
|
+
7-column format (with optional year):
|
|
514
|
+
sec min hour dayOfMonth month dayOfWeek year
|
|
515
|
+
0 0 18 * * FRI *
|
|
516
|
+
|
|
517
|
+
6-column format (required here):
|
|
518
|
+
sec min hour dayOfMonth month dayOfWeek
|
|
519
|
+
0 0 18 * * FRI`
|
|
520
|
+
);
|
|
501
521
|
var RecipientShareInput = z.discriminatedUnion("type", [
|
|
502
522
|
z.object({
|
|
503
523
|
type: z.literal("FIXED"),
|
|
@@ -861,7 +881,12 @@ var SIMULATION_FAILED = {
|
|
|
861
881
|
})
|
|
862
882
|
};
|
|
863
883
|
var healthContract = oc.tag("Health").router({
|
|
864
|
-
check: oc.route({ method: "GET", path: "/health", summary: "Health check" }).output(HealthResponseSchema)
|
|
884
|
+
check: oc.route({ method: "GET", path: "/health", summary: "Health check" }).output(HealthResponseSchema),
|
|
885
|
+
testSentry: oc.route({
|
|
886
|
+
method: "GET",
|
|
887
|
+
path: "/health/test-sentry",
|
|
888
|
+
summary: "Test Sentry error reporting"
|
|
889
|
+
}).output(HealthResponseSchema)
|
|
865
890
|
});
|
|
866
891
|
var tokensContract = oc.tag("Tokens").router({
|
|
867
892
|
/** 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.2",
|
|
4
4
|
"description": "TypeScript client and schemas for the Helium Blockchain API",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
16
|
"types": "./dist/index.d.ts",
|
|
17
|
-
"development": "./src/index.ts",
|
|
18
17
|
"default": "./dist/index.js"
|
|
19
18
|
}
|
|
20
19
|
},
|