feat: Add http integration tests and enable them in pipeline (#7532)
This commit is contained in:
@@ -22,9 +22,7 @@ export const GET = async (
|
||||
entryPoint: "product_option",
|
||||
variables: {
|
||||
filters: { ...req.filterableFields, product_id: productId },
|
||||
order: req.listConfig.order,
|
||||
skip: req.listConfig.skip,
|
||||
take: req.listConfig.take,
|
||||
...req.remoteQueryConfig.pagination,
|
||||
},
|
||||
fields: req.remoteQueryConfig.fields,
|
||||
})
|
||||
|
||||
@@ -44,7 +44,7 @@ export const retrieveOptionConfig = {
|
||||
}
|
||||
|
||||
export const listOptionConfig = {
|
||||
...retrieveVariantConfig,
|
||||
...retrieveOptionConfig,
|
||||
defaultLimit: 50,
|
||||
isList: true,
|
||||
}
|
||||
|
||||
@@ -60,6 +60,9 @@ export const AdminGetProductOptionsParams = createFindParams({
|
||||
q: z.string().optional(),
|
||||
id: z.union([z.string(), z.array(z.string())]).optional(),
|
||||
title: z.string().optional(),
|
||||
created_at: createOperatorMap().optional(),
|
||||
updated_at: createOperatorMap().optional(),
|
||||
deleted_at: createOperatorMap().optional(),
|
||||
$and: z.lazy(() => AdminGetProductsParams.array()).optional(),
|
||||
$or: z.lazy(() => AdminGetProductsParams.array()).optional(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user