-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMindeeCliDocuments.php
More file actions
141 lines (137 loc) · 4.38 KB
/
Copy pathMindeeCliDocuments.php
File metadata and controls
141 lines (137 loc) · 4.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<?php
declare(strict_types=1);
namespace Mindee\Cli;
use Mindee\V1\Product\BarcodeReader\BarcodeReaderV1;
use Mindee\V1\Product\BusinessCard\BusinessCardV1;
use Mindee\V1\Product\Cropper\CropperV1;
use Mindee\V1\Product\DriverLicense\DriverLicenseV1;
use Mindee\V1\Product\FinancialDocument\FinancialDocumentV1;
use Mindee\V1\Product\Fr\BankAccountDetails\BankAccountDetailsV2;
use Mindee\V1\Product\Fr\CarteGrise\CarteGriseV1;
use Mindee\V1\Product\Fr\IdCard\IdCardV2;
use Mindee\V1\Product\Generated\GeneratedV1;
use Mindee\V1\Product\InternationalId\InternationalIdV2;
use Mindee\V1\Product\Invoice\InvoiceV4;
use Mindee\V1\Product\InvoiceSplitter\InvoiceSplitterV1;
use Mindee\V1\Product\MultiReceiptsDetector\MultiReceiptsDetectorV1;
use Mindee\V1\Product\Passport\PassportV1;
use Mindee\V1\Product\Receipt\ReceiptV5;
use Mindee\V1\Product\Resume\ResumeV1;
use Mindee\V1\Product\Us\BankCheck\BankCheckV1;
/**
* Document specifications for CLI usage.
*/
class MindeeCliDocuments
{
/**
* @return array Specifications for each Mindee Document, for CLI usage.
*/
public static function getSpecs(): array
{
require __DIR__ . '/DocumentCommandConfig.php';
return [
"generated" => new DocumentCommandConfig(
"Custom document type from docTI",
GeneratedV1::class,
false,
true
),
"barcode-reader" => new DocumentCommandConfig(
"Barcode Reader",
BarcodeReaderV1::class,
true,
false
),
"business-card" => new DocumentCommandConfig(
"Business Card",
BusinessCardV1::class,
false,
true
),
"cropper" => new DocumentCommandConfig(
"Cropper",
CropperV1::class,
true,
false
),
"driver-license" => new DocumentCommandConfig(
"Driver License",
DriverLicenseV1::class,
false,
true
),
"financial-document" => new DocumentCommandConfig(
"Financial Document",
FinancialDocumentV1::class,
true,
true
),
"fr-bank-account-details" => new DocumentCommandConfig(
"FR Bank Account Details",
BankAccountDetailsV2::class,
true,
false
),
"fr-carte-grise" => new DocumentCommandConfig(
"FR Carte Grise",
CarteGriseV1::class,
true,
false
),
"fr-carte-nationale-d-identite" => new DocumentCommandConfig(
"FR Carte Nationale d'Identité",
IdCardV2::class,
true,
false
),
"international-id" => new DocumentCommandConfig(
"International ID",
InternationalIdV2::class,
false,
true
),
"invoice" => new DocumentCommandConfig(
"Invoice",
InvoiceV4::class,
true,
true
),
"invoice-splitter" => new DocumentCommandConfig(
"Invoice Splitter",
InvoiceSplitterV1::class,
false,
true
),
"multi-receipts-detector" => new DocumentCommandConfig(
"Multi Receipts Detector",
MultiReceiptsDetectorV1::class,
true,
false
),
"passport" => new DocumentCommandConfig(
"Passport",
PassportV1::class,
true,
false
),
"receipt" => new DocumentCommandConfig(
"Receipt",
ReceiptV5::class,
true,
true
),
"resume" => new DocumentCommandConfig(
"Resume",
ResumeV1::class,
false,
true
),
"us-bank-check" => new DocumentCommandConfig(
"US Bank Check",
BankCheckV1::class,
true,
false
),
];
}
}