repzo 1.0.155 → 1.0.156
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/index.ts +4890 -0
- package/src/oas/activity-ai-sales-order.yaml +623 -0
- package/src/oas/activity-feedback-v2.yaml +753 -0
- package/src/oas/activity-feedback.yaml +645 -0
- package/src/oas/activity-storecheck.yaml +379 -0
- package/src/oas/adjust-account.yaml +241 -0
- package/src/oas/adjust-inventory.yaml +133 -0
- package/src/oas/approval-request.yaml +211 -0
- package/src/oas/approvals.yaml +176 -0
- package/src/oas/asset-part-receival.yaml +591 -0
- package/src/oas/asset-part-transfer.yaml +618 -0
- package/src/oas/asset-part-type.yaml +383 -0
- package/src/oas/asset-part-unit.yaml +722 -0
- package/src/oas/asset-part.yaml +485 -0
- package/src/oas/asset-type.yaml +180 -0
- package/src/oas/asset-unit.yaml +705 -0
- package/src/oas/asset.yaml +204 -0
- package/src/oas/banks.yaml +168 -0
- package/src/oas/bankslists.yaml +168 -0
- package/src/oas/brand.yaml +246 -0
- package/src/oas/category.yaml +285 -0
- package/src/oas/checks.yaml +247 -0
- package/src/oas/client-channel.yaml +480 -0
- package/src/oas/client-contact.yaml +665 -0
- package/src/oas/client-location.yaml +687 -0
- package/src/oas/client.yaml +669 -0
- package/src/oas/contract-installment.yaml +740 -0
- package/src/oas/contract.yaml +210 -0
- package/src/oas/custom-list-item.yaml +168 -0
- package/src/oas/custom-list.yaml +168 -0
- package/src/oas/custom-status.yaml +168 -0
- package/src/oas/day.yaml +246 -0
- package/src/oas/feedback-options.yaml +802 -0
- package/src/oas/fullinvoices.yaml +584 -0
- package/src/oas/integration-action-log.yaml +361 -0
- package/src/oas/integration-app.yaml +303 -0
- package/src/oas/integration-command-log.yaml +381 -0
- package/src/oas/inventory-adjustment-reason.yaml +165 -0
- package/src/oas/inventory.yaml +64 -0
- package/src/oas/mail-unsubscribe.yaml +463 -0
- package/src/oas/measureunit-family.yaml +354 -0
- package/src/oas/measureunit.yaml +366 -0
- package/src/oas/media-storage.yaml +329 -0
- package/src/oas/media.yaml +472 -0
- package/src/oas/msl-products.yaml +180 -0
- package/src/oas/msl.yaml +186 -0
- package/src/oas/ocr-invoice-job-group.yaml +528 -0
- package/src/oas/ocr-invoice-job-page.yaml +602 -0
- package/src/oas/ocr-invoice-job-template.yaml +628 -0
- package/src/oas/ocr-invoice-job.yaml +603 -0
- package/src/oas/patch-action.yaml +421 -0
- package/src/oas/payment-terms.yaml +235 -0
- package/src/oas/payments.yaml +536 -0
- package/src/oas/pricelist-item.yaml +369 -0
- package/src/oas/pricelist.yaml +287 -0
- package/src/oas/product-group.yaml +278 -0
- package/src/oas/product-modifiers-group.yaml +524 -0
- package/src/oas/product.yaml +578 -0
- package/src/oas/proforma.yaml +180 -0
- package/src/oas/quick-convert-to-pdf.yaml +95 -0
- package/src/oas/receiving-material.yaml +336 -0
- package/src/oas/refund.yaml +281 -0
- package/src/oas/rep-balance-summary.yaml +135 -0
- package/src/oas/rep.yaml +1824 -0
- package/src/oas/return-asset-part-unit.yaml +573 -0
- package/src/oas/return-reason.yaml +286 -0
- package/src/oas/route.yaml +337 -0
- package/src/oas/safe-invoice-serial-counter.yaml +525 -0
- package/src/oas/settings.yaml +123 -0
- package/src/oas/settlement.yaml +505 -0
- package/src/oas/speciality.yaml +447 -0
- package/src/oas/store-asset-part-unit.yaml +658 -0
- package/src/oas/storecheck-template.yaml +415 -0
- package/src/oas/subcategory.yaml +355 -0
- package/src/oas/supplier.yaml +183 -0
- package/src/oas/svix-integration.yaml +335 -0
- package/src/oas/tag.yaml +272 -0
- package/src/oas/tax.yaml +303 -0
- package/src/oas/team.yaml +268 -0
- package/src/oas/transfer.yaml +347 -0
- package/src/oas/update-integration-meta.yaml +387 -0
- package/src/oas/variant.yaml +569 -0
- package/src/oas/visit.yaml +174 -0
- package/src/oas/warehouse.yaml +311 -0
- package/src/oas/workorder-category.yaml +751 -0
- package/src/oas/workorder-portal-link.yaml +811 -0
- package/src/oas/workorder-portal.yaml +650 -0
- package/src/oas/workorder-request.yaml +193 -0
- package/src/oas/workorder.yaml +204 -0
|
@@ -0,0 +1,628 @@
|
|
|
1
|
+
openapi: 3.0.0
|
|
2
|
+
info:
|
|
3
|
+
title: OCR Invoice Job Template API
|
|
4
|
+
description: API for managing OCR invoice job templates
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
contact:
|
|
7
|
+
name: Repzo
|
|
8
|
+
url: https://repzo.com
|
|
9
|
+
|
|
10
|
+
servers:
|
|
11
|
+
- url: https://sv.api.repzo.me
|
|
12
|
+
description: Production server
|
|
13
|
+
- url: https://staging.sv.api.repzo.me
|
|
14
|
+
description: Staging server
|
|
15
|
+
|
|
16
|
+
tags:
|
|
17
|
+
- name: OCR Invoice Job Template
|
|
18
|
+
description: Operations related to OCR invoice job template management
|
|
19
|
+
|
|
20
|
+
paths:
|
|
21
|
+
/ocr-invoice-job-template:
|
|
22
|
+
get:
|
|
23
|
+
tags:
|
|
24
|
+
- OCR Invoice Job Template
|
|
25
|
+
summary: Get all OCR invoice job templates
|
|
26
|
+
description: Retrieve a list of all OCR invoice job templates with optional filtering and pagination
|
|
27
|
+
parameters:
|
|
28
|
+
- name: limit
|
|
29
|
+
in: query
|
|
30
|
+
description: Maximum number of records to return
|
|
31
|
+
required: false
|
|
32
|
+
schema:
|
|
33
|
+
type: integer
|
|
34
|
+
minimum: 1
|
|
35
|
+
maximum: 100
|
|
36
|
+
default: 50
|
|
37
|
+
- name: offset
|
|
38
|
+
in: query
|
|
39
|
+
description: Number of records to skip for pagination
|
|
40
|
+
required: false
|
|
41
|
+
schema:
|
|
42
|
+
type: integer
|
|
43
|
+
minimum: 0
|
|
44
|
+
default: 0
|
|
45
|
+
- name: sort
|
|
46
|
+
in: query
|
|
47
|
+
description: Field to sort by
|
|
48
|
+
required: false
|
|
49
|
+
schema:
|
|
50
|
+
type: string
|
|
51
|
+
- name: order
|
|
52
|
+
in: query
|
|
53
|
+
description: Sort order (asc or desc)
|
|
54
|
+
required: false
|
|
55
|
+
schema:
|
|
56
|
+
type: string
|
|
57
|
+
enum: [asc, desc]
|
|
58
|
+
default: desc
|
|
59
|
+
- name: filter
|
|
60
|
+
in: query
|
|
61
|
+
description: Filter conditions in JSON format
|
|
62
|
+
required: false
|
|
63
|
+
schema:
|
|
64
|
+
type: string
|
|
65
|
+
- name: search
|
|
66
|
+
in: query
|
|
67
|
+
description: Search term for text fields
|
|
68
|
+
required: false
|
|
69
|
+
schema:
|
|
70
|
+
type: string
|
|
71
|
+
responses:
|
|
72
|
+
"200":
|
|
73
|
+
description: List of OCR invoice job templates retrieved successfully
|
|
74
|
+
content:
|
|
75
|
+
application/json:
|
|
76
|
+
schema:
|
|
77
|
+
type: object
|
|
78
|
+
properties:
|
|
79
|
+
success:
|
|
80
|
+
type: boolean
|
|
81
|
+
example: true
|
|
82
|
+
data:
|
|
83
|
+
type: array
|
|
84
|
+
items:
|
|
85
|
+
$ref: "#/components/schemas/OcrInvoiceJobTemplate"
|
|
86
|
+
total:
|
|
87
|
+
type: integer
|
|
88
|
+
description: Total number of records
|
|
89
|
+
"400":
|
|
90
|
+
description: Bad request
|
|
91
|
+
"401":
|
|
92
|
+
description: Unauthorized
|
|
93
|
+
"500":
|
|
94
|
+
description: Internal server error
|
|
95
|
+
post:
|
|
96
|
+
tags:
|
|
97
|
+
- OCR Invoice Job Template
|
|
98
|
+
summary: Create a new OCR invoice job template
|
|
99
|
+
description: Create a new OCR invoice job template with the provided data
|
|
100
|
+
requestBody:
|
|
101
|
+
required: true
|
|
102
|
+
content:
|
|
103
|
+
application/json:
|
|
104
|
+
schema:
|
|
105
|
+
$ref: "#/components/schemas/OcrInvoiceJobTemplateInput"
|
|
106
|
+
responses:
|
|
107
|
+
"201":
|
|
108
|
+
description: OCR invoice job template created successfully
|
|
109
|
+
content:
|
|
110
|
+
application/json:
|
|
111
|
+
schema:
|
|
112
|
+
type: object
|
|
113
|
+
properties:
|
|
114
|
+
success:
|
|
115
|
+
type: boolean
|
|
116
|
+
example: true
|
|
117
|
+
data:
|
|
118
|
+
$ref: "#/components/schemas/OcrInvoiceJobTemplate"
|
|
119
|
+
"400":
|
|
120
|
+
description: Bad request
|
|
121
|
+
"401":
|
|
122
|
+
description: Unauthorized
|
|
123
|
+
"500":
|
|
124
|
+
description: Internal server error
|
|
125
|
+
|
|
126
|
+
/ocr-invoice-job-template/{id}:
|
|
127
|
+
get:
|
|
128
|
+
tags:
|
|
129
|
+
- OCR Invoice Job Template
|
|
130
|
+
summary: Get OCR invoice job template by ID
|
|
131
|
+
description: Retrieve a specific OCR invoice job template by its ID
|
|
132
|
+
parameters:
|
|
133
|
+
- name: id
|
|
134
|
+
in: path
|
|
135
|
+
required: true
|
|
136
|
+
description: OCR invoice job template ID
|
|
137
|
+
schema:
|
|
138
|
+
type: string
|
|
139
|
+
responses:
|
|
140
|
+
"200":
|
|
141
|
+
description: OCR invoice job template retrieved successfully
|
|
142
|
+
content:
|
|
143
|
+
application/json:
|
|
144
|
+
schema:
|
|
145
|
+
type: object
|
|
146
|
+
properties:
|
|
147
|
+
success:
|
|
148
|
+
type: boolean
|
|
149
|
+
example: true
|
|
150
|
+
data:
|
|
151
|
+
$ref: "#/components/schemas/OcrInvoiceJobTemplate"
|
|
152
|
+
"404":
|
|
153
|
+
description: OCR invoice job template not found
|
|
154
|
+
"401":
|
|
155
|
+
description: Unauthorized
|
|
156
|
+
"500":
|
|
157
|
+
description: Internal server error
|
|
158
|
+
put:
|
|
159
|
+
tags:
|
|
160
|
+
- OCR Invoice Job Template
|
|
161
|
+
summary: Update OCR invoice job template
|
|
162
|
+
description: Update an existing OCR invoice job template with new data
|
|
163
|
+
parameters:
|
|
164
|
+
- name: id
|
|
165
|
+
in: path
|
|
166
|
+
required: true
|
|
167
|
+
description: OCR invoice job template ID
|
|
168
|
+
schema:
|
|
169
|
+
type: string
|
|
170
|
+
requestBody:
|
|
171
|
+
required: true
|
|
172
|
+
content:
|
|
173
|
+
application/json:
|
|
174
|
+
schema:
|
|
175
|
+
$ref: "#/components/schemas/OcrInvoiceJobTemplateInput"
|
|
176
|
+
responses:
|
|
177
|
+
"200":
|
|
178
|
+
description: OCR invoice job template updated successfully
|
|
179
|
+
content:
|
|
180
|
+
application/json:
|
|
181
|
+
schema:
|
|
182
|
+
type: object
|
|
183
|
+
properties:
|
|
184
|
+
success:
|
|
185
|
+
type: boolean
|
|
186
|
+
example: true
|
|
187
|
+
data:
|
|
188
|
+
$ref: "#/components/schemas/OcrInvoiceJobTemplate"
|
|
189
|
+
"400":
|
|
190
|
+
description: Bad request
|
|
191
|
+
"404":
|
|
192
|
+
description: OCR invoice job template not found
|
|
193
|
+
"401":
|
|
194
|
+
description: Unauthorized
|
|
195
|
+
"500":
|
|
196
|
+
description: Internal server error
|
|
197
|
+
delete:
|
|
198
|
+
tags:
|
|
199
|
+
- OCR Invoice Job Template
|
|
200
|
+
summary: Delete OCR invoice job template
|
|
201
|
+
description: Delete an existing OCR invoice job template
|
|
202
|
+
parameters:
|
|
203
|
+
- name: id
|
|
204
|
+
in: path
|
|
205
|
+
required: true
|
|
206
|
+
description: OCR invoice job template ID
|
|
207
|
+
schema:
|
|
208
|
+
type: string
|
|
209
|
+
responses:
|
|
210
|
+
"200":
|
|
211
|
+
description: OCR invoice job template deleted successfully
|
|
212
|
+
content:
|
|
213
|
+
application/json:
|
|
214
|
+
schema:
|
|
215
|
+
type: object
|
|
216
|
+
properties:
|
|
217
|
+
success:
|
|
218
|
+
type: boolean
|
|
219
|
+
example: true
|
|
220
|
+
message:
|
|
221
|
+
type: string
|
|
222
|
+
example: OCR invoice job template deleted successfully
|
|
223
|
+
"404":
|
|
224
|
+
description: OCR invoice job template not found
|
|
225
|
+
"401":
|
|
226
|
+
description: Unauthorized
|
|
227
|
+
"500":
|
|
228
|
+
description: Internal server error
|
|
229
|
+
|
|
230
|
+
components:
|
|
231
|
+
schemas:
|
|
232
|
+
OcrInvoiceJobTemplate:
|
|
233
|
+
type: object
|
|
234
|
+
properties:
|
|
235
|
+
_id:
|
|
236
|
+
type: string
|
|
237
|
+
description: Unique identifier for the OCR invoice job template
|
|
238
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b3"
|
|
239
|
+
name:
|
|
240
|
+
type: string
|
|
241
|
+
description: Name of the template
|
|
242
|
+
example: "Standard Invoice OCR Template"
|
|
243
|
+
description:
|
|
244
|
+
type: string
|
|
245
|
+
description: Description of the template
|
|
246
|
+
version:
|
|
247
|
+
type: string
|
|
248
|
+
description: Template version
|
|
249
|
+
example: "1.0.0"
|
|
250
|
+
ocrEngine:
|
|
251
|
+
type: string
|
|
252
|
+
enum:
|
|
253
|
+
[tesseract, google-vision, aws-textract, azure-cognitive, custom]
|
|
254
|
+
description: OCR engine to use
|
|
255
|
+
example: "google-vision"
|
|
256
|
+
documentType:
|
|
257
|
+
type: string
|
|
258
|
+
enum: [invoice, receipt, bill, statement, other]
|
|
259
|
+
description: Type of document
|
|
260
|
+
example: "invoice"
|
|
261
|
+
extractionRules:
|
|
262
|
+
type: object
|
|
263
|
+
properties:
|
|
264
|
+
fields:
|
|
265
|
+
type: array
|
|
266
|
+
items:
|
|
267
|
+
type: object
|
|
268
|
+
properties:
|
|
269
|
+
name:
|
|
270
|
+
type: string
|
|
271
|
+
description: Field name
|
|
272
|
+
type:
|
|
273
|
+
type: string
|
|
274
|
+
enum: [text, number, date, currency, boolean]
|
|
275
|
+
description: Data type
|
|
276
|
+
required:
|
|
277
|
+
type: boolean
|
|
278
|
+
description: Whether field is required
|
|
279
|
+
pattern:
|
|
280
|
+
type: string
|
|
281
|
+
description: Regex pattern for extraction
|
|
282
|
+
coordinates:
|
|
283
|
+
type: object
|
|
284
|
+
properties:
|
|
285
|
+
x:
|
|
286
|
+
type: number
|
|
287
|
+
y:
|
|
288
|
+
type: number
|
|
289
|
+
width:
|
|
290
|
+
type: number
|
|
291
|
+
height:
|
|
292
|
+
type: number
|
|
293
|
+
validation:
|
|
294
|
+
type: object
|
|
295
|
+
properties:
|
|
296
|
+
minLength:
|
|
297
|
+
type: integer
|
|
298
|
+
maxLength:
|
|
299
|
+
type: integer
|
|
300
|
+
format:
|
|
301
|
+
type: string
|
|
302
|
+
lineItems:
|
|
303
|
+
type: object
|
|
304
|
+
properties:
|
|
305
|
+
enabled:
|
|
306
|
+
type: boolean
|
|
307
|
+
description: Whether to extract line items
|
|
308
|
+
tableStructure:
|
|
309
|
+
type: object
|
|
310
|
+
properties:
|
|
311
|
+
headerRow:
|
|
312
|
+
type: integer
|
|
313
|
+
description: Header row number
|
|
314
|
+
dataStartRow:
|
|
315
|
+
type: integer
|
|
316
|
+
description: Data start row number
|
|
317
|
+
columns:
|
|
318
|
+
type: array
|
|
319
|
+
items:
|
|
320
|
+
type: object
|
|
321
|
+
properties:
|
|
322
|
+
name:
|
|
323
|
+
type: string
|
|
324
|
+
index:
|
|
325
|
+
type: integer
|
|
326
|
+
type:
|
|
327
|
+
type: string
|
|
328
|
+
enum: [text, number, currency]
|
|
329
|
+
preprocessingSettings:
|
|
330
|
+
type: object
|
|
331
|
+
properties:
|
|
332
|
+
imageEnhancement:
|
|
333
|
+
type: boolean
|
|
334
|
+
default: true
|
|
335
|
+
description: Whether to enhance image quality
|
|
336
|
+
deskew:
|
|
337
|
+
type: boolean
|
|
338
|
+
default: true
|
|
339
|
+
description: Whether to correct image skew
|
|
340
|
+
denoising:
|
|
341
|
+
type: boolean
|
|
342
|
+
default: true
|
|
343
|
+
description: Whether to remove noise
|
|
344
|
+
binarization:
|
|
345
|
+
type: boolean
|
|
346
|
+
default: false
|
|
347
|
+
description: Whether to convert to binary image
|
|
348
|
+
resolutionDPI:
|
|
349
|
+
type: integer
|
|
350
|
+
minimum: 150
|
|
351
|
+
maximum: 600
|
|
352
|
+
default: 300
|
|
353
|
+
description: Target resolution in DPI
|
|
354
|
+
postprocessingSettings:
|
|
355
|
+
type: object
|
|
356
|
+
properties:
|
|
357
|
+
spellCheck:
|
|
358
|
+
type: boolean
|
|
359
|
+
default: false
|
|
360
|
+
description: Whether to perform spell checking
|
|
361
|
+
confidenceThreshold:
|
|
362
|
+
type: number
|
|
363
|
+
format: double
|
|
364
|
+
minimum: 0
|
|
365
|
+
maximum: 1
|
|
366
|
+
default: 0.8
|
|
367
|
+
description: Minimum confidence threshold
|
|
368
|
+
validationRules:
|
|
369
|
+
type: array
|
|
370
|
+
items:
|
|
371
|
+
type: object
|
|
372
|
+
properties:
|
|
373
|
+
field:
|
|
374
|
+
type: string
|
|
375
|
+
rule:
|
|
376
|
+
type: string
|
|
377
|
+
enum: [required, numeric, date, email, currency]
|
|
378
|
+
message:
|
|
379
|
+
type: string
|
|
380
|
+
supportedFormats:
|
|
381
|
+
type: array
|
|
382
|
+
items:
|
|
383
|
+
type: string
|
|
384
|
+
enum: [pdf, png, jpg, jpeg, tiff, bmp]
|
|
385
|
+
description: Supported document formats
|
|
386
|
+
languages:
|
|
387
|
+
type: array
|
|
388
|
+
items:
|
|
389
|
+
type: string
|
|
390
|
+
description: Supported languages for OCR
|
|
391
|
+
example: ["en", "es", "fr"]
|
|
392
|
+
accuracy:
|
|
393
|
+
type: object
|
|
394
|
+
properties:
|
|
395
|
+
averageAccuracy:
|
|
396
|
+
type: number
|
|
397
|
+
format: double
|
|
398
|
+
minimum: 0
|
|
399
|
+
maximum: 1
|
|
400
|
+
description: Average accuracy percentage
|
|
401
|
+
fieldAccuracy:
|
|
402
|
+
type: object
|
|
403
|
+
additionalProperties:
|
|
404
|
+
type: number
|
|
405
|
+
format: double
|
|
406
|
+
description: Accuracy per field
|
|
407
|
+
isActive:
|
|
408
|
+
type: boolean
|
|
409
|
+
default: true
|
|
410
|
+
description: Whether the template is active
|
|
411
|
+
isDefault:
|
|
412
|
+
type: boolean
|
|
413
|
+
default: false
|
|
414
|
+
description: Whether this is the default template
|
|
415
|
+
createdBy:
|
|
416
|
+
type: string
|
|
417
|
+
description: User who created the template
|
|
418
|
+
lastModifiedBy:
|
|
419
|
+
type: string
|
|
420
|
+
description: User who last modified the template
|
|
421
|
+
metadata:
|
|
422
|
+
type: object
|
|
423
|
+
additionalProperties: true
|
|
424
|
+
description: Additional metadata
|
|
425
|
+
createdAt:
|
|
426
|
+
type: string
|
|
427
|
+
format: date-time
|
|
428
|
+
description: Record creation timestamp
|
|
429
|
+
example: "2023-01-15T08:00:00Z"
|
|
430
|
+
updatedAt:
|
|
431
|
+
type: string
|
|
432
|
+
format: date-time
|
|
433
|
+
description: Record last update timestamp
|
|
434
|
+
example: "2023-01-15T10:30:00Z"
|
|
435
|
+
required:
|
|
436
|
+
- name
|
|
437
|
+
- ocrEngine
|
|
438
|
+
- documentType
|
|
439
|
+
- extractionRules
|
|
440
|
+
|
|
441
|
+
OcrInvoiceJobTemplateInput:
|
|
442
|
+
type: object
|
|
443
|
+
properties:
|
|
444
|
+
name:
|
|
445
|
+
type: string
|
|
446
|
+
description: Name of the template
|
|
447
|
+
example: "Standard Invoice OCR Template"
|
|
448
|
+
description:
|
|
449
|
+
type: string
|
|
450
|
+
description: Description of the template
|
|
451
|
+
version:
|
|
452
|
+
type: string
|
|
453
|
+
description: Template version
|
|
454
|
+
example: "1.0.0"
|
|
455
|
+
ocrEngine:
|
|
456
|
+
type: string
|
|
457
|
+
enum:
|
|
458
|
+
[tesseract, google-vision, aws-textract, azure-cognitive, custom]
|
|
459
|
+
description: OCR engine to use
|
|
460
|
+
example: "google-vision"
|
|
461
|
+
documentType:
|
|
462
|
+
type: string
|
|
463
|
+
enum: [invoice, receipt, bill, statement, other]
|
|
464
|
+
description: Type of document
|
|
465
|
+
example: "invoice"
|
|
466
|
+
extractionRules:
|
|
467
|
+
type: object
|
|
468
|
+
properties:
|
|
469
|
+
fields:
|
|
470
|
+
type: array
|
|
471
|
+
items:
|
|
472
|
+
type: object
|
|
473
|
+
properties:
|
|
474
|
+
name:
|
|
475
|
+
type: string
|
|
476
|
+
description: Field name
|
|
477
|
+
type:
|
|
478
|
+
type: string
|
|
479
|
+
enum: [text, number, date, currency, boolean]
|
|
480
|
+
description: Data type
|
|
481
|
+
required:
|
|
482
|
+
type: boolean
|
|
483
|
+
description: Whether field is required
|
|
484
|
+
pattern:
|
|
485
|
+
type: string
|
|
486
|
+
description: Regex pattern for extraction
|
|
487
|
+
coordinates:
|
|
488
|
+
type: object
|
|
489
|
+
properties:
|
|
490
|
+
x:
|
|
491
|
+
type: number
|
|
492
|
+
y:
|
|
493
|
+
type: number
|
|
494
|
+
width:
|
|
495
|
+
type: number
|
|
496
|
+
height:
|
|
497
|
+
type: number
|
|
498
|
+
validation:
|
|
499
|
+
type: object
|
|
500
|
+
properties:
|
|
501
|
+
minLength:
|
|
502
|
+
type: integer
|
|
503
|
+
maxLength:
|
|
504
|
+
type: integer
|
|
505
|
+
format:
|
|
506
|
+
type: string
|
|
507
|
+
lineItems:
|
|
508
|
+
type: object
|
|
509
|
+
properties:
|
|
510
|
+
enabled:
|
|
511
|
+
type: boolean
|
|
512
|
+
description: Whether to extract line items
|
|
513
|
+
tableStructure:
|
|
514
|
+
type: object
|
|
515
|
+
properties:
|
|
516
|
+
headerRow:
|
|
517
|
+
type: integer
|
|
518
|
+
description: Header row number
|
|
519
|
+
dataStartRow:
|
|
520
|
+
type: integer
|
|
521
|
+
description: Data start row number
|
|
522
|
+
columns:
|
|
523
|
+
type: array
|
|
524
|
+
items:
|
|
525
|
+
type: object
|
|
526
|
+
properties:
|
|
527
|
+
name:
|
|
528
|
+
type: string
|
|
529
|
+
index:
|
|
530
|
+
type: integer
|
|
531
|
+
type:
|
|
532
|
+
type: string
|
|
533
|
+
enum: [text, number, currency]
|
|
534
|
+
preprocessingSettings:
|
|
535
|
+
type: object
|
|
536
|
+
properties:
|
|
537
|
+
imageEnhancement:
|
|
538
|
+
type: boolean
|
|
539
|
+
default: true
|
|
540
|
+
description: Whether to enhance image quality
|
|
541
|
+
deskew:
|
|
542
|
+
type: boolean
|
|
543
|
+
default: true
|
|
544
|
+
description: Whether to correct image skew
|
|
545
|
+
denoising:
|
|
546
|
+
type: boolean
|
|
547
|
+
default: true
|
|
548
|
+
description: Whether to remove noise
|
|
549
|
+
binarization:
|
|
550
|
+
type: boolean
|
|
551
|
+
default: false
|
|
552
|
+
description: Whether to convert to binary image
|
|
553
|
+
resolutionDPI:
|
|
554
|
+
type: integer
|
|
555
|
+
minimum: 150
|
|
556
|
+
maximum: 600
|
|
557
|
+
default: 300
|
|
558
|
+
description: Target resolution in DPI
|
|
559
|
+
postprocessingSettings:
|
|
560
|
+
type: object
|
|
561
|
+
properties:
|
|
562
|
+
spellCheck:
|
|
563
|
+
type: boolean
|
|
564
|
+
default: false
|
|
565
|
+
description: Whether to perform spell checking
|
|
566
|
+
confidenceThreshold:
|
|
567
|
+
type: number
|
|
568
|
+
format: double
|
|
569
|
+
minimum: 0
|
|
570
|
+
maximum: 1
|
|
571
|
+
default: 0.8
|
|
572
|
+
description: Minimum confidence threshold
|
|
573
|
+
validationRules:
|
|
574
|
+
type: array
|
|
575
|
+
items:
|
|
576
|
+
type: object
|
|
577
|
+
properties:
|
|
578
|
+
field:
|
|
579
|
+
type: string
|
|
580
|
+
rule:
|
|
581
|
+
type: string
|
|
582
|
+
enum: [required, numeric, date, email, currency]
|
|
583
|
+
message:
|
|
584
|
+
type: string
|
|
585
|
+
supportedFormats:
|
|
586
|
+
type: array
|
|
587
|
+
items:
|
|
588
|
+
type: string
|
|
589
|
+
enum: [pdf, png, jpg, jpeg, tiff, bmp]
|
|
590
|
+
description: Supported document formats
|
|
591
|
+
languages:
|
|
592
|
+
type: array
|
|
593
|
+
items:
|
|
594
|
+
type: string
|
|
595
|
+
description: Supported languages for OCR
|
|
596
|
+
example: ["en", "es", "fr"]
|
|
597
|
+
isActive:
|
|
598
|
+
type: boolean
|
|
599
|
+
default: true
|
|
600
|
+
description: Whether the template is active
|
|
601
|
+
isDefault:
|
|
602
|
+
type: boolean
|
|
603
|
+
default: false
|
|
604
|
+
description: Whether this is the default template
|
|
605
|
+
createdBy:
|
|
606
|
+
type: string
|
|
607
|
+
description: User who created the template
|
|
608
|
+
lastModifiedBy:
|
|
609
|
+
type: string
|
|
610
|
+
description: User who last modified the template
|
|
611
|
+
metadata:
|
|
612
|
+
type: object
|
|
613
|
+
additionalProperties: true
|
|
614
|
+
description: Additional metadata
|
|
615
|
+
required:
|
|
616
|
+
- name
|
|
617
|
+
- ocrEngine
|
|
618
|
+
- documentType
|
|
619
|
+
- extractionRules
|
|
620
|
+
|
|
621
|
+
securitySchemes:
|
|
622
|
+
ApiKeyAuth:
|
|
623
|
+
type: apiKey
|
|
624
|
+
in: header
|
|
625
|
+
name: api-key
|
|
626
|
+
|
|
627
|
+
security:
|
|
628
|
+
- ApiKeyAuth: []
|