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.
Files changed (90) hide show
  1. package/package.json +2 -2
  2. package/src/index.ts +4890 -0
  3. package/src/oas/activity-ai-sales-order.yaml +623 -0
  4. package/src/oas/activity-feedback-v2.yaml +753 -0
  5. package/src/oas/activity-feedback.yaml +645 -0
  6. package/src/oas/activity-storecheck.yaml +379 -0
  7. package/src/oas/adjust-account.yaml +241 -0
  8. package/src/oas/adjust-inventory.yaml +133 -0
  9. package/src/oas/approval-request.yaml +211 -0
  10. package/src/oas/approvals.yaml +176 -0
  11. package/src/oas/asset-part-receival.yaml +591 -0
  12. package/src/oas/asset-part-transfer.yaml +618 -0
  13. package/src/oas/asset-part-type.yaml +383 -0
  14. package/src/oas/asset-part-unit.yaml +722 -0
  15. package/src/oas/asset-part.yaml +485 -0
  16. package/src/oas/asset-type.yaml +180 -0
  17. package/src/oas/asset-unit.yaml +705 -0
  18. package/src/oas/asset.yaml +204 -0
  19. package/src/oas/banks.yaml +168 -0
  20. package/src/oas/bankslists.yaml +168 -0
  21. package/src/oas/brand.yaml +246 -0
  22. package/src/oas/category.yaml +285 -0
  23. package/src/oas/checks.yaml +247 -0
  24. package/src/oas/client-channel.yaml +480 -0
  25. package/src/oas/client-contact.yaml +665 -0
  26. package/src/oas/client-location.yaml +687 -0
  27. package/src/oas/client.yaml +669 -0
  28. package/src/oas/contract-installment.yaml +740 -0
  29. package/src/oas/contract.yaml +210 -0
  30. package/src/oas/custom-list-item.yaml +168 -0
  31. package/src/oas/custom-list.yaml +168 -0
  32. package/src/oas/custom-status.yaml +168 -0
  33. package/src/oas/day.yaml +246 -0
  34. package/src/oas/feedback-options.yaml +802 -0
  35. package/src/oas/fullinvoices.yaml +584 -0
  36. package/src/oas/integration-action-log.yaml +361 -0
  37. package/src/oas/integration-app.yaml +303 -0
  38. package/src/oas/integration-command-log.yaml +381 -0
  39. package/src/oas/inventory-adjustment-reason.yaml +165 -0
  40. package/src/oas/inventory.yaml +64 -0
  41. package/src/oas/mail-unsubscribe.yaml +463 -0
  42. package/src/oas/measureunit-family.yaml +354 -0
  43. package/src/oas/measureunit.yaml +366 -0
  44. package/src/oas/media-storage.yaml +329 -0
  45. package/src/oas/media.yaml +472 -0
  46. package/src/oas/msl-products.yaml +180 -0
  47. package/src/oas/msl.yaml +186 -0
  48. package/src/oas/ocr-invoice-job-group.yaml +528 -0
  49. package/src/oas/ocr-invoice-job-page.yaml +602 -0
  50. package/src/oas/ocr-invoice-job-template.yaml +628 -0
  51. package/src/oas/ocr-invoice-job.yaml +603 -0
  52. package/src/oas/patch-action.yaml +421 -0
  53. package/src/oas/payment-terms.yaml +235 -0
  54. package/src/oas/payments.yaml +536 -0
  55. package/src/oas/pricelist-item.yaml +369 -0
  56. package/src/oas/pricelist.yaml +287 -0
  57. package/src/oas/product-group.yaml +278 -0
  58. package/src/oas/product-modifiers-group.yaml +524 -0
  59. package/src/oas/product.yaml +578 -0
  60. package/src/oas/proforma.yaml +180 -0
  61. package/src/oas/quick-convert-to-pdf.yaml +95 -0
  62. package/src/oas/receiving-material.yaml +336 -0
  63. package/src/oas/refund.yaml +281 -0
  64. package/src/oas/rep-balance-summary.yaml +135 -0
  65. package/src/oas/rep.yaml +1824 -0
  66. package/src/oas/return-asset-part-unit.yaml +573 -0
  67. package/src/oas/return-reason.yaml +286 -0
  68. package/src/oas/route.yaml +337 -0
  69. package/src/oas/safe-invoice-serial-counter.yaml +525 -0
  70. package/src/oas/settings.yaml +123 -0
  71. package/src/oas/settlement.yaml +505 -0
  72. package/src/oas/speciality.yaml +447 -0
  73. package/src/oas/store-asset-part-unit.yaml +658 -0
  74. package/src/oas/storecheck-template.yaml +415 -0
  75. package/src/oas/subcategory.yaml +355 -0
  76. package/src/oas/supplier.yaml +183 -0
  77. package/src/oas/svix-integration.yaml +335 -0
  78. package/src/oas/tag.yaml +272 -0
  79. package/src/oas/tax.yaml +303 -0
  80. package/src/oas/team.yaml +268 -0
  81. package/src/oas/transfer.yaml +347 -0
  82. package/src/oas/update-integration-meta.yaml +387 -0
  83. package/src/oas/variant.yaml +569 -0
  84. package/src/oas/visit.yaml +174 -0
  85. package/src/oas/warehouse.yaml +311 -0
  86. package/src/oas/workorder-category.yaml +751 -0
  87. package/src/oas/workorder-portal-link.yaml +811 -0
  88. package/src/oas/workorder-portal.yaml +650 -0
  89. package/src/oas/workorder-request.yaml +193 -0
  90. package/src/oas/workorder.yaml +204 -0
