@rabbitholegg/questdk-plugin-utils
Advanced tools
Comparing version 1.0.0-alpha.32 to 1.0.0-alpha.33
# @rabbitholegg/questdk-plugin-utils | ||
## 1.0.0-alpha.33 | ||
### Minor Changes | ||
- [#424](https://github.com/rabbitholegg/questdk-plugins/pull/424) [`495680d0`](https://github.com/rabbitholegg/questdk-plugins/commit/495680d01d42dde9c1301d64b725bb80f8813bf8) Thanks [@sammccord](https://github.com/sammccord)! - Change validateFollow to accept usernames/channel strings or fid's as numbers, fetchUser to accept numerical fid's | ||
## 1.0.0-alpha.32 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@rabbitholegg/questdk-plugin-utils", | ||
"version": "1.0.0-alpha.32", | ||
"version": "1.0.0-alpha.33", | ||
"exports": { | ||
@@ -5,0 +5,0 @@ "require": "./dist/cjs/index.js", |
@@ -229,3 +229,5 @@ import { | ||
export type FollowActionParams = { | ||
target: Address | string // Might want a more precise type here for FID? | ||
// if the target is a string, then assume it's a valid username or channel name | ||
// if it's a number, assume it's a fid, but that will rarely be the case | ||
target: Address | string | number | ||
project?: Address | string | ||
@@ -243,3 +245,5 @@ } | ||
export const FollowActionDetailSchema = z.object({ | ||
target: z.union([z.string(), EthAddressSchema]), | ||
// if the target is a string, then assume it's a valid username or channel name | ||
// if it's a number, assume it's a fid, but that will rarely be the case | ||
target: z.union([z.string(), EthAddressSchema, z.number()]), | ||
project: z.union([z.string(), EthAddressSchema]).optional(), | ||
@@ -250,3 +254,5 @@ }) | ||
export const FollowActionFormSchema = z.object({ | ||
target: z.union([z.string(), EthAddressSchema]), | ||
// if the target is a string, then assume it's a valid username or channel name | ||
// if it's a number, assume it's a fid, but that will rarely be the case | ||
target: z.union([z.string(), EthAddressSchema, z.number()]), | ||
}) | ||
@@ -253,0 +259,0 @@ export type FollowActionForm = z.infer<typeof FollowActionFormSchema> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
1229218
17982