import { FlagRouter } from "@medusajs/utils"; import "reflect-metadata"; import { PriceList, Product } from "../../../.."; import { DeleteResponse, PaginatedResponse } from "../../../../types/common"; declare const _default: (app: any, featureFlagRouter: FlagRouter) => any; export default _default; export declare const defaultAdminPriceListFields: string[]; export declare const defaultAdminPriceListRelations: string[]; /** * @schema AdminPriceListRes * type: object * x-expanded-relations: * field: price_list * relations: * - customer_groups * - prices * required: * - price_list * properties: * price_list: * description: "Price List details." * $ref: "#/components/schemas/PriceList" */ export type AdminPriceListRes = { price_list: PriceList; }; /** * @schema AdminPriceListDeleteBatchRes * type: object * required: * - ids * - object * - deleted * properties: * ids: * type: array * items: * type: string * description: The IDs of the deleted prices. * object: * type: string * description: The type of the object that was deleted. A price is also named `money-amount`. * default: money-amount * deleted: * type: boolean * description: Whether or not the items were deleted. * default: true */ export type AdminPriceListDeleteBatchRes = { ids: string[]; deleted: boolean; object: string; }; /** * @schema AdminPriceListDeleteProductPricesRes * type: object * required: * - ids * - object * - deleted * properties: * ids: * type: array * description: The IDs of the deleted prices. * items: * type: string * object: * type: string * description: The type of the object that was deleted. A price is also named `money-amount`. * default: money-amount * deleted: * type: boolean * description: Whether or not the items were deleted. * default: true */ export type AdminPriceListDeleteProductPricesRes = AdminPriceListDeleteBatchRes; /** * @schema AdminPriceListDeleteVariantPricesRes * type: object * required: * - ids * - object * - deleted * properties: * ids: * type: array * description: The IDs of the deleted prices. * items: * type: string * object: * type: string * description: The type of the object that was deleted. A price is also named `money-amount`. * default: money-amount * deleted: * type: boolean * description: Whether or not the items were deleted. * default: true */ export type AdminPriceListDeleteVariantPricesRes = AdminPriceListDeleteBatchRes; /** * @schema AdminPriceListDeleteRes * type: object * required: * - id * - object * - deleted * properties: * id: * type: string * description: The ID of the deleted Price List. * object: * type: string * description: The type of the object that was deleted. * default: price-list * deleted: * type: boolean * description: Whether or not the items were deleted. * default: true */ export type AdminPriceListDeleteRes = DeleteResponse; /** * @schema AdminPriceListsListRes * type: object * required: * - price_lists * - count * - offset * - limit * properties: * price_lists: * type: array * description: "An array of price lists details." * items: * $ref: "#/components/schemas/PriceList" * count: * type: integer * description: The total number of items available * offset: * type: integer * description: The number of price lists skipped when retrieving the price lists. * limit: * type: integer * description: The number of items per page */ export type AdminPriceListsListRes = PaginatedResponse & { price_lists: PriceList[]; }; /** * @schema AdminPriceListsProductsListRes * type: object * x-expanded-relations: * field: products * relations: * - categories * - collection * - images * - options * - tags * - type * - variants * - variants.options * required: * - products * - count * - offset * - limit * properties: * products: * type: array * description: "An array of products details." * items: * $ref: "#/components/schemas/Product" * count: * type: integer * description: The total number of items available * offset: * type: integer * description: The number of price lists skipped when retrieving the price lists. * limit: * type: integer * description: The number of items per page */ export type AdminPriceListsProductsListRes = PaginatedResponse & { products: Product[]; }; export * from "./add-prices-batch"; export * from "./create-price-list"; export * from "./delete-price-list"; export * from "./delete-prices-batch"; export * from "./get-price-list"; export * from "./list-price-list-products"; export * from "./list-price-lists"; export * from "./update-price-list";