import { Field, ID, InputType, ObjectType } from 'type-graphql'; import { RetailerProductVariant } from '@/entities'; import { createConnectionType } from '../shared/pagination'; @ObjectType({ description: 'The connection type for RetailerProductVariant.', }) export class RetailerProductVariantConnection extends createConnectionType( 'RetailerProductVariant', RetailerProductVariant ) {} @ObjectType({ description: 'Return type for the retailerProductVariant query.', }) export class RetailerProductVariantPayload { @Field(() => RetailerProductVariant, { nullable: false, description: 'The retailer product variant.', }) retailerProductVariant!: RetailerProductVariant; } @InputType({ description: 'Input type for the retailerProductVariant query.', }) export class RetailerProductVariantInput { @Field(() => ID, { nullable: true, description: 'The ID of the retailer product.', }) id?: string; } export const DEFAULT_RETAILER_PRODUCT_VARIANT_INPUT = {};