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,569 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Repzo API - Variant
4
+ version: 1.0.0
5
+ description: OpenAPI specification for Repzo Variant endpoints.
6
+ servers:
7
+ - url: https://sv.api.repzo.me
8
+ paths:
9
+ /variant:
10
+ get:
11
+ summary: Find variants
12
+ operationId: findVariants
13
+ parameters:
14
+ - in: query
15
+ name: params
16
+ schema:
17
+ type: object
18
+ description: Query parameters for filtering variants
19
+ - in: query
20
+ name: withDisabled
21
+ schema:
22
+ type: boolean
23
+ description: Include disabled variants in the results
24
+ - in: query
25
+ name: _id
26
+ schema:
27
+ oneOf:
28
+ - type: string
29
+ - type: array
30
+ items:
31
+ type: string
32
+ description: Variant ID(s) to filter by
33
+ - in: query
34
+ name: search
35
+ schema:
36
+ type: string
37
+ description: Search term for variants
38
+ - in: query
39
+ name: name
40
+ schema:
41
+ oneOf:
42
+ - type: string
43
+ - type: array
44
+ items:
45
+ type: string
46
+ description: Variant name(s) to filter by
47
+ - in: query
48
+ name: local_name
49
+ schema:
50
+ oneOf:
51
+ - type: string
52
+ - type: array
53
+ items:
54
+ type: string
55
+ description: Local name(s) to filter by
56
+ - in: query
57
+ name: disabled
58
+ schema:
59
+ type: boolean
60
+ description: Filter by disabled status
61
+ - in: query
62
+ name: product
63
+ schema:
64
+ oneOf:
65
+ - type: string
66
+ - type: array
67
+ items:
68
+ type: string
69
+ description: Product ID(s) to filter by
70
+ - in: query
71
+ name: barcode
72
+ schema:
73
+ oneOf:
74
+ - type: string
75
+ - type: array
76
+ items:
77
+ type: string
78
+ description: Barcode(s) to filter by
79
+ - in: query
80
+ name: sku
81
+ schema:
82
+ oneOf:
83
+ - type: string
84
+ - type: array
85
+ items:
86
+ type: string
87
+ description: SKU(s) to filter by
88
+ - in: query
89
+ name: price
90
+ schema:
91
+ oneOf:
92
+ - type: number
93
+ - type: array
94
+ items:
95
+ type: number
96
+ description: Price(s) to filter by
97
+ - in: query
98
+ name: position
99
+ schema:
100
+ oneOf:
101
+ - type: number
102
+ - type: array
103
+ items:
104
+ type: number
105
+ description: Position(s) to filter by
106
+ - in: query
107
+ name: createdAt
108
+ schema:
109
+ type: number
110
+ description: Created timestamp to filter by
111
+ - in: query
112
+ name: updatedAt
113
+ schema:
114
+ type: number
115
+ description: Updated timestamp to filter by
116
+ - in: query
117
+ name: from_updatedAt
118
+ schema:
119
+ type: number
120
+ description: Filter variants updated from this timestamp
121
+ - in: query
122
+ name: from__id
123
+ schema:
124
+ type: string
125
+ description: Filter variants starting from this ID
126
+ - in: query
127
+ name: to__id
128
+ schema:
129
+ type: string
130
+ description: Filter variants up to this ID
131
+ - in: query
132
+ name: default
133
+ schema:
134
+ type: boolean
135
+ description: Filter by default variant status
136
+ - in: query
137
+ name: category
138
+ schema:
139
+ oneOf:
140
+ - type: string
141
+ - type: array
142
+ items:
143
+ type: string
144
+ description: Category ID(s) to filter by
145
+ - in: query
146
+ name: subCategory
147
+ schema:
148
+ oneOf:
149
+ - type: string
150
+ - type: array
151
+ items:
152
+ type: string
153
+ description: Sub-category ID(s) to filter by
154
+ - in: query
155
+ name: brand
156
+ schema:
157
+ oneOf:
158
+ - type: string
159
+ - type: array
160
+ items:
161
+ type: string
162
+ description: Brand ID(s) to filter by
163
+ - in: query
164
+ name: productGroup
165
+ schema:
166
+ oneOf:
167
+ - type: string
168
+ - type: array
169
+ items:
170
+ type: string
171
+ description: Product group ID(s) to filter by
172
+ - in: query
173
+ name: teams
174
+ schema:
175
+ oneOf:
176
+ - type: string
177
+ - type: array
178
+ items:
179
+ type: string
180
+ description: Team ID(s) to filter by
181
+ - in: query
182
+ name: withProduct
183
+ schema:
184
+ type: boolean
185
+ description: Include product information in the results
186
+ - in: query
187
+ name: populatedKeys
188
+ schema:
189
+ type: array
190
+ items:
191
+ type: string
192
+ enum: ["product", "modifiers_groups"]
193
+ description: Keys to populate in the response
194
+ - in: query
195
+ name: per_page
196
+ schema:
197
+ type: number
198
+ description: Number of items per page
199
+ - in: query
200
+ name: page
201
+ schema:
202
+ type: number
203
+ description: Page number
204
+ - in: query
205
+ name: sort
206
+ schema:
207
+ type: string
208
+ description: Sort field
209
+ - in: query
210
+ name: sortPageOrder
211
+ schema:
212
+ type: string
213
+ enum: ["asc", "dsc"]
214
+ description: Sort order
215
+ responses:
216
+ "200":
217
+ description: A list of variants
218
+ content:
219
+ application/json:
220
+ schema:
221
+ $ref: "#/components/schemas/VariantFindResult"
222
+ post:
223
+ summary: Create a variant
224
+ operationId: createVariant
225
+ requestBody:
226
+ required: true
227
+ content:
228
+ application/json:
229
+ schema:
230
+ $ref: "#/components/schemas/VariantCreateBody"
231
+ responses:
232
+ "201":
233
+ description: Variant created
234
+ content:
235
+ application/json:
236
+ schema:
237
+ $ref: "#/components/schemas/VariantCreateResult"
238
+ /variant/{id}:
239
+ get:
240
+ summary: Get a variant by ID
241
+ operationId: getVariant
242
+ parameters:
243
+ - in: path
244
+ name: id
245
+ required: true
246
+ schema:
247
+ type: string
248
+ responses:
249
+ "200":
250
+ description: Variant details
251
+ content:
252
+ application/json:
253
+ schema:
254
+ $ref: "#/components/schemas/VariantGetResult"
255
+ put:
256
+ summary: Update a variant
257
+ operationId: updateVariant
258
+ parameters:
259
+ - in: path
260
+ name: id
261
+ required: true
262
+ schema:
263
+ type: string
264
+ requestBody:
265
+ required: true
266
+ content:
267
+ application/json:
268
+ schema:
269
+ $ref: "#/components/schemas/VariantUpdateBody"
270
+ responses:
271
+ "200":
272
+ description: Variant updated
273
+ content:
274
+ application/json:
275
+ schema:
276
+ $ref: "#/components/schemas/VariantUpdateResult"
277
+ delete:
278
+ summary: Remove a variant
279
+ operationId: removeVariant
280
+ parameters:
281
+ - in: path
282
+ name: id
283
+ required: true
284
+ schema:
285
+ type: string
286
+ responses:
287
+ "200":
288
+ description: Variant removed
289
+ content:
290
+ application/json:
291
+ schema:
292
+ $ref: "#/components/schemas/VariantRemoveResult"
293
+ components:
294
+ schemas:
295
+ VariantFindResult:
296
+ type: object
297
+ description: Result of finding variants
298
+ properties:
299
+ data:
300
+ type: array
301
+ items:
302
+ $ref: "#/components/schemas/VariantSchema"
303
+ total_result:
304
+ type: number
305
+ description: Total number of variants
306
+ current_count:
307
+ type: number
308
+ description: Count of variants in current page
309
+ total_pages:
310
+ type: number
311
+ description: Total number of pages
312
+ current_page:
313
+ type: number
314
+ description: Current page number
315
+ per_page:
316
+ type: number
317
+ description: Number of variants per page
318
+ first_page_url:
319
+ type: string
320
+ description: URL for the first page
321
+ last_page_url:
322
+ type: string
323
+ description: URL for the last page
324
+ next_page_url:
325
+ type: string
326
+ nullable: true
327
+ description: URL for the next page
328
+ prev_page_url:
329
+ type: string
330
+ nullable: true
331
+ description: URL for the previous page
332
+ path:
333
+ type: string
334
+ description: Base URL path
335
+ VariantSchema:
336
+ type: object
337
+ description: Variant schema
338
+ properties:
339
+ _id:
340
+ type: string
341
+ description: Unique identifier for the variant
342
+ name:
343
+ type: string
344
+ description: Name of the variant
345
+ product:
346
+ type: string
347
+ description: ID of the product this variant belongs to
348
+ price:
349
+ type: number
350
+ description: Price of the variant
351
+ company_namespace:
352
+ type: array
353
+ items:
354
+ type: string
355
+ description: Company namespaces
356
+ disabled:
357
+ type: boolean
358
+ description: Whether the variant is disabled
359
+ uuid:
360
+ type: string
361
+ description: UUID for the variant
362
+ local_name:
363
+ type: string
364
+ description: Localized name of the variant
365
+ sku:
366
+ type: string
367
+ description: Stock keeping unit
368
+ barcode:
369
+ type: string
370
+ description: Barcode of the variant
371
+ weight:
372
+ type: number
373
+ description: Weight of the variant
374
+ length:
375
+ type: number
376
+ description: Length of the variant
377
+ width:
378
+ type: number
379
+ description: Width of the variant
380
+ height:
381
+ type: number
382
+ description: Height of the variant
383
+ position:
384
+ type: number
385
+ description: Position of the variant
386
+ default:
387
+ type: boolean
388
+ description: Whether this is the default variant
389
+ variant_img:
390
+ type: string
391
+ description: Image URL for the variant
392
+ modifiers_groups:
393
+ type: array
394
+ items:
395
+ type: string
396
+ description: Modifier groups for the variant
397
+ integration_meta:
398
+ type: object
399
+ additionalProperties: true
400
+ description: Integration metadata
401
+ createdAt:
402
+ type: string
403
+ format: date-time
404
+ description: Creation timestamp
405
+ updatedAt:
406
+ type: string
407
+ format: date-time
408
+ description: Last update timestamp
409
+ __v:
410
+ type: number
411
+ description: Version number
412
+ VariantCreateBody:
413
+ type: object
414
+ description: Body for creating a variant
415
+ required:
416
+ - name
417
+ - product
418
+ - price
419
+ properties:
420
+ name:
421
+ type: string
422
+ description: Name of the variant
423
+ product:
424
+ type: string
425
+ description: ID of the product this variant belongs to
426
+ price:
427
+ type: number
428
+ description: Price of the variant
429
+ company_namespace:
430
+ type: array
431
+ items:
432
+ type: string
433
+ description: Company namespaces
434
+ disabled:
435
+ type: boolean
436
+ description: Whether the variant is disabled
437
+ uuid:
438
+ type: string
439
+ description: UUID for the variant
440
+ local_name:
441
+ type: string
442
+ description: Localized name of the variant
443
+ sku:
444
+ type: string
445
+ description: Stock keeping unit
446
+ barcode:
447
+ type: string
448
+ description: Barcode of the variant
449
+ weight:
450
+ type: number
451
+ description: Weight of the variant
452
+ length:
453
+ type: number
454
+ description: Length of the variant
455
+ width:
456
+ type: number
457
+ description: Width of the variant
458
+ height:
459
+ type: number
460
+ description: Height of the variant
461
+ position:
462
+ type: number
463
+ description: Position of the variant
464
+ default:
465
+ type: boolean
466
+ description: Whether this is the default variant
467
+ variant_img:
468
+ type: string
469
+ description: Image URL for the variant
470
+ modifiers_groups:
471
+ type: array
472
+ items:
473
+ type: string
474
+ description: Modifier groups for the variant
475
+ integration_meta:
476
+ type: object
477
+ additionalProperties: true
478
+ description: Integration metadata
479
+ VariantCreateResult:
480
+ type: object
481
+ description: Result of creating a variant
482
+ properties:
483
+ $ref: "#/components/schemas/VariantSchema"
484
+ VariantGetResult:
485
+ $ref: "#/components/schemas/VariantSchema"
486
+ description: Result of getting a variant
487
+ VariantUpdateBody:
488
+ type: object
489
+ description: Body for updating a variant
490
+ properties:
491
+ name:
492
+ type: string
493
+ description: Name of the variant
494
+ product:
495
+ type: string
496
+ description: ID of the product this variant belongs to
497
+ price:
498
+ type: number
499
+ description: Price of the variant
500
+ company_namespace:
501
+ type: array
502
+ items:
503
+ type: string
504
+ description: Company namespaces
505
+ disabled:
506
+ type: boolean
507
+ description: Whether the variant is disabled
508
+ uuid:
509
+ type: string
510
+ description: UUID for the variant
511
+ local_name:
512
+ type: string
513
+ description: Localized name of the variant
514
+ sku:
515
+ type: string
516
+ description: Stock keeping unit
517
+ barcode:
518
+ type: string
519
+ description: Barcode of the variant
520
+ weight:
521
+ type: number
522
+ description: Weight of the variant
523
+ length:
524
+ type: number
525
+ description: Length of the variant
526
+ width:
527
+ type: number
528
+ description: Width of the variant
529
+ height:
530
+ type: number
531
+ description: Height of the variant
532
+ position:
533
+ type: number
534
+ description: Position of the variant
535
+ default:
536
+ type: boolean
537
+ description: Whether this is the default variant
538
+ variant_img:
539
+ type: string
540
+ description: Image URL for the variant
541
+ modifiers_groups:
542
+ type: array
543
+ items:
544
+ type: string
545
+ description: Modifier groups for the variant
546
+ integration_meta:
547
+ type: object
548
+ additionalProperties: true
549
+ description: Integration metadata
550
+ _id:
551
+ type: string
552
+ description: Unique identifier for the variant
553
+ createdAt:
554
+ type: string
555
+ format: date-time
556
+ description: Creation timestamp
557
+ updatedAt:
558
+ type: string
559
+ format: date-time
560
+ description: Last update timestamp
561
+ __v:
562
+ type: number
563
+ description: Version number
564
+ VariantUpdateResult:
565
+ $ref: "#/components/schemas/VariantSchema"
566
+ description: Result of updating a variant
567
+ VariantRemoveResult:
568
+ $ref: "#/components/schemas/VariantSchema"
569
+ description: Result of removing a variant