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

      • request: NextRequest

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  documents: (
                      {
                          attachmentFiles: {
                              createdAt: Date;
                              filename: string;
                              id: string;
                              mimetype: string;
                              size: number;
                              url: string;
                          }[];
                          businessOpportunity: | {
                              id: string;
                              name: string;
                              number: string;
                              stage: BusinessOpportunityStage;
                              status: OpportunityStatus;
                          }
                          | null;
                          config: { email: string; id: string; name: string }
                          | null;
                          createdAffaire:
                              | {
                                  id: string;
                                  name: string;
                                  number: string;
                                  stage: BusinessOpportunityStage;
                                  status: OpportunityStatus;
                              }
                              | null;
                      } & {}
                  )[];
                  pagination: { page: number; limit: number; total: number; pages: number };
                  stats: {
                      total: number;
                      pending: number;
                      linked: number;
                      unread: number;
                      withAttachments: number;
                  };
              },
          >,
      >