-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
this updates the unstructured flow so it now has a consistant dto str…
…ucture that I will move to the PDF parser then more into the model then the query
- Loading branch information
Showing
11 changed files
with
73 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,30 @@ | ||
<?php | ||
<?php | ||
|
||
namespace App\Domains\UnStructured; | ||
|
||
use Spatie\LaravelData\Data; | ||
|
||
class StructuredDto extends Data { | ||
|
||
class StructuredDto extends Data | ||
{ | ||
public function __construct( | ||
public StructuredTypeEnum $type, | ||
public string $content, | ||
public string $title, | ||
public string $created_by, | ||
public string $last_updated_by, | ||
public string $page, | ||
public string $content, | ||
public string $title, | ||
public string $created_by, | ||
public string $last_updated_by, | ||
public string $page, | ||
public string $guid, | ||
public string $file_name, | ||
public string $updated_at, | ||
public string $coordinates, | ||
public string $element_depth, | ||
public bool $is_continuation = false, | ||
public string|null $parent_id, | ||
public string|null $description, | ||
public string|null $subject, | ||
public string|null $keywords, | ||
public string|null $category, | ||
) | ||
{ | ||
|
||
public bool $is_continuation, | ||
public ?string $parent_id, | ||
public ?string $description, | ||
public ?string $subject, | ||
public ?string $keywords, | ||
public ?string $category, | ||
) { | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
<?php | ||
<?php | ||
|
||
namespace App\Domains\UnStructured; | ||
|
||
use Spatie\LaravelData\Data; | ||
|
||
enum StructuredTypeEnum : string { | ||
|
||
enum StructuredTypeEnum: string | ||
{ | ||
case Narrative = 'narrative'; | ||
case Title = 'title'; | ||
case Table = 'table'; | ||
case TableRow = 'table_row'; | ||
case Image = 'image'; | ||
case Footer = 'footer'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters