repzo 1.0.155 → 1.0.157
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/lib/index.d.ts +1 -2
- package/lib/index.js +1 -1
- package/lib/types/index.d.ts +2 -2
- 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
- package/src/types/index.ts +2 -1
|
@@ -0,0 +1,603 @@
|
|
|
1
|
+
openapi: 3.0.0
|
|
2
|
+
info:
|
|
3
|
+
title: OCR Invoice Job API
|
|
4
|
+
description: API for managing individual OCR invoice jobs
|
|
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
|
|
18
|
+
description: Operations related to individual OCR invoice job management
|
|
19
|
+
|
|
20
|
+
paths:
|
|
21
|
+
/ocr-invoice-job:
|
|
22
|
+
get:
|
|
23
|
+
tags:
|
|
24
|
+
- OCR Invoice Job
|
|
25
|
+
summary: Get all OCR invoice jobs
|
|
26
|
+
description: Retrieve a list of all OCR invoice jobs 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 jobs 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/OcrInvoiceJob"
|
|
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
|
|
98
|
+
summary: Create a new OCR invoice job
|
|
99
|
+
description: Create a new OCR invoice job with the provided data
|
|
100
|
+
requestBody:
|
|
101
|
+
required: true
|
|
102
|
+
content:
|
|
103
|
+
application/json:
|
|
104
|
+
schema:
|
|
105
|
+
$ref: "#/components/schemas/OcrInvoiceJobInput"
|
|
106
|
+
responses:
|
|
107
|
+
"201":
|
|
108
|
+
description: OCR invoice job 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/OcrInvoiceJob"
|
|
119
|
+
"400":
|
|
120
|
+
description: Bad request
|
|
121
|
+
"401":
|
|
122
|
+
description: Unauthorized
|
|
123
|
+
"500":
|
|
124
|
+
description: Internal server error
|
|
125
|
+
|
|
126
|
+
/ocr-invoice-job/{id}:
|
|
127
|
+
get:
|
|
128
|
+
tags:
|
|
129
|
+
- OCR Invoice Job
|
|
130
|
+
summary: Get OCR invoice job by ID
|
|
131
|
+
description: Retrieve a specific OCR invoice job by its ID
|
|
132
|
+
parameters:
|
|
133
|
+
- name: id
|
|
134
|
+
in: path
|
|
135
|
+
required: true
|
|
136
|
+
description: OCR invoice job ID
|
|
137
|
+
schema:
|
|
138
|
+
type: string
|
|
139
|
+
responses:
|
|
140
|
+
"200":
|
|
141
|
+
description: OCR invoice job 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/OcrInvoiceJob"
|
|
152
|
+
"404":
|
|
153
|
+
description: OCR invoice job not found
|
|
154
|
+
"401":
|
|
155
|
+
description: Unauthorized
|
|
156
|
+
"500":
|
|
157
|
+
description: Internal server error
|
|
158
|
+
put:
|
|
159
|
+
tags:
|
|
160
|
+
- OCR Invoice Job
|
|
161
|
+
summary: Update OCR invoice job
|
|
162
|
+
description: Update an existing OCR invoice job with new data
|
|
163
|
+
parameters:
|
|
164
|
+
- name: id
|
|
165
|
+
in: path
|
|
166
|
+
required: true
|
|
167
|
+
description: OCR invoice job ID
|
|
168
|
+
schema:
|
|
169
|
+
type: string
|
|
170
|
+
requestBody:
|
|
171
|
+
required: true
|
|
172
|
+
content:
|
|
173
|
+
application/json:
|
|
174
|
+
schema:
|
|
175
|
+
$ref: "#/components/schemas/OcrInvoiceJobInput"
|
|
176
|
+
responses:
|
|
177
|
+
"200":
|
|
178
|
+
description: OCR invoice job 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/OcrInvoiceJob"
|
|
189
|
+
"400":
|
|
190
|
+
description: Bad request
|
|
191
|
+
"404":
|
|
192
|
+
description: OCR invoice job not found
|
|
193
|
+
"401":
|
|
194
|
+
description: Unauthorized
|
|
195
|
+
"500":
|
|
196
|
+
description: Internal server error
|
|
197
|
+
delete:
|
|
198
|
+
tags:
|
|
199
|
+
- OCR Invoice Job
|
|
200
|
+
summary: Delete OCR invoice job
|
|
201
|
+
description: Delete an existing OCR invoice job
|
|
202
|
+
parameters:
|
|
203
|
+
- name: id
|
|
204
|
+
in: path
|
|
205
|
+
required: true
|
|
206
|
+
description: OCR invoice job ID
|
|
207
|
+
schema:
|
|
208
|
+
type: string
|
|
209
|
+
responses:
|
|
210
|
+
"200":
|
|
211
|
+
description: OCR invoice job 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 deleted successfully
|
|
223
|
+
"404":
|
|
224
|
+
description: OCR invoice job not found
|
|
225
|
+
"401":
|
|
226
|
+
description: Unauthorized
|
|
227
|
+
"500":
|
|
228
|
+
description: Internal server error
|
|
229
|
+
|
|
230
|
+
/ocr-invoice-job/{id}/process:
|
|
231
|
+
post:
|
|
232
|
+
tags:
|
|
233
|
+
- OCR Invoice Job
|
|
234
|
+
summary: Process OCR invoice job
|
|
235
|
+
description: Start processing an OCR invoice job
|
|
236
|
+
parameters:
|
|
237
|
+
- name: id
|
|
238
|
+
in: path
|
|
239
|
+
required: true
|
|
240
|
+
description: OCR invoice job ID
|
|
241
|
+
schema:
|
|
242
|
+
type: string
|
|
243
|
+
responses:
|
|
244
|
+
"200":
|
|
245
|
+
description: OCR invoice job processing started
|
|
246
|
+
content:
|
|
247
|
+
application/json:
|
|
248
|
+
schema:
|
|
249
|
+
type: object
|
|
250
|
+
properties:
|
|
251
|
+
success:
|
|
252
|
+
type: boolean
|
|
253
|
+
example: true
|
|
254
|
+
data:
|
|
255
|
+
type: object
|
|
256
|
+
properties:
|
|
257
|
+
jobId:
|
|
258
|
+
type: string
|
|
259
|
+
status:
|
|
260
|
+
type: string
|
|
261
|
+
enum: [queued, processing]
|
|
262
|
+
"404":
|
|
263
|
+
description: OCR invoice job not found
|
|
264
|
+
"401":
|
|
265
|
+
description: Unauthorized
|
|
266
|
+
"500":
|
|
267
|
+
description: Internal server error
|
|
268
|
+
|
|
269
|
+
/ocr-invoice-job/{id}/results:
|
|
270
|
+
get:
|
|
271
|
+
tags:
|
|
272
|
+
- OCR Invoice Job
|
|
273
|
+
summary: Get OCR results
|
|
274
|
+
description: Retrieve the OCR processing results for a job
|
|
275
|
+
parameters:
|
|
276
|
+
- name: id
|
|
277
|
+
in: path
|
|
278
|
+
required: true
|
|
279
|
+
description: OCR invoice job ID
|
|
280
|
+
schema:
|
|
281
|
+
type: string
|
|
282
|
+
responses:
|
|
283
|
+
"200":
|
|
284
|
+
description: OCR results retrieved successfully
|
|
285
|
+
content:
|
|
286
|
+
application/json:
|
|
287
|
+
schema:
|
|
288
|
+
type: object
|
|
289
|
+
properties:
|
|
290
|
+
success:
|
|
291
|
+
type: boolean
|
|
292
|
+
example: true
|
|
293
|
+
data:
|
|
294
|
+
$ref: "#/components/schemas/OcrResults"
|
|
295
|
+
"404":
|
|
296
|
+
description: OCR invoice job not found
|
|
297
|
+
"401":
|
|
298
|
+
description: Unauthorized
|
|
299
|
+
"500":
|
|
300
|
+
description: Internal server error
|
|
301
|
+
|
|
302
|
+
components:
|
|
303
|
+
schemas:
|
|
304
|
+
OcrInvoiceJob:
|
|
305
|
+
type: object
|
|
306
|
+
properties:
|
|
307
|
+
_id:
|
|
308
|
+
type: string
|
|
309
|
+
description: Unique identifier for the OCR invoice job
|
|
310
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b3"
|
|
311
|
+
jobNumber:
|
|
312
|
+
type: string
|
|
313
|
+
description: Unique job number
|
|
314
|
+
example: "OCR-2023-001"
|
|
315
|
+
documentName:
|
|
316
|
+
type: string
|
|
317
|
+
description: Name of the document being processed
|
|
318
|
+
example: "invoice_2023_001.pdf"
|
|
319
|
+
documentUrl:
|
|
320
|
+
type: string
|
|
321
|
+
format: uri
|
|
322
|
+
description: URL of the document to process
|
|
323
|
+
example: "https://storage.example.com/invoices/invoice_2023_001.pdf"
|
|
324
|
+
documentType:
|
|
325
|
+
type: string
|
|
326
|
+
enum: [pdf, png, jpg, jpeg, tiff, bmp]
|
|
327
|
+
description: Type of document
|
|
328
|
+
example: "pdf"
|
|
329
|
+
template:
|
|
330
|
+
type: string
|
|
331
|
+
description: OCR template ID to use
|
|
332
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b4"
|
|
333
|
+
group:
|
|
334
|
+
type: string
|
|
335
|
+
description: OCR job group ID if part of a batch
|
|
336
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b5"
|
|
337
|
+
status:
|
|
338
|
+
type: string
|
|
339
|
+
enum: [created, queued, processing, completed, failed, cancelled]
|
|
340
|
+
default: created
|
|
341
|
+
description: Processing status
|
|
342
|
+
priority:
|
|
343
|
+
type: string
|
|
344
|
+
enum: [low, medium, high, urgent]
|
|
345
|
+
default: medium
|
|
346
|
+
description: Processing priority
|
|
347
|
+
progress:
|
|
348
|
+
type: object
|
|
349
|
+
properties:
|
|
350
|
+
percentage:
|
|
351
|
+
type: number
|
|
352
|
+
format: double
|
|
353
|
+
minimum: 0
|
|
354
|
+
maximum: 100
|
|
355
|
+
description: Processing progress percentage
|
|
356
|
+
currentStep:
|
|
357
|
+
type: string
|
|
358
|
+
description: Current processing step
|
|
359
|
+
totalSteps:
|
|
360
|
+
type: integer
|
|
361
|
+
description: Total number of processing steps
|
|
362
|
+
startedAt:
|
|
363
|
+
type: string
|
|
364
|
+
format: date-time
|
|
365
|
+
description: When processing started
|
|
366
|
+
example: "2023-01-15T08:00:00Z"
|
|
367
|
+
completedAt:
|
|
368
|
+
type: string
|
|
369
|
+
format: date-time
|
|
370
|
+
description: When processing completed
|
|
371
|
+
example: "2023-01-15T08:05:00Z"
|
|
372
|
+
processingTime:
|
|
373
|
+
type: number
|
|
374
|
+
format: double
|
|
375
|
+
description: Processing time in seconds
|
|
376
|
+
example: 45.6
|
|
377
|
+
documentInfo:
|
|
378
|
+
type: object
|
|
379
|
+
properties:
|
|
380
|
+
pages:
|
|
381
|
+
type: integer
|
|
382
|
+
description: Number of pages in document
|
|
383
|
+
size:
|
|
384
|
+
type: integer
|
|
385
|
+
description: File size in bytes
|
|
386
|
+
format:
|
|
387
|
+
type: string
|
|
388
|
+
description: Document format
|
|
389
|
+
resolution:
|
|
390
|
+
type: string
|
|
391
|
+
description: Document resolution
|
|
392
|
+
language:
|
|
393
|
+
type: string
|
|
394
|
+
description: Detected language
|
|
395
|
+
extractedData:
|
|
396
|
+
type: object
|
|
397
|
+
properties:
|
|
398
|
+
invoice:
|
|
399
|
+
type: object
|
|
400
|
+
properties:
|
|
401
|
+
number:
|
|
402
|
+
type: string
|
|
403
|
+
description: Invoice number
|
|
404
|
+
date:
|
|
405
|
+
type: string
|
|
406
|
+
format: date
|
|
407
|
+
description: Invoice date
|
|
408
|
+
dueDate:
|
|
409
|
+
type: string
|
|
410
|
+
format: date
|
|
411
|
+
description: Due date
|
|
412
|
+
supplier:
|
|
413
|
+
type: object
|
|
414
|
+
properties:
|
|
415
|
+
name:
|
|
416
|
+
type: string
|
|
417
|
+
address:
|
|
418
|
+
type: string
|
|
419
|
+
taxId:
|
|
420
|
+
type: string
|
|
421
|
+
customer:
|
|
422
|
+
type: object
|
|
423
|
+
properties:
|
|
424
|
+
name:
|
|
425
|
+
type: string
|
|
426
|
+
address:
|
|
427
|
+
type: string
|
|
428
|
+
amounts:
|
|
429
|
+
type: object
|
|
430
|
+
properties:
|
|
431
|
+
subtotal:
|
|
432
|
+
type: number
|
|
433
|
+
format: double
|
|
434
|
+
tax:
|
|
435
|
+
type: number
|
|
436
|
+
format: double
|
|
437
|
+
total:
|
|
438
|
+
type: number
|
|
439
|
+
format: double
|
|
440
|
+
currency:
|
|
441
|
+
type: string
|
|
442
|
+
lineItems:
|
|
443
|
+
type: array
|
|
444
|
+
items:
|
|
445
|
+
type: object
|
|
446
|
+
properties:
|
|
447
|
+
description:
|
|
448
|
+
type: string
|
|
449
|
+
quantity:
|
|
450
|
+
type: number
|
|
451
|
+
format: double
|
|
452
|
+
unitPrice:
|
|
453
|
+
type: number
|
|
454
|
+
format: double
|
|
455
|
+
amount:
|
|
456
|
+
type: number
|
|
457
|
+
format: double
|
|
458
|
+
confidence:
|
|
459
|
+
type: object
|
|
460
|
+
properties:
|
|
461
|
+
overall:
|
|
462
|
+
type: number
|
|
463
|
+
format: double
|
|
464
|
+
minimum: 0
|
|
465
|
+
maximum: 1
|
|
466
|
+
description: Overall confidence score
|
|
467
|
+
fields:
|
|
468
|
+
type: object
|
|
469
|
+
additionalProperties:
|
|
470
|
+
type: number
|
|
471
|
+
format: double
|
|
472
|
+
description: Confidence per field
|
|
473
|
+
validationResults:
|
|
474
|
+
type: object
|
|
475
|
+
properties:
|
|
476
|
+
isValid:
|
|
477
|
+
type: boolean
|
|
478
|
+
description: Whether validation passed
|
|
479
|
+
errors:
|
|
480
|
+
type: array
|
|
481
|
+
items:
|
|
482
|
+
type: object
|
|
483
|
+
properties:
|
|
484
|
+
field:
|
|
485
|
+
type: string
|
|
486
|
+
message:
|
|
487
|
+
type: string
|
|
488
|
+
severity:
|
|
489
|
+
type: string
|
|
490
|
+
enum: [error, warning, info]
|
|
491
|
+
cost:
|
|
492
|
+
type: number
|
|
493
|
+
format: double
|
|
494
|
+
minimum: 0
|
|
495
|
+
description: Processing cost
|
|
496
|
+
currency:
|
|
497
|
+
type: string
|
|
498
|
+
description: Currency code
|
|
499
|
+
example: "USD"
|
|
500
|
+
errorLog:
|
|
501
|
+
type: string
|
|
502
|
+
description: Error log if processing failed
|
|
503
|
+
retryCount:
|
|
504
|
+
type: integer
|
|
505
|
+
minimum: 0
|
|
506
|
+
description: Number of retry attempts
|
|
507
|
+
createdBy:
|
|
508
|
+
type: string
|
|
509
|
+
description: User who created the job
|
|
510
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b6"
|
|
511
|
+
metadata:
|
|
512
|
+
type: object
|
|
513
|
+
additionalProperties: true
|
|
514
|
+
description: Additional metadata
|
|
515
|
+
createdAt:
|
|
516
|
+
type: string
|
|
517
|
+
format: date-time
|
|
518
|
+
description: Record creation timestamp
|
|
519
|
+
example: "2023-01-15T08:00:00Z"
|
|
520
|
+
updatedAt:
|
|
521
|
+
type: string
|
|
522
|
+
format: date-time
|
|
523
|
+
description: Record last update timestamp
|
|
524
|
+
example: "2023-01-15T10:30:00Z"
|
|
525
|
+
required:
|
|
526
|
+
- jobNumber
|
|
527
|
+
- documentName
|
|
528
|
+
- documentUrl
|
|
529
|
+
- template
|
|
530
|
+
|
|
531
|
+
OcrInvoiceJobInput:
|
|
532
|
+
type: object
|
|
533
|
+
properties:
|
|
534
|
+
jobNumber:
|
|
535
|
+
type: string
|
|
536
|
+
description: Unique job number
|
|
537
|
+
example: "OCR-2023-001"
|
|
538
|
+
documentName:
|
|
539
|
+
type: string
|
|
540
|
+
description: Name of the document being processed
|
|
541
|
+
example: "invoice_2023_001.pdf"
|
|
542
|
+
documentUrl:
|
|
543
|
+
type: string
|
|
544
|
+
format: uri
|
|
545
|
+
description: URL of the document to process
|
|
546
|
+
example: "https://storage.example.com/invoices/invoice_2023_001.pdf"
|
|
547
|
+
documentType:
|
|
548
|
+
type: string
|
|
549
|
+
enum: [pdf, png, jpg, jpeg, tiff, bmp]
|
|
550
|
+
description: Type of document
|
|
551
|
+
example: "pdf"
|
|
552
|
+
template:
|
|
553
|
+
type: string
|
|
554
|
+
description: OCR template ID to use
|
|
555
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b4"
|
|
556
|
+
group:
|
|
557
|
+
type: string
|
|
558
|
+
description: OCR job group ID if part of a batch
|
|
559
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b5"
|
|
560
|
+
priority:
|
|
561
|
+
type: string
|
|
562
|
+
enum: [low, medium, high, urgent]
|
|
563
|
+
default: medium
|
|
564
|
+
description: Processing priority
|
|
565
|
+
createdBy:
|
|
566
|
+
type: string
|
|
567
|
+
description: User who created the job
|
|
568
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b6"
|
|
569
|
+
metadata:
|
|
570
|
+
type: object
|
|
571
|
+
additionalProperties: true
|
|
572
|
+
description: Additional metadata
|
|
573
|
+
required:
|
|
574
|
+
- jobNumber
|
|
575
|
+
- documentName
|
|
576
|
+
- documentUrl
|
|
577
|
+
- template
|
|
578
|
+
|
|
579
|
+
OcrResults:
|
|
580
|
+
type: object
|
|
581
|
+
properties:
|
|
582
|
+
extractedData:
|
|
583
|
+
type: object
|
|
584
|
+
description: All extracted data from the document
|
|
585
|
+
confidence:
|
|
586
|
+
type: object
|
|
587
|
+
description: Confidence scores for extracted data
|
|
588
|
+
validationResults:
|
|
589
|
+
type: object
|
|
590
|
+
description: Validation results
|
|
591
|
+
processingTime:
|
|
592
|
+
type: number
|
|
593
|
+
format: double
|
|
594
|
+
description: Total processing time
|
|
595
|
+
|
|
596
|
+
securitySchemes:
|
|
597
|
+
ApiKeyAuth:
|
|
598
|
+
type: apiKey
|
|
599
|
+
in: header
|
|
600
|
+
name: api-key
|
|
601
|
+
|
|
602
|
+
security:
|
|
603
|
+
- ApiKeyAuth: []
|