repzo 1.0.154 → 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.
Files changed (96) hide show
  1. package/changelog.md +1 -0
  2. package/lib/index.d.ts +18 -0
  3. package/lib/index.js +38 -0
  4. package/lib/types/index.d.ts +462 -198
  5. package/lib/types/index.js +2 -1
  6. package/package.json +2 -2
  7. package/src/index.ts +4890 -0
  8. package/src/oas/activity-ai-sales-order.yaml +623 -0
  9. package/src/oas/activity-feedback-v2.yaml +753 -0
  10. package/src/oas/activity-feedback.yaml +645 -0
  11. package/src/oas/activity-storecheck.yaml +379 -0
  12. package/src/oas/adjust-account.yaml +241 -0
  13. package/src/oas/adjust-inventory.yaml +133 -0
  14. package/src/oas/approval-request.yaml +211 -0
  15. package/src/oas/approvals.yaml +176 -0
  16. package/src/oas/asset-part-receival.yaml +591 -0
  17. package/src/oas/asset-part-transfer.yaml +618 -0
  18. package/src/oas/asset-part-type.yaml +383 -0
  19. package/src/oas/asset-part-unit.yaml +722 -0
  20. package/src/oas/asset-part.yaml +485 -0
  21. package/src/oas/asset-type.yaml +180 -0
  22. package/src/oas/asset-unit.yaml +705 -0
  23. package/src/oas/asset.yaml +204 -0
  24. package/src/oas/banks.yaml +168 -0
  25. package/src/oas/bankslists.yaml +168 -0
  26. package/src/oas/brand.yaml +246 -0
  27. package/src/oas/category.yaml +285 -0
  28. package/src/oas/checks.yaml +247 -0
  29. package/src/oas/client-channel.yaml +480 -0
  30. package/src/oas/client-contact.yaml +665 -0
  31. package/src/oas/client-location.yaml +687 -0
  32. package/src/oas/client.yaml +669 -0
  33. package/src/oas/contract-installment.yaml +740 -0
  34. package/src/oas/contract.yaml +210 -0
  35. package/src/oas/custom-list-item.yaml +168 -0
  36. package/src/oas/custom-list.yaml +168 -0
  37. package/src/oas/custom-status.yaml +168 -0
  38. package/src/oas/day.yaml +246 -0
  39. package/src/oas/feedback-options.yaml +802 -0
  40. package/src/oas/fullinvoices.yaml +584 -0
  41. package/src/oas/integration-action-log.yaml +361 -0
  42. package/src/oas/integration-app.yaml +303 -0
  43. package/src/oas/integration-command-log.yaml +381 -0
  44. package/src/oas/inventory-adjustment-reason.yaml +165 -0
  45. package/src/oas/inventory.yaml +64 -0
  46. package/src/oas/mail-unsubscribe.yaml +463 -0
  47. package/src/oas/measureunit-family.yaml +354 -0
  48. package/src/oas/measureunit.yaml +366 -0
  49. package/src/oas/media-storage.yaml +329 -0
  50. package/src/oas/media.yaml +472 -0
  51. package/src/oas/msl-products.yaml +180 -0
  52. package/src/oas/msl.yaml +186 -0
  53. package/src/oas/ocr-invoice-job-group.yaml +528 -0
  54. package/src/oas/ocr-invoice-job-page.yaml +602 -0
  55. package/src/oas/ocr-invoice-job-template.yaml +628 -0
  56. package/src/oas/ocr-invoice-job.yaml +603 -0
  57. package/src/oas/patch-action.yaml +421 -0
  58. package/src/oas/payment-terms.yaml +235 -0
  59. package/src/oas/payments.yaml +536 -0
  60. package/src/oas/pricelist-item.yaml +369 -0
  61. package/src/oas/pricelist.yaml +287 -0
  62. package/src/oas/product-group.yaml +278 -0
  63. package/src/oas/product-modifiers-group.yaml +524 -0
  64. package/src/oas/product.yaml +578 -0
  65. package/src/oas/proforma.yaml +180 -0
  66. package/src/oas/quick-convert-to-pdf.yaml +95 -0
  67. package/src/oas/receiving-material.yaml +336 -0
  68. package/src/oas/refund.yaml +281 -0
  69. package/src/oas/rep-balance-summary.yaml +135 -0
  70. package/src/oas/rep.yaml +1824 -0
  71. package/src/oas/return-asset-part-unit.yaml +573 -0
  72. package/src/oas/return-reason.yaml +286 -0
  73. package/src/oas/route.yaml +337 -0
  74. package/src/oas/safe-invoice-serial-counter.yaml +525 -0
  75. package/src/oas/settings.yaml +123 -0
  76. package/src/oas/settlement.yaml +505 -0
  77. package/src/oas/speciality.yaml +447 -0
  78. package/src/oas/store-asset-part-unit.yaml +658 -0
  79. package/src/oas/storecheck-template.yaml +415 -0
  80. package/src/oas/subcategory.yaml +355 -0
  81. package/src/oas/supplier.yaml +183 -0
  82. package/src/oas/svix-integration.yaml +335 -0
  83. package/src/oas/tag.yaml +272 -0
  84. package/src/oas/tax.yaml +303 -0
  85. package/src/oas/team.yaml +268 -0
  86. package/src/oas/transfer.yaml +347 -0
  87. package/src/oas/update-integration-meta.yaml +387 -0
  88. package/src/oas/variant.yaml +569 -0
  89. package/src/oas/visit.yaml +174 -0
  90. package/src/oas/warehouse.yaml +311 -0
  91. package/src/oas/workorder-category.yaml +751 -0
  92. package/src/oas/workorder-portal-link.yaml +811 -0
  93. package/src/oas/workorder-portal.yaml +650 -0
  94. package/src/oas/workorder-request.yaml +193 -0
  95. package/src/oas/workorder.yaml +204 -0
  96. package/src/types/index.ts +1175 -223
