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

    Constructors

    Methods

    • Parameters

      Returns Promise<
          {
              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;
          },
      >

    • Parameters

      • userId: string

      Returns Promise<
          {
              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;
          }[],
      >

    • Parameters

      • userId: string
      • itemType: "product" | "service"

      Returns Promise<
          {
              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;
          }[],
      >

    • Parameters

      • userId: string

      Returns Promise<
          {
              averageItemValue: number;
              productCount: number;
              serviceCount: number;
              totalItems: number;
              totalValue: number;
          },
      >