repzo 1.0.155 → 1.0.157

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 (94) hide show
  1. package/lib/index.d.ts +1 -2
  2. package/lib/index.js +1 -1
  3. package/lib/types/index.d.ts +2 -2
  4. package/package.json +2 -2
  5. package/src/index.ts +4890 -0
  6. package/src/oas/activity-ai-sales-order.yaml +623 -0
  7. package/src/oas/activity-feedback-v2.yaml +753 -0
  8. package/src/oas/activity-feedback.yaml +645 -0
  9. package/src/oas/activity-storecheck.yaml +379 -0
  10. package/src/oas/adjust-account.yaml +241 -0
  11. package/src/oas/adjust-inventory.yaml +133 -0
  12. package/src/oas/approval-request.yaml +211 -0
  13. package/src/oas/approvals.yaml +176 -0
  14. package/src/oas/asset-part-receival.yaml +591 -0
  15. package/src/oas/asset-part-transfer.yaml +618 -0
  16. package/src/oas/asset-part-type.yaml +383 -0
  17. package/src/oas/asset-part-unit.yaml +722 -0
  18. package/src/oas/asset-part.yaml +485 -0
  19. package/src/oas/asset-type.yaml +180 -0
  20. package/src/oas/asset-unit.yaml +705 -0
  21. package/src/oas/asset.yaml +204 -0
  22. package/src/oas/banks.yaml +168 -0
  23. package/src/oas/bankslists.yaml +168 -0
  24. package/src/oas/brand.yaml +246 -0
  25. package/src/oas/category.yaml +285 -0
  26. package/src/oas/checks.yaml +247 -0
  27. package/src/oas/client-channel.yaml +480 -0
  28. package/src/oas/client-contact.yaml +665 -0
  29. package/src/oas/client-location.yaml +687 -0
  30. package/src/oas/client.yaml +669 -0
  31. package/src/oas/contract-installment.yaml +740 -0
  32. package/src/oas/contract.yaml +210 -0
  33. package/src/oas/custom-list-item.yaml +168 -0
  34. package/src/oas/custom-list.yaml +168 -0
  35. package/src/oas/custom-status.yaml +168 -0
  36. package/src/oas/day.yaml +246 -0
  37. package/src/oas/feedback-options.yaml +802 -0
  38. package/src/oas/fullinvoices.yaml +584 -0
  39. package/src/oas/integration-action-log.yaml +361 -0
  40. package/src/oas/integration-app.yaml +303 -0
  41. package/src/oas/integration-command-log.yaml +381 -0
  42. package/src/oas/inventory-adjustment-reason.yaml +165 -0
  43. package/src/oas/inventory.yaml +64 -0
  44. package/src/oas/mail-unsubscribe.yaml +463 -0
  45. package/src/oas/measureunit-family.yaml +354 -0
  46. package/src/oas/measureunit.yaml +366 -0
  47. package/src/oas/media-storage.yaml +329 -0
  48. package/src/oas/media.yaml +472 -0
  49. package/src/oas/msl-products.yaml +180 -0
  50. package/src/oas/msl.yaml +186 -0
  51. package/src/oas/ocr-invoice-job-group.yaml +528 -0
  52. package/src/oas/ocr-invoice-job-page.yaml +602 -0
  53. package/src/oas/ocr-invoice-job-template.yaml +628 -0
  54. package/src/oas/ocr-invoice-job.yaml +603 -0
  55. package/src/oas/patch-action.yaml +421 -0
  56. package/src/oas/payment-terms.yaml +235 -0
  57. package/src/oas/payments.yaml +536 -0
  58. package/src/oas/pricelist-item.yaml +369 -0
  59. package/src/oas/pricelist.yaml +287 -0
  60. package/src/oas/product-group.yaml +278 -0
  61. package/src/oas/product-modifiers-group.yaml +524 -0
  62. package/src/oas/product.yaml +578 -0
  63. package/src/oas/proforma.yaml +180 -0
  64. package/src/oas/quick-convert-to-pdf.yaml +95 -0
  65. package/src/oas/receiving-material.yaml +336 -0
  66. package/src/oas/refund.yaml +281 -0
  67. package/src/oas/rep-balance-summary.yaml +135 -0
  68. package/src/oas/rep.yaml +1824 -0
  69. package/src/oas/return-asset-part-unit.yaml +573 -0
  70. package/src/oas/return-reason.yaml +286 -0
  71. package/src/oas/route.yaml +337 -0
  72. package/src/oas/safe-invoice-serial-counter.yaml +525 -0
  73. package/src/oas/settings.yaml +123 -0
  74. package/src/oas/settlement.yaml +505 -0
  75. package/src/oas/speciality.yaml +447 -0
  76. package/src/oas/store-asset-part-unit.yaml +658 -0
  77. package/src/oas/storecheck-template.yaml +415 -0
  78. package/src/oas/subcategory.yaml +355 -0
  79. package/src/oas/supplier.yaml +183 -0
  80. package/src/oas/svix-integration.yaml +335 -0
  81. package/src/oas/tag.yaml +272 -0
  82. package/src/oas/tax.yaml +303 -0
  83. package/src/oas/team.yaml +268 -0
  84. package/src/oas/transfer.yaml +347 -0
  85. package/src/oas/update-integration-meta.yaml +387 -0
  86. package/src/oas/variant.yaml +569 -0
  87. package/src/oas/visit.yaml +174 -0
  88. package/src/oas/warehouse.yaml +311 -0
  89. package/src/oas/workorder-category.yaml +751 -0
  90. package/src/oas/workorder-portal-link.yaml +811 -0
  91. package/src/oas/workorder-portal.yaml +650 -0
  92. package/src/oas/workorder-request.yaml +193 -0
  93. package/src/oas/workorder.yaml +204 -0
  94. package/src/types/index.ts +2 -1
