Skip to content

Commit 8c75ed0

Browse files
feat(refactor)!: namespacing cleanup
1 parent 7135820 commit 8c75ed0

File tree

51 files changed

+106
-112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+106
-112
lines changed

src/Client.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
namespace Scrapegraphai;
66

77
use Scrapegraphai\Core\BaseClient;
8-
use Scrapegraphai\Services\CrawlService;
9-
use Scrapegraphai\Services\CreditsService;
10-
use Scrapegraphai\Services\FeedbackService;
11-
use Scrapegraphai\Services\GenerateSchemaService;
12-
use Scrapegraphai\Services\HealthzService;
13-
use Scrapegraphai\Services\MarkdownifyService;
14-
use Scrapegraphai\Services\SearchscraperService;
15-
use Scrapegraphai\Services\SmartscraperService;
16-
use Scrapegraphai\Services\ValidateService;
8+
use Scrapegraphai\Core\Services\CrawlService;
9+
use Scrapegraphai\Core\Services\CreditsService;
10+
use Scrapegraphai\Core\Services\FeedbackService;
11+
use Scrapegraphai\Core\Services\GenerateSchemaService;
12+
use Scrapegraphai\Core\Services\HealthzService;
13+
use Scrapegraphai\Core\Services\MarkdownifyService;
14+
use Scrapegraphai\Core\Services\SearchscraperService;
15+
use Scrapegraphai\Core\Services\SmartscraperService;
16+
use Scrapegraphai\Core\Services\ValidateService;
1717

1818
class Client extends BaseClient
1919
{

src/Contracts/CrawlContract.php renamed to src/Core/ServiceContracts/CrawlContract.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
declare(strict_types=1);
44

5-
namespace Scrapegraphai\Contracts;
5+
namespace Scrapegraphai\Core\ServiceContracts;
66

7+
use Scrapegraphai\Crawl\CrawlGetResultsResponse;
78
use Scrapegraphai\Crawl\CrawlStartParams\Rules;
9+
use Scrapegraphai\Crawl\CrawlStartResponse;
810
use Scrapegraphai\RequestOptions;
9-
use Scrapegraphai\Responses\Crawl\CrawlGetResultsResponse;
10-
use Scrapegraphai\Responses\Crawl\CrawlStartResponse;
1111

1212
use const Scrapegraphai\Core\OMIT as omit;
1313

src/Contracts/CreditsContract.php renamed to src/Core/ServiceContracts/CreditsContract.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
declare(strict_types=1);
44

5-
namespace Scrapegraphai\Contracts;
5+
namespace Scrapegraphai\Core\ServiceContracts;
66

7+
use Scrapegraphai\Credits\CreditGetResponse;
78
use Scrapegraphai\RequestOptions;
8-
use Scrapegraphai\Responses\Credits\CreditGetResponse;
99

1010
interface CreditsContract
1111
{

src/Contracts/FeedbackContract.php renamed to src/Core/ServiceContracts/FeedbackContract.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
declare(strict_types=1);
44

5-
namespace Scrapegraphai\Contracts;
5+
namespace Scrapegraphai\Core\ServiceContracts;
66

7+
use Scrapegraphai\Feedback\FeedbackSubmitResponse;
78
use Scrapegraphai\RequestOptions;
8-
use Scrapegraphai\Responses\Feedback\FeedbackSubmitResponse;
99

1010
use const Scrapegraphai\Core\OMIT as omit;
1111

src/Contracts/GenerateSchemaContract.php renamed to src/Core/ServiceContracts/GenerateSchemaContract.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
declare(strict_types=1);
44

5-
namespace Scrapegraphai\Contracts;
5+
namespace Scrapegraphai\Core\ServiceContracts;
66

7+
use Scrapegraphai\GenerateSchema\GenerateSchemaGetResponse\CompletedSchemaGenerationResponse;
8+
use Scrapegraphai\GenerateSchema\GenerateSchemaGetResponse\FailedSchemaGenerationResponse;
9+
use Scrapegraphai\GenerateSchema\GenerateSchemaNewResponse;
710
use Scrapegraphai\RequestOptions;
8-
use Scrapegraphai\Responses\GenerateSchema\GenerateSchemaGetResponse\CompletedSchemaGenerationResponse;
9-
use Scrapegraphai\Responses\GenerateSchema\GenerateSchemaGetResponse\FailedSchemaGenerationResponse;
10-
use Scrapegraphai\Responses\GenerateSchema\GenerateSchemaNewResponse;
1111

1212
use const Scrapegraphai\Core\OMIT as omit;
1313

src/Contracts/HealthzContract.php renamed to src/Core/ServiceContracts/HealthzContract.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
declare(strict_types=1);
44

5-
namespace Scrapegraphai\Contracts;
5+
namespace Scrapegraphai\Core\ServiceContracts;
66

7+
use Scrapegraphai\Healthz\HealthzCheckResponse;
78
use Scrapegraphai\RequestOptions;
8-
use Scrapegraphai\Responses\Healthz\HealthzCheckResponse;
99

1010
interface HealthzContract
1111
{

src/Contracts/MarkdownifyContract.php renamed to src/Core/ServiceContracts/MarkdownifyContract.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace Scrapegraphai\Contracts;
5+
namespace Scrapegraphai\Core\ServiceContracts;
66

77
use Scrapegraphai\Markdownify\CompletedMarkdownify;
8+
use Scrapegraphai\Markdownify\MarkdownifyGetStatusResponse\FailedMarkdownifyResponse;
89
use Scrapegraphai\RequestOptions;
9-
use Scrapegraphai\Responses\Markdownify\MarkdownifyGetStatusResponse\FailedMarkdownifyResponse;
1010

1111
use const Scrapegraphai\Core\OMIT as omit;
1212

src/Contracts/SearchscraperContract.php renamed to src/Core/ServiceContracts/SearchscraperContract.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace Scrapegraphai\Contracts;
5+
namespace Scrapegraphai\Core\ServiceContracts;
66

77
use Scrapegraphai\RequestOptions;
8-
use Scrapegraphai\Responses\Searchscraper\SearchscraperGetStatusResponse\FailedSearchScraperResponse;
98
use Scrapegraphai\Searchscraper\CompletedSearchScraper;
9+
use Scrapegraphai\Searchscraper\SearchscraperGetStatusResponse\FailedSearchScraperResponse;
1010

1111
use const Scrapegraphai\Core\OMIT as omit;
1212

src/Contracts/SmartscraperContract.php renamed to src/Core/ServiceContracts/SmartscraperContract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Scrapegraphai\Contracts;
5+
namespace Scrapegraphai\Core\ServiceContracts;
66

77
use Scrapegraphai\RequestOptions;
88
use Scrapegraphai\Smartscraper\CompletedSmartscraper;

src/Contracts/ValidateContract.php renamed to src/Core/ServiceContracts/ValidateContract.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
declare(strict_types=1);
44

5-
namespace Scrapegraphai\Contracts;
5+
namespace Scrapegraphai\Core\ServiceContracts;
66

77
use Scrapegraphai\RequestOptions;
8-
use Scrapegraphai\Responses\Validate\ValidateAPIKeyResponse;
8+
use Scrapegraphai\Validate\ValidateAPIKeyResponse;
99

1010
interface ValidateContract
1111
{

0 commit comments

Comments
 (0)