urembo-hub-api
    Preparing search index...
    Index

    Constructors

    Methods

    • Parameters

      Returns Promise<
          {
              data: {
                  createdAt: Date;
                  id: string;
                  itemId: string;
                  itemType: string;
                  product: {
                      currency: string;
                      id: string;
                      imageUrl: string;
                      name: string;
                      price: Decimal;
                      retailer: { businessName: string; fullName: string; id: string };
                      retailerId: string;
                      stockQuantity: number;
                  };
                  service: {
                      currency: string;
                      durationMinutes: number;
                      id: string;
                      imageUrl: string;
                      name: string;
                      price: Decimal;
                      vendor: { businessName: string; fullName: string; id: string };
                      vendorId: string;
                  };
                  updatedAt: Date;
                  userId: string;
              };
              message: string;
              success: boolean;
          },
      >

    • Parameters

      • req: any

      Returns Promise<
          {
              data: {
                  createdAt: Date;
                  id: string;
                  itemId: string;
                  itemType: string;
                  product: {
                      currency: string;
                      id: string;
                      imageUrl: string;
                      name: string;
                      price: Decimal;
                      retailer: { businessName: string; fullName: string; id: string };
                      retailerId: string;
                      stockQuantity: number;
                  };
                  service: {
                      currency: string;
                      durationMinutes: number;
                      id: string;
                      imageUrl: string;
                      name: string;
                      price: Decimal;
                      vendor: { businessName: string; fullName: string; id: string };
                      vendorId: string;
                  };
                  updatedAt: Date;
                  userId: string;
              }[];
              message: string;
              success: boolean;
          },
      >

    • Parameters

      • req: any
      • itemType: "product" | "service"

      Returns Promise<
          {
              data: {
                  createdAt: Date;
                  id: string;
                  itemId: string;
                  itemType: string;
                  product: {
                      currency: string;
                      id: string;
                      imageUrl: string;
                      name: string;
                      price: Decimal;
                      retailer: { businessName: string; fullName: string; id: string };
                      retailerId: string;
                      stockQuantity: number;
                  };
                  service: {
                      currency: string;
                      durationMinutes: number;
                      id: string;
                      imageUrl: string;
                      name: string;
                      price: Decimal;
                      vendor: { businessName: string; fullName: string; id: string };
                      vendorId: string;
                  };
                  updatedAt: Date;
                  userId: string;
              }[];
              message: string;
              success: boolean;
          },
      >

    • Parameters

      • req: any

      Returns Promise<
          {
              data: {
                  averageItemValue: number;
                  productCount: number;
                  serviceCount: number;
                  totalItems: number;
                  totalValue: number;
              };
              message: string;
              success: boolean;
          },
      >