@@ -0,0 +1,687 @@
1
+ openapi: 3.0.0
2
+ info:
3
+ title: Client Location API
4
+ description: API for managing client locations
5
+ version: 1.0.0
6
+ servers:
7
+ - url: https://api.repzo.me/v1
8
+ description: Production server
9
+ security:
10
+ - ApiKeyAuth: []
11
+ tags:
12
+ - name: Client Location
13
+ description: Client location management operations
14
+ paths:
15
+ /client-location:
16
+ get:
17
+ tags:
18
+ - Client Location
19
+ summary: Get all client locations
20
+ description: Retrieve a list of all client locations with optional filtering and pagination
21
+ parameters:
22
+ - name: page
23
+ in: query
24
+ description: Page number for pagination
25
+ required: false
26
+ schema:
27
+ type: integer
28
+ minimum: 1
29
+ default: 1
30
+ - name: per_page
31
+ in: query
32
+ description: Number of items per page
33
+ required: false
34
+ schema:
35
+ type: integer
36
+ minimum: 1
37
+ maximum: 100
38
+ default: 25
39
+ - name: sort
40
+ in: query
41
+ description: Sort field
42
+ required: false
43
+ schema:
44
+ type: string
45
+ - name: company_namespace
46
+ in: query
47
+ description: Company namespace for filtering
48
+ required: false
49
+ schema:
50
+ type: array
51
+ items:
52
+ type: string
53
+ - name: client
54
+ in: query
55
+ description: Filter by client ID
56
+ required: false
57
+ schema:
58
+ type: string
59
+ - name: disabled
60
+ in: query
61
+ description: Filter by disabled status
62
+ required: false
63
+ schema:
64
+ type: boolean
65
+ - name: _id
66
+ in: query
67
+ description: Filter by ID
68
+ required: false
69
+ schema:
70
+ type: array
71
+ items:
72
+ type: string
73
+ responses:
74
+ "200":
75
+ description: Successful response
76
+ content:
77
+ application/json:
78
+ schema:
79
+ type: object
80
+ properties:
81
+ success:
82
+ type: boolean
83
+ example: true
84
+ data:
85
+ type: array
86
+ items:
87
+ $ref: "#/components/schemas/ClientLocation"
88
+ paging:
89
+ $ref: "#/components/schemas/PagingInfo"
90
+ "400":
91
+ $ref: "#/components/responses/BadRequest"
92
+ "401":
93
+ $ref: "#/components/responses/Unauthorized"
94
+ "403":
95
+ $ref: "#/components/responses/Forbidden"
96
+ "500":
97
+ $ref: "#/components/responses/InternalServerError"
98
+ post:
99
+ tags:
100
+ - Client Location
101
+ summary: Create a new client location
102
+ description: Create a new client location entry
103
+ requestBody:
104
+ required: true
105
+ content:
106
+ application/json:
107
+ schema:
108
+ $ref: "#/components/schemas/CreateClientLocationRequest"
109
+ responses:
110
+ "201":
111
+ description: Client location created successfully
112
+ content:
113
+ application/json:
114
+ schema:
115
+ type: object
116
+ properties:
117
+ success:
118
+ type: boolean
119
+ example: true
120
+ data:
121
+ $ref: "#/components/schemas/ClientLocation"
122
+ "400":
123
+ $ref: "#/components/responses/BadRequest"
124
+ "401":
125
+ $ref: "#/components/responses/Unauthorized"
126
+ "403":
127
+ $ref: "#/components/responses/Forbidden"
128
+ "422":
129
+ $ref: "#/components/responses/ValidationError"
130
+ "500":
131
+ $ref: "#/components/responses/InternalServerError"
132
+ /client-location/{id}:
133
+ get:
134
+ tags:
135
+ - Client Location
136
+ summary: Get client location by ID
137
+ description: Retrieve a specific client location by its ID
138
+ parameters:
139
+ - name: id
140
+ in: path
141
+ required: true
142
+ description: Client location ID
143
+ schema:
144
+ type: string
145
+ responses:
146
+ "200":
147
+ description: Successful response
148
+ content:
149
+ application/json:
150
+ schema:
151
+ type: object
152
+ properties:
153
+ success:
154
+ type: boolean
155
+ example: true
156
+ data:
157
+ $ref: "#/components/schemas/ClientLocation"
158
+ "400":
159
+ $ref: "#/components/responses/BadRequest"
160
+ "401":
161
+ $ref: "#/components/responses/Unauthorized"
162
+ "403":
163
+ $ref: "#/components/responses/Forbidden"
164
+ "404":
165
+ $ref: "#/components/responses/NotFound"
166
+ "500":
167
+ $ref: "#/components/responses/InternalServerError"
168
+ patch:
169
+ tags:
170
+ - Client Location
171
+ summary: Update client location
172
+ description: Update an existing client location
173
+ parameters:
174
+ - name: id
175
+ in: path
176
+ required: true
177
+ description: Client location ID
178
+ schema:
179
+ type: string
180
+ requestBody:
181
+ required: true
182
+ content:
183
+ application/json:
184
+ schema:
185
+ $ref: "#/components/schemas/UpdateClientLocationRequest"
186
+ responses:
187
+ "200":
188
+ description: Client location updated successfully
189
+ content:
190
+ application/json:
191
+ schema:
192
+ type: object
193
+ properties:
194
+ success:
195
+ type: boolean
196
+ example: true
197
+ data:
198
+ $ref: "#/components/schemas/ClientLocation"
199
+ "400":
200
+ $ref: "#/components/responses/BadRequest"
201
+ "401":
202
+ $ref: "#/components/responses/Unauthorized"
203
+ "403":
204
+ $ref: "#/components/responses/Forbidden"
205
+ "404":
206
+ $ref: "#/components/responses/NotFound"
207
+ "422":
208
+ $ref: "#/components/responses/ValidationError"
209
+ "500":
210
+ $ref: "#/components/responses/InternalServerError"
211
+ delete:
212
+ tags:
213
+ - Client Location
214
+ summary: Delete client location
215
+ description: Delete a client location by ID
216
+ parameters:
217
+ - name: id
218
+ in: path
219
+ required: true
220
+ description: Client location ID
221
+ schema:
222
+ type: string
223
+ responses:
224
+ "200":
225
+ description: Client location deleted successfully
226
+ content:
227
+ application/json:
228
+ schema:
229
+ type: object
230
+ properties:
231
+ success:
232
+ type: boolean
233
+ example: true
234
+ "400":
235
+ $ref: "#/components/responses/BadRequest"
236
+ "401":
237
+ $ref: "#/components/responses/Unauthorized"
238
+ "403":
239
+ $ref: "#/components/responses/Forbidden"
240
+ "404":
241
+ $ref: "#/components/responses/NotFound"
242
+ "500":
243
+ $ref: "#/components/responses/InternalServerError"
244
+ /client-location/remove:
245
+ post:
246
+ tags:
247
+ - Client Location
248
+ summary: Bulk delete client locations
249
+ description: Delete multiple client locations by their IDs
250
+ requestBody:
251
+ required: true
252
+ content:
253
+ application/json:
254
+ schema:
255
+ type: object
256
+ properties:
257
+ ids:
258
+ type: array
259
+ items:
260
+ type: string
261
+ description: Array of client location IDs to delete
262
+ required:
263
+ - ids
264
+ responses:
265
+ "200":
266
+ description: Client locations deleted successfully
267
+ content:
268
+ application/json:
269
+ schema:
270
+ type: object
271
+ properties:
272
+ success:
273
+ type: boolean
274
+ example: true
275
+ "400":
276
+ $ref: "#/components/responses/BadRequest"
277
+ "401":
278
+ $ref: "#/components/responses/Unauthorized"
279
+ "403":
280
+ $ref: "#/components/responses/Forbidden"
281
+ "500":
282
+ $ref: "#/components/responses/InternalServerError"
283
+ components:
284
+ securitySchemes:
285
+ ApiKeyAuth:
286
+ type: apiKey
287
+ in: header
288
+ name: Authorization
289
+ description: "Use format: Bearer {api_key}"
290
+ schemas:
291
+ ClientLocation:
292
+ type: object
293
+ properties:
294
+ _id:
295
+ type: string
296
+ description: Unique identifier
297
+ example: "507f1f77bcf86cd799439011"
298
+ client:
299
+ type: string
300
+ description: Client ID
301
+ example: "507f1f77bcf86cd799439012"
302
+ name:
303
+ type: string
304
+ description: Location name
305
+ example: "Main Office"
306
+ address:
307
+ type: string
308
+ description: Street address
309
+ example: "123 Main St"
310
+ city:
311
+ type: string
312
+ description: City name
313
+ example: "New York"
314
+ state:
315
+ type: string
316
+ description: State or province
317
+ example: "NY"
318
+ postal_code:
319
+ type: string
320
+ description: Postal or ZIP code
321
+ example: "10001"
322
+ country:
323
+ type: string
324
+ description: Country name
325
+ example: "United States"
326
+ coordinates:
327
+ type: object
328
+ properties:
329
+ latitude:
330
+ type: number
331
+ format: float
332
+ description: Latitude coordinate
333
+ example: 40.7128
334
+ longitude:
335
+ type: number
336
+ format: float
337
+ description: Longitude coordinate
338
+ example: -74.0060
339
+ is_primary:
340
+ type: boolean
341
+ description: Whether this is the primary location
342
+ example: true
343
+ location_type:
344
+ type: string
345
+ description: Type of location
346
+ enum: ["office", "warehouse", "retail", "branch", "other"]
347
+ example: "office"
348
+ contact_info:
349
+ type: object
350
+ properties:
351
+ phone:
352
+ type: string
353
+ description: Phone number
354
+ example: "+1-555-123-4567"
355
+ email:
356
+ type: string
357
+ format: email
358
+ description: Email address
359
+ example: "contact@example.com"
360
+ fax:
361
+ type: string
362
+ description: Fax number
363
+ business_hours:
364
+ type: object
365
+ properties:
366
+ monday:
367
+ $ref: "#/components/schemas/BusinessHours"
368
+ tuesday:
369
+ $ref: "#/components/schemas/BusinessHours"
370
+ wednesday:
371
+ $ref: "#/components/schemas/BusinessHours"
372
+ thursday:
373
+ $ref: "#/components/schemas/BusinessHours"
374
+ friday:
375
+ $ref: "#/components/schemas/BusinessHours"
376
+ saturday:
377
+ $ref: "#/components/schemas/BusinessHours"
378
+ sunday:
379
+ $ref: "#/components/schemas/BusinessHours"
380
+ notes:
381
+ type: string
382
+ description: Additional notes about the location
383
+ company_namespace:
384
+ type: array
385
+ items:
386
+ type: string
387
+ description: Company namespace
388
+ disabled:
389
+ type: boolean
390
+ description: Whether the location is disabled
391
+ example: false
392
+ createdAt:
393
+ type: string
394
+ format: date-time
395
+ description: Creation timestamp
396
+ modifiedAt:
397
+ type: string
398
+ format: date-time
399
+ description: Last modification timestamp
400
+ SVClient:
401
+ type: integer
402
+ description: Client version
403
+ __v:
404
+ type: integer
405
+ description: Document version
406
+ required:
407
+ - client
408
+ - name
409
+ - address
410
+ BusinessHours:
411
+ type: object
412
+ properties:
413
+ open:
414
+ type: string
415
+ format: time
416
+ description: Opening time (HH:MM format)
417
+ example: "09:00"
418
+ close:
419
+ type: string
420
+ format: time
421
+ description: Closing time (HH:MM format)
422
+ example: "17:00"
423
+ is_closed:
424
+ type: boolean
425
+ description: Whether the location is closed on this day
426
+ default: false
427
+ CreateClientLocationRequest:
428
+ type: object
429
+ properties:
430
+ client:
431
+ type: string
432
+ description: Client ID
433
+ example: "507f1f77bcf86cd799439012"
434
+ name:
435
+ type: string
436
+ description: Location name
437
+ example: "Main Office"
438
+ address:
439
+ type: string
440
+ description: Street address
441
+ example: "123 Main St"
442
+ city:
443
+ type: string
444
+ description: City name
445
+ example: "New York"
446
+ state:
447
+ type: string
448
+ description: State or province
449
+ example: "NY"
450
+ postal_code:
451
+ type: string
452
+ description: Postal or ZIP code
453
+ example: "10001"
454
+ country:
455
+ type: string
456
+ description: Country name
457
+ example: "United States"
458
+ coordinates:
459
+ type: object
460
+ properties:
461
+ latitude:
462
+ type: number
463
+ format: float
464
+ longitude:
465
+ type: number
466
+ format: float
467
+ is_primary:
468
+ type: boolean
469
+ description: Whether this is the primary location
470
+ default: false
471
+ location_type:
472
+ type: string
473
+ description: Type of location
474
+ enum: ["office", "warehouse", "retail", "branch", "other"]
475
+ default: "office"
476
+ contact_info:
477
+ type: object
478
+ properties:
479
+ phone:
480
+ type: string
481
+ email:
482
+ type: string
483
+ format: email
484
+ fax:
485
+ type: string
486
+ business_hours:
487
+ type: object
488
+ properties:
489
+ monday:
490
+ $ref: "#/components/schemas/BusinessHours"
491
+ tuesday:
492
+ $ref: "#/components/schemas/BusinessHours"
493
+ wednesday:
494
+ $ref: "#/components/schemas/BusinessHours"
495
+ thursday:
496
+ $ref: "#/components/schemas/BusinessHours"
497
+ friday:
498
+ $ref: "#/components/schemas/BusinessHours"
499
+ saturday:
500
+ $ref: "#/components/schemas/BusinessHours"
501
+ sunday:
502
+ $ref: "#/components/schemas/BusinessHours"
503
+ notes:
504
+ type: string
505
+ description: Additional notes about the location
506
+ company_namespace:
507
+ type: array
508
+ items:
509
+ type: string
510
+ description: Company namespace
511
+ disabled:
512
+ type: boolean
513
+ description: Whether the location is disabled
514
+ default: false
515
+ required:
516
+ - client
517
+ - name
518
+ - address
519
+ UpdateClientLocationRequest:
520
+ type: object
521
+ properties:
522
+ name:
523
+ type: string
524
+ description: Location name
525
+ address:
526
+ type: string
527
+ description: Street address
528
+ city:
529
+ type: string
530
+ description: City name
531
+ state:
532
+ type: string
533
+ description: State or province
534
+ postal_code:
535
+ type: string
536
+ description: Postal or ZIP code
537
+ country:
538
+ type: string
539
+ description: Country name
540
+ coordinates:
541
+ type: object
542
+ properties:
543
+ latitude:
544
+ type: number
545
+ format: float
546
+ longitude:
547
+ type: number
548
+ format: float
549
+ is_primary:
550
+ type: boolean
551
+ description: Whether this is the primary location
552
+ location_type:
553
+ type: string
554
+ description: Type of location
555
+ enum: ["office", "warehouse", "retail", "branch", "other"]
556
+ contact_info:
557
+ type: object
558
+ properties:
559
+ phone:
560
+ type: string
561
+ email:
562
+ type: string
563
+ format: email
564
+ fax:
565
+ type: string
566
+ business_hours:
567
+ type: object
568
+ properties:
569
+ monday:
570
+ $ref: "#/components/schemas/BusinessHours"
571
+ tuesday:
572
+ $ref: "#/components/schemas/BusinessHours"
573
+ wednesday:
574
+ $ref: "#/components/schemas/BusinessHours"
575
+ thursday:
576
+ $ref: "#/components/schemas/BusinessHours"
577
+ friday:
578
+ $ref: "#/components/schemas/BusinessHours"
579
+ saturday:
580
+ $ref: "#/components/schemas/BusinessHours"
581
+ sunday:
582
+ $ref: "#/components/schemas/BusinessHours"
583
+ notes:
584
+ type: string
585
+ description: Additional notes about the location
586
+ company_namespace:
587
+ type: array
588
+ items:
589
+ type: string
590
+ description: Company namespace
591
+ disabled:
592
+ type: boolean
593
+ description: Whether the location is disabled
594
+ PagingInfo:
595
+ type: object
596
+ properties:
597
+ total:
598
+ type: integer
599
+ description: Total number of items
600
+ page:
601
+ type: integer
602
+ description: Current page number
603
+ per_page:
604
+ type: integer
605
+ description: Items per page
606
+ pages:
607
+ type: integer
608
+ description: Total number of pages
609
+ responses:
610
+ BadRequest:
611
+ description: Bad request
612
+ content:
613
+ application/json:
614
+ schema:
615
+ type: object
616
+ properties:
617
+ success:
618
+ type: boolean
619
+ example: false
620
+ error:
621
+ type: string
622
+ example: "Invalid request parameters"
623
+ Unauthorized:
624
+ description: Unauthorized
625
+ content:
626
+ application/json:
627
+ schema:
628
+ type: object
629
+ properties:
630
+ success:
631
+ type: boolean
632
+ example: false
633
+ error:
634
+ type: string
635
+ example: "Authentication required"
636
+ Forbidden:
637
+ description: Forbidden
638
+ content:
639
+ application/json:
640
+ schema:
641
+ type: object
642
+ properties:
643
+ success:
644
+ type: boolean
645
+ example: false
646
+ error:
647
+ type: string
648
+ example: "Insufficient permissions"
649
+ NotFound:
650
+ description: Resource not found
651
+ content:
652
+ application/json:
653
+ schema:
654
+ type: object
655
+ properties:
656
+ success:
657
+ type: boolean
658
+ example: false
659
+ error:
660
+ type: string
661
+ example: "Resource not found"
662
+ ValidationError:
663
+ description: Validation error
664
+ content:
665
+ application/json:
666
+ schema:
667
+ type: object
668
+ properties:
669
+ success:
670
+ type: boolean
671
+ example: false
672
+ error:
673
+ type: string
674
+ example: "Validation failed"
675
+ InternalServerError:
676
+ description: Internal server error
677
+ content:
678
+ application/json:
679
+ schema:
680
+ type: object
681
+ properties:
682
+ success:
683
+ type: boolean
684
+ example: false
685
+ error:
686
+ type: string
687
+ example: "Internal server error"