diff --git a/.changeset/dry-ducks-sleep.md b/.changeset/dry-ducks-sleep.md new file mode 100644 index 000000000..ae7be4cd3 --- /dev/null +++ b/.changeset/dry-ducks-sleep.md @@ -0,0 +1,5 @@ +--- +"@rabbitholegg/questdk-plugin-utils": minor +--- + +allow any combination of filters in mint params diff --git a/packages/utils/src/index.ts b/packages/utils/src/index.ts index 12b42d13c..c4aa450f3 100644 --- a/packages/utils/src/index.ts +++ b/packages/utils/src/index.ts @@ -1,3 +1,4 @@ + export { CHAIN_TO_TOKENS, Chains, @@ -93,6 +94,7 @@ export type { PremintValidationParams, PremintActionDetail, PremintActionForm, + Primitive, } from './types' export { @@ -141,6 +143,7 @@ export { PremintActionDetailSchema, PremintActionFormSchema, // Filter Schemas + // Primitive, NumericSchema, NumericOperatorSchema, BitmaskFilterSchema, diff --git a/packages/utils/src/types/filters.ts b/packages/utils/src/types/filters.ts index 5afc73c03..ff586cce6 100644 --- a/packages/utils/src/types/filters.ts +++ b/packages/utils/src/types/filters.ts @@ -129,7 +129,7 @@ export const TransactionFilterSchema: z.ZodType = z.record( z.lazy(() => FilterSchema), ) -type Primitive = string | number | boolean | bigint +export type Primitive = string | number | boolean | bigint export const PrimitiveSchema = z.union([z.string(), z.number(), z.boolean(), z.bigint()]) export type FilterObject = { diff --git a/packages/utils/src/types/index.ts b/packages/utils/src/types/index.ts index a5c953e32..4369305ae 100644 --- a/packages/utils/src/types/index.ts +++ b/packages/utils/src/types/index.ts @@ -101,6 +101,7 @@ export { export { ActionType, OrderType } from './actions' export type { + Primitive, FilterObject, BitmaskFilter, NthFilter,