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,669 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Repzo API - Client
4
+ version: 1.0.0
5
+ description: OpenAPI specification for Repzo Client endpoints.
6
+ servers:
7
+ - url: https://sv.api.repzo.me
8
+ paths:
9
+ /client:
10
+ get:
11
+ summary: Find clients
12
+ operationId: findClients
13
+ parameters:
14
+ - in: query
15
+ name: params
16
+ schema:
17
+ type: object
18
+ description: Query parameters for filtering clients
19
+ responses:
20
+ "200":
21
+ description: A list of clients
22
+ content:
23
+ application/json:
24
+ schema:
25
+ $ref: "#/components/schemas/ClientFindResult"
26
+ post:
27
+ summary: Create a client
28
+ operationId: createClient
29
+ requestBody:
30
+ required: true
31
+ content:
32
+ application/json:
33
+ schema:
34
+ $ref: "#/components/schemas/ClientCreateBody"
35
+ responses:
36
+ "201":
37
+ description: Client created
38
+ content:
39
+ application/json:
40
+ schema:
41
+ $ref: "#/components/schemas/ClientCreateResult"
42
+ /client/{id}:
43
+ get:
44
+ summary: Get a client by ID
45
+ operationId: getClient
46
+ parameters:
47
+ - in: path
48
+ name: id
49
+ required: true
50
+ schema:
51
+ type: string
52
+ responses:
53
+ "200":
54
+ description: Client details
55
+ content:
56
+ application/json:
57
+ schema:
58
+ $ref: "#/components/schemas/ClientGetResult"
59
+ put:
60
+ summary: Update a client
61
+ operationId: updateClient
62
+ parameters:
63
+ - in: path
64
+ name: id
65
+ required: true
66
+ schema:
67
+ type: string
68
+ requestBody:
69
+ required: true
70
+ content:
71
+ application/json:
72
+ schema:
73
+ $ref: "#/components/schemas/ClientUpdateBody"
74
+ responses:
75
+ "200":
76
+ description: Client updated
77
+ content:
78
+ application/json:
79
+ schema:
80
+ $ref: "#/components/schemas/ClientUpdateResult"
81
+ delete:
82
+ summary: Remove a client
83
+ operationId: removeClient
84
+ parameters:
85
+ - in: path
86
+ name: id
87
+ required: true
88
+ schema:
89
+ type: string
90
+ responses:
91
+ "200":
92
+ description: Client removed
93
+ content:
94
+ application/json:
95
+ schema:
96
+ $ref: "#/components/schemas/ClientRemoveResult"
97
+ components:
98
+ schemas:
99
+ ClientFindResult:
100
+ type: object
101
+ description: Result of finding clients
102
+ properties:
103
+ data:
104
+ type: array
105
+ items:
106
+ $ref: "#/components/schemas/ClientSchema"
107
+ total_result:
108
+ type: number
109
+ description: Total number of clients
110
+ current_count:
111
+ type: number
112
+ description: Count of clients in current page
113
+ total_pages:
114
+ type: number
115
+ description: Total number of pages
116
+ current_page:
117
+ type: number
118
+ description: Current page number
119
+ per_page:
120
+ type: number
121
+ description: Number of clients per page
122
+ first_page_url:
123
+ type: string
124
+ description: URL for the first page
125
+ last_page_url:
126
+ type: string
127
+ description: URL for the last page
128
+ next_page_url:
129
+ type: string
130
+ nullable: true
131
+ description: URL for the next page
132
+ prev_page_url:
133
+ type: string
134
+ nullable: true
135
+ description: URL for the previous page
136
+ path:
137
+ type: string
138
+ description: Base URL path
139
+ ClientSchema:
140
+ type: object
141
+ description: Client schema
142
+ properties:
143
+ _id:
144
+ type: string
145
+ description: Unique identifier for the client
146
+ name:
147
+ type: string
148
+ description: Name of the client
149
+ local_name:
150
+ type: string
151
+ description: Localized name of the client
152
+ tags:
153
+ type: array
154
+ items:
155
+ type: string
156
+ description: Tags associated with the client
157
+ cell_phone:
158
+ type: string
159
+ description: Cell phone number
160
+ city:
161
+ type: string
162
+ description: City
163
+ client_code:
164
+ type: string
165
+ description: Client code
166
+ contact_name:
167
+ type: string
168
+ description: Contact name
169
+ contact_title:
170
+ type: string
171
+ description: Contact title
172
+ contacts:
173
+ type: array
174
+ items:
175
+ type: string
176
+ description: Associated contacts
177
+ country:
178
+ type: string
179
+ description: Country
180
+ disabled:
181
+ type: boolean
182
+ description: Whether the client is disabled
183
+ formatted_address:
184
+ type: string
185
+ description: Formatted address
186
+ lat:
187
+ type: number
188
+ description: Latitude coordinate
189
+ lng:
190
+ type: number
191
+ description: Longitude coordinate
192
+ location_verified:
193
+ type: boolean
194
+ description: Whether the location is verified
195
+ phone:
196
+ type: string
197
+ description: Phone number
198
+ state:
199
+ type: string
200
+ description: State
201
+ zip:
202
+ type: string
203
+ description: Zip/Postal code
204
+ assigned_to:
205
+ type: array
206
+ items:
207
+ type: string
208
+ description: Representatives assigned to this client
209
+ last_location_update:
210
+ type: number
211
+ description: Timestamp of last location update
212
+ credit_limit:
213
+ type: number
214
+ description: Credit limit
215
+ tax_number:
216
+ type: string
217
+ description: Tax number
218
+ sync_id:
219
+ type: string
220
+ description: Sync identifier
221
+ profile_pic:
222
+ type: string
223
+ description: Profile picture URL
224
+ logo:
225
+ type: string
226
+ description: Logo URL
227
+ website:
228
+ type: string
229
+ description: Website URL
230
+ email:
231
+ type: string
232
+ description: Email address
233
+ comment:
234
+ type: string
235
+ description: Comments
236
+ parent_client_id:
237
+ type: string
238
+ description: Parent client ID for hierarchical relationships
239
+ target_visit:
240
+ type: number
241
+ description: Target number of visits
242
+ geofencing_radius:
243
+ type: number
244
+ description: Geofencing radius
245
+ price_tag:
246
+ type: string
247
+ description: Price tag
248
+ status:
249
+ type: string
250
+ description: Status
251
+ job_category:
252
+ type: array
253
+ items:
254
+ type: string
255
+ description: Job categories
256
+ territory:
257
+ type: string
258
+ description: Territory
259
+ sv_priceList:
260
+ type: string
261
+ description: Price list ID
262
+ customFields:
263
+ type: object
264
+ additionalProperties: true
265
+ description: Custom fields
266
+ paymentTerm:
267
+ type: string
268
+ description: Payment term ID
269
+ speciality:
270
+ type: array
271
+ items:
272
+ type: string
273
+ description: Specialities
274
+ company_namespace:
275
+ type: array
276
+ items:
277
+ type: string
278
+ description: Company namespaces
279
+ channel:
280
+ type: string
281
+ description: Channel ID
282
+ isChain:
283
+ type: boolean
284
+ description: Whether this is a chain
285
+ chain:
286
+ type: string
287
+ description: Chain ID
288
+ teams:
289
+ type: array
290
+ items:
291
+ type: string
292
+ description: Teams
293
+ payment_type:
294
+ type: string
295
+ enum: [cash, credit]
296
+ description: Payment type
297
+ integration_meta:
298
+ type: object
299
+ additionalProperties: true
300
+ description: Integration metadata
301
+ integrated_client_balance:
302
+ type: number
303
+ description: Integrated client balance
304
+ invoice_balance_limit:
305
+ type: number
306
+ description: Invoice balance limit
307
+ enable_invoice_balance_limit:
308
+ type: boolean
309
+ description: Whether invoice balance limit is enabled
310
+ enable_payment_terms_grace_period_days:
311
+ type: boolean
312
+ description: Whether payment terms grace period days is enabled
313
+ is_simplified:
314
+ type: boolean
315
+ description: Whether this is a simplified client
316
+ last_login_time:
317
+ type: number
318
+ description: Last login timestamp
319
+ createdAt:
320
+ type: string
321
+ format: date-time
322
+ description: Creation timestamp
323
+ updatedAt:
324
+ type: string
325
+ format: date-time
326
+ description: Last update timestamp
327
+ __v:
328
+ type: number
329
+ description: Version number
330
+ ClientCreateBody:
331
+ type: object
332
+ description: Body for creating a client
333
+ required:
334
+ - name
335
+ properties:
336
+ name:
337
+ type: string
338
+ description: Name of the client
339
+ local_name:
340
+ type: string
341
+ description: Localized name of the client
342
+ tags:
343
+ type: array
344
+ items:
345
+ type: string
346
+ description: Tags associated with the client
347
+ cell_phone:
348
+ type: string
349
+ description: Cell phone number
350
+ city:
351
+ type: string
352
+ description: City
353
+ client_code:
354
+ type: string
355
+ description: Client code
356
+ contact_name:
357
+ type: string
358
+ description: Contact name
359
+ contact_title:
360
+ type: string
361
+ description: Contact title
362
+ contacts:
363
+ type: array
364
+ items:
365
+ type: string
366
+ description: Associated contacts
367
+ country:
368
+ type: string
369
+ description: Country
370
+ disabled:
371
+ type: boolean
372
+ description: Whether the client is disabled
373
+ formatted_address:
374
+ type: string
375
+ description: Formatted address
376
+ lat:
377
+ type: number
378
+ description: Latitude coordinate
379
+ lng:
380
+ type: number
381
+ description: Longitude coordinate
382
+ location_verified:
383
+ type: boolean
384
+ description: Whether the location is verified
385
+ phone:
386
+ type: string
387
+ description: Phone number
388
+ state:
389
+ type: string
390
+ description: State
391
+ zip:
392
+ type: string
393
+ description: Zip/Postal code
394
+ assigned_to:
395
+ type: array
396
+ items:
397
+ type: string
398
+ description: Representatives assigned to this client
399
+ credit_limit:
400
+ type: number
401
+ description: Credit limit
402
+ tax_number:
403
+ type: string
404
+ description: Tax number
405
+ sync_id:
406
+ type: string
407
+ description: Sync identifier
408
+ profile_pic:
409
+ type: string
410
+ description: Profile picture URL
411
+ logo:
412
+ type: string
413
+ description: Logo URL
414
+ website:
415
+ type: string
416
+ description: Website URL
417
+ email:
418
+ type: string
419
+ description: Email address
420
+ comment:
421
+ type: string
422
+ description: Comments
423
+ parent_client_id:
424
+ type: string
425
+ description: Parent client ID for hierarchical relationships
426
+ target_visit:
427
+ type: number
428
+ description: Target number of visits
429
+ geofencing_radius:
430
+ type: number
431
+ description: Geofencing radius
432
+ price_tag:
433
+ type: string
434
+ description: Price tag
435
+ status:
436
+ type: string
437
+ description: Status
438
+ job_category:
439
+ type: array
440
+ items:
441
+ type: string
442
+ description: Job categories
443
+ territory:
444
+ type: string
445
+ description: Territory
446
+ sv_priceList:
447
+ type: string
448
+ description: Price list ID
449
+ customFields:
450
+ type: object
451
+ additionalProperties: true
452
+ description: Custom fields
453
+ paymentTerm:
454
+ type: string
455
+ description: Payment term ID
456
+ speciality:
457
+ type: array
458
+ items:
459
+ type: string
460
+ description: Specialities
461
+ company_namespace:
462
+ type: array
463
+ items:
464
+ type: string
465
+ description: Company namespaces
466
+ channel:
467
+ type: string
468
+ description: Channel ID
469
+ isChain:
470
+ type: boolean
471
+ description: Whether this is a chain
472
+ chain:
473
+ type: string
474
+ description: Chain ID
475
+ teams:
476
+ type: array
477
+ items:
478
+ type: string
479
+ description: Teams
480
+ payment_type:
481
+ type: string
482
+ enum: [cash, credit]
483
+ description: Payment type
484
+ integration_meta:
485
+ type: object
486
+ additionalProperties: true
487
+ description: Integration metadata
488
+ ClientCreateResult:
489
+ $ref: "#/components/schemas/ClientSchema"
490
+ description: Result of creating a client
491
+ ClientGetResult:
492
+ $ref: "#/components/schemas/ClientSchema"
493
+ description: Result of getting a client
494
+ ClientUpdateBody:
495
+ type: object
496
+ description: Body for updating a client
497
+ properties:
498
+ name:
499
+ type: string
500
+ description: Name of the client
501
+ local_name:
502
+ type: string
503
+ description: Localized name of the client
504
+ tags:
505
+ type: array
506
+ items:
507
+ type: string
508
+ description: Tags associated with the client
509
+ cell_phone:
510
+ type: string
511
+ description: Cell phone number
512
+ city:
513
+ type: string
514
+ description: City
515
+ client_code:
516
+ type: string
517
+ description: Client code
518
+ contact_name:
519
+ type: string
520
+ description: Contact name
521
+ contact_title:
522
+ type: string
523
+ description: Contact title
524
+ contacts:
525
+ type: array
526
+ items:
527
+ type: string
528
+ description: Associated contacts
529
+ country:
530
+ type: string
531
+ description: Country
532
+ disabled:
533
+ type: boolean
534
+ description: Whether the client is disabled
535
+ formatted_address:
536
+ type: string
537
+ description: Formatted address
538
+ lat:
539
+ type: number
540
+ description: Latitude coordinate
541
+ lng:
542
+ type: number
543
+ description: Longitude coordinate
544
+ location_verified:
545
+ type: boolean
546
+ description: Whether the location is verified
547
+ phone:
548
+ type: string
549
+ description: Phone number
550
+ state:
551
+ type: string
552
+ description: State
553
+ zip:
554
+ type: string
555
+ description: Zip/Postal code
556
+ assigned_to:
557
+ type: array
558
+ items:
559
+ type: string
560
+ description: Representatives assigned to this client
561
+ credit_limit:
562
+ type: number
563
+ description: Credit limit
564
+ tax_number:
565
+ type: string
566
+ description: Tax number
567
+ sync_id:
568
+ type: string
569
+ description: Sync identifier
570
+ profile_pic:
571
+ type: string
572
+ description: Profile picture URL
573
+ logo:
574
+ type: string
575
+ description: Logo URL
576
+ website:
577
+ type: string
578
+ description: Website URL
579
+ email:
580
+ type: string
581
+ description: Email address
582
+ comment:
583
+ type: string
584
+ description: Comments
585
+ parent_client_id:
586
+ type: string
587
+ description: Parent client ID for hierarchical relationships
588
+ target_visit:
589
+ type: number
590
+ description: Target number of visits
591
+ geofencing_radius:
592
+ type: number
593
+ description: Geofencing radius
594
+ price_tag:
595
+ type: string
596
+ description: Price tag
597
+ status:
598
+ type: string
599
+ description: Status
600
+ job_category:
601
+ type: array
602
+ items:
603
+ type: string
604
+ description: Job categories
605
+ territory:
606
+ type: string
607
+ description: Territory
608
+ sv_priceList:
609
+ type: string
610
+ description: Price list ID
611
+ customFields:
612
+ type: object
613
+ additionalProperties: true
614
+ description: Custom fields
615
+ paymentTerm:
616
+ type: string
617
+ description: Payment term ID
618
+ speciality:
619
+ type: array
620
+ items:
621
+ type: string
622
+ description: Specialities
623
+ company_namespace:
624
+ type: array
625
+ items:
626
+ type: string
627
+ description: Company namespaces
628
+ channel:
629
+ type: string
630
+ description: Channel ID
631
+ isChain:
632
+ type: boolean
633
+ description: Whether this is a chain
634
+ chain:
635
+ type: string
636
+ description: Chain ID
637
+ teams:
638
+ type: array
639
+ items:
640
+ type: string
641
+ description: Teams
642
+ payment_type:
643
+ type: string
644
+ enum: [cash, credit]
645
+ description: Payment type
646
+ integration_meta:
647
+ type: object
648
+ additionalProperties: true
649
+ description: Integration metadata
650
+ _id:
651
+ type: string
652
+ description: Unique identifier for the client
653
+ createdAt:
654
+ type: string
655
+ format: date-time
656
+ description: Creation timestamp
657
+ updatedAt:
658
+ type: string
659
+ format: date-time
660
+ description: Last update timestamp
661
+ __v:
662
+ type: number
663
+ description: Version number
664
+ ClientUpdateResult:
665
+ $ref: "#/components/schemas/ClientSchema"
666
+ description: Result of updating a client
667
+ ClientRemoveResult:
668
+ $ref: "#/components/schemas/ClientSchema"
669
+ description: Result of removing a client