@@ -16,88 +16,112 @@ class CommandConfig(Generic[TypeInference]):
16
16
17
17
18
18
PRODUCTS : Dict [str , CommandConfig ] = {
19
- # "address-proof": CommandConfig(
20
- # help="Address Proof",
21
- # doc_class=product.AddressProofV1,
22
- # is_sync=False,
23
- # is_async=True,
24
- # ),
25
- "barcode-reader" : CommandConfig (
26
- help = "Barcode-reader tool" ,
27
- doc_class = product .BarcodeReaderV1 ,
19
+ "custom" : CommandConfig (
20
+ help = "Custom document type from API builder" ,
21
+ doc_class = product .CustomV1 ,
28
22
is_sync = True ,
29
23
is_async = False ,
30
24
),
31
- "cropper " : CommandConfig (
32
- help = "Cropper tool " ,
33
- doc_class = product .CropperV1 ,
25
+ "generated " : CommandConfig (
26
+ help = "Generated products from docTI " ,
27
+ doc_class = product .GeneratedV1 ,
34
28
is_sync = True ,
35
- is_async = False ,
29
+ is_async = True ,
36
30
),
37
- "custom " : CommandConfig (
38
- help = "Custom document type from API builder " ,
39
- doc_class = product .CustomV1 ,
31
+ "barcode-reader " : CommandConfig (
32
+ help = "Barcode Reader " ,
33
+ doc_class = product .BarcodeReaderV1 ,
40
34
is_sync = True ,
41
35
is_async = False ,
42
36
),
43
- "eu-license-plate" : CommandConfig (
44
- help = "EU License Plate" ,
45
- doc_class = product .eu .LicensePlateV1 ,
37
+ "bill-of-lading" : CommandConfig (
38
+ help = "Bill of Lading" ,
39
+ doc_class = product .BillOfLadingV1 ,
40
+ is_sync = False ,
41
+ is_async = True ,
42
+ ),
43
+ "business-card" : CommandConfig (
44
+ help = "Business Card" ,
45
+ doc_class = product .BusinessCardV1 ,
46
+ is_sync = False ,
47
+ is_async = True ,
48
+ ),
49
+ "cropper" : CommandConfig (
50
+ help = "Cropper" ,
51
+ doc_class = product .CropperV1 ,
46
52
is_sync = True ,
47
53
is_async = False ,
48
54
),
55
+ "delivery-note" : CommandConfig (
56
+ help = "Delivery note" ,
57
+ doc_class = product .DeliveryNoteV1 ,
58
+ is_sync = False ,
59
+ is_async = True ,
60
+ ),
49
61
"driver-license" : CommandConfig (
50
62
help = "Driver License" ,
51
63
doc_class = product .DriverLicenseV1 ,
52
64
is_sync = False ,
53
65
is_async = True ,
54
66
),
67
+ "eu-license-plate" : CommandConfig (
68
+ help = "License Plate" ,
69
+ doc_class = product .eu .LicensePlateV1 ,
70
+ is_sync = True ,
71
+ is_async = False ,
72
+ ),
55
73
"financial-document" : CommandConfig (
56
- help = "Financial Document (receipt or invoice) " ,
74
+ help = "Financial Document" ,
57
75
doc_class = product .FinancialDocumentV1 ,
58
76
is_sync = True ,
59
77
is_async = True ,
60
78
),
61
79
"fr-bank-account-details" : CommandConfig (
62
- help = "FR Bank Account Details" ,
80
+ help = "Bank Account Details" ,
63
81
doc_class = product .fr .BankAccountDetailsV2 ,
64
82
is_sync = True ,
65
83
is_async = False ,
66
84
),
67
85
"fr-carte-grise" : CommandConfig (
68
- help = "FR Carte Grise" ,
86
+ help = "Carte Grise" ,
69
87
doc_class = product .fr .CarteGriseV1 ,
70
88
is_sync = True ,
71
89
is_async = False ,
72
90
),
91
+ "fr-energy-bill" : CommandConfig (
92
+ help = "Energy Bill" ,
93
+ doc_class = product .fr .EnergyBillV1 ,
94
+ is_sync = False ,
95
+ is_async = True ,
96
+ ),
73
97
"fr-health-card" : CommandConfig (
74
- help = "FR Health Card" ,
98
+ help = "Health Card" ,
75
99
doc_class = product .fr .HealthCardV1 ,
76
100
is_sync = False ,
77
101
is_async = True ,
78
102
),
79
- "fr-id-card " : CommandConfig (
80
- help = "FR ID Card " ,
103
+ "fr-carte-nationale-d-identite " : CommandConfig (
104
+ help = "Carte Nationale d'Identité " ,
81
105
doc_class = product .fr .IdCardV2 ,
82
106
is_sync = True ,
83
107
is_async = False ,
84
108
),
85
109
"fr-payslip" : CommandConfig (
86
- help = "FR Payslip" ,
110
+ help = "Payslip" ,
87
111
doc_class = product .fr .PayslipV3 ,
88
112
is_sync = False ,
89
113
is_async = True ,
90
114
),
91
- "fr-petrol-receipt " : CommandConfig (
92
- help = "FR Petrol Receipt " ,
93
- doc_class = product .fr . PetrolReceiptV1 ,
94
- is_sync = True ,
95
- is_async = False ,
115
+ "ind-passport-india " : CommandConfig (
116
+ help = "Passport - India " ,
117
+ doc_class = product .ind . IndianPassportV1 ,
118
+ is_sync = False ,
119
+ is_async = True ,
96
120
),
97
- "generated " : CommandConfig (
98
- help = "Generated " ,
99
- doc_class = product .GeneratedV1 ,
100
- is_sync = True ,
121
+ "international-id " : CommandConfig (
122
+ help = "International ID " ,
123
+ doc_class = product .InternationalIdV2 ,
124
+ is_sync = False ,
101
125
is_async = True ,
102
126
),
103
127
"invoice" : CommandConfig (
@@ -106,12 +130,6 @@ class CommandConfig(Generic[TypeInference]):
106
130
is_sync = True ,
107
131
is_async = True ,
108
132
),
109
- "international-id" : CommandConfig (
110
- help = "International ID" ,
111
- doc_class = product .InternationalIdV2 ,
112
- is_sync = False ,
113
- is_async = True ,
114
- ),
115
133
"invoice-splitter" : CommandConfig (
116
134
help = "Invoice Splitter" ,
117
135
doc_class = product .InvoiceSplitterV1 ,
@@ -124,23 +142,29 @@ class CommandConfig(Generic[TypeInference]):
124
142
is_sync = False ,
125
143
is_async = True ,
126
144
),
127
- "multi-receipts" : CommandConfig (
128
- help = "Multi-receipts detector " ,
145
+ "multi-receipts-detector " : CommandConfig (
146
+ help = "Multi Receipts Detector " ,
129
147
doc_class = product .MultiReceiptsDetectorV1 ,
130
148
is_sync = True ,
131
149
is_async = False ,
132
150
),
151
+ "nutrition-facts-label" : CommandConfig (
152
+ help = "Nutrition Facts Label" ,
153
+ doc_class = product .NutritionFactsLabelV1 ,
154
+ is_sync = False ,
155
+ is_async = True ,
156
+ ),
133
157
"passport" : CommandConfig (
134
158
help = "Passport" ,
135
159
doc_class = product .PassportV1 ,
136
160
is_sync = True ,
137
161
is_async = False ,
138
162
),
139
163
"receipt" : CommandConfig (
140
- help = "Expense Receipt" ,
164
+ help = "Receipt" ,
141
165
doc_class = product .ReceiptV5 ,
142
166
is_sync = True ,
143
- is_async = False ,
167
+ is_async = True ,
144
168
),
145
169
"resume" : CommandConfig (
146
170
help = "Resume" ,
@@ -149,25 +173,25 @@ class CommandConfig(Generic[TypeInference]):
149
173
is_async = True ,
150
174
),
151
175
"us-bank-check" : CommandConfig (
152
- help = "US Bank Check" ,
176
+ help = "Bank Check" ,
153
177
doc_class = product .us .BankCheckV1 ,
154
178
is_sync = True ,
155
179
is_async = False ,
156
180
),
157
- "us-mail " : CommandConfig (
158
- help = "US Mail " ,
159
- doc_class = product .us .UsMailV3 ,
181
+ "us-healthcare-card " : CommandConfig (
182
+ help = "Healthcare Card " ,
183
+ doc_class = product .us .HealthcareCardV1 ,
160
184
is_sync = False ,
161
185
is_async = True ,
162
186
),
163
- "us-healthcare-card " : CommandConfig (
164
- help = "US Healthcare Card " ,
165
- doc_class = product .us .HealthcareCardV1 ,
187
+ "us-us-mail " : CommandConfig (
188
+ help = "US Mail " ,
189
+ doc_class = product .us .UsMailV3 ,
166
190
is_sync = False ,
167
191
is_async = True ,
168
192
),
169
193
"us-w9" : CommandConfig (
170
- help = "US W9" ,
194
+ help = "W9" ,
171
195
doc_class = product .us .W9V1 ,
172
196
is_sync = True ,
173
197
is_async = False ,
0 commit comments