@@ -0,0 +1,591 @@
1
+ openapi: 3.0.0
2
+ info:
3
+ title: Asset Part Receival API
4
+ description: API for managing asset part receivals (receiving inventory)
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 Receival
18
+ description: Operations related to asset part receival management
19
+
20
+ paths:
21
+ /asset-part-receival:
22
+ get:
23
+ tags:
24
+ - Asset Part Receival
25
+ summary: Get all asset part receivals
26
+ description: Retrieve a list of all asset part receivals 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 receivals 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/AssetPartReceival"
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 Receival
98
+ summary: Create a new asset part receival
99
+ description: Create a new asset part receival with the provided data
100
+ requestBody:
101
+ required: true
102
+ content:
103
+ application/json:
104
+ schema:
105
+ $ref: "#/components/schemas/AssetPartReceivalInput"
106
+ responses:
107
+ "201":
108
+ description: Asset part receival 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/AssetPartReceival"
119
+ "400":
120
+ description: Bad request
121
+ "401":
122
+ description: Unauthorized
123
+ "500":
124
+ description: Internal server error
125
+
126
+ /asset-part-receival/{id}:
127
+ get:
128
+ tags:
129
+ - Asset Part Receival
130
+ summary: Get asset part receival by ID
131
+ description: Retrieve a specific asset part receival by its ID
132
+ parameters:
133
+ - name: id
134
+ in: path
135
+ required: true
136
+ description: Asset part receival ID
137
+ schema:
138
+ type: string
139
+ responses:
140
+ "200":
141
+ description: Asset part receival 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/AssetPartReceival"
152
+ "404":
153
+ description: Asset part receival not found
154
+ "401":
155
+ description: Unauthorized
156
+ "500":
157
+ description: Internal server error
158
+ put:
159
+ tags:
160
+ - Asset Part Receival
161
+ summary: Update asset part receival
162
+ description: Update an existing asset part receival with new data
163
+ parameters:
164
+ - name: id
165
+ in: path
166
+ required: true
167
+ description: Asset part receival ID
168
+ schema:
169
+ type: string
170
+ requestBody:
171
+ required: true
172
+ content:
173
+ application/json:
174
+ schema:
175
+ $ref: "#/components/schemas/AssetPartReceivalInput"
176
+ responses:
177
+ "200":
178
+ description: Asset part receival 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/AssetPartReceival"
189
+ "400":
190
+ description: Bad request
191
+ "404":
192
+ description: Asset part receival not found
193
+ "401":
194
+ description: Unauthorized
195
+ "500":
196
+ description: Internal server error
197
+ delete:
198
+ tags:
199
+ - Asset Part Receival
200
+ summary: Delete asset part receival
201
+ description: Delete an existing asset part receival
202
+ parameters:
203
+ - name: id
204
+ in: path
205
+ required: true
206
+ description: Asset part receival ID
207
+ schema:
208
+ type: string
209
+ responses:
210
+ "200":
211
+ description: Asset part receival 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 receival deleted successfully
223
+ "404":
224
+ description: Asset part receival not found
225
+ "401":
226
+ description: Unauthorized
227
+ "500":
228
+ description: Internal server error
229
+
230
+ components:
231
+ schemas:
232
+ AssetPartReceival:
233
+ type: object
234
+ properties:
235
+ _id:
236
+ type: string
237
+ description: Unique identifier for the asset part receival
238
+ example: "60f7b1b3e4b0e8b3f8b3f8b3"
239
+ receivalNumber:
240
+ type: string
241
+ description: Unique receival number
242
+ example: "RCV-2023-001"
243
+ purchaseOrder:
244
+ type: string
245
+ description: Purchase order reference
246
+ example: "PO-2023-001"
247
+ supplier:
248
+ type: string
249
+ description: Supplier ID
250
+ example: "60f7b1b3e4b0e8b3f8b3f8b4"
251
+ receivalDate:
252
+ type: string
253
+ format: date-time
254
+ description: Date and time of receival
255
+ example: "2023-01-15T10:00:00Z"
256
+ expectedDate:
257
+ type: string
258
+ format: date-time
259
+ description: Expected delivery date
260
+ example: "2023-01-14T10:00:00Z"
261
+ receivedBy:
262
+ type: string
263
+ description: User who received the parts
264
+ example: "60f7b1b3e4b0e8b3f8b3f8b5"
265
+ warehouse:
266
+ type: string
267
+ description: Warehouse ID where parts were received
268
+ example: "60f7b1b3e4b0e8b3f8b3f8b6"
269
+ status:
270
+ type: string
271
+ enum: [pending, partial, complete, cancelled]
272
+ default: pending
273
+ description: Status of the receival
274
+ items:
275
+ type: array
276
+ items:
277
+ type: object
278
+ properties:
279
+ assetPart:
280
+ type: string
281
+ description: Asset part ID
282
+ orderedQuantity:
283
+ type: integer
284
+ minimum: 1
285
+ description: Quantity ordered
286
+ receivedQuantity:
287
+ type: integer
288
+ minimum: 0
289
+ description: Quantity actually received
290
+ unitCost:
291
+ type: number
292
+ format: double
293
+ minimum: 0
294
+ description: Cost per unit
295
+ totalCost:
296
+ type: number
297
+ format: double
298
+ minimum: 0
299
+ description: Total cost for this item
300
+ condition:
301
+ type: string
302
+ enum: [new, good, damaged, defective]
303
+ default: new
304
+ description: Condition of received items
305
+ batchNumber:
306
+ type: string
307
+ description: Batch number
308
+ serialNumbers:
309
+ type: array
310
+ items:
311
+ type: string
312
+ description: Serial numbers for tracked items
313
+ expiryDate:
314
+ type: string
315
+ format: date
316
+ description: Expiry date if applicable
317
+ notes:
318
+ type: string
319
+ description: Notes for this item
320
+ totalValue:
321
+ type: number
322
+ format: double
323
+ minimum: 0
324
+ description: Total value of the receival
325
+ currency:
326
+ type: string
327
+ description: Currency code
328
+ example: "USD"
329
+ shippingCost:
330
+ type: number
331
+ format: double
332
+ minimum: 0
333
+ description: Shipping cost
334
+ taxAmount:
335
+ type: number
336
+ format: double
337
+ minimum: 0
338
+ description: Tax amount
339
+ discountAmount:
340
+ type: number
341
+ format: double
342
+ minimum: 0
343
+ description: Discount amount
344
+ invoice:
345
+ type: object
346
+ properties:
347
+ number:
348
+ type: string
349
+ description: Invoice number
350
+ date:
351
+ type: string
352
+ format: date
353
+ description: Invoice date
354
+ amount:
355
+ type: number
356
+ format: double
357
+ minimum: 0
358
+ description: Invoice amount
359
+ qualityCheck:
360
+ type: object
361
+ properties:
362
+ performed:
363
+ type: boolean
364
+ default: false
365
+ description: Whether quality check was performed
366
+ checkedBy:
367
+ type: string
368
+ description: User who performed quality check
369
+ checkDate:
370
+ type: string
371
+ format: date-time
372
+ description: Quality check date
373
+ passed:
374
+ type: boolean
375
+ description: Whether quality check passed
376
+ notes:
377
+ type: string
378
+ description: Quality check notes
379
+ documents:
380
+ type: array
381
+ items:
382
+ type: object
383
+ properties:
384
+ name:
385
+ type: string
386
+ url:
387
+ type: string
388
+ format: uri
389
+ type:
390
+ type: string
391
+ enum: [invoice, packing-slip, quality-certificate, photo]
392
+ notes:
393
+ type: string
394
+ description: General notes
395
+ metadata:
396
+ type: object
397
+ additionalProperties: true
398
+ description: Additional metadata
399
+ createdAt:
400
+ type: string
401
+ format: date-time
402
+ description: Record creation timestamp
403
+ example: "2023-01-15T08:00:00Z"
404
+ updatedAt:
405
+ type: string
406
+ format: date-time
407
+ description: Record last update timestamp
408
+ example: "2023-01-15T10:30:00Z"
409
+ required:
410
+ - receivalNumber
411
+ - supplier
412
+ - receivalDate
413
+ - items
414
+
415
+ AssetPartReceivalInput:
416
+ type: object
417
+ properties:
418
+ receivalNumber:
419
+ type: string
420
+ description: Unique receival number
421
+ example: "RCV-2023-001"
422
+ purchaseOrder:
423
+ type: string
424
+ description: Purchase order reference
425
+ example: "PO-2023-001"
426
+ supplier:
427
+ type: string
428
+ description: Supplier ID
429
+ example: "60f7b1b3e4b0e8b3f8b3f8b4"
430
+ receivalDate:
431
+ type: string
432
+ format: date-time
433
+ description: Date and time of receival
434
+ example: "2023-01-15T10:00:00Z"
435
+ expectedDate:
436
+ type: string
437
+ format: date-time
438
+ description: Expected delivery date
439
+ example: "2023-01-14T10:00:00Z"
440
+ receivedBy:
441
+ type: string
442
+ description: User who received the parts
443
+ example: "60f7b1b3e4b0e8b3f8b3f8b5"
444
+ warehouse:
445
+ type: string
446
+ description: Warehouse ID where parts were received
447
+ example: "60f7b1b3e4b0e8b3f8b3f8b6"
448
+ status:
449
+ type: string
450
+ enum: [pending, partial, complete, cancelled]
451
+ default: pending
452
+ description: Status of the receival
453
+ items:
454
+ type: array
455
+ items:
456
+ type: object
457
+ properties:
458
+ assetPart:
459
+ type: string
460
+ description: Asset part ID
461
+ orderedQuantity:
462
+ type: integer
463
+ minimum: 1
464
+ description: Quantity ordered
465
+ receivedQuantity:
466
+ type: integer
467
+ minimum: 0
468
+ description: Quantity actually received
469
+ unitCost:
470
+ type: number
471
+ format: double
472
+ minimum: 0
473
+ description: Cost per unit
474
+ totalCost:
475
+ type: number
476
+ format: double
477
+ minimum: 0
478
+ description: Total cost for this item
479
+ condition:
480
+ type: string
481
+ enum: [new, good, damaged, defective]
482
+ default: new
483
+ description: Condition of received items
484
+ batchNumber:
485
+ type: string
486
+ description: Batch number
487
+ serialNumbers:
488
+ type: array
489
+ items:
490
+ type: string
491
+ description: Serial numbers for tracked items
492
+ expiryDate:
493
+ type: string
494
+ format: date
495
+ description: Expiry date if applicable
496
+ notes:
497
+ type: string
498
+ description: Notes for this item
499
+ totalValue:
500
+ type: number
501
+ format: double
502
+ minimum: 0
503
+ description: Total value of the receival
504
+ currency:
505
+ type: string
506
+ description: Currency code
507
+ example: "USD"
508
+ shippingCost:
509
+ type: number
510
+ format: double
511
+ minimum: 0
512
+ description: Shipping cost
513
+ taxAmount:
514
+ type: number
515
+ format: double
516
+ minimum: 0
517
+ description: Tax amount
518
+ discountAmount:
519
+ type: number
520
+ format: double
521
+ minimum: 0
522
+ description: Discount amount
523
+ invoice:
524
+ type: object
525
+ properties:
526
+ number:
527
+ type: string
528
+ description: Invoice number
529
+ date:
530
+ type: string
531
+ format: date
532
+ description: Invoice date
533
+ amount:
534
+ type: number
535
+ format: double
536
+ minimum: 0
537
+ description: Invoice amount
538
+ qualityCheck:
539
+ type: object
540
+ properties:
541
+ performed:
542
+ type: boolean
543
+ default: false
544
+ description: Whether quality check was performed
545
+ checkedBy:
546
+ type: string
547
+ description: User who performed quality check
548
+ checkDate:
549
+ type: string
550
+ format: date-time
551
+ description: Quality check date
552
+ passed:
553
+ type: boolean
554
+ description: Whether quality check passed
555
+ notes:
556
+ type: string
557
+ description: Quality check notes
558
+ documents:
559
+ type: array
560
+ items:
561
+ type: object
562
+ properties:
563
+ name:
564
+ type: string
565
+ url:
566
+ type: string
567
+ format: uri
568
+ type:
569
+ type: string
570
+ enum: [invoice, packing-slip, quality-certificate, photo]
571
+ notes:
572
+ type: string
573
+ description: General notes
574
+ metadata:
575
+ type: object
576
+ additionalProperties: true
577
+ description: Additional metadata
578
+ required:
579
+ - receivalNumber
580
+ - supplier
581
+ - receivalDate
582
+ - items
583
+
584
+ securitySchemes:
585
+ ApiKeyAuth:
586
+ type: apiKey
587
+ in: header
588
+ name: api-key
589
+
590
+ security:
591
+ - ApiKeyAuth: []