-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate API bindings directly from endpoint
- Loading branch information
1 parent
5d43174
commit 697dd78
Showing
5 changed files
with
7 additions
and
1,285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"type":"object","properties":{"id":{"description":"On-chain account address.","type":"string","maxLength":64,"title":"Address"},"total_donations_in_usd":{"description":"Total donations received in USD.","type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,2})?$","title":"Total donations received in USD"},"total_donations_out_usd":{"description":"Total donated in USD.","type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,2})?$","title":"Total donations sent in USD"},"total_matching_pool_allocations_usd":{"description":"Total matching pool allocations in USD.","type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,2})?$","title":"Total matching pool allocations in USD"},"donors_count":{"description":"Number of donors.","type":"integer","maximum":2147483647,"minimum":0}},"required":["id"],"x-readme-ref-name":"Account"} | ||
{"type":"object","properties":{"id":{"description":"On-chain account address.","type":"string","maxLength":64,"title":"Address"},"total_donations_in_usd":{"description":"Total donations received in USD.","type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,2})?$","title":"Total donations received in USD"},"total_donations_out_usd":{"description":"Total donated in USD.","type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,2})?$","title":"Total donations sent in USD"},"total_matching_pool_allocations_usd":{"description":"Total matching pool allocations in USD.","type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,2})?$","title":"Total matching pool allocations in USD"},"donors_count":{"description":"Number of donors.","type":"integer","maximum":2147483647,"minimum":0},"near_social_profile_data":{"description":"NEAR social data contained under 'profile' key.","nullable":true}},"required":["id"],"x-readme-ref-name":"Account"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { z } from "zod"; | ||
|
||
|
||
export const accountSchema = z.object({ "id": z.string().max(64).describe("On-chain account address."), "total_donations_in_usd": z.string().regex(new RegExp("^-?\\d{0,18}(?:\\.\\d{0,2})?$")).describe("Total donations received in USD.").optional(), "total_donations_out_usd": z.string().regex(new RegExp("^-?\\d{0,18}(?:\\.\\d{0,2})?$")).describe("Total donated in USD.").optional(), "total_matching_pool_allocations_usd": z.string().regex(new RegExp("^-?\\d{0,18}(?:\\.\\d{0,2})?$")).describe("Total matching pool allocations in USD.").optional(), "donors_count": z.number().min(0).max(2147483647).describe("Number of donors.").optional() }); | ||
export const accountSchema = z.object({ "id": z.string().max(64).describe("On-chain account address."), "total_donations_in_usd": z.string().regex(new RegExp("^-?\\d{0,18}(?:\\.\\d{0,2})?$")).describe("Total donations received in USD.").optional(), "total_donations_out_usd": z.string().regex(new RegExp("^-?\\d{0,18}(?:\\.\\d{0,2})?$")).describe("Total donated in USD.").optional(), "total_matching_pool_allocations_usd": z.string().regex(new RegExp("^-?\\d{0,18}(?:\\.\\d{0,2})?$")).describe("Total matching pool allocations in USD.").optional(), "donors_count": z.number().min(0).max(2147483647).describe("Number of donors.").optional(), "near_social_profile_data": z.any().nullish() }); |
Oops, something went wrong.