feat: allow no customer ID in list events
This commit is contained in:
@@ -134,11 +134,7 @@ export const initLogger = () => {
|
||||
stream: pino.transport({
|
||||
target: "@axiomhq/pino",
|
||||
options: {
|
||||
dataset:
|
||||
process.env.NODE_ENV === "test" ||
|
||||
process.env.NODE_ENV === "development"
|
||||
? "server-dev"
|
||||
: "express",
|
||||
dataset: "express",
|
||||
token: process.env.AXIOM_TOKEN,
|
||||
},
|
||||
}),
|
||||
|
||||
@@ -4,11 +4,12 @@ import { createPaginationParamsSchema } from "../../common/pagePaginationSchemas
|
||||
export const ApiEventsListParamsSchema = createPaginationParamsSchema({
|
||||
defaultLimit: 100,
|
||||
}).extend({
|
||||
customer_id: z.string().describe("Filter events by customer ID"),
|
||||
customer_id: z.string().optional().describe("Filter events by customer ID"),
|
||||
feature_id: z
|
||||
.string()
|
||||
.min(1)
|
||||
.or(z.array(z.string().min(1)))
|
||||
.optional()
|
||||
.describe("Filter by specific feature ID(s)"),
|
||||
|
||||
custom_range: z
|
||||
|
||||
Reference in New Issue
Block a user