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,505 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Repzo API - Settlement
4
+ version: 1.0.0
5
+ description: OpenAPI specification for Repzo Settlement endpoints.
6
+ servers:
7
+ - url: https://sv.api.repzo.me
8
+ paths:
9
+ /settlement:
10
+ get:
11
+ summary: Find settlements
12
+ operationId: findSettlements
13
+ parameters:
14
+ - in: query
15
+ name: params
16
+ schema:
17
+ type: object
18
+ properties:
19
+ _id:
20
+ oneOf:
21
+ - type: array
22
+ items:
23
+ type: string
24
+ - type: string
25
+ "creator._id":
26
+ oneOf:
27
+ - type: array
28
+ items:
29
+ type: string
30
+ - type: string
31
+ "origin._id":
32
+ oneOf:
33
+ - type: array
34
+ items:
35
+ type: string
36
+ - type: string
37
+ creator:
38
+ oneOf:
39
+ - type: array
40
+ items:
41
+ type: string
42
+ - type: string
43
+ origin:
44
+ oneOf:
45
+ - type: array
46
+ items:
47
+ type: string
48
+ - type: string
49
+ "creator.type":
50
+ oneOf:
51
+ - type: array
52
+ items:
53
+ type: string
54
+ - type: string
55
+ "origin.type":
56
+ oneOf:
57
+ - type: array
58
+ items:
59
+ type: string
60
+ - type: string
61
+ creator_type:
62
+ oneOf:
63
+ - type: array
64
+ items:
65
+ type: string
66
+ - type: string
67
+ origin_type:
68
+ oneOf:
69
+ - type: array
70
+ items:
71
+ type: string
72
+ - type: string
73
+ amount:
74
+ type: number
75
+ payment_type:
76
+ type: string
77
+ from_createdAt:
78
+ type: number
79
+ to_createdAt:
80
+ type: number
81
+ from_updatedAt:
82
+ type: number
83
+ from__id:
84
+ type: string
85
+ to__id:
86
+ type: string
87
+ sortBy:
88
+ type: array
89
+ items:
90
+ type: object
91
+ properties:
92
+ field:
93
+ type: string
94
+ enum: [_id]
95
+ type:
96
+ type: string
97
+ enum: [asc, desc]
98
+ populatedKeys:
99
+ type: array
100
+ items:
101
+ type: string
102
+ enum: [teams, check_id, media]
103
+ description: Query parameters for filtering settlements
104
+ responses:
105
+ "200":
106
+ description: A list of settlements
107
+ content:
108
+ application/json:
109
+ schema:
110
+ $ref: "#/components/schemas/SettlementFindResult"
111
+ post:
112
+ summary: Create a settlement
113
+ operationId: createSettlement
114
+ requestBody:
115
+ required: true
116
+ content:
117
+ application/json:
118
+ schema:
119
+ $ref: "#/components/schemas/SettlementCreateBody"
120
+ responses:
121
+ "201":
122
+ description: Settlement created
123
+ content:
124
+ application/json:
125
+ schema:
126
+ $ref: "#/components/schemas/SettlementCreateResult"
127
+ /settlement/{id}:
128
+ get:
129
+ summary: Get a settlement by ID
130
+ operationId: getSettlement
131
+ parameters:
132
+ - in: path
133
+ name: id
134
+ required: true
135
+ schema:
136
+ type: string
137
+ - in: query
138
+ name: params
139
+ schema:
140
+ type: object
141
+ properties:
142
+ populatedKeys:
143
+ type: array
144
+ items:
145
+ type: string
146
+ enum: [teams, check_id, media]
147
+ responses:
148
+ "200":
149
+ description: Settlement details
150
+ content:
151
+ application/json:
152
+ schema:
153
+ $ref: "#/components/schemas/SettlementGetResult"
154
+ components:
155
+ schemas:
156
+ SettlementFindResult:
157
+ type: object
158
+ description: Result of finding settlements
159
+ properties:
160
+ data:
161
+ type: array
162
+ items:
163
+ $ref: "#/components/schemas/SettlementSchemaWithPopulatedKeys"
164
+ total_result:
165
+ type: number
166
+ description: Total number of settlements
167
+ current_count:
168
+ type: number
169
+ description: Count of settlements in current page
170
+ total_pages:
171
+ type: number
172
+ description: Total number of pages
173
+ current_page:
174
+ type: number
175
+ description: Current page number
176
+ per_page:
177
+ type: number
178
+ description: Number of settlements per page
179
+ absolute_total:
180
+ type: number
181
+ description: Absolute total count
182
+ page_total:
183
+ type: number
184
+ description: Page total count
185
+ SettlementSchema:
186
+ type: object
187
+ description: Settlement schema
188
+ properties:
189
+ _id:
190
+ type: string
191
+ description: Unique identifier for the settlement
192
+ amount:
193
+ type: number
194
+ description: Settlement amount
195
+ creator:
196
+ type: object
197
+ description: Creator of the settlement
198
+ properties:
199
+ _id:
200
+ type: string
201
+ type:
202
+ type: string
203
+ enum: [admin, rep]
204
+ admin:
205
+ type: string
206
+ rep:
207
+ type: string
208
+ name:
209
+ type: string
210
+ origin:
211
+ type: object
212
+ description: Origin of the settlement
213
+ properties:
214
+ _id:
215
+ type: string
216
+ type:
217
+ type: string
218
+ enum: [rep, admin]
219
+ name:
220
+ type: string
221
+ rep:
222
+ type: string
223
+ admin:
224
+ type: string
225
+ time:
226
+ type: number
227
+ description: Settlement time
228
+ serial_number:
229
+ type: object
230
+ description: Serial number information
231
+ properties:
232
+ identifier:
233
+ type: string
234
+ formatted:
235
+ type: string
236
+ count:
237
+ type: number
238
+ paytime:
239
+ type: string
240
+ description: Payment time
241
+ note:
242
+ type: string
243
+ description: Settlement note
244
+ payment_type:
245
+ type: string
246
+ enum: [check, cash]
247
+ description: Type of payment
248
+ check_id:
249
+ type: string
250
+ description: Check ID if payment type is check
251
+ teams:
252
+ type: array
253
+ items:
254
+ type: string
255
+ description: Associated team IDs
256
+ company_namespace:
257
+ type: array
258
+ items:
259
+ type: string
260
+ description: Company namespaces
261
+ sync_id:
262
+ type: string
263
+ description: Sync identifier
264
+ transaction_processed:
265
+ type: boolean
266
+ description: Whether transaction has been processed
267
+ media:
268
+ type: array
269
+ items:
270
+ type: string
271
+ description: Media attachment IDs
272
+ createdAt:
273
+ type: string
274
+ format: date-time
275
+ description: Creation timestamp
276
+ updatedAt:
277
+ type: string
278
+ format: date-time
279
+ description: Last update timestamp
280
+ SettlementSchemaWithPopulatedKeys:
281
+ allOf:
282
+ - $ref: "#/components/schemas/SettlementSchema"
283
+ - type: object
284
+ properties:
285
+ teams_populated:
286
+ oneOf:
287
+ - type: array
288
+ items:
289
+ type: string
290
+ - type: array
291
+ items:
292
+ $ref: "#/components/schemas/TeamSchema"
293
+ check_populated:
294
+ oneOf:
295
+ - type: string
296
+ - $ref: "#/components/schemas/CheckSchema"
297
+ media_populated:
298
+ oneOf:
299
+ - type: array
300
+ items:
301
+ type: string
302
+ - type: array
303
+ items:
304
+ $ref: "#/components/schemas/MediaPopulated"
305
+ TeamSchema:
306
+ type: object
307
+ description: Team schema reference
308
+ properties:
309
+ _id:
310
+ type: string
311
+ name:
312
+ type: string
313
+ CheckSchema:
314
+ type: object
315
+ description: Check schema reference
316
+ properties:
317
+ _id:
318
+ type: string
319
+ drawer_name:
320
+ type: string
321
+ bank:
322
+ type: string
323
+ amount:
324
+ type: number
325
+ MediaPopulated:
326
+ type: object
327
+ description: Media populated schema
328
+ properties:
329
+ _id:
330
+ type: string
331
+ media_type:
332
+ type: string
333
+ enum:
334
+ [
335
+ csv,
336
+ json,
337
+ image,
338
+ pdf,
339
+ ppt,
340
+ pptx,
341
+ xls,
342
+ xlsx,
343
+ doc,
344
+ docx,
345
+ images,
346
+ zip,
347
+ ]
348
+ mime_type:
349
+ type: string
350
+ publicUrl:
351
+ type: string
352
+ file_name:
353
+ type: string
354
+ type_name:
355
+ type: string
356
+ enum: [FileAttachment, ImageAttachment]
357
+ media_id:
358
+ type: string
359
+ ContentType:
360
+ type: string
361
+ createdAt:
362
+ type: string
363
+ updatedAt:
364
+ type: string
365
+ thumbnails:
366
+ $ref: "#/components/schemas/ThumbnailStoragePopulated"
367
+ ThumbnailStoragePopulated:
368
+ type: object
369
+ description: Thumbnail storage populated schema
370
+ properties:
371
+ _id:
372
+ type: string
373
+ createdAt:
374
+ type: string
375
+ ContentType:
376
+ type: string
377
+ mime_type:
378
+ type: string
379
+ publicUrl:
380
+ type: string
381
+ type_name:
382
+ type: string
383
+ enum: [FileAttachment, ImageAttachment]
384
+ file_name:
385
+ type: string
386
+ media_id:
387
+ type: string
388
+ media_type:
389
+ type: string
390
+ enum:
391
+ [
392
+ csv,
393
+ json,
394
+ image,
395
+ pdf,
396
+ "ppt",
397
+ pptx,
398
+ xls,
399
+ xlsx,
400
+ doc,
401
+ docx,
402
+ "images",
403
+ zip,
404
+ thumbnail,
405
+ ]
406
+ SettlementCreateBody:
407
+ type: object
408
+ description: Body for creating a settlement
409
+ required:
410
+ - amount
411
+ - origin
412
+ - serial_number
413
+ - paytime
414
+ - payment_type
415
+ - teams
416
+ - company_namespace
417
+ - sync_id
418
+ - transaction_processed
419
+ properties:
420
+ amount:
421
+ type: number
422
+ description: Settlement amount
423
+ time:
424
+ type: number
425
+ description: Settlement time
426
+ creator:
427
+ type: object
428
+ description: Creator of the settlement
429
+ properties:
430
+ _id:
431
+ type: string
432
+ type:
433
+ type: string
434
+ enum: [admin, rep]
435
+ admin:
436
+ type: string
437
+ rep:
438
+ type: string
439
+ name:
440
+ type: string
441
+ origin:
442
+ type: object
443
+ description: Origin of the settlement
444
+ properties:
445
+ _id:
446
+ type: string
447
+ type:
448
+ type: string
449
+ enum: [rep, admin]
450
+ name:
451
+ type: string
452
+ rep:
453
+ type: string
454
+ admin:
455
+ type: string
456
+ serial_number:
457
+ type: object
458
+ description: Serial number information
459
+ properties:
460
+ identifier:
461
+ type: string
462
+ formatted:
463
+ type: string
464
+ count:
465
+ type: number
466
+ paytime:
467
+ type: string
468
+ description: Payment time
469
+ note:
470
+ type: string
471
+ description: Settlement note
472
+ payment_type:
473
+ type: string
474
+ enum: [check, cash]
475
+ description: Type of payment
476
+ check_id:
477
+ type: string
478
+ description: Check ID if payment type is check
479
+ teams:
480
+ type: array
481
+ items:
482
+ type: string
483
+ description: Associated team IDs
484
+ company_namespace:
485
+ type: array
486
+ items:
487
+ type: string
488
+ description: Company namespaces
489
+ sync_id:
490
+ type: string
491
+ description: Sync identifier
492
+ transaction_processed:
493
+ type: boolean
494
+ description: Whether transaction has been processed
495
+ media:
496
+ type: array
497
+ items:
498
+ type: string
499
+ description: Media attachment IDs
500
+ SettlementCreateResult:
501
+ $ref: "#/components/schemas/SettlementSchema"
502
+ description: Result of creating a settlement
503
+ SettlementGetResult:
504
+ $ref: "#/components/schemas/SettlementSchemaWithPopulatedKeys"
505
+ description: Result of getting a settlement