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,584 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Repzo API - Full Invoices
4
+ version: 1.0.0
5
+ description: OpenAPI specification for Repzo Full Invoices endpoints.
6
+ servers:
7
+ - url: https://sv.api.repzo.me
8
+ paths:
9
+ /fullinvoices:
10
+ get:
11
+ summary: Find full invoices
12
+ operationId: findFullInvoices
13
+ parameters:
14
+ - in: query
15
+ name: params
16
+ schema:
17
+ type: object
18
+ properties:
19
+ _id:
20
+ oneOf:
21
+ - type: string
22
+ - type: array
23
+ items:
24
+ type: string
25
+ client:
26
+ oneOf:
27
+ - type: string
28
+ - type: array
29
+ items:
30
+ type: string
31
+ rep:
32
+ oneOf:
33
+ - type: string
34
+ - type: array
35
+ items:
36
+ type: string
37
+ warehouse:
38
+ oneOf:
39
+ - type: string
40
+ - type: array
41
+ items:
42
+ type: string
43
+ route:
44
+ oneOf:
45
+ - type: string
46
+ - type: array
47
+ items:
48
+ type: string
49
+ status:
50
+ oneOf:
51
+ - type: string
52
+ - type: array
53
+ items:
54
+ type: string
55
+ returned_from:
56
+ oneOf:
57
+ - type: string
58
+ - type: array
59
+ items:
60
+ type: string
61
+ returned_to:
62
+ oneOf:
63
+ - type: string
64
+ - type: array
65
+ items:
66
+ type: string
67
+ partially_returned_from:
68
+ oneOf:
69
+ - type: string
70
+ - type: array
71
+ items:
72
+ type: string
73
+ workorder:
74
+ oneOf:
75
+ - type: string
76
+ - type: array
77
+ items:
78
+ type: string
79
+ asset:
80
+ oneOf:
81
+ - type: string
82
+ - type: array
83
+ items:
84
+ type: string
85
+ asset_unit:
86
+ oneOf:
87
+ - type: string
88
+ - type: array
89
+ items:
90
+ type: string
91
+ teams:
92
+ oneOf:
93
+ - type: string
94
+ - type: array
95
+ items:
96
+ type: string
97
+ tags:
98
+ oneOf:
99
+ - type: string
100
+ - type: array
101
+ items:
102
+ type: string
103
+ return_reason:
104
+ oneOf:
105
+ - type: string
106
+ - type: array
107
+ items:
108
+ type: string
109
+ is_void:
110
+ type: boolean
111
+ from_createdAt:
112
+ type: number
113
+ to_createdAt:
114
+ type: number
115
+ from_updatedAt:
116
+ type: number
117
+ to_updatedAt:
118
+ type: number
119
+ from_time:
120
+ type: number
121
+ to_time:
122
+ type: number
123
+ from_total:
124
+ type: number
125
+ to_total:
126
+ type: number
127
+ total:
128
+ oneOf:
129
+ - type: number
130
+ - type: array
131
+ items:
132
+ type: number
133
+ populatedKeys:
134
+ type: array
135
+ items:
136
+ type: string
137
+ enum:
138
+ - workorder
139
+ - returned_from
140
+ - partially_returned_from
141
+ - returned_to
142
+ - client
143
+ - rep
144
+ - warehouse
145
+ - route
146
+ - return_reason
147
+ - teams
148
+ per_page:
149
+ type: integer
150
+ page:
151
+ type: integer
152
+ sort:
153
+ type: string
154
+ sortPageOrder:
155
+ type: string
156
+ enum: [asc, dsc]
157
+ description: Query parameters for filtering full invoices
158
+ responses:
159
+ "200":
160
+ description: A list of full invoices
161
+ content:
162
+ application/json:
163
+ schema:
164
+ $ref: "#/components/schemas/FullInvoiceFindResult"
165
+ post:
166
+ summary: Create a full invoice
167
+ operationId: createFullInvoice
168
+ requestBody:
169
+ required: true
170
+ content:
171
+ application/json:
172
+ schema:
173
+ $ref: "#/components/schemas/FullInvoiceCreateBody"
174
+ responses:
175
+ "201":
176
+ description: Full invoice created
177
+ content:
178
+ application/json:
179
+ schema:
180
+ $ref: "#/components/schemas/FullInvoiceCreateResult"
181
+ /fullinvoices/{id}:
182
+ get:
183
+ summary: Get a full invoice by ID
184
+ operationId: getFullInvoice
185
+ parameters:
186
+ - in: path
187
+ name: id
188
+ required: true
189
+ schema:
190
+ type: string
191
+ responses:
192
+ "200":
193
+ description: Full invoice details
194
+ content:
195
+ application/json:
196
+ schema:
197
+ $ref: "#/components/schemas/FullInvoiceGetResult"
198
+ put:
199
+ summary: Update a full invoice
200
+ operationId: updateFullInvoice
201
+ parameters:
202
+ - in: path
203
+ name: id
204
+ required: true
205
+ schema:
206
+ type: string
207
+ requestBody:
208
+ required: true
209
+ content:
210
+ application/json:
211
+ schema:
212
+ $ref: "#/components/schemas/FullInvoiceUpdateBody"
213
+ responses:
214
+ "200":
215
+ description: Full invoice updated
216
+ content:
217
+ application/json:
218
+ schema:
219
+ $ref: "#/components/schemas/FullInvoiceUpdateResult"
220
+ components:
221
+ schemas:
222
+ FullInvoiceFindResult:
223
+ type: object
224
+ properties:
225
+ data:
226
+ type: array
227
+ items:
228
+ $ref: "#/components/schemas/FullInvoice"
229
+ meta:
230
+ type: object
231
+ FullInvoiceCreateBody:
232
+ type: object
233
+ properties:
234
+ serial:
235
+ type: string
236
+ client:
237
+ type: string
238
+ rep:
239
+ type: string
240
+ warehouse:
241
+ type: string
242
+ route:
243
+ type: string
244
+ items:
245
+ type: array
246
+ items:
247
+ type: object
248
+ total:
249
+ type: number
250
+ status:
251
+ type: string
252
+ dueDate:
253
+ type: string
254
+ format: date-time
255
+ returned_from:
256
+ oneOf:
257
+ - type: string
258
+ - $ref: "#/components/schemas/FullInvoiceReference"
259
+ returned_to:
260
+ oneOf:
261
+ - type: string
262
+ - $ref: "#/components/schemas/FullInvoice"
263
+ partially_returned_from:
264
+ oneOf:
265
+ - type: string
266
+ - $ref: "#/components/schemas/FullInvoiceReference"
267
+ workorder:
268
+ oneOf:
269
+ - type: string
270
+ - $ref: "#/components/schemas/WorkorderReference"
271
+ asset:
272
+ type: string
273
+ asset_unit:
274
+ type: string
275
+ proforma_reference:
276
+ type: string
277
+ exclude_return_items:
278
+ type: boolean
279
+ delivery_fees:
280
+ type: number
281
+ bank_fees:
282
+ type: number
283
+ discount:
284
+ type: number
285
+ prepaid_amount:
286
+ type: number
287
+ return_reason:
288
+ type: string
289
+ comment:
290
+ type: string
291
+ teams:
292
+ type: array
293
+ items:
294
+ type: string
295
+ tags:
296
+ type: array
297
+ items:
298
+ type: string
299
+ skip_promos:
300
+ type: boolean
301
+ FullInvoiceCreateResult:
302
+ type: object
303
+ properties:
304
+ data:
305
+ $ref: "#/components/schemas/FullInvoice"
306
+ FullInvoiceGetResult:
307
+ type: object
308
+ properties:
309
+ data:
310
+ $ref: "#/components/schemas/FullInvoice"
311
+ FullInvoiceUpdateBody:
312
+ type: object
313
+ properties:
314
+ serial:
315
+ type: string
316
+ client:
317
+ type: string
318
+ rep:
319
+ type: string
320
+ warehouse:
321
+ type: string
322
+ route:
323
+ type: string
324
+ items:
325
+ type: array
326
+ items:
327
+ type: object
328
+ total:
329
+ type: number
330
+ status:
331
+ type: string
332
+ dueDate:
333
+ type: string
334
+ format: date-time
335
+ returned_from:
336
+ oneOf:
337
+ - type: string
338
+ - $ref: "#/components/schemas/FullInvoiceReference"
339
+ returned_to:
340
+ oneOf:
341
+ - type: string
342
+ - $ref: "#/components/schemas/FullInvoice"
343
+ partially_returned_from:
344
+ oneOf:
345
+ - type: string
346
+ - $ref: "#/components/schemas/FullInvoiceReference"
347
+ workorder:
348
+ oneOf:
349
+ - type: string
350
+ - $ref: "#/components/schemas/WorkorderReference"
351
+ asset:
352
+ type: string
353
+ asset_unit:
354
+ type: string
355
+ proforma_reference:
356
+ type: string
357
+ exclude_return_items:
358
+ type: boolean
359
+ delivery_fees:
360
+ type: number
361
+ bank_fees:
362
+ type: number
363
+ discount:
364
+ type: number
365
+ prepaid_amount:
366
+ type: number
367
+ return_reason:
368
+ type: string
369
+ comment:
370
+ type: string
371
+ teams:
372
+ type: array
373
+ items:
374
+ type: string
375
+ tags:
376
+ type: array
377
+ items:
378
+ type: string
379
+ skip_promos:
380
+ type: boolean
381
+ is_void:
382
+ type: boolean
383
+ FullInvoiceUpdateResult:
384
+ type: object
385
+ properties:
386
+ data:
387
+ $ref: "#/components/schemas/FullInvoice"
388
+ FullInvoice:
389
+ type: object
390
+ properties:
391
+ _id:
392
+ type: string
393
+ serial:
394
+ type: string
395
+ serial_number:
396
+ $ref: "#/components/schemas/SerialNumber"
397
+ advanced_serial_number:
398
+ $ref: "#/components/schemas/SerialNumber"
399
+ client:
400
+ type: string
401
+ rep:
402
+ type: string
403
+ warehouse:
404
+ type: string
405
+ route:
406
+ type: string
407
+ items:
408
+ type: array
409
+ items:
410
+ type: object
411
+ total:
412
+ type: number
413
+ status:
414
+ type: string
415
+ dueDate:
416
+ type: string
417
+ format: date-time
418
+ returned_from:
419
+ oneOf:
420
+ - type: string
421
+ - $ref: "#/components/schemas/FullInvoiceReference"
422
+ returned_to:
423
+ oneOf:
424
+ - type: string
425
+ - $ref: "#/components/schemas/FullInvoice"
426
+ partially_returned_from:
427
+ oneOf:
428
+ - type: string
429
+ - $ref: "#/components/schemas/FullInvoiceReference"
430
+ partially_returned_to:
431
+ type: array
432
+ items:
433
+ type: string
434
+ returned_from_serial_number:
435
+ $ref: "#/components/schemas/SerialNumber"
436
+ returned_to_serial_number:
437
+ $ref: "#/components/schemas/SerialNumber"
438
+ partially_returned_from_serial_number:
439
+ $ref: "#/components/schemas/SerialNumber"
440
+ partially_returned_to_serial_number:
441
+ type: array
442
+ items:
443
+ $ref: "#/components/schemas/SerialNumber"
444
+ workorder:
445
+ oneOf:
446
+ - type: string
447
+ - $ref: "#/components/schemas/WorkorderReference"
448
+ asset:
449
+ type: string
450
+ asset_unit:
451
+ type: string
452
+ signature:
453
+ type: object
454
+ proforma_reference:
455
+ type: string
456
+ converted_at:
457
+ type: number
458
+ exclude_return_items:
459
+ type: boolean
460
+ is_void:
461
+ type: boolean
462
+ skip_promos:
463
+ type: boolean
464
+ skipped_promotions:
465
+ type: array
466
+ items:
467
+ type: object
468
+ properties:
469
+ _id:
470
+ type: string
471
+ name:
472
+ type: string
473
+ ref:
474
+ type: string
475
+ time:
476
+ type: number
477
+ rep_name:
478
+ type: string
479
+ client_name:
480
+ type: string
481
+ client_city:
482
+ type: string
483
+ client_location:
484
+ type: object
485
+ properties:
486
+ lat:
487
+ type: number
488
+ lng:
489
+ type: number
490
+ geo_location:
491
+ type: object
492
+ properties:
493
+ type:
494
+ type: string
495
+ enum: [Point]
496
+ coordinates:
497
+ type: array
498
+ items:
499
+ type: number
500
+ minItems: 2
501
+ maxItems: 2
502
+ delivery_fees:
503
+ type: number
504
+ bank_fees:
505
+ type: number
506
+ discount:
507
+ type: number
508
+ discount_float:
509
+ type: number
510
+ lines_discount_float:
511
+ type: number
512
+ total_word:
513
+ type: string
514
+ total_local_word:
515
+ type: string
516
+ applied_promotions:
517
+ type: array
518
+ items:
519
+ type: object
520
+ prepaid_amount:
521
+ type: number
522
+ is_production_test:
523
+ type: boolean
524
+ return_reason:
525
+ type: string
526
+ comment:
527
+ type: string
528
+ company_namespace:
529
+ type: array
530
+ items:
531
+ type: string
532
+ creator:
533
+ type: object
534
+ properties:
535
+ _id:
536
+ type: string
537
+ type:
538
+ type: string
539
+ enum: [admin, rep]
540
+ name:
541
+ type: string
542
+ teams:
543
+ type: array
544
+ items:
545
+ type: string
546
+ tags:
547
+ type: array
548
+ items:
549
+ type: string
550
+ createdAt:
551
+ type: string
552
+ format: date-time
553
+ updatedAt:
554
+ type: string
555
+ format: date-time
556
+ SerialNumber:
557
+ type: object
558
+ properties:
559
+ identifier:
560
+ type: string
561
+ formatted:
562
+ type: string
563
+ count:
564
+ type: number
565
+ FullInvoiceReference:
566
+ type: object
567
+ properties:
568
+ _id:
569
+ type: string
570
+ serial_number:
571
+ type: string
572
+ advanced_serial_number:
573
+ type: string
574
+ WorkorderReference:
575
+ type: object
576
+ properties:
577
+ _id:
578
+ type: string
579
+ serial_number:
580
+ type: string
581
+ name:
582
+ type: string
583
+ local_name:
584
+ type: string