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,602 @@
|
|
|
1
|
+
openapi: 3.0.0
|
|
2
|
+
info:
|
|
3
|
+
title: OCR Invoice Job Page API
|
|
4
|
+
description: API for managing individual pages within 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 Page
|
|
18
|
+
description: Operations related to individual pages within OCR invoice jobs
|
|
19
|
+
|
|
20
|
+
paths:
|
|
21
|
+
/ocr-invoice-job-page:
|
|
22
|
+
get:
|
|
23
|
+
tags:
|
|
24
|
+
- OCR Invoice Job Page
|
|
25
|
+
summary: Get all OCR invoice job pages
|
|
26
|
+
description: Retrieve a list of all OCR invoice job pages 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 pages 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/OcrInvoiceJobPage"
|
|
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 Page
|
|
98
|
+
summary: Create a new OCR invoice job page
|
|
99
|
+
description: Create a new OCR invoice job page with the provided data
|
|
100
|
+
requestBody:
|
|
101
|
+
required: true
|
|
102
|
+
content:
|
|
103
|
+
application/json:
|
|
104
|
+
schema:
|
|
105
|
+
$ref: "#/components/schemas/OcrInvoiceJobPageInput"
|
|
106
|
+
responses:
|
|
107
|
+
"201":
|
|
108
|
+
description: OCR invoice job page 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/OcrInvoiceJobPage"
|
|
119
|
+
"400":
|
|
120
|
+
description: Bad request
|
|
121
|
+
"401":
|
|
122
|
+
description: Unauthorized
|
|
123
|
+
"500":
|
|
124
|
+
description: Internal server error
|
|
125
|
+
|
|
126
|
+
/ocr-invoice-job-page/{id}:
|
|
127
|
+
get:
|
|
128
|
+
tags:
|
|
129
|
+
- OCR Invoice Job Page
|
|
130
|
+
summary: Get OCR invoice job page by ID
|
|
131
|
+
description: Retrieve a specific OCR invoice job page by its ID
|
|
132
|
+
parameters:
|
|
133
|
+
- name: id
|
|
134
|
+
in: path
|
|
135
|
+
required: true
|
|
136
|
+
description: OCR invoice job page ID
|
|
137
|
+
schema:
|
|
138
|
+
type: string
|
|
139
|
+
responses:
|
|
140
|
+
"200":
|
|
141
|
+
description: OCR invoice job page 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/OcrInvoiceJobPage"
|
|
152
|
+
"404":
|
|
153
|
+
description: OCR invoice job page not found
|
|
154
|
+
"401":
|
|
155
|
+
description: Unauthorized
|
|
156
|
+
"500":
|
|
157
|
+
description: Internal server error
|
|
158
|
+
put:
|
|
159
|
+
tags:
|
|
160
|
+
- OCR Invoice Job Page
|
|
161
|
+
summary: Update OCR invoice job page
|
|
162
|
+
description: Update an existing OCR invoice job page with new data
|
|
163
|
+
parameters:
|
|
164
|
+
- name: id
|
|
165
|
+
in: path
|
|
166
|
+
required: true
|
|
167
|
+
description: OCR invoice job page ID
|
|
168
|
+
schema:
|
|
169
|
+
type: string
|
|
170
|
+
requestBody:
|
|
171
|
+
required: true
|
|
172
|
+
content:
|
|
173
|
+
application/json:
|
|
174
|
+
schema:
|
|
175
|
+
$ref: "#/components/schemas/OcrInvoiceJobPageInput"
|
|
176
|
+
responses:
|
|
177
|
+
"200":
|
|
178
|
+
description: OCR invoice job page 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/OcrInvoiceJobPage"
|
|
189
|
+
"400":
|
|
190
|
+
description: Bad request
|
|
191
|
+
"404":
|
|
192
|
+
description: OCR invoice job page not found
|
|
193
|
+
"401":
|
|
194
|
+
description: Unauthorized
|
|
195
|
+
"500":
|
|
196
|
+
description: Internal server error
|
|
197
|
+
delete:
|
|
198
|
+
tags:
|
|
199
|
+
- OCR Invoice Job Page
|
|
200
|
+
summary: Delete OCR invoice job page
|
|
201
|
+
description: Delete an existing OCR invoice job page
|
|
202
|
+
parameters:
|
|
203
|
+
- name: id
|
|
204
|
+
in: path
|
|
205
|
+
required: true
|
|
206
|
+
description: OCR invoice job page ID
|
|
207
|
+
schema:
|
|
208
|
+
type: string
|
|
209
|
+
responses:
|
|
210
|
+
"200":
|
|
211
|
+
description: OCR invoice job page 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 page deleted successfully
|
|
223
|
+
"404":
|
|
224
|
+
description: OCR invoice job page not found
|
|
225
|
+
"401":
|
|
226
|
+
description: Unauthorized
|
|
227
|
+
"500":
|
|
228
|
+
description: Internal server error
|
|
229
|
+
|
|
230
|
+
/ocr-invoice-job-page/{id}/process:
|
|
231
|
+
post:
|
|
232
|
+
tags:
|
|
233
|
+
- OCR Invoice Job Page
|
|
234
|
+
summary: Process OCR invoice job page
|
|
235
|
+
description: Start processing a specific page of an OCR invoice job
|
|
236
|
+
parameters:
|
|
237
|
+
- name: id
|
|
238
|
+
in: path
|
|
239
|
+
required: true
|
|
240
|
+
description: OCR invoice job page ID
|
|
241
|
+
schema:
|
|
242
|
+
type: string
|
|
243
|
+
responses:
|
|
244
|
+
"200":
|
|
245
|
+
description: OCR invoice job page 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
|
+
pageId:
|
|
258
|
+
type: string
|
|
259
|
+
status:
|
|
260
|
+
type: string
|
|
261
|
+
enum: [queued, processing]
|
|
262
|
+
"404":
|
|
263
|
+
description: OCR invoice job page not found
|
|
264
|
+
"401":
|
|
265
|
+
description: Unauthorized
|
|
266
|
+
"500":
|
|
267
|
+
description: Internal server error
|
|
268
|
+
|
|
269
|
+
components:
|
|
270
|
+
schemas:
|
|
271
|
+
OcrInvoiceJobPage:
|
|
272
|
+
type: object
|
|
273
|
+
properties:
|
|
274
|
+
_id:
|
|
275
|
+
type: string
|
|
276
|
+
description: Unique identifier for the OCR invoice job page
|
|
277
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b3"
|
|
278
|
+
job:
|
|
279
|
+
type: string
|
|
280
|
+
description: OCR invoice job ID this page belongs to
|
|
281
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b4"
|
|
282
|
+
pageNumber:
|
|
283
|
+
type: integer
|
|
284
|
+
minimum: 1
|
|
285
|
+
description: Page number within the document
|
|
286
|
+
example: 1
|
|
287
|
+
pageUrl:
|
|
288
|
+
type: string
|
|
289
|
+
format: uri
|
|
290
|
+
description: URL of the page image
|
|
291
|
+
example: "https://storage.example.com/pages/invoice_2023_001_page_1.png"
|
|
292
|
+
status:
|
|
293
|
+
type: string
|
|
294
|
+
enum: [pending, processing, completed, failed, skipped]
|
|
295
|
+
default: pending
|
|
296
|
+
description: Processing status of this page
|
|
297
|
+
pageType:
|
|
298
|
+
type: string
|
|
299
|
+
enum: [cover, header, content, footer, summary, attachment]
|
|
300
|
+
description: Type of page content
|
|
301
|
+
example: "content"
|
|
302
|
+
imageProperties:
|
|
303
|
+
type: object
|
|
304
|
+
properties:
|
|
305
|
+
width:
|
|
306
|
+
type: integer
|
|
307
|
+
description: Image width in pixels
|
|
308
|
+
height:
|
|
309
|
+
type: integer
|
|
310
|
+
description: Image height in pixels
|
|
311
|
+
dpi:
|
|
312
|
+
type: integer
|
|
313
|
+
description: Image resolution in DPI
|
|
314
|
+
colorSpace:
|
|
315
|
+
type: string
|
|
316
|
+
enum: [rgb, grayscale, binary]
|
|
317
|
+
description: Color space of the image
|
|
318
|
+
format:
|
|
319
|
+
type: string
|
|
320
|
+
enum: [png, jpg, jpeg, tiff, bmp]
|
|
321
|
+
description: Image format
|
|
322
|
+
size:
|
|
323
|
+
type: integer
|
|
324
|
+
description: File size in bytes
|
|
325
|
+
preprocessing:
|
|
326
|
+
type: object
|
|
327
|
+
properties:
|
|
328
|
+
enhanced:
|
|
329
|
+
type: boolean
|
|
330
|
+
description: Whether image was enhanced
|
|
331
|
+
deskewed:
|
|
332
|
+
type: boolean
|
|
333
|
+
description: Whether image was deskewed
|
|
334
|
+
denoised:
|
|
335
|
+
type: boolean
|
|
336
|
+
description: Whether noise was removed
|
|
337
|
+
binarized:
|
|
338
|
+
type: boolean
|
|
339
|
+
description: Whether image was binarized
|
|
340
|
+
rotationAngle:
|
|
341
|
+
type: number
|
|
342
|
+
format: double
|
|
343
|
+
description: Rotation angle applied
|
|
344
|
+
ocrResults:
|
|
345
|
+
type: object
|
|
346
|
+
properties:
|
|
347
|
+
text:
|
|
348
|
+
type: string
|
|
349
|
+
description: Raw OCR text output
|
|
350
|
+
confidence:
|
|
351
|
+
type: number
|
|
352
|
+
format: double
|
|
353
|
+
minimum: 0
|
|
354
|
+
maximum: 1
|
|
355
|
+
description: Overall OCR confidence for this page
|
|
356
|
+
words:
|
|
357
|
+
type: array
|
|
358
|
+
items:
|
|
359
|
+
type: object
|
|
360
|
+
properties:
|
|
361
|
+
text:
|
|
362
|
+
type: string
|
|
363
|
+
description: Word text
|
|
364
|
+
confidence:
|
|
365
|
+
type: number
|
|
366
|
+
format: double
|
|
367
|
+
minimum: 0
|
|
368
|
+
maximum: 1
|
|
369
|
+
description: Word confidence
|
|
370
|
+
boundingBox:
|
|
371
|
+
type: object
|
|
372
|
+
properties:
|
|
373
|
+
x:
|
|
374
|
+
type: number
|
|
375
|
+
format: double
|
|
376
|
+
y:
|
|
377
|
+
type: number
|
|
378
|
+
format: double
|
|
379
|
+
width:
|
|
380
|
+
type: number
|
|
381
|
+
format: double
|
|
382
|
+
height:
|
|
383
|
+
type: number
|
|
384
|
+
format: double
|
|
385
|
+
blocks:
|
|
386
|
+
type: array
|
|
387
|
+
items:
|
|
388
|
+
type: object
|
|
389
|
+
properties:
|
|
390
|
+
text:
|
|
391
|
+
type: string
|
|
392
|
+
description: Block text
|
|
393
|
+
confidence:
|
|
394
|
+
type: number
|
|
395
|
+
format: double
|
|
396
|
+
boundingBox:
|
|
397
|
+
type: object
|
|
398
|
+
properties:
|
|
399
|
+
x:
|
|
400
|
+
type: number
|
|
401
|
+
format: double
|
|
402
|
+
y:
|
|
403
|
+
type: number
|
|
404
|
+
format: double
|
|
405
|
+
width:
|
|
406
|
+
type: number
|
|
407
|
+
format: double
|
|
408
|
+
height:
|
|
409
|
+
type: number
|
|
410
|
+
format: double
|
|
411
|
+
blockType:
|
|
412
|
+
type: string
|
|
413
|
+
enum: [text, table, image, signature]
|
|
414
|
+
extractedFields:
|
|
415
|
+
type: object
|
|
416
|
+
additionalProperties: true
|
|
417
|
+
description: Fields extracted from this page
|
|
418
|
+
tableData:
|
|
419
|
+
type: array
|
|
420
|
+
items:
|
|
421
|
+
type: object
|
|
422
|
+
properties:
|
|
423
|
+
rowIndex:
|
|
424
|
+
type: integer
|
|
425
|
+
columnIndex:
|
|
426
|
+
type: integer
|
|
427
|
+
cellText:
|
|
428
|
+
type: string
|
|
429
|
+
confidence:
|
|
430
|
+
type: number
|
|
431
|
+
format: double
|
|
432
|
+
boundingBox:
|
|
433
|
+
type: object
|
|
434
|
+
properties:
|
|
435
|
+
x:
|
|
436
|
+
type: number
|
|
437
|
+
y:
|
|
438
|
+
type: number
|
|
439
|
+
width:
|
|
440
|
+
type: number
|
|
441
|
+
height:
|
|
442
|
+
type: number
|
|
443
|
+
processingTime:
|
|
444
|
+
type: number
|
|
445
|
+
format: double
|
|
446
|
+
description: Processing time for this page in seconds
|
|
447
|
+
startedAt:
|
|
448
|
+
type: string
|
|
449
|
+
format: date-time
|
|
450
|
+
description: When page processing started
|
|
451
|
+
example: "2023-01-15T08:00:00Z"
|
|
452
|
+
completedAt:
|
|
453
|
+
type: string
|
|
454
|
+
format: date-time
|
|
455
|
+
description: When page processing completed
|
|
456
|
+
example: "2023-01-15T08:01:00Z"
|
|
457
|
+
errorLog:
|
|
458
|
+
type: string
|
|
459
|
+
description: Error log if processing failed
|
|
460
|
+
retryCount:
|
|
461
|
+
type: integer
|
|
462
|
+
minimum: 0
|
|
463
|
+
description: Number of retry attempts
|
|
464
|
+
qualityScore:
|
|
465
|
+
type: number
|
|
466
|
+
format: double
|
|
467
|
+
minimum: 0
|
|
468
|
+
maximum: 1
|
|
469
|
+
description: Quality score of the page
|
|
470
|
+
annotations:
|
|
471
|
+
type: array
|
|
472
|
+
items:
|
|
473
|
+
type: object
|
|
474
|
+
properties:
|
|
475
|
+
type:
|
|
476
|
+
type: string
|
|
477
|
+
enum: [correction, highlight, note, region]
|
|
478
|
+
text:
|
|
479
|
+
type: string
|
|
480
|
+
coordinates:
|
|
481
|
+
type: object
|
|
482
|
+
properties:
|
|
483
|
+
x:
|
|
484
|
+
type: number
|
|
485
|
+
y:
|
|
486
|
+
type: number
|
|
487
|
+
width:
|
|
488
|
+
type: number
|
|
489
|
+
height:
|
|
490
|
+
type: number
|
|
491
|
+
createdBy:
|
|
492
|
+
type: string
|
|
493
|
+
createdAt:
|
|
494
|
+
type: string
|
|
495
|
+
format: date-time
|
|
496
|
+
metadata:
|
|
497
|
+
type: object
|
|
498
|
+
additionalProperties: true
|
|
499
|
+
description: Additional metadata
|
|
500
|
+
createdAt:
|
|
501
|
+
type: string
|
|
502
|
+
format: date-time
|
|
503
|
+
description: Record creation timestamp
|
|
504
|
+
example: "2023-01-15T08:00:00Z"
|
|
505
|
+
updatedAt:
|
|
506
|
+
type: string
|
|
507
|
+
format: date-time
|
|
508
|
+
description: Record last update timestamp
|
|
509
|
+
example: "2023-01-15T10:30:00Z"
|
|
510
|
+
required:
|
|
511
|
+
- job
|
|
512
|
+
- pageNumber
|
|
513
|
+
- pageUrl
|
|
514
|
+
|
|
515
|
+
OcrInvoiceJobPageInput:
|
|
516
|
+
type: object
|
|
517
|
+
properties:
|
|
518
|
+
job:
|
|
519
|
+
type: string
|
|
520
|
+
description: OCR invoice job ID this page belongs to
|
|
521
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b4"
|
|
522
|
+
pageNumber:
|
|
523
|
+
type: integer
|
|
524
|
+
minimum: 1
|
|
525
|
+
description: Page number within the document
|
|
526
|
+
example: 1
|
|
527
|
+
pageUrl:
|
|
528
|
+
type: string
|
|
529
|
+
format: uri
|
|
530
|
+
description: URL of the page image
|
|
531
|
+
example: "https://storage.example.com/pages/invoice_2023_001_page_1.png"
|
|
532
|
+
pageType:
|
|
533
|
+
type: string
|
|
534
|
+
enum: [cover, header, content, footer, summary, attachment]
|
|
535
|
+
description: Type of page content
|
|
536
|
+
example: "content"
|
|
537
|
+
imageProperties:
|
|
538
|
+
type: object
|
|
539
|
+
properties:
|
|
540
|
+
width:
|
|
541
|
+
type: integer
|
|
542
|
+
description: Image width in pixels
|
|
543
|
+
height:
|
|
544
|
+
type: integer
|
|
545
|
+
description: Image height in pixels
|
|
546
|
+
dpi:
|
|
547
|
+
type: integer
|
|
548
|
+
description: Image resolution in DPI
|
|
549
|
+
colorSpace:
|
|
550
|
+
type: string
|
|
551
|
+
enum: [rgb, grayscale, binary]
|
|
552
|
+
description: Color space of the image
|
|
553
|
+
format:
|
|
554
|
+
type: string
|
|
555
|
+
enum: [png, jpg, jpeg, tiff, bmp]
|
|
556
|
+
description: Image format
|
|
557
|
+
size:
|
|
558
|
+
type: integer
|
|
559
|
+
description: File size in bytes
|
|
560
|
+
annotations:
|
|
561
|
+
type: array
|
|
562
|
+
items:
|
|
563
|
+
type: object
|
|
564
|
+
properties:
|
|
565
|
+
type:
|
|
566
|
+
type: string
|
|
567
|
+
enum: [correction, highlight, note, region]
|
|
568
|
+
text:
|
|
569
|
+
type: string
|
|
570
|
+
coordinates:
|
|
571
|
+
type: object
|
|
572
|
+
properties:
|
|
573
|
+
x:
|
|
574
|
+
type: number
|
|
575
|
+
y:
|
|
576
|
+
type: number
|
|
577
|
+
width:
|
|
578
|
+
type: number
|
|
579
|
+
height:
|
|
580
|
+
type: number
|
|
581
|
+
createdBy:
|
|
582
|
+
type: string
|
|
583
|
+
createdAt:
|
|
584
|
+
type: string
|
|
585
|
+
format: date-time
|
|
586
|
+
metadata:
|
|
587
|
+
type: object
|
|
588
|
+
additionalProperties: true
|
|
589
|
+
description: Additional metadata
|
|
590
|
+
required:
|
|
591
|
+
- job
|
|
592
|
+
- pageNumber
|
|
593
|
+
- pageUrl
|
|
594
|
+
|
|
595
|
+
securitySchemes:
|
|
596
|
+
ApiKeyAuth:
|
|
597
|
+
type: apiKey
|
|
598
|
+
in: header
|
|
599
|
+
name: api-key
|
|
600
|
+
|
|
601
|
+
security:
|
|
602
|
+
- ApiKeyAuth: []
|