-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMindeeCliDocuments.php
More file actions
204 lines (200 loc) · 6.52 KB
/
Copy pathMindeeCliDocuments.php
File metadata and controls
204 lines (200 loc) · 6.52 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<?php
declare(strict_types=1);
namespace Mindee\Cli;
use Mindee\V1\Product\BarcodeReader\BarcodeReaderV1;
use Mindee\V1\Product\BillOfLading\BillOfLadingV1;
use Mindee\V1\Product\BusinessCard\BusinessCardV1;
use Mindee\V1\Product\Cropper\CropperV1;
use Mindee\V1\Product\DeliveryNote\DeliveryNoteV1;
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\EnergyBill\EnergyBillV1;
use Mindee\V1\Product\Fr\HealthCard\HealthCardV1;
use Mindee\V1\Product\Fr\IdCard\IdCardV2;
use Mindee\V1\Product\Fr\Payslip\PayslipV3;
use Mindee\V1\Product\Generated\GeneratedV1;
use Mindee\V1\Product\Ind\IndianPassport\IndianPassportV1;
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\NutritionFactsLabel\NutritionFactsLabelV1;
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;
use Mindee\V1\Product\Us\HealthcareCard\HealthcareCardV1;
use Mindee\V1\Product\Us\UsMail\UsMailV3;
/**
* 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
),
"bill-of-lading" => new DocumentCommandConfig(
"Bill of Lading",
BillOfLadingV1::class,
false,
true
),
"business-card" => new DocumentCommandConfig(
"Business Card",
BusinessCardV1::class,
false,
true
),
"cropper" => new DocumentCommandConfig(
"Cropper",
CropperV1::class,
true,
false
),
"delivery-note" => new DocumentCommandConfig(
"Delivery note",
DeliveryNoteV1::class,
false,
true
),
"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-energy-bill" => new DocumentCommandConfig(
"FR Energy Bill",
EnergyBillV1::class,
false,
true
),
"fr-health-card" => new DocumentCommandConfig(
"FR Health Card",
HealthCardV1::class,
false,
true
),
"fr-carte-nationale-d-identite" => new DocumentCommandConfig(
"FR Carte Nationale d'Identité",
IdCardV2::class,
true,
false
),
"fr-payslip" => new DocumentCommandConfig(
"FR Payslip",
PayslipV3::class,
false,
true
),
"ind-passport-india" => new DocumentCommandConfig(
"IND Passport - India",
IndianPassportV1::class,
false,
true
),
"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
),
"nutrition-facts-label" => new DocumentCommandConfig(
"Nutrition Facts Label",
NutritionFactsLabelV1::class,
false,
true
),
"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
),
"us-healthcare-card" => new DocumentCommandConfig(
"US Healthcare Card",
HealthcareCardV1::class,
false,
true
),
"us-us-mail" => new DocumentCommandConfig(
"US US Mail",
UsMailV3::class,
false,
true
),
];
}
}