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,658 @@
1
+ openapi: 3.0.0
2
+ info:
3
+ title: Store Asset Part Unit API
4
+ description: API for managing asset part unit storage operations
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: Store Asset Part Unit
18
+ description: Operations related to storing asset part units
19
+
20
+ paths:
21
+ /store-asset-part-unit:
22
+ get:
23
+ tags:
24
+ - Store Asset Part Unit
25
+ summary: Get all asset part unit storage records
26
+ description: Retrieve a list of all asset part unit storage records 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 unit storage records 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/StoreAssetPartUnit"
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
+ - Store Asset Part Unit
98
+ summary: Create a new asset part unit storage record
99
+ description: Create a new asset part unit storage record with the provided data
100
+ requestBody:
101
+ required: true
102
+ content:
103
+ application/json:
104
+ schema:
105
+ $ref: "#/components/schemas/StoreAssetPartUnitInput"
106
+ responses:
107
+ "201":
108
+ description: Asset part unit storage record 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/StoreAssetPartUnit"
119
+ "400":
120
+ description: Bad request
121
+ "401":
122
+ description: Unauthorized
123
+ "500":
124
+ description: Internal server error
125
+
126
+ /store-asset-part-unit/{id}:
127
+ get:
128
+ tags:
129
+ - Store Asset Part Unit
130
+ summary: Get asset part unit storage record by ID
131
+ description: Retrieve a specific asset part unit storage record by its ID
132
+ parameters:
133
+ - name: id
134
+ in: path
135
+ required: true
136
+ description: Asset part unit storage record ID
137
+ schema:
138
+ type: string
139
+ responses:
140
+ "200":
141
+ description: Asset part unit storage record 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/StoreAssetPartUnit"
152
+ "404":
153
+ description: Asset part unit storage record not found
154
+ "401":
155
+ description: Unauthorized
156
+ "500":
157
+ description: Internal server error
158
+ put:
159
+ tags:
160
+ - Store Asset Part Unit
161
+ summary: Update asset part unit storage record
162
+ description: Update an existing asset part unit storage record with new data
163
+ parameters:
164
+ - name: id
165
+ in: path
166
+ required: true
167
+ description: Asset part unit storage record ID
168
+ schema:
169
+ type: string
170
+ requestBody:
171
+ required: true
172
+ content:
173
+ application/json:
174
+ schema:
175
+ $ref: "#/components/schemas/StoreAssetPartUnitInput"
176
+ responses:
177
+ "200":
178
+ description: Asset part unit storage record 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/StoreAssetPartUnit"
189
+ "400":
190
+ description: Bad request
191
+ "404":
192
+ description: Asset part unit storage record not found
193
+ "401":
194
+ description: Unauthorized
195
+ "500":
196
+ description: Internal server error
197
+ delete:
198
+ tags:
199
+ - Store Asset Part Unit
200
+ summary: Delete asset part unit storage record
201
+ description: Delete an existing asset part unit storage record
202
+ parameters:
203
+ - name: id
204
+ in: path
205
+ required: true
206
+ description: Asset part unit storage record ID
207
+ schema:
208
+ type: string
209
+ responses:
210
+ "200":
211
+ description: Asset part unit storage record 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 storage record deleted successfully
223
+ "404":
224
+ description: Asset part unit storage record not found
225
+ "401":
226
+ description: Unauthorized
227
+ "500":
228
+ description: Internal server error
229
+
230
+ components:
231
+ schemas:
232
+ StoreAssetPartUnit:
233
+ type: object
234
+ properties:
235
+ _id:
236
+ type: string
237
+ description: Unique identifier for the storage record
238
+ example: "60f7b1b3e4b0e8b3f8b3f8b3"
239
+ storageNumber:
240
+ type: string
241
+ description: Unique storage number
242
+ example: "STR-2023-001"
243
+ assetPartUnit:
244
+ type: string
245
+ description: Asset part unit ID being stored
246
+ example: "60f7b1b3e4b0e8b3f8b3f8b4"
247
+ serialNumber:
248
+ type: string
249
+ description: Serial number of the part unit
250
+ example: "SN-EP001-2023-001"
251
+ storageType:
252
+ type: string
253
+ enum: [inventory, spare, buffer, quarantine, maintenance]
254
+ description: Type of storage
255
+ example: "inventory"
256
+ storageReason:
257
+ type: string
258
+ description: Reason for storage
259
+ example: "New inventory received"
260
+ storedBy:
261
+ type: string
262
+ description: User who stored the part
263
+ example: "60f7b1b3e4b0e8b3f8b3f8b5"
264
+ authorizedBy:
265
+ type: string
266
+ description: User who authorized the storage
267
+ example: "60f7b1b3e4b0e8b3f8b3f8b6"
268
+ storageDate:
269
+ type: string
270
+ format: date-time
271
+ description: Date when the part was stored
272
+ example: "2023-01-15T10:00:00Z"
273
+ expectedRetrievalDate:
274
+ type: string
275
+ format: date-time
276
+ description: Expected retrieval date
277
+ example: "2023-06-15T10:00:00Z"
278
+ location:
279
+ type: object
280
+ properties:
281
+ warehouse:
282
+ type: string
283
+ description: Warehouse ID
284
+ section:
285
+ type: string
286
+ description: Section within warehouse
287
+ shelf:
288
+ type: string
289
+ description: Shelf identifier
290
+ position:
291
+ type: string
292
+ description: Position on shelf
293
+ bin:
294
+ type: string
295
+ description: Bin identifier
296
+ coordinates:
297
+ type: object
298
+ properties:
299
+ x:
300
+ type: number
301
+ description: X coordinate
302
+ y:
303
+ type: number
304
+ description: Y coordinate
305
+ z:
306
+ type: number
307
+ description: Z coordinate (height)
308
+ status:
309
+ type: string
310
+ enum: [stored, reserved, allocated, picked, expired]
311
+ default: stored
312
+ description: Current storage status
313
+ condition:
314
+ type: string
315
+ enum: [new, good, fair, poor, damaged]
316
+ description: Condition when stored
317
+ example: "new"
318
+ storageEnvironment:
319
+ type: object
320
+ properties:
321
+ temperature:
322
+ type: object
323
+ properties:
324
+ min:
325
+ type: number
326
+ description: Minimum temperature
327
+ max:
328
+ type: number
329
+ description: Maximum temperature
330
+ unit:
331
+ type: string
332
+ enum: [celsius, fahrenheit]
333
+ default: celsius
334
+ humidity:
335
+ type: object
336
+ properties:
337
+ min:
338
+ type: number
339
+ description: Minimum humidity percentage
340
+ max:
341
+ type: number
342
+ description: Maximum humidity percentage
343
+ specialRequirements:
344
+ type: array
345
+ items:
346
+ type: string
347
+ enum: [dry, cool, dark, ventilated, climate-controlled]
348
+ preservationMethod:
349
+ type: string
350
+ enum: [none, plastic-wrap, desiccant, vacuum-seal, oil-coating]
351
+ default: none
352
+ description: Preservation method used
353
+ lastInspectionDate:
354
+ type: string
355
+ format: date-time
356
+ description: Last inspection date
357
+ nextInspectionDate:
358
+ type: string
359
+ format: date-time
360
+ description: Next scheduled inspection date
361
+ reservedFor:
362
+ type: object
363
+ properties:
364
+ workOrder:
365
+ type: string
366
+ description: Work order ID if reserved
367
+ asset:
368
+ type: string
369
+ description: Asset ID if reserved
370
+ project:
371
+ type: string
372
+ description: Project ID if reserved
373
+ reservationDate:
374
+ type: string
375
+ format: date-time
376
+ description: Reservation date
377
+ reservedBy:
378
+ type: string
379
+ description: User who made the reservation
380
+ tags:
381
+ type: array
382
+ items:
383
+ type: string
384
+ description: Storage tags for categorization
385
+ barcode:
386
+ type: string
387
+ description: Storage barcode
388
+ qrCode:
389
+ type: string
390
+ description: Storage QR code
391
+ weight:
392
+ type: number
393
+ format: double
394
+ minimum: 0
395
+ description: Weight of the stored item
396
+ dimensions:
397
+ type: object
398
+ properties:
399
+ length:
400
+ type: number
401
+ format: double
402
+ minimum: 0
403
+ width:
404
+ type: number
405
+ format: double
406
+ minimum: 0
407
+ height:
408
+ type: number
409
+ format: double
410
+ minimum: 0
411
+ unit:
412
+ type: string
413
+ enum: [mm, cm, m, inch, ft]
414
+ default: cm
415
+ storageHistory:
416
+ type: array
417
+ items:
418
+ type: object
419
+ properties:
420
+ date:
421
+ type: string
422
+ format: date-time
423
+ action:
424
+ type: string
425
+ enum: [stored, moved, inspected, reserved, released]
426
+ performedBy:
427
+ type: string
428
+ fromLocation:
429
+ type: string
430
+ toLocation:
431
+ type: string
432
+ notes:
433
+ type: string
434
+ notes:
435
+ type: string
436
+ description: Additional notes
437
+ metadata:
438
+ type: object
439
+ additionalProperties: true
440
+ description: Additional metadata
441
+ createdAt:
442
+ type: string
443
+ format: date-time
444
+ description: Record creation timestamp
445
+ example: "2023-01-15T08:00:00Z"
446
+ updatedAt:
447
+ type: string
448
+ format: date-time
449
+ description: Record last update timestamp
450
+ example: "2023-01-15T10:30:00Z"
451
+ required:
452
+ - storageNumber
453
+ - assetPartUnit
454
+ - storageType
455
+ - storedBy
456
+ - location
457
+
458
+ StoreAssetPartUnitInput:
459
+ type: object
460
+ properties:
461
+ storageNumber:
462
+ type: string
463
+ description: Unique storage number
464
+ example: "STR-2023-001"
465
+ assetPartUnit:
466
+ type: string
467
+ description: Asset part unit ID being stored
468
+ example: "60f7b1b3e4b0e8b3f8b3f8b4"
469
+ serialNumber:
470
+ type: string
471
+ description: Serial number of the part unit
472
+ example: "SN-EP001-2023-001"
473
+ storageType:
474
+ type: string
475
+ enum: [inventory, spare, buffer, quarantine, maintenance]
476
+ description: Type of storage
477
+ example: "inventory"
478
+ storageReason:
479
+ type: string
480
+ description: Reason for storage
481
+ example: "New inventory received"
482
+ storedBy:
483
+ type: string
484
+ description: User who stored the part
485
+ example: "60f7b1b3e4b0e8b3f8b3f8b5"
486
+ authorizedBy:
487
+ type: string
488
+ description: User who authorized the storage
489
+ example: "60f7b1b3e4b0e8b3f8b3f8b6"
490
+ storageDate:
491
+ type: string
492
+ format: date-time
493
+ description: Date when the part was stored
494
+ example: "2023-01-15T10:00:00Z"
495
+ expectedRetrievalDate:
496
+ type: string
497
+ format: date-time
498
+ description: Expected retrieval date
499
+ example: "2023-06-15T10:00:00Z"
500
+ location:
501
+ type: object
502
+ properties:
503
+ warehouse:
504
+ type: string
505
+ description: Warehouse ID
506
+ section:
507
+ type: string
508
+ description: Section within warehouse
509
+ shelf:
510
+ type: string
511
+ description: Shelf identifier
512
+ position:
513
+ type: string
514
+ description: Position on shelf
515
+ bin:
516
+ type: string
517
+ description: Bin identifier
518
+ coordinates:
519
+ type: object
520
+ properties:
521
+ x:
522
+ type: number
523
+ description: X coordinate
524
+ y:
525
+ type: number
526
+ description: Y coordinate
527
+ z:
528
+ type: number
529
+ description: Z coordinate (height)
530
+ status:
531
+ type: string
532
+ enum: [stored, reserved, allocated, picked, expired]
533
+ default: stored
534
+ description: Current storage status
535
+ condition:
536
+ type: string
537
+ enum: [new, good, fair, poor, damaged]
538
+ description: Condition when stored
539
+ example: "new"
540
+ storageEnvironment:
541
+ type: object
542
+ properties:
543
+ temperature:
544
+ type: object
545
+ properties:
546
+ min:
547
+ type: number
548
+ description: Minimum temperature
549
+ max:
550
+ type: number
551
+ description: Maximum temperature
552
+ unit:
553
+ type: string
554
+ enum: [celsius, fahrenheit]
555
+ default: celsius
556
+ humidity:
557
+ type: object
558
+ properties:
559
+ min:
560
+ type: number
561
+ description: Minimum humidity percentage
562
+ max:
563
+ type: number
564
+ description: Maximum humidity percentage
565
+ specialRequirements:
566
+ type: array
567
+ items:
568
+ type: string
569
+ enum: [dry, cool, dark, ventilated, climate-controlled]
570
+ preservationMethod:
571
+ type: string
572
+ enum: [none, plastic-wrap, desiccant, vacuum-seal, oil-coating]
573
+ default: none
574
+ description: Preservation method used
575
+ lastInspectionDate:
576
+ type: string
577
+ format: date-time
578
+ description: Last inspection date
579
+ nextInspectionDate:
580
+ type: string
581
+ format: date-time
582
+ description: Next scheduled inspection date
583
+ reservedFor:
584
+ type: object
585
+ properties:
586
+ workOrder:
587
+ type: string
588
+ description: Work order ID if reserved
589
+ asset:
590
+ type: string
591
+ description: Asset ID if reserved
592
+ project:
593
+ type: string
594
+ description: Project ID if reserved
595
+ reservationDate:
596
+ type: string
597
+ format: date-time
598
+ description: Reservation date
599
+ reservedBy:
600
+ type: string
601
+ description: User who made the reservation
602
+ tags:
603
+ type: array
604
+ items:
605
+ type: string
606
+ description: Storage tags for categorization
607
+ barcode:
608
+ type: string
609
+ description: Storage barcode
610
+ qrCode:
611
+ type: string
612
+ description: Storage QR code
613
+ weight:
614
+ type: number
615
+ format: double
616
+ minimum: 0
617
+ description: Weight of the stored item
618
+ dimensions:
619
+ type: object
620
+ properties:
621
+ length:
622
+ type: number
623
+ format: double
624
+ minimum: 0
625
+ width:
626
+ type: number
627
+ format: double
628
+ minimum: 0
629
+ height:
630
+ type: number
631
+ format: double
632
+ minimum: 0
633
+ unit:
634
+ type: string
635
+ enum: [mm, cm, m, inch, ft]
636
+ default: cm
637
+ notes:
638
+ type: string
639
+ description: Additional notes
640
+ metadata:
641
+ type: object
642
+ additionalProperties: true
643
+ description: Additional metadata
644
+ required:
645
+ - storageNumber
646
+ - assetPartUnit
647
+ - storageType
648
+ - storedBy
649
+ - location
650
+
651
+ securitySchemes:
652
+ ApiKeyAuth:
653
+ type: apiKey
654
+ in: header
655
+ name: api-key
656
+
657
+ security:
658
+ - ApiKeyAuth: []