ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • Parameters

      • request: NextRequest
      • __namedParameters: { params: Promise<{ id: string }> }

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  addresses: {
                      city: string
                      | null;
                      country: string | null;
                      id: string;
                      isDefault: boolean;
                      name: string | null;
                      postalCode: string | null;
                      state: string | null;
                      street: string | null;
                      type: string;
                  }[];
                  businessOpportunities: {
                      expectedRevenue: number
                      | null;
                      id: string;
                      name: string;
                      number: string;
                      probability: number | null;
                      stage: BusinessOpportunityStage;
                      status: OpportunityStatus;
                  }[];
                  company: { id: string; name: string }
                  | null;
                  files: {
                      createdAt: Date;
                      filename: string;
                      id: string;
                      key: string;
                      mimetype: string;
                      size: number;
                      url: string;
                  }[];
                  salesOffers: {
                      createdAt: Date;
                      id: string;
                      number: string;
                      projectName: string
                      | null;
                      status: SalesOfferStatus;
                  }[];
              } & {},
          >,
      >