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
package/src/oas/msl.yaml
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: Repzo API - MSL
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: OpenAPI specification for Repzo MSL (Most Sold List) endpoints.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://sv.api.repzo.me
|
|
8
|
+
paths:
|
|
9
|
+
/msl:
|
|
10
|
+
get:
|
|
11
|
+
summary: Find MSLs
|
|
12
|
+
operationId: findMSLs
|
|
13
|
+
parameters:
|
|
14
|
+
- in: query
|
|
15
|
+
name: params
|
|
16
|
+
schema:
|
|
17
|
+
type: object
|
|
18
|
+
description: Query parameters for filtering MSLs
|
|
19
|
+
responses:
|
|
20
|
+
"200":
|
|
21
|
+
description: A list of MSLs
|
|
22
|
+
content:
|
|
23
|
+
application/json:
|
|
24
|
+
schema:
|
|
25
|
+
$ref: "#/components/schemas/MSLFindResult"
|
|
26
|
+
post:
|
|
27
|
+
summary: Create an MSL
|
|
28
|
+
operationId: createMSL
|
|
29
|
+
requestBody:
|
|
30
|
+
required: true
|
|
31
|
+
content:
|
|
32
|
+
application/json:
|
|
33
|
+
schema:
|
|
34
|
+
$ref: "#/components/schemas/MSLCreateBody"
|
|
35
|
+
responses:
|
|
36
|
+
"201":
|
|
37
|
+
description: MSL created
|
|
38
|
+
content:
|
|
39
|
+
application/json:
|
|
40
|
+
schema:
|
|
41
|
+
$ref: "#/components/schemas/MSLCreateResult"
|
|
42
|
+
/msl/{id}:
|
|
43
|
+
get:
|
|
44
|
+
summary: Get an MSL by ID
|
|
45
|
+
operationId: getMSL
|
|
46
|
+
parameters:
|
|
47
|
+
- in: path
|
|
48
|
+
name: id
|
|
49
|
+
required: true
|
|
50
|
+
schema:
|
|
51
|
+
type: string
|
|
52
|
+
responses:
|
|
53
|
+
"200":
|
|
54
|
+
description: MSL details
|
|
55
|
+
content:
|
|
56
|
+
application/json:
|
|
57
|
+
schema:
|
|
58
|
+
$ref: "#/components/schemas/MSLGetResult"
|
|
59
|
+
put:
|
|
60
|
+
summary: Update an MSL
|
|
61
|
+
operationId: updateMSL
|
|
62
|
+
parameters:
|
|
63
|
+
- in: path
|
|
64
|
+
name: id
|
|
65
|
+
required: true
|
|
66
|
+
schema:
|
|
67
|
+
type: string
|
|
68
|
+
requestBody:
|
|
69
|
+
required: true
|
|
70
|
+
content:
|
|
71
|
+
application/json:
|
|
72
|
+
schema:
|
|
73
|
+
$ref: "#/components/schemas/MSLUpdateBody"
|
|
74
|
+
responses:
|
|
75
|
+
"200":
|
|
76
|
+
description: MSL updated
|
|
77
|
+
content:
|
|
78
|
+
application/json:
|
|
79
|
+
schema:
|
|
80
|
+
$ref: "#/components/schemas/MSLUpdateResult"
|
|
81
|
+
delete:
|
|
82
|
+
summary: Remove an MSL
|
|
83
|
+
operationId: removeMSL
|
|
84
|
+
parameters:
|
|
85
|
+
- in: path
|
|
86
|
+
name: id
|
|
87
|
+
required: true
|
|
88
|
+
schema:
|
|
89
|
+
type: string
|
|
90
|
+
responses:
|
|
91
|
+
"200":
|
|
92
|
+
description: MSL removed
|
|
93
|
+
content:
|
|
94
|
+
application/json:
|
|
95
|
+
schema:
|
|
96
|
+
$ref: "#/components/schemas/MSLRemoveResult"
|
|
97
|
+
components:
|
|
98
|
+
schemas:
|
|
99
|
+
MSLFindResult:
|
|
100
|
+
type: object
|
|
101
|
+
properties:
|
|
102
|
+
data:
|
|
103
|
+
type: array
|
|
104
|
+
items:
|
|
105
|
+
$ref: "#/components/schemas/MSL"
|
|
106
|
+
meta:
|
|
107
|
+
type: object
|
|
108
|
+
MSLCreateBody:
|
|
109
|
+
type: object
|
|
110
|
+
properties:
|
|
111
|
+
name:
|
|
112
|
+
type: string
|
|
113
|
+
client:
|
|
114
|
+
type: string
|
|
115
|
+
rep:
|
|
116
|
+
type: string
|
|
117
|
+
startDate:
|
|
118
|
+
type: string
|
|
119
|
+
format: date-time
|
|
120
|
+
endDate:
|
|
121
|
+
type: string
|
|
122
|
+
format: date-time
|
|
123
|
+
disabled:
|
|
124
|
+
type: boolean
|
|
125
|
+
MSLCreateResult:
|
|
126
|
+
type: object
|
|
127
|
+
properties:
|
|
128
|
+
data:
|
|
129
|
+
$ref: "#/components/schemas/MSL"
|
|
130
|
+
MSLGetResult:
|
|
131
|
+
type: object
|
|
132
|
+
properties:
|
|
133
|
+
data:
|
|
134
|
+
$ref: "#/components/schemas/MSL"
|
|
135
|
+
MSLUpdateBody:
|
|
136
|
+
type: object
|
|
137
|
+
properties:
|
|
138
|
+
name:
|
|
139
|
+
type: string
|
|
140
|
+
client:
|
|
141
|
+
type: string
|
|
142
|
+
rep:
|
|
143
|
+
type: string
|
|
144
|
+
startDate:
|
|
145
|
+
type: string
|
|
146
|
+
format: date-time
|
|
147
|
+
endDate:
|
|
148
|
+
type: string
|
|
149
|
+
format: date-time
|
|
150
|
+
disabled:
|
|
151
|
+
type: boolean
|
|
152
|
+
MSLUpdateResult:
|
|
153
|
+
type: object
|
|
154
|
+
properties:
|
|
155
|
+
data:
|
|
156
|
+
$ref: "#/components/schemas/MSL"
|
|
157
|
+
MSLRemoveResult:
|
|
158
|
+
type: object
|
|
159
|
+
properties:
|
|
160
|
+
success:
|
|
161
|
+
type: boolean
|
|
162
|
+
MSL:
|
|
163
|
+
type: object
|
|
164
|
+
properties:
|
|
165
|
+
_id:
|
|
166
|
+
type: string
|
|
167
|
+
name:
|
|
168
|
+
type: string
|
|
169
|
+
client:
|
|
170
|
+
type: string
|
|
171
|
+
rep:
|
|
172
|
+
type: string
|
|
173
|
+
startDate:
|
|
174
|
+
type: string
|
|
175
|
+
format: date-time
|
|
176
|
+
endDate:
|
|
177
|
+
type: string
|
|
178
|
+
format: date-time
|
|
179
|
+
disabled:
|
|
180
|
+
type: boolean
|
|
181
|
+
createdAt:
|
|
182
|
+
type: string
|
|
183
|
+
format: date-time
|
|
184
|
+
updatedAt:
|
|
185
|
+
type: string
|
|
186
|
+
format: date-time
|
|
@@ -0,0 +1,528 @@
|
|
|
1
|
+
openapi: 3.0.0
|
|
2
|
+
info:
|
|
3
|
+
title: OCR Invoice Job Group API
|
|
4
|
+
description: API for managing OCR invoice job groups
|
|
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 Group
|
|
18
|
+
description: Operations related to OCR invoice job group management
|
|
19
|
+
|
|
20
|
+
paths:
|
|
21
|
+
/ocr-invoice-job-group:
|
|
22
|
+
get:
|
|
23
|
+
tags:
|
|
24
|
+
- OCR Invoice Job Group
|
|
25
|
+
summary: Get all OCR invoice job groups
|
|
26
|
+
description: Retrieve a list of all OCR invoice job groups 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 groups 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/OcrInvoiceJobGroup"
|
|
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 Group
|
|
98
|
+
summary: Create a new OCR invoice job group
|
|
99
|
+
description: Create a new OCR invoice job group with the provided data
|
|
100
|
+
requestBody:
|
|
101
|
+
required: true
|
|
102
|
+
content:
|
|
103
|
+
application/json:
|
|
104
|
+
schema:
|
|
105
|
+
$ref: "#/components/schemas/OcrInvoiceJobGroupInput"
|
|
106
|
+
responses:
|
|
107
|
+
"201":
|
|
108
|
+
description: OCR invoice job group 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/OcrInvoiceJobGroup"
|
|
119
|
+
"400":
|
|
120
|
+
description: Bad request
|
|
121
|
+
"401":
|
|
122
|
+
description: Unauthorized
|
|
123
|
+
"500":
|
|
124
|
+
description: Internal server error
|
|
125
|
+
|
|
126
|
+
/ocr-invoice-job-group/{id}:
|
|
127
|
+
get:
|
|
128
|
+
tags:
|
|
129
|
+
- OCR Invoice Job Group
|
|
130
|
+
summary: Get OCR invoice job group by ID
|
|
131
|
+
description: Retrieve a specific OCR invoice job group by its ID
|
|
132
|
+
parameters:
|
|
133
|
+
- name: id
|
|
134
|
+
in: path
|
|
135
|
+
required: true
|
|
136
|
+
description: OCR invoice job group ID
|
|
137
|
+
schema:
|
|
138
|
+
type: string
|
|
139
|
+
responses:
|
|
140
|
+
"200":
|
|
141
|
+
description: OCR invoice job group 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/OcrInvoiceJobGroup"
|
|
152
|
+
"404":
|
|
153
|
+
description: OCR invoice job group not found
|
|
154
|
+
"401":
|
|
155
|
+
description: Unauthorized
|
|
156
|
+
"500":
|
|
157
|
+
description: Internal server error
|
|
158
|
+
put:
|
|
159
|
+
tags:
|
|
160
|
+
- OCR Invoice Job Group
|
|
161
|
+
summary: Update OCR invoice job group
|
|
162
|
+
description: Update an existing OCR invoice job group with new data
|
|
163
|
+
parameters:
|
|
164
|
+
- name: id
|
|
165
|
+
in: path
|
|
166
|
+
required: true
|
|
167
|
+
description: OCR invoice job group ID
|
|
168
|
+
schema:
|
|
169
|
+
type: string
|
|
170
|
+
requestBody:
|
|
171
|
+
required: true
|
|
172
|
+
content:
|
|
173
|
+
application/json:
|
|
174
|
+
schema:
|
|
175
|
+
$ref: "#/components/schemas/OcrInvoiceJobGroupInput"
|
|
176
|
+
responses:
|
|
177
|
+
"200":
|
|
178
|
+
description: OCR invoice job group 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/OcrInvoiceJobGroup"
|
|
189
|
+
"400":
|
|
190
|
+
description: Bad request
|
|
191
|
+
"404":
|
|
192
|
+
description: OCR invoice job group not found
|
|
193
|
+
"401":
|
|
194
|
+
description: Unauthorized
|
|
195
|
+
"500":
|
|
196
|
+
description: Internal server error
|
|
197
|
+
delete:
|
|
198
|
+
tags:
|
|
199
|
+
- OCR Invoice Job Group
|
|
200
|
+
summary: Delete OCR invoice job group
|
|
201
|
+
description: Delete an existing OCR invoice job group
|
|
202
|
+
parameters:
|
|
203
|
+
- name: id
|
|
204
|
+
in: path
|
|
205
|
+
required: true
|
|
206
|
+
description: OCR invoice job group ID
|
|
207
|
+
schema:
|
|
208
|
+
type: string
|
|
209
|
+
responses:
|
|
210
|
+
"200":
|
|
211
|
+
description: OCR invoice job group 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 group deleted successfully
|
|
223
|
+
"404":
|
|
224
|
+
description: OCR invoice job group not found
|
|
225
|
+
"401":
|
|
226
|
+
description: Unauthorized
|
|
227
|
+
"500":
|
|
228
|
+
description: Internal server error
|
|
229
|
+
|
|
230
|
+
/ocr-invoice-job-group/{id}/jobs:
|
|
231
|
+
get:
|
|
232
|
+
tags:
|
|
233
|
+
- OCR Invoice Job Group
|
|
234
|
+
summary: Get jobs in a group
|
|
235
|
+
description: Retrieve all OCR jobs belonging to a specific group
|
|
236
|
+
parameters:
|
|
237
|
+
- name: id
|
|
238
|
+
in: path
|
|
239
|
+
required: true
|
|
240
|
+
description: OCR invoice job group ID
|
|
241
|
+
schema:
|
|
242
|
+
type: string
|
|
243
|
+
responses:
|
|
244
|
+
"200":
|
|
245
|
+
description: OCR jobs in group retrieved successfully
|
|
246
|
+
content:
|
|
247
|
+
application/json:
|
|
248
|
+
schema:
|
|
249
|
+
type: object
|
|
250
|
+
properties:
|
|
251
|
+
success:
|
|
252
|
+
type: boolean
|
|
253
|
+
example: true
|
|
254
|
+
data:
|
|
255
|
+
type: array
|
|
256
|
+
items:
|
|
257
|
+
type: object
|
|
258
|
+
properties:
|
|
259
|
+
jobId:
|
|
260
|
+
type: string
|
|
261
|
+
status:
|
|
262
|
+
type: string
|
|
263
|
+
documentName:
|
|
264
|
+
type: string
|
|
265
|
+
"404":
|
|
266
|
+
description: OCR invoice job group not found
|
|
267
|
+
"401":
|
|
268
|
+
description: Unauthorized
|
|
269
|
+
"500":
|
|
270
|
+
description: Internal server error
|
|
271
|
+
|
|
272
|
+
components:
|
|
273
|
+
schemas:
|
|
274
|
+
OcrInvoiceJobGroup:
|
|
275
|
+
type: object
|
|
276
|
+
properties:
|
|
277
|
+
_id:
|
|
278
|
+
type: string
|
|
279
|
+
description: Unique identifier for the OCR invoice job group
|
|
280
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b3"
|
|
281
|
+
name:
|
|
282
|
+
type: string
|
|
283
|
+
description: Name of the job group
|
|
284
|
+
example: "Monthly Invoice Batch - January 2023"
|
|
285
|
+
description:
|
|
286
|
+
type: string
|
|
287
|
+
description: Description of the job group
|
|
288
|
+
batchNumber:
|
|
289
|
+
type: string
|
|
290
|
+
description: Batch number for tracking
|
|
291
|
+
example: "BATCH-2023-001"
|
|
292
|
+
template:
|
|
293
|
+
type: string
|
|
294
|
+
description: OCR template ID to use for this group
|
|
295
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b4"
|
|
296
|
+
totalJobs:
|
|
297
|
+
type: integer
|
|
298
|
+
minimum: 0
|
|
299
|
+
description: Total number of jobs in the group
|
|
300
|
+
example: 150
|
|
301
|
+
completedJobs:
|
|
302
|
+
type: integer
|
|
303
|
+
minimum: 0
|
|
304
|
+
description: Number of completed jobs
|
|
305
|
+
example: 120
|
|
306
|
+
pendingJobs:
|
|
307
|
+
type: integer
|
|
308
|
+
minimum: 0
|
|
309
|
+
description: Number of pending jobs
|
|
310
|
+
example: 20
|
|
311
|
+
failedJobs:
|
|
312
|
+
type: integer
|
|
313
|
+
minimum: 0
|
|
314
|
+
description: Number of failed jobs
|
|
315
|
+
example: 10
|
|
316
|
+
status:
|
|
317
|
+
type: string
|
|
318
|
+
enum: [created, queued, processing, completed, failed, cancelled]
|
|
319
|
+
default: created
|
|
320
|
+
description: Overall status of the job group
|
|
321
|
+
priority:
|
|
322
|
+
type: string
|
|
323
|
+
enum: [low, medium, high, urgent]
|
|
324
|
+
default: medium
|
|
325
|
+
description: Processing priority
|
|
326
|
+
startedAt:
|
|
327
|
+
type: string
|
|
328
|
+
format: date-time
|
|
329
|
+
description: When processing started
|
|
330
|
+
example: "2023-01-15T08:00:00Z"
|
|
331
|
+
completedAt:
|
|
332
|
+
type: string
|
|
333
|
+
format: date-time
|
|
334
|
+
description: When processing completed
|
|
335
|
+
example: "2023-01-15T10:30:00Z"
|
|
336
|
+
estimatedCompletionTime:
|
|
337
|
+
type: string
|
|
338
|
+
format: date-time
|
|
339
|
+
description: Estimated completion time
|
|
340
|
+
example: "2023-01-15T11:00:00Z"
|
|
341
|
+
processingSettings:
|
|
342
|
+
type: object
|
|
343
|
+
properties:
|
|
344
|
+
parallelJobs:
|
|
345
|
+
type: integer
|
|
346
|
+
minimum: 1
|
|
347
|
+
maximum: 10
|
|
348
|
+
default: 3
|
|
349
|
+
description: Number of parallel jobs to process
|
|
350
|
+
retryCount:
|
|
351
|
+
type: integer
|
|
352
|
+
minimum: 0
|
|
353
|
+
maximum: 5
|
|
354
|
+
default: 2
|
|
355
|
+
description: Number of retry attempts for failed jobs
|
|
356
|
+
timeoutMinutes:
|
|
357
|
+
type: integer
|
|
358
|
+
minimum: 5
|
|
359
|
+
maximum: 120
|
|
360
|
+
default: 30
|
|
361
|
+
description: Timeout for each job in minutes
|
|
362
|
+
statistics:
|
|
363
|
+
type: object
|
|
364
|
+
properties:
|
|
365
|
+
totalDocuments:
|
|
366
|
+
type: integer
|
|
367
|
+
description: Total number of documents processed
|
|
368
|
+
totalPages:
|
|
369
|
+
type: integer
|
|
370
|
+
description: Total number of pages processed
|
|
371
|
+
averageProcessingTime:
|
|
372
|
+
type: number
|
|
373
|
+
format: double
|
|
374
|
+
description: Average processing time per document in seconds
|
|
375
|
+
successRate:
|
|
376
|
+
type: number
|
|
377
|
+
format: double
|
|
378
|
+
minimum: 0
|
|
379
|
+
maximum: 1
|
|
380
|
+
description: Success rate as percentage
|
|
381
|
+
totalCost:
|
|
382
|
+
type: number
|
|
383
|
+
format: double
|
|
384
|
+
minimum: 0
|
|
385
|
+
description: Total processing cost
|
|
386
|
+
currency:
|
|
387
|
+
type: string
|
|
388
|
+
example: "USD"
|
|
389
|
+
notifications:
|
|
390
|
+
type: object
|
|
391
|
+
properties:
|
|
392
|
+
onCompletion:
|
|
393
|
+
type: boolean
|
|
394
|
+
default: false
|
|
395
|
+
description: Send notification on completion
|
|
396
|
+
onFailure:
|
|
397
|
+
type: boolean
|
|
398
|
+
default: true
|
|
399
|
+
description: Send notification on failure
|
|
400
|
+
recipients:
|
|
401
|
+
type: array
|
|
402
|
+
items:
|
|
403
|
+
type: string
|
|
404
|
+
format: email
|
|
405
|
+
description: Email recipients for notifications
|
|
406
|
+
createdBy:
|
|
407
|
+
type: string
|
|
408
|
+
description: User who created the job group
|
|
409
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b5"
|
|
410
|
+
assignedTo:
|
|
411
|
+
type: string
|
|
412
|
+
description: User assigned to manage this group
|
|
413
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b6"
|
|
414
|
+
tags:
|
|
415
|
+
type: array
|
|
416
|
+
items:
|
|
417
|
+
type: string
|
|
418
|
+
description: Tags for categorization
|
|
419
|
+
example: ["monthly", "invoices", "accounting"]
|
|
420
|
+
metadata:
|
|
421
|
+
type: object
|
|
422
|
+
additionalProperties: true
|
|
423
|
+
description: Additional metadata
|
|
424
|
+
createdAt:
|
|
425
|
+
type: string
|
|
426
|
+
format: date-time
|
|
427
|
+
description: Record creation timestamp
|
|
428
|
+
example: "2023-01-15T08:00:00Z"
|
|
429
|
+
updatedAt:
|
|
430
|
+
type: string
|
|
431
|
+
format: date-time
|
|
432
|
+
description: Record last update timestamp
|
|
433
|
+
example: "2023-01-15T10:30:00Z"
|
|
434
|
+
required:
|
|
435
|
+
- name
|
|
436
|
+
- template
|
|
437
|
+
|
|
438
|
+
OcrInvoiceJobGroupInput:
|
|
439
|
+
type: object
|
|
440
|
+
properties:
|
|
441
|
+
name:
|
|
442
|
+
type: string
|
|
443
|
+
description: Name of the job group
|
|
444
|
+
example: "Monthly Invoice Batch - January 2023"
|
|
445
|
+
description:
|
|
446
|
+
type: string
|
|
447
|
+
description: Description of the job group
|
|
448
|
+
batchNumber:
|
|
449
|
+
type: string
|
|
450
|
+
description: Batch number for tracking
|
|
451
|
+
example: "BATCH-2023-001"
|
|
452
|
+
template:
|
|
453
|
+
type: string
|
|
454
|
+
description: OCR template ID to use for this group
|
|
455
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b4"
|
|
456
|
+
priority:
|
|
457
|
+
type: string
|
|
458
|
+
enum: [low, medium, high, urgent]
|
|
459
|
+
default: medium
|
|
460
|
+
description: Processing priority
|
|
461
|
+
processingSettings:
|
|
462
|
+
type: object
|
|
463
|
+
properties:
|
|
464
|
+
parallelJobs:
|
|
465
|
+
type: integer
|
|
466
|
+
minimum: 1
|
|
467
|
+
maximum: 10
|
|
468
|
+
default: 3
|
|
469
|
+
description: Number of parallel jobs to process
|
|
470
|
+
retryCount:
|
|
471
|
+
type: integer
|
|
472
|
+
minimum: 0
|
|
473
|
+
maximum: 5
|
|
474
|
+
default: 2
|
|
475
|
+
description: Number of retry attempts for failed jobs
|
|
476
|
+
timeoutMinutes:
|
|
477
|
+
type: integer
|
|
478
|
+
minimum: 5
|
|
479
|
+
maximum: 120
|
|
480
|
+
default: 30
|
|
481
|
+
description: Timeout for each job in minutes
|
|
482
|
+
notifications:
|
|
483
|
+
type: object
|
|
484
|
+
properties:
|
|
485
|
+
onCompletion:
|
|
486
|
+
type: boolean
|
|
487
|
+
default: false
|
|
488
|
+
description: Send notification on completion
|
|
489
|
+
onFailure:
|
|
490
|
+
type: boolean
|
|
491
|
+
default: true
|
|
492
|
+
description: Send notification on failure
|
|
493
|
+
recipients:
|
|
494
|
+
type: array
|
|
495
|
+
items:
|
|
496
|
+
type: string
|
|
497
|
+
format: email
|
|
498
|
+
description: Email recipients for notifications
|
|
499
|
+
createdBy:
|
|
500
|
+
type: string
|
|
501
|
+
description: User who created the job group
|
|
502
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b5"
|
|
503
|
+
assignedTo:
|
|
504
|
+
type: string
|
|
505
|
+
description: User assigned to manage this group
|
|
506
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b6"
|
|
507
|
+
tags:
|
|
508
|
+
type: array
|
|
509
|
+
items:
|
|
510
|
+
type: string
|
|
511
|
+
description: Tags for categorization
|
|
512
|
+
example: ["monthly", "invoices", "accounting"]
|
|
513
|
+
metadata:
|
|
514
|
+
type: object
|
|
515
|
+
additionalProperties: true
|
|
516
|
+
description: Additional metadata
|
|
517
|
+
required:
|
|
518
|
+
- name
|
|
519
|
+
- template
|
|
520
|
+
|
|
521
|
+
securitySchemes:
|
|
522
|
+
ApiKeyAuth:
|
|
523
|
+
type: apiKey
|
|
524
|
+
in: header
|
|
525
|
+
name: api-key
|
|
526
|
+
|
|
527
|
+
security:
|
|
528
|
+
- ApiKeyAuth: []
|