@@ -0,0 +1,705 @@
1
+ openapi: 3.0.0
2
+ info:
3
+ title: Asset Unit API
4
+ description: API for managing asset units
5
+ version: 1.0.0
6
+ servers:
7
+ - url: https://api.repzo.me/v1
8
+ description: Production server
9
+ security:
10
+ - ApiKeyAuth: []
11
+ tags:
12
+ - name: Asset Unit
13
+ description: Asset unit management operations
14
+ paths:
15
+ /asset-unit:
16
+ get:
17
+ tags:
18
+ - Asset Unit
19
+ summary: Get all asset units
20
+ description: Retrieve a list of all asset units with optional filtering and pagination
21
+ parameters:
22
+ - name: page
23
+ in: query
24
+ description: Page number for pagination
25
+ required: false
26
+ schema:
27
+ type: integer
28
+ minimum: 1
29
+ default: 1
30
+ - name: per_page
31
+ in: query
32
+ description: Number of items per page
33
+ required: false
34
+ schema:
35
+ type: integer
36
+ minimum: 1
37
+ maximum: 100
38
+ default: 25
39
+ - name: sort
40
+ in: query
41
+ description: Sort field
42
+ required: false
43
+ schema:
44
+ type: string
45
+ - name: company_namespace
46
+ in: query
47
+ description: Company namespace for filtering
48
+ required: false
49
+ schema:
50
+ type: array
51
+ items:
52
+ type: string
53
+ - name: asset
54
+ in: query
55
+ description: Filter by asset ID
56
+ required: false
57
+ schema:
58
+ type: string
59
+ - name: status
60
+ in: query
61
+ description: Filter by status
62
+ required: false
63
+ schema:
64
+ type: string
65
+ enum: ["active", "maintenance", "retired", "disposed"]
66
+ - name: location
67
+ in: query
68
+ description: Filter by location
69
+ required: false
70
+ schema:
71
+ type: string
72
+ - name: _id
73
+ in: query
74
+ description: Filter by ID
75
+ required: false
76
+ schema:
77
+ type: array
78
+ items:
79
+ type: string
80
+ responses:
81
+ "200":
82
+ description: Successful response
83
+ content:
84
+ application/json:
85
+ schema:
86
+ type: object
87
+ properties:
88
+ success:
89
+ type: boolean
90
+ example: true
91
+ data:
92
+ type: array
93
+ items:
94
+ $ref: "#/components/schemas/AssetUnit"
95
+ paging:
96
+ $ref: "#/components/schemas/PagingInfo"
97
+ "400":
98
+ $ref: "#/components/responses/BadRequest"
99
+ "401":
100
+ $ref: "#/components/responses/Unauthorized"
101
+ "403":
102
+ $ref: "#/components/responses/Forbidden"
103
+ "500":
104
+ $ref: "#/components/responses/InternalServerError"
105
+ post:
106
+ tags:
107
+ - Asset Unit
108
+ summary: Create a new asset unit
109
+ description: Create a new asset unit entry
110
+ requestBody:
111
+ required: true
112
+ content:
113
+ application/json:
114
+ schema:
115
+ $ref: "#/components/schemas/CreateAssetUnitRequest"
116
+ responses:
117
+ "201":
118
+ description: Asset unit created successfully
119
+ content:
120
+ application/json:
121
+ schema:
122
+ type: object
123
+ properties:
124
+ success:
125
+ type: boolean
126
+ example: true
127
+ data:
128
+ $ref: "#/components/schemas/AssetUnit"
129
+ "400":
130
+ $ref: "#/components/responses/BadRequest"
131
+ "401":
132
+ $ref: "#/components/responses/Unauthorized"
133
+ "403":
134
+ $ref: "#/components/responses/Forbidden"
135
+ "422":
136
+ $ref: "#/components/responses/ValidationError"
137
+ "500":
138
+ $ref: "#/components/responses/InternalServerError"
139
+ /asset-unit/{id}:
140
+ get:
141
+ tags:
142
+ - Asset Unit
143
+ summary: Get asset unit by ID
144
+ description: Retrieve a specific asset unit by its ID
145
+ parameters:
146
+ - name: id
147
+ in: path
148
+ required: true
149
+ description: Asset unit ID
150
+ schema:
151
+ type: string
152
+ responses:
153
+ "200":
154
+ description: Successful response
155
+ content:
156
+ application/json:
157
+ schema:
158
+ type: object
159
+ properties:
160
+ success:
161
+ type: boolean
162
+ example: true
163
+ data:
164
+ $ref: "#/components/schemas/AssetUnit"
165
+ "400":
166
+ $ref: "#/components/responses/BadRequest"
167
+ "401":
168
+ $ref: "#/components/responses/Unauthorized"
169
+ "403":
170
+ $ref: "#/components/responses/Forbidden"
171
+ "404":
172
+ $ref: "#/components/responses/NotFound"
173
+ "500":
174
+ $ref: "#/components/responses/InternalServerError"
175
+ patch:
176
+ tags:
177
+ - Asset Unit
178
+ summary: Update asset unit
179
+ description: Update an existing asset unit
180
+ parameters:
181
+ - name: id
182
+ in: path
183
+ required: true
184
+ description: Asset unit ID
185
+ schema:
186
+ type: string
187
+ requestBody:
188
+ required: true
189
+ content:
190
+ application/json:
191
+ schema:
192
+ $ref: "#/components/schemas/UpdateAssetUnitRequest"
193
+ responses:
194
+ "200":
195
+ description: Asset unit updated successfully
196
+ content:
197
+ application/json:
198
+ schema:
199
+ type: object
200
+ properties:
201
+ success:
202
+ type: boolean
203
+ example: true
204
+ data:
205
+ $ref: "#/components/schemas/AssetUnit"
206
+ "400":
207
+ $ref: "#/components/responses/BadRequest"
208
+ "401":
209
+ $ref: "#/components/responses/Unauthorized"
210
+ "403":
211
+ $ref: "#/components/responses/Forbidden"
212
+ "404":
213
+ $ref: "#/components/responses/NotFound"
214
+ "422":
215
+ $ref: "#/components/responses/ValidationError"
216
+ "500":
217
+ $ref: "#/components/responses/InternalServerError"
218
+ delete:
219
+ tags:
220
+ - Asset Unit
221
+ summary: Delete asset unit
222
+ description: Delete an asset unit by ID
223
+ parameters:
224
+ - name: id
225
+ in: path
226
+ required: true
227
+ description: Asset unit ID
228
+ schema:
229
+ type: string
230
+ responses:
231
+ "200":
232
+ description: Asset unit deleted successfully
233
+ content:
234
+ application/json:
235
+ schema:
236
+ type: object
237
+ properties:
238
+ success:
239
+ type: boolean
240
+ example: true
241
+ "400":
242
+ $ref: "#/components/responses/BadRequest"
243
+ "401":
244
+ $ref: "#/components/responses/Unauthorized"
245
+ "403":
246
+ $ref: "#/components/responses/Forbidden"
247
+ "404":
248
+ $ref: "#/components/responses/NotFound"
249
+ "500":
250
+ $ref: "#/components/responses/InternalServerError"
251
+ /asset-unit/remove:
252
+ post:
253
+ tags:
254
+ - Asset Unit
255
+ summary: Bulk delete asset units
256
+ description: Delete multiple asset units by their IDs
257
+ requestBody:
258
+ required: true
259
+ content:
260
+ application/json:
261
+ schema:
262
+ type: object
263
+ properties:
264
+ ids:
265
+ type: array
266
+ items:
267
+ type: string
268
+ description: Array of asset unit IDs to delete
269
+ required:
270
+ - ids
271
+ responses:
272
+ "200":
273
+ description: Asset units deleted successfully
274
+ content:
275
+ application/json:
276
+ schema:
277
+ type: object
278
+ properties:
279
+ success:
280
+ type: boolean
281
+ example: true
282
+ "400":
283
+ $ref: "#/components/responses/BadRequest"
284
+ "401":
285
+ $ref: "#/components/responses/Unauthorized"
286
+ "403":
287
+ $ref: "#/components/responses/Forbidden"
288
+ "500":
289
+ $ref: "#/components/responses/InternalServerError"
290
+ /asset-unit/{id}/status:
291
+ patch:
292
+ tags:
293
+ - Asset Unit
294
+ summary: Update asset unit status
295
+ description: Update the status of an asset unit
296
+ parameters:
297
+ - name: id
298
+ in: path
299
+ required: true
300
+ description: Asset unit ID
301
+ schema:
302
+ type: string
303
+ requestBody:
304
+ required: true
305
+ content:
306
+ application/json:
307
+ schema:
308
+ type: object
309
+ properties:
310
+ status:
311
+ type: string
312
+ enum: ["active", "maintenance", "retired", "disposed"]
313
+ description: New status for the asset unit
314
+ reason:
315
+ type: string
316
+ description: Reason for status change
317
+ notes:
318
+ type: string
319
+ description: Additional notes
320
+ required:
321
+ - status
322
+ responses:
323
+ "200":
324
+ description: Asset unit status updated successfully
325
+ content:
326
+ application/json:
327
+ schema:
328
+ type: object
329
+ properties:
330
+ success:
331
+ type: boolean
332
+ example: true
333
+ data:
334
+ $ref: "#/components/schemas/AssetUnit"
335
+ "400":
336
+ $ref: "#/components/responses/BadRequest"
337
+ "401":
338
+ $ref: "#/components/responses/Unauthorized"
339
+ "403":
340
+ $ref: "#/components/responses/Forbidden"
341
+ "404":
342
+ $ref: "#/components/responses/NotFound"
343
+ "500":
344
+ $ref: "#/components/responses/InternalServerError"
345
+ components:
346
+ securitySchemes:
347
+ ApiKeyAuth:
348
+ type: apiKey
349
+ in: header
350
+ name: Authorization
351
+ description: "Use format: Bearer {api_key}"
352
+ schemas:
353
+ AssetUnit:
354
+ type: object
355
+ properties:
356
+ _id:
357
+ type: string
358
+ description: Unique identifier
359
+ example: "507f1f77bcf86cd799439011"
360
+ asset:
361
+ type: string
362
+ description: Asset ID reference
363
+ example: "507f1f77bcf86cd799439012"
364
+ serial_number:
365
+ type: string
366
+ description: Unique serial number for this unit
367
+ example: "AST-001-2024"
368
+ barcode:
369
+ type: string
370
+ description: Barcode identifier
371
+ example: "123456789012"
372
+ status:
373
+ type: string
374
+ description: Current status of the asset unit
375
+ enum: ["active", "maintenance", "retired", "disposed"]
376
+ example: "active"
377
+ condition:
378
+ type: string
379
+ description: Physical condition of the asset
380
+ enum: ["excellent", "good", "fair", "poor"]
381
+ example: "good"
382
+ location:
383
+ type: string
384
+ description: Current location of the asset unit
385
+ example: "Warehouse A, Section 2"
386
+ assigned_to:
387
+ type: string
388
+ description: User or department assigned to this asset
389
+ example: "507f1f77bcf86cd799439013"
390
+ purchase_date:
391
+ type: string
392
+ format: date
393
+ description: Date when the asset unit was purchased
394
+ warranty_expiry:
395
+ type: string
396
+ format: date
397
+ description: Warranty expiration date
398
+ last_maintenance:
399
+ type: string
400
+ format: date-time
401
+ description: Date of last maintenance
402
+ next_maintenance:
403
+ type: string
404
+ format: date
405
+ description: Date of next scheduled maintenance
406
+ purchase_cost:
407
+ type: number
408
+ format: float
409
+ description: Original purchase cost
410
+ example: 1500.00
411
+ depreciation:
412
+ type: object
413
+ properties:
414
+ method:
415
+ type: string
416
+ enum: ["straight-line", "declining-balance", "sum-of-years"]
417
+ rate:
418
+ type: number
419
+ format: float
420
+ current_value:
421
+ type: number
422
+ format: float
423
+ maintenance_history:
424
+ type: array
425
+ items:
426
+ type: object
427
+ properties:
428
+ date:
429
+ type: string
430
+ format: date-time
431
+ type:
432
+ type: string
433
+ enum: ["routine", "repair", "inspection", "upgrade"]
434
+ description:
435
+ type: string
436
+ cost:
437
+ type: number
438
+ format: float
439
+ performed_by:
440
+ type: string
441
+ notes:
442
+ type: string
443
+ description: Additional notes about the asset unit
444
+ custom_fields:
445
+ type: object
446
+ description: Custom fields for additional data
447
+ company_namespace:
448
+ type: array
449
+ items:
450
+ type: string
451
+ description: Company namespace
452
+ disabled:
453
+ type: boolean
454
+ description: Whether the asset unit is disabled
455
+ example: false
456
+ createdAt:
457
+ type: string
458
+ format: date-time
459
+ description: Creation timestamp
460
+ modifiedAt:
461
+ type: string
462
+ format: date-time
463
+ description: Last modification timestamp
464
+ SVClient:
465
+ type: integer
466
+ description: Client version
467
+ __v:
468
+ type: integer
469
+ description: Document version
470
+ required:
471
+ - asset
472
+ - serial_number
473
+ - status
474
+ CreateAssetUnitRequest:
475
+ type: object
476
+ properties:
477
+ asset:
478
+ type: string
479
+ description: Asset ID reference
480
+ example: "507f1f77bcf86cd799439012"
481
+ serial_number:
482
+ type: string
483
+ description: Unique serial number for this unit
484
+ example: "AST-001-2024"
485
+ barcode:
486
+ type: string
487
+ description: Barcode identifier
488
+ status:
489
+ type: string
490
+ description: Initial status of the asset unit
491
+ enum: ["active", "maintenance", "retired", "disposed"]
492
+ default: "active"
493
+ condition:
494
+ type: string
495
+ description: Physical condition of the asset
496
+ enum: ["excellent", "good", "fair", "poor"]
497
+ default: "good"
498
+ location:
499
+ type: string
500
+ description: Current location of the asset unit
501
+ assigned_to:
502
+ type: string
503
+ description: User or department assigned to this asset
504
+ purchase_date:
505
+ type: string
506
+ format: date
507
+ description: Date when the asset unit was purchased
508
+ warranty_expiry:
509
+ type: string
510
+ format: date
511
+ description: Warranty expiration date
512
+ purchase_cost:
513
+ type: number
514
+ format: float
515
+ description: Original purchase cost
516
+ depreciation:
517
+ type: object
518
+ properties:
519
+ method:
520
+ type: string
521
+ enum: ["straight-line", "declining-balance", "sum-of-years"]
522
+ rate:
523
+ type: number
524
+ format: float
525
+ notes:
526
+ type: string
527
+ description: Additional notes about the asset unit
528
+ custom_fields:
529
+ type: object
530
+ description: Custom fields for additional data
531
+ company_namespace:
532
+ type: array
533
+ items:
534
+ type: string
535
+ description: Company namespace
536
+ disabled:
537
+ type: boolean
538
+ description: Whether the asset unit is disabled
539
+ default: false
540
+ required:
541
+ - asset
542
+ - serial_number
543
+ UpdateAssetUnitRequest:
544
+ type: object
545
+ properties:
546
+ serial_number:
547
+ type: string
548
+ description: Unique serial number for this unit
549
+ barcode:
550
+ type: string
551
+ description: Barcode identifier
552
+ status:
553
+ type: string
554
+ description: Status of the asset unit
555
+ enum: ["active", "maintenance", "retired", "disposed"]
556
+ condition:
557
+ type: string
558
+ description: Physical condition of the asset
559
+ enum: ["excellent", "good", "fair", "poor"]
560
+ location:
561
+ type: string
562
+ description: Current location of the asset unit
563
+ assigned_to:
564
+ type: string
565
+ description: User or department assigned to this asset
566
+ purchase_date:
567
+ type: string
568
+ format: date
569
+ description: Date when the asset unit was purchased
570
+ warranty_expiry:
571
+ type: string
572
+ format: date
573
+ description: Warranty expiration date
574
+ last_maintenance:
575
+ type: string
576
+ format: date-time
577
+ description: Date of last maintenance
578
+ next_maintenance:
579
+ type: string
580
+ format: date
581
+ description: Date of next scheduled maintenance
582
+ purchase_cost:
583
+ type: number
584
+ format: float
585
+ description: Original purchase cost
586
+ depreciation:
587
+ type: object
588
+ properties:
589
+ method:
590
+ type: string
591
+ enum: ["straight-line", "declining-balance", "sum-of-years"]
592
+ rate:
593
+ type: number
594
+ format: float
595
+ current_value:
596
+ type: number
597
+ format: float
598
+ notes:
599
+ type: string
600
+ description: Additional notes about the asset unit
601
+ custom_fields:
602
+ type: object
603
+ description: Custom fields for additional data
604
+ company_namespace:
605
+ type: array
606
+ items:
607
+ type: string
608
+ description: Company namespace
609
+ disabled:
610
+ type: boolean
611
+ description: Whether the asset unit is disabled
612
+ PagingInfo:
613
+ type: object
614
+ properties:
615
+ total:
616
+ type: integer
617
+ description: Total number of items
618
+ page:
619
+ type: integer
620
+ description: Current page number
621
+ per_page:
622
+ type: integer
623
+ description: Items per page
624
+ pages:
625
+ type: integer
626
+ description: Total number of pages
627
+ responses:
628
+ BadRequest:
629
+ description: Bad request
630
+ content:
631
+ application/json:
632
+ schema:
633
+ type: object
634
+ properties:
635
+ success:
636
+ type: boolean
637
+ example: false
638
+ error:
639
+ type: string
640
+ example: "Invalid request parameters"
641
+ Unauthorized:
642
+ description: Unauthorized
643
+ content:
644
+ application/json:
645
+ schema:
646
+ type: object
647
+ properties:
648
+ success:
649
+ type: boolean
650
+ example: false
651
+ error:
652
+ type: string
653
+ example: "Authentication required"
654
+ Forbidden:
655
+ description: Forbidden
656
+ content:
657
+ application/json:
658
+ schema:
659
+ type: object
660
+ properties:
661
+ success:
662
+ type: boolean
663
+ example: false
664
+ error:
665
+ type: string
666
+ example: "Insufficient permissions"
667
+ NotFound:
668
+ description: Resource not found
669
+ content:
670
+ application/json:
671
+ schema:
672
+ type: object
673
+ properties:
674
+ success:
675
+ type: boolean
676
+ example: false
677
+ error:
678
+ type: string
679
+ example: "Resource not found"
680
+ ValidationError:
681
+ description: Validation error
682
+ content:
683
+ application/json:
684
+ schema:
685
+ type: object
686
+ properties:
687
+ success:
688
+ type: boolean
689
+ example: false
690
+ error:
691
+ type: string
692
+ example: "Validation failed"
693
+ InternalServerError:
694
+ description: Internal server error
695
+ content:
696
+ application/json:
697
+ schema:
698
+ type: object
699
+ properties:
700
+ success:
701
+ type: boolean
702
+ example: false
703
+ error:
704
+ type: string
705
+ example: "Internal server error"