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,722 @@
|
|
|
1
|
+
openapi: 3.0.0
|
|
2
|
+
info:
|
|
3
|
+
title: Asset Part Unit API
|
|
4
|
+
description: API for managing asset part units (individual instances of parts)
|
|
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: Asset Part Unit
|
|
18
|
+
description: Operations related to asset part unit management
|
|
19
|
+
|
|
20
|
+
paths:
|
|
21
|
+
/asset-part-unit:
|
|
22
|
+
get:
|
|
23
|
+
tags:
|
|
24
|
+
- Asset Part Unit
|
|
25
|
+
summary: Get all asset part units
|
|
26
|
+
description: Retrieve a list of all asset part units 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 asset part units 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/AssetPartUnit"
|
|
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
|
+
- Asset Part Unit
|
|
98
|
+
summary: Create a new asset part unit
|
|
99
|
+
description: Create a new asset part unit with the provided data
|
|
100
|
+
requestBody:
|
|
101
|
+
required: true
|
|
102
|
+
content:
|
|
103
|
+
application/json:
|
|
104
|
+
schema:
|
|
105
|
+
$ref: "#/components/schemas/AssetPartUnitInput"
|
|
106
|
+
responses:
|
|
107
|
+
"201":
|
|
108
|
+
description: Asset part unit 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/AssetPartUnit"
|
|
119
|
+
"400":
|
|
120
|
+
description: Bad request
|
|
121
|
+
"401":
|
|
122
|
+
description: Unauthorized
|
|
123
|
+
"500":
|
|
124
|
+
description: Internal server error
|
|
125
|
+
|
|
126
|
+
/asset-part-unit/{id}:
|
|
127
|
+
get:
|
|
128
|
+
tags:
|
|
129
|
+
- Asset Part Unit
|
|
130
|
+
summary: Get asset part unit by ID
|
|
131
|
+
description: Retrieve a specific asset part unit by its ID
|
|
132
|
+
parameters:
|
|
133
|
+
- name: id
|
|
134
|
+
in: path
|
|
135
|
+
required: true
|
|
136
|
+
description: Asset part unit ID
|
|
137
|
+
schema:
|
|
138
|
+
type: string
|
|
139
|
+
responses:
|
|
140
|
+
"200":
|
|
141
|
+
description: Asset part unit 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/AssetPartUnit"
|
|
152
|
+
"404":
|
|
153
|
+
description: Asset part unit not found
|
|
154
|
+
"401":
|
|
155
|
+
description: Unauthorized
|
|
156
|
+
"500":
|
|
157
|
+
description: Internal server error
|
|
158
|
+
put:
|
|
159
|
+
tags:
|
|
160
|
+
- Asset Part Unit
|
|
161
|
+
summary: Update asset part unit
|
|
162
|
+
description: Update an existing asset part unit with new data
|
|
163
|
+
parameters:
|
|
164
|
+
- name: id
|
|
165
|
+
in: path
|
|
166
|
+
required: true
|
|
167
|
+
description: Asset part unit ID
|
|
168
|
+
schema:
|
|
169
|
+
type: string
|
|
170
|
+
requestBody:
|
|
171
|
+
required: true
|
|
172
|
+
content:
|
|
173
|
+
application/json:
|
|
174
|
+
schema:
|
|
175
|
+
$ref: "#/components/schemas/AssetPartUnitInput"
|
|
176
|
+
responses:
|
|
177
|
+
"200":
|
|
178
|
+
description: Asset part unit 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/AssetPartUnit"
|
|
189
|
+
"400":
|
|
190
|
+
description: Bad request
|
|
191
|
+
"404":
|
|
192
|
+
description: Asset part unit not found
|
|
193
|
+
"401":
|
|
194
|
+
description: Unauthorized
|
|
195
|
+
"500":
|
|
196
|
+
description: Internal server error
|
|
197
|
+
delete:
|
|
198
|
+
tags:
|
|
199
|
+
- Asset Part Unit
|
|
200
|
+
summary: Delete asset part unit
|
|
201
|
+
description: Delete an existing asset part unit
|
|
202
|
+
parameters:
|
|
203
|
+
- name: id
|
|
204
|
+
in: path
|
|
205
|
+
required: true
|
|
206
|
+
description: Asset part unit ID
|
|
207
|
+
schema:
|
|
208
|
+
type: string
|
|
209
|
+
responses:
|
|
210
|
+
"200":
|
|
211
|
+
description: Asset part unit 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: Asset part unit deleted successfully
|
|
223
|
+
"404":
|
|
224
|
+
description: Asset part unit not found
|
|
225
|
+
"401":
|
|
226
|
+
description: Unauthorized
|
|
227
|
+
"500":
|
|
228
|
+
description: Internal server error
|
|
229
|
+
|
|
230
|
+
components:
|
|
231
|
+
schemas:
|
|
232
|
+
AssetPartUnit:
|
|
233
|
+
type: object
|
|
234
|
+
properties:
|
|
235
|
+
_id:
|
|
236
|
+
type: string
|
|
237
|
+
description: Unique identifier for the asset part unit
|
|
238
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b3"
|
|
239
|
+
creator:
|
|
240
|
+
type: object
|
|
241
|
+
description: User who created the record
|
|
242
|
+
properties:
|
|
243
|
+
_id:
|
|
244
|
+
type: string
|
|
245
|
+
type:
|
|
246
|
+
type: string
|
|
247
|
+
enum: [admin, rep]
|
|
248
|
+
name:
|
|
249
|
+
type: string
|
|
250
|
+
editor:
|
|
251
|
+
type: object
|
|
252
|
+
description: User who last edited the record
|
|
253
|
+
properties:
|
|
254
|
+
_id:
|
|
255
|
+
type: string
|
|
256
|
+
type:
|
|
257
|
+
type: string
|
|
258
|
+
enum: [admin, rep]
|
|
259
|
+
name:
|
|
260
|
+
type: string
|
|
261
|
+
directional_status:
|
|
262
|
+
type: string
|
|
263
|
+
enum: [received, handed, picked, returned, stored]
|
|
264
|
+
description: Current directional status of the asset part unit
|
|
265
|
+
asset_part_receival:
|
|
266
|
+
type: string
|
|
267
|
+
description: Asset part receival ID
|
|
268
|
+
asset_part_return:
|
|
269
|
+
type: string
|
|
270
|
+
description: Asset part return ID (if applicable)
|
|
271
|
+
asset_part_index:
|
|
272
|
+
type: integer
|
|
273
|
+
description: Index of the asset part in the receival
|
|
274
|
+
splitted_from:
|
|
275
|
+
type: string
|
|
276
|
+
description: ID of the unit this was split from (if applicable)
|
|
277
|
+
client:
|
|
278
|
+
type: string
|
|
279
|
+
description: Client ID
|
|
280
|
+
client_name:
|
|
281
|
+
type: string
|
|
282
|
+
description: Name of the client
|
|
283
|
+
warehouse:
|
|
284
|
+
type: string
|
|
285
|
+
description: Warehouse ID
|
|
286
|
+
warehouse_name:
|
|
287
|
+
type: string
|
|
288
|
+
description: Name of the warehouse
|
|
289
|
+
receival_warehouse:
|
|
290
|
+
type: string
|
|
291
|
+
description: Receival warehouse ID
|
|
292
|
+
receival_warehouse_name:
|
|
293
|
+
type: string
|
|
294
|
+
description: Name of the receival warehouse
|
|
295
|
+
asset_part:
|
|
296
|
+
type: string
|
|
297
|
+
description: Asset part ID this unit belongs to
|
|
298
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b4"
|
|
299
|
+
asset_part_name:
|
|
300
|
+
type: string
|
|
301
|
+
description: Name of the asset part
|
|
302
|
+
qty:
|
|
303
|
+
type: number
|
|
304
|
+
description: Quantity
|
|
305
|
+
custom_status:
|
|
306
|
+
type: string
|
|
307
|
+
description: Custom status ID
|
|
308
|
+
receival_comment:
|
|
309
|
+
type: string
|
|
310
|
+
description: Comment from receival
|
|
311
|
+
comment:
|
|
312
|
+
type: string
|
|
313
|
+
description: Additional comment
|
|
314
|
+
media:
|
|
315
|
+
type: array
|
|
316
|
+
items:
|
|
317
|
+
type: string
|
|
318
|
+
description: Array of media IDs
|
|
319
|
+
teams:
|
|
320
|
+
type: array
|
|
321
|
+
items:
|
|
322
|
+
type: string
|
|
323
|
+
description: Array of team IDs
|
|
324
|
+
integration_meta:
|
|
325
|
+
type: object
|
|
326
|
+
additionalProperties: true
|
|
327
|
+
description: Integration metadata
|
|
328
|
+
quotation_is_recommended:
|
|
329
|
+
type: boolean
|
|
330
|
+
description: Whether quotation is recommended
|
|
331
|
+
quotation_internal_approval_status:
|
|
332
|
+
type: string
|
|
333
|
+
enum: [pending, approved, completed, rejected]
|
|
334
|
+
description: Internal approval status for quotation
|
|
335
|
+
quotation_detail:
|
|
336
|
+
type: string
|
|
337
|
+
description: Quotation details
|
|
338
|
+
quotation_client_approval_status:
|
|
339
|
+
type: string
|
|
340
|
+
enum: [pending, approved, collected, rejected]
|
|
341
|
+
description: Client approval status for quotation
|
|
342
|
+
company_namespace:
|
|
343
|
+
type: array
|
|
344
|
+
items:
|
|
345
|
+
type: string
|
|
346
|
+
description: Company namespace
|
|
347
|
+
serialNumber:
|
|
348
|
+
type: string
|
|
349
|
+
description: Serial number of the part unit
|
|
350
|
+
example: "SN-EP001-2023-001"
|
|
351
|
+
batchNumber:
|
|
352
|
+
type: string
|
|
353
|
+
description: Batch number
|
|
354
|
+
example: "BATCH-2023-001"
|
|
355
|
+
lotNumber:
|
|
356
|
+
type: string
|
|
357
|
+
description: Lot number
|
|
358
|
+
manufactureDate:
|
|
359
|
+
type: string
|
|
360
|
+
format: date
|
|
361
|
+
description: Manufacturing date
|
|
362
|
+
example: "2023-01-15"
|
|
363
|
+
expiryDate:
|
|
364
|
+
type: string
|
|
365
|
+
format: date
|
|
366
|
+
description: Expiry date (if applicable)
|
|
367
|
+
receiptDate:
|
|
368
|
+
type: string
|
|
369
|
+
format: date-time
|
|
370
|
+
description: Date when the unit was received
|
|
371
|
+
example: "2023-01-20T10:00:00Z"
|
|
372
|
+
status:
|
|
373
|
+
type: string
|
|
374
|
+
enum: [available, reserved, in-use, maintenance, disposed, returned]
|
|
375
|
+
default: available
|
|
376
|
+
description: Current status of the part unit
|
|
377
|
+
condition:
|
|
378
|
+
type: string
|
|
379
|
+
enum: [new, good, fair, poor, damaged]
|
|
380
|
+
default: new
|
|
381
|
+
description: Physical condition of the part unit
|
|
382
|
+
location:
|
|
383
|
+
type: object
|
|
384
|
+
properties:
|
|
385
|
+
warehouse:
|
|
386
|
+
type: string
|
|
387
|
+
description: Warehouse ID
|
|
388
|
+
section:
|
|
389
|
+
type: string
|
|
390
|
+
description: Section within warehouse
|
|
391
|
+
shelf:
|
|
392
|
+
type: string
|
|
393
|
+
description: Shelf identifier
|
|
394
|
+
position:
|
|
395
|
+
type: string
|
|
396
|
+
description: Position on shelf
|
|
397
|
+
assignedTo:
|
|
398
|
+
type: object
|
|
399
|
+
properties:
|
|
400
|
+
asset:
|
|
401
|
+
type: string
|
|
402
|
+
description: Asset ID if installed
|
|
403
|
+
workOrder:
|
|
404
|
+
type: string
|
|
405
|
+
description: Work order ID if assigned
|
|
406
|
+
technician:
|
|
407
|
+
type: string
|
|
408
|
+
description: Technician ID if assigned
|
|
409
|
+
date:
|
|
410
|
+
type: string
|
|
411
|
+
format: date-time
|
|
412
|
+
description: Assignment date
|
|
413
|
+
installationDate:
|
|
414
|
+
type: string
|
|
415
|
+
format: date-time
|
|
416
|
+
description: Date when the unit was installed
|
|
417
|
+
lastMaintenanceDate:
|
|
418
|
+
type: string
|
|
419
|
+
format: date-time
|
|
420
|
+
description: Last maintenance date
|
|
421
|
+
nextMaintenanceDate:
|
|
422
|
+
type: string
|
|
423
|
+
format: date-time
|
|
424
|
+
description: Next scheduled maintenance date
|
|
425
|
+
warrantyExpiry:
|
|
426
|
+
type: string
|
|
427
|
+
format: date
|
|
428
|
+
description: Warranty expiry date
|
|
429
|
+
cost:
|
|
430
|
+
type: number
|
|
431
|
+
format: double
|
|
432
|
+
minimum: 0
|
|
433
|
+
description: Cost of this specific unit
|
|
434
|
+
supplier:
|
|
435
|
+
type: string
|
|
436
|
+
description: Supplier ID
|
|
437
|
+
purchaseOrder:
|
|
438
|
+
type: string
|
|
439
|
+
description: Purchase order reference
|
|
440
|
+
invoice:
|
|
441
|
+
type: string
|
|
442
|
+
description: Invoice reference
|
|
443
|
+
notes:
|
|
444
|
+
type: string
|
|
445
|
+
description: Additional notes
|
|
446
|
+
maintenanceHistory:
|
|
447
|
+
type: array
|
|
448
|
+
items:
|
|
449
|
+
type: object
|
|
450
|
+
properties:
|
|
451
|
+
date:
|
|
452
|
+
type: string
|
|
453
|
+
format: date-time
|
|
454
|
+
type:
|
|
455
|
+
type: string
|
|
456
|
+
enum: [inspection, repair, replacement, upgrade]
|
|
457
|
+
description:
|
|
458
|
+
type: string
|
|
459
|
+
technician:
|
|
460
|
+
type: string
|
|
461
|
+
cost:
|
|
462
|
+
type: number
|
|
463
|
+
format: double
|
|
464
|
+
customFields:
|
|
465
|
+
type: object
|
|
466
|
+
additionalProperties: true
|
|
467
|
+
description: Custom fields
|
|
468
|
+
metadata:
|
|
469
|
+
type: object
|
|
470
|
+
additionalProperties: true
|
|
471
|
+
description: Additional metadata
|
|
472
|
+
createdAt:
|
|
473
|
+
type: string
|
|
474
|
+
format: date-time
|
|
475
|
+
description: Record creation timestamp
|
|
476
|
+
example: "2023-01-15T08:00:00Z"
|
|
477
|
+
updatedAt:
|
|
478
|
+
type: string
|
|
479
|
+
format: date-time
|
|
480
|
+
description: Record last update timestamp
|
|
481
|
+
example: "2023-01-15T10:30:00Z"
|
|
482
|
+
required:
|
|
483
|
+
- directional_status
|
|
484
|
+
- asset_part_receival
|
|
485
|
+
- asset_part_index
|
|
486
|
+
- client
|
|
487
|
+
- client_name
|
|
488
|
+
- warehouse
|
|
489
|
+
- warehouse_name
|
|
490
|
+
- receival_warehouse
|
|
491
|
+
- receival_warehouse_name
|
|
492
|
+
- asset_part
|
|
493
|
+
- asset_part_name
|
|
494
|
+
- qty
|
|
495
|
+
- quotation_is_recommended
|
|
496
|
+
- quotation_internal_approval_status
|
|
497
|
+
- company_namespace
|
|
498
|
+
|
|
499
|
+
AssetPartUnitInput:
|
|
500
|
+
type: object
|
|
501
|
+
properties:
|
|
502
|
+
creator:
|
|
503
|
+
type: object
|
|
504
|
+
description: User who created the record
|
|
505
|
+
properties:
|
|
506
|
+
_id:
|
|
507
|
+
type: string
|
|
508
|
+
type:
|
|
509
|
+
type: string
|
|
510
|
+
enum: [admin, rep]
|
|
511
|
+
name:
|
|
512
|
+
type: string
|
|
513
|
+
directional_status:
|
|
514
|
+
type: string
|
|
515
|
+
enum: [received, handed, picked, returned, stored]
|
|
516
|
+
description: Current directional status of the asset part unit
|
|
517
|
+
asset_part_receival:
|
|
518
|
+
type: string
|
|
519
|
+
description: Asset part receival ID
|
|
520
|
+
asset_part_index:
|
|
521
|
+
type: integer
|
|
522
|
+
description: Index of the asset part in the receival
|
|
523
|
+
splitted_from:
|
|
524
|
+
type: string
|
|
525
|
+
description: ID of the unit this was split from (if applicable)
|
|
526
|
+
client:
|
|
527
|
+
type: string
|
|
528
|
+
description: Client ID
|
|
529
|
+
client_name:
|
|
530
|
+
type: string
|
|
531
|
+
description: Name of the client
|
|
532
|
+
warehouse:
|
|
533
|
+
type: string
|
|
534
|
+
description: Warehouse ID
|
|
535
|
+
warehouse_name:
|
|
536
|
+
type: string
|
|
537
|
+
description: Name of the warehouse
|
|
538
|
+
receival_warehouse:
|
|
539
|
+
type: string
|
|
540
|
+
description: Receival warehouse ID
|
|
541
|
+
receival_warehouse_name:
|
|
542
|
+
type: string
|
|
543
|
+
description: Name of the receival warehouse
|
|
544
|
+
asset_part:
|
|
545
|
+
type: string
|
|
546
|
+
description: Asset part ID this unit belongs to
|
|
547
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b4"
|
|
548
|
+
asset_part_name:
|
|
549
|
+
type: string
|
|
550
|
+
description: Name of the asset part
|
|
551
|
+
qty:
|
|
552
|
+
type: number
|
|
553
|
+
description: Quantity
|
|
554
|
+
custom_status:
|
|
555
|
+
type: string
|
|
556
|
+
description: Custom status ID
|
|
557
|
+
receival_comment:
|
|
558
|
+
type: string
|
|
559
|
+
description: Comment from receival
|
|
560
|
+
comment:
|
|
561
|
+
type: string
|
|
562
|
+
description: Additional comment
|
|
563
|
+
media:
|
|
564
|
+
type: array
|
|
565
|
+
items:
|
|
566
|
+
type: string
|
|
567
|
+
description: Array of media IDs
|
|
568
|
+
teams:
|
|
569
|
+
type: array
|
|
570
|
+
items:
|
|
571
|
+
type: string
|
|
572
|
+
description: Array of team IDs
|
|
573
|
+
integration_meta:
|
|
574
|
+
type: object
|
|
575
|
+
additionalProperties: true
|
|
576
|
+
description: Integration metadata
|
|
577
|
+
quotation_is_recommended:
|
|
578
|
+
type: boolean
|
|
579
|
+
description: Whether quotation is recommended
|
|
580
|
+
quotation_internal_approval_status:
|
|
581
|
+
type: string
|
|
582
|
+
enum: [pending, approved, completed, rejected]
|
|
583
|
+
description: Internal approval status for quotation
|
|
584
|
+
quotation_detail:
|
|
585
|
+
type: string
|
|
586
|
+
description: Quotation details
|
|
587
|
+
quotation_client_approval_status:
|
|
588
|
+
type: string
|
|
589
|
+
enum: [pending, approved, collected, rejected]
|
|
590
|
+
description: Client approval status for quotation
|
|
591
|
+
company_namespace:
|
|
592
|
+
type: array
|
|
593
|
+
items:
|
|
594
|
+
type: string
|
|
595
|
+
description: Company namespace
|
|
596
|
+
serialNumber:
|
|
597
|
+
type: string
|
|
598
|
+
description: Serial number of the part unit
|
|
599
|
+
example: "SN-EP001-2023-001"
|
|
600
|
+
batchNumber:
|
|
601
|
+
type: string
|
|
602
|
+
description: Batch number
|
|
603
|
+
example: "BATCH-2023-001"
|
|
604
|
+
lotNumber:
|
|
605
|
+
type: string
|
|
606
|
+
description: Lot number
|
|
607
|
+
manufactureDate:
|
|
608
|
+
type: string
|
|
609
|
+
format: date
|
|
610
|
+
description: Manufacturing date
|
|
611
|
+
example: "2023-01-15"
|
|
612
|
+
expiryDate:
|
|
613
|
+
type: string
|
|
614
|
+
format: date
|
|
615
|
+
description: Expiry date (if applicable)
|
|
616
|
+
receiptDate:
|
|
617
|
+
type: string
|
|
618
|
+
format: date-time
|
|
619
|
+
description: Date when the unit was received
|
|
620
|
+
example: "2023-01-20T10:00:00Z"
|
|
621
|
+
status:
|
|
622
|
+
type: string
|
|
623
|
+
enum: [available, reserved, in-use, maintenance, disposed, returned]
|
|
624
|
+
default: available
|
|
625
|
+
description: Current status of the part unit
|
|
626
|
+
condition:
|
|
627
|
+
type: string
|
|
628
|
+
enum: [new, good, fair, poor, damaged]
|
|
629
|
+
default: new
|
|
630
|
+
description: Physical condition of the part unit
|
|
631
|
+
location:
|
|
632
|
+
type: object
|
|
633
|
+
properties:
|
|
634
|
+
warehouse:
|
|
635
|
+
type: string
|
|
636
|
+
description: Warehouse ID
|
|
637
|
+
section:
|
|
638
|
+
type: string
|
|
639
|
+
description: Section within warehouse
|
|
640
|
+
shelf:
|
|
641
|
+
type: string
|
|
642
|
+
description: Shelf identifier
|
|
643
|
+
position:
|
|
644
|
+
type: string
|
|
645
|
+
description: Position on shelf
|
|
646
|
+
assignedTo:
|
|
647
|
+
type: object
|
|
648
|
+
properties:
|
|
649
|
+
asset:
|
|
650
|
+
type: string
|
|
651
|
+
description: Asset ID if installed
|
|
652
|
+
workOrder:
|
|
653
|
+
type: string
|
|
654
|
+
description: Work order ID if assigned
|
|
655
|
+
technician:
|
|
656
|
+
type: string
|
|
657
|
+
description: Technician ID if assigned
|
|
658
|
+
date:
|
|
659
|
+
type: string
|
|
660
|
+
format: date-time
|
|
661
|
+
description: Assignment date
|
|
662
|
+
installationDate:
|
|
663
|
+
type: string
|
|
664
|
+
format: date-time
|
|
665
|
+
description: Date when the unit was installed
|
|
666
|
+
lastMaintenanceDate:
|
|
667
|
+
type: string
|
|
668
|
+
format: date-time
|
|
669
|
+
description: Last maintenance date
|
|
670
|
+
nextMaintenanceDate:
|
|
671
|
+
type: string
|
|
672
|
+
format: date-time
|
|
673
|
+
description: Next scheduled maintenance date
|
|
674
|
+
warrantyExpiry:
|
|
675
|
+
type: string
|
|
676
|
+
format: date
|
|
677
|
+
description: Warranty expiry date
|
|
678
|
+
cost:
|
|
679
|
+
type: number
|
|
680
|
+
format: double
|
|
681
|
+
minimum: 0
|
|
682
|
+
description: Cost of this specific unit
|
|
683
|
+
supplier:
|
|
684
|
+
type: string
|
|
685
|
+
description: Supplier ID
|
|
686
|
+
purchaseOrder:
|
|
687
|
+
type: string
|
|
688
|
+
description: Purchase order reference
|
|
689
|
+
invoice:
|
|
690
|
+
type: string
|
|
691
|
+
description: Invoice reference
|
|
692
|
+
notes:
|
|
693
|
+
type: string
|
|
694
|
+
description: Additional notes
|
|
695
|
+
customFields:
|
|
696
|
+
type: object
|
|
697
|
+
additionalProperties: true
|
|
698
|
+
description: Custom fields
|
|
699
|
+
metadata:
|
|
700
|
+
type: object
|
|
701
|
+
additionalProperties: true
|
|
702
|
+
description: Additional metadata
|
|
703
|
+
required:
|
|
704
|
+
- directional_status
|
|
705
|
+
- asset_part_receival
|
|
706
|
+
- asset_part_index
|
|
707
|
+
- client
|
|
708
|
+
- client_name
|
|
709
|
+
- warehouse
|
|
710
|
+
- receival_warehouse
|
|
711
|
+
- asset_part
|
|
712
|
+
- asset_part_name
|
|
713
|
+
- qty
|
|
714
|
+
|
|
715
|
+
securitySchemes:
|
|
716
|
+
ApiKeyAuth:
|
|
717
|
+
type: apiKey
|
|
718
|
+
in: header
|
|
719
|
+
name: api-key
|
|
720
|
+
|
|
721
|
+
security:
|
|
722
|
+
- ApiKeyAuth: []
|