@vnodes/ims
    Preparing search index...

    Class ProductController

    Hierarchy

    • BaseProductController
      • ProductController
    Index

    Constructors

    Properties

    service: BaseProductService

    Methods

    • Parameters

      • data: ProductCreateInput

      Returns Promise<
          {
              category: string
              | null;
              createdAt: Date;
              deletedAt: Date | null;
              description: string | null;
              id: number;
              name: string;
              operation: ProductOperation;
              parentId: number | null;
              sku: string;
              upc: string;
              updatedAt: Date;
              uuid: string;
          },
      >

    • Parameters

      • id: string

      Returns Promise<
          {
              category: string
              | null;
              createdAt: Date;
              deletedAt: Date | null;
              description: string | null;
              id: number;
              name: string;
              operation: ProductOperation;
              parentId: number | null;
              sku: string;
              upc: string;
              updatedAt: Date;
              uuid: string;
          },
      >

    • Parameters

      • query: QueryMany

      Returns Promise<
          {
              category: string
              | null;
              createdAt: Date;
              deletedAt: Date | null;
              description: string | null;
              id: number;
              name: string;
              operation: ProductOperation;
              parentId: number | null;
              sku: string;
              upc: string;
              updatedAt: Date;
              uuid: string;
          }[],
      >

    • Parameters

      • id: string

      Returns Promise<
          | {
              category: string
              | null;
              createdAt: Date;
              deletedAt: Date | null;
              description: string | null;
              id: number;
              name: string;
              operation: ProductOperation;
              parentId: number | null;
              sku: string;
              upc: string;
              updatedAt: Date;
              uuid: string;
          }
          | null,
      >

    • Parameters

      • id: string
      • data: ProductUpdateInput

      Returns Promise<
          {
              category: string
              | null;
              createdAt: Date;
              deletedAt: Date | null;
              description: string | null;
              id: number;
              name: string;
              operation: ProductOperation;
              parentId: number | null;
              sku: string;
              upc: string;
              updatedAt: Date;
              uuid: string;
          },
      >