@hmxlabs/dax-client 1.0.10 → 2.1.0

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.
@@ -296,86 +296,86 @@ var Api = /** @class */ (function (_super) {
296
296
  *
297
297
  * @tags Attachment
298
298
  * @name AttachmentGetDirectUploadUrl
299
- * @request GET:/api/v1/tenant/{tenantId}/attachment/direct-upload
299
+ * @request GET:/api/v1/attachment/direct-upload
300
300
  * @response `200` `object`
301
301
  */
302
- _this.attachmentGetDirectUploadUrl = function (tenantId, params) {
302
+ _this.attachmentGetDirectUploadUrl = function (params) {
303
303
  if (params === void 0) { params = {}; }
304
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/attachment/direct-upload"), method: "GET", format: "json" }, params));
304
+ return _this.request(__assign({ path: "/api/v1/attachment/direct-upload", method: "GET", format: "json" }, params));
305
305
  };
306
306
  /**
307
307
  * No description
308
308
  *
309
309
  * @tags Attachment
310
310
  * @name AttachmentGetDirectUploadImageStatus
311
- * @request GET:/api/v1/tenant/{tenantId}/attachment/direct-upload/{imageId}
311
+ * @request GET:/api/v1/attachment/direct-upload/{imageId}
312
312
  * @response `200` `object`
313
313
  */
314
- _this.attachmentGetDirectUploadImageStatus = function (tenantId, imageId, params) {
314
+ _this.attachmentGetDirectUploadImageStatus = function (imageId, params) {
315
315
  if (params === void 0) { params = {}; }
316
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/attachment/direct-upload/").concat(imageId), method: "GET", format: "json" }, params));
316
+ return _this.request(__assign({ path: "/api/v1/attachment/direct-upload/".concat(imageId), method: "GET", format: "json" }, params));
317
317
  };
318
318
  /**
319
319
  * No description
320
320
  *
321
321
  * @tags Attachment
322
322
  * @name AttachmentGetBatchDirectUploadUrl
323
- * @request GET:/api/v1/tenant/{tenantId}/attachment/batch-direct-upload
323
+ * @request GET:/api/v1/attachment/batch-direct-upload
324
324
  * @response `200` `object`
325
325
  */
326
- _this.attachmentGetBatchDirectUploadUrl = function (tenantId, params) {
326
+ _this.attachmentGetBatchDirectUploadUrl = function (params) {
327
327
  if (params === void 0) { params = {}; }
328
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/attachment/batch-direct-upload"), method: "GET", format: "json" }, params));
328
+ return _this.request(__assign({ path: "/api/v1/attachment/batch-direct-upload", method: "GET", format: "json" }, params));
329
329
  };
330
330
  /**
331
331
  * No description
332
332
  *
333
333
  * @tags Attachment
334
334
  * @name AttachmentFindAll
335
- * @request GET:/api/v1/tenant/{tenantId}/item/{itemId}/attachment
335
+ * @request GET:/api/v1/item/{itemId}/attachment
336
336
  * @response `200` `object`
337
337
  */
338
- _this.attachmentFindAll = function (tenantId, itemId, query, params) {
338
+ _this.attachmentFindAll = function (itemId, query, params) {
339
339
  if (params === void 0) { params = {}; }
340
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/item/").concat(itemId, "/attachment"), method: "GET", query: query, format: "json" }, params));
340
+ return _this.request(__assign({ path: "/api/v1/item/".concat(itemId, "/attachment"), method: "GET", query: query, format: "json" }, params));
341
341
  };
342
342
  /**
343
343
  * No description
344
344
  *
345
345
  * @tags Attachment
346
346
  * @name AttachmentCreate
347
- * @request POST:/api/v1/tenant/{tenantId}/item/{itemId}/attachment
347
+ * @request POST:/api/v1/item/{itemId}/attachment
348
348
  * @response `200` `object`
349
349
  */
350
- _this.attachmentCreate = function (tenantId, itemId, data, params) {
350
+ _this.attachmentCreate = function (itemId, data, params) {
351
351
  if (params === void 0) { params = {}; }
352
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/item/").concat(itemId, "/attachment"), method: "POST", body: data, type: ContentType.Json, format: "json" }, params));
352
+ return _this.request(__assign({ path: "/api/v1/item/".concat(itemId, "/attachment"), method: "POST", body: data, type: ContentType.Json, format: "json" }, params));
353
353
  };
354
354
  /**
355
355
  * No description
356
356
  *
357
357
  * @tags Attachment
358
358
  * @name AttachmentUpdate
359
- * @request PUT:/api/v1/tenant/{tenantId}/item/{itemId}/attachment/{id}
359
+ * @request PUT:/api/v1/item/{itemId}/attachment/{id}
360
360
  * @secure
361
361
  * @response `200` `(AttachmentResponse)[]`
362
362
  */
363
- _this.attachmentUpdate = function (tenantId, itemId, id, data, params) {
363
+ _this.attachmentUpdate = function (itemId, id, data, params) {
364
364
  if (params === void 0) { params = {}; }
365
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/item/").concat(itemId, "/attachment/").concat(id), method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
365
+ return _this.request(__assign({ path: "/api/v1/item/".concat(itemId, "/attachment/").concat(id), method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
366
366
  };
367
367
  /**
368
368
  * No description
369
369
  *
370
370
  * @tags Attachment
371
371
  * @name AttachmentDelete
372
- * @request DELETE:/api/v1/tenant/{tenantId}/item/{itemId}/attachment/{id}
372
+ * @request DELETE:/api/v1/item/{itemId}/attachment/{id}
373
373
  * @secure
374
374
  * @response `200` `File`
375
375
  */
376
- _this.attachmentDelete = function (tenantId, itemId, id, params) {
376
+ _this.attachmentDelete = function (itemId, id, params) {
377
377
  if (params === void 0) { params = {}; }
378
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/item/").concat(itemId, "/attachment/").concat(id), method: "DELETE", secure: true }, params));
378
+ return _this.request(__assign({ path: "/api/v1/item/".concat(itemId, "/attachment/").concat(id), method: "DELETE", secure: true }, params));
379
379
  };
380
380
  /**
381
381
  * No description
@@ -456,89 +456,89 @@ var Api = /** @class */ (function (_super) {
456
456
  *
457
457
  * @tags Bids
458
458
  * @name BidsFindAllForAdmin
459
- * @request GET:/api/v1/tenant/{tenantId}/admin/auction/{listingId}/bid
459
+ * @request GET:/api/v1/admin/auction/{listingId}/bid
460
460
  * @secure
461
461
  * @response `200` `object`
462
462
  */
463
- _this.bidsFindAllForAdmin = function (tenantId, listingId, query, params) {
463
+ _this.bidsFindAllForAdmin = function (listingId, query, params) {
464
464
  if (params === void 0) { params = {}; }
465
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/admin/auction/").concat(listingId, "/bid"), method: "GET", query: query, secure: true, format: "json" }, params));
465
+ return _this.request(__assign({ path: "/api/v1/admin/auction/".concat(listingId, "/bid"), method: "GET", query: query, secure: true, format: "json" }, params));
466
466
  };
467
467
  /**
468
468
  * No description
469
469
  *
470
470
  * @tags Bids
471
471
  * @name BidsFindAll
472
- * @request GET:/api/v1/tenant/{tenantId}/auction/{listingId}/bid
472
+ * @request GET:/api/v1/auction/{listingId}/bid
473
473
  * @response `200` `object`
474
474
  */
475
- _this.bidsFindAll = function (tenantId, listingId, params) {
475
+ _this.bidsFindAll = function (listingId, params) {
476
476
  if (params === void 0) { params = {}; }
477
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/auction/").concat(listingId, "/bid"), method: "GET", format: "json" }, params));
477
+ return _this.request(__assign({ path: "/api/v1/auction/".concat(listingId, "/bid"), method: "GET", format: "json" }, params));
478
478
  };
479
479
  /**
480
480
  * No description
481
481
  *
482
482
  * @tags Bids
483
483
  * @name BidsCreate
484
- * @request POST:/api/v1/tenant/{tenantId}/auction/{listingId}/bid
484
+ * @request POST:/api/v1/auction/{listingId}/bid
485
485
  * @secure
486
486
  * @response `200` `object`
487
487
  */
488
- _this.bidsCreate = function (tenantId, listingId, data, params) {
488
+ _this.bidsCreate = function (listingId, data, params) {
489
489
  if (params === void 0) { params = {}; }
490
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/auction/").concat(listingId, "/bid"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
490
+ return _this.request(__assign({ path: "/api/v1/auction/".concat(listingId, "/bid"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
491
491
  };
492
492
  /**
493
493
  * No description
494
494
  *
495
495
  * @tags Bids
496
496
  * @name BidsDelete
497
- * @request DELETE:/api/v1/tenant/{tenantId}/auction/{listingId}/bid/{id}
497
+ * @request DELETE:/api/v1/auction/{listingId}/bid/{id}
498
498
  * @secure
499
499
  * @response `200` `File`
500
500
  */
501
- _this.bidsDelete = function (tenantId, listingId, id, data, params) {
501
+ _this.bidsDelete = function (listingId, id, data, params) {
502
502
  if (params === void 0) { params = {}; }
503
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/auction/").concat(listingId, "/bid/").concat(id), method: "DELETE", body: data, secure: true, type: ContentType.Json }, params));
503
+ return _this.request(__assign({ path: "/api/v1/auction/".concat(listingId, "/bid/").concat(id), method: "DELETE", body: data, secure: true, type: ContentType.Json }, params));
504
504
  };
505
505
  /**
506
506
  * No description
507
507
  *
508
508
  * @tags Comment
509
509
  * @name CommentFindAll
510
- * @request GET:/api/v1/tenant/{tenantId}/listings/{listingId}/comments
510
+ * @request GET:/api/v1/listings/{listingId}/comments
511
511
  * @response `200` `object`
512
512
  */
513
- _this.commentFindAll = function (tenantId, listingId, query, params) {
513
+ _this.commentFindAll = function (listingId, query, params) {
514
514
  if (params === void 0) { params = {}; }
515
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/listings/").concat(listingId, "/comments"), method: "GET", query: query, format: "json" }, params));
515
+ return _this.request(__assign({ path: "/api/v1/listings/".concat(listingId, "/comments"), method: "GET", query: query, format: "json" }, params));
516
516
  };
517
517
  /**
518
518
  * No description
519
519
  *
520
520
  * @tags Comment
521
521
  * @name CommentCreate
522
- * @request POST:/api/v1/tenant/{tenantId}/listings/{listingId}/comments
522
+ * @request POST:/api/v1/listings/{listingId}/comments
523
523
  * @secure
524
524
  * @response `200` `object`
525
525
  */
526
- _this.commentCreate = function (tenantId, listingId, data, params) {
526
+ _this.commentCreate = function (listingId, data, params) {
527
527
  if (params === void 0) { params = {}; }
528
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/listings/").concat(listingId, "/comments"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
528
+ return _this.request(__assign({ path: "/api/v1/listings/".concat(listingId, "/comments"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
529
529
  };
530
530
  /**
531
531
  * No description
532
532
  *
533
533
  * @tags Comment
534
534
  * @name CommentDelete
535
- * @request DELETE:/api/v1/tenant/{tenantId}/listings/{listingId}/comments/{id}
535
+ * @request DELETE:/api/v1/listings/{listingId}/comments/{id}
536
536
  * @secure
537
537
  * @response `200` `File`
538
538
  */
539
- _this.commentDelete = function (tenantId, listingId, id, params) {
539
+ _this.commentDelete = function (listingId, id, params) {
540
540
  if (params === void 0) { params = {}; }
541
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/listings/").concat(listingId, "/comments/").concat(id), method: "DELETE", secure: true }, params));
541
+ return _this.request(__assign({ path: "/api/v1/listings/".concat(listingId, "/comments/").concat(id), method: "DELETE", secure: true }, params));
542
542
  };
543
543
  /**
544
544
  * No description
@@ -569,130 +569,136 @@ var Api = /** @class */ (function (_super) {
569
569
  *
570
570
  * @tags Fee
571
571
  * @name FeeGetById
572
- * @request GET:/api/v1/tenant/{tenantId}/fee/{id}
572
+ * @request GET:/api/v1/fee/{id}
573
573
  * @secure
574
574
  * @response `200` `object`
575
575
  */
576
- _this.feeGetById = function (tenantId, id, query, params) {
576
+ _this.feeGetById = function (id, query, params) {
577
577
  if (params === void 0) { params = {}; }
578
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/fee/").concat(id), method: "GET", query: query, secure: true, format: "json" }, params));
578
+ return _this.request(__assign({ path: "/api/v1/fee/".concat(id), method: "GET", query: query, secure: true, format: "json" }, params));
579
579
  };
580
580
  /**
581
581
  * No description
582
582
  *
583
583
  * @tags Fee
584
584
  * @name FeeUpdate
585
- * @request PUT:/api/v1/tenant/{tenantId}/fee/{id}
585
+ * @request PUT:/api/v1/fee/{id}
586
586
  * @secure
587
- * @response `200` `FeeResponse`
587
+ * @response `204` `void`
588
+ * @response `400` `ProblemDetails`
589
+ * @response `404` `ProblemDetails`
590
+ * @response `default` `ProblemDetails`
588
591
  */
589
- _this.feeUpdate = function (tenantId, id, data, params) {
592
+ _this.feeUpdate = function (id, data, params) {
590
593
  if (params === void 0) { params = {}; }
591
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/fee/").concat(id), method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
594
+ return _this.request(__assign({ path: "/api/v1/fee/".concat(id), method: "PUT", body: data, secure: true, type: ContentType.Json }, params));
592
595
  };
593
596
  /**
594
597
  * No description
595
598
  *
596
599
  * @tags Fee
597
600
  * @name FeeDelete
598
- * @request DELETE:/api/v1/tenant/{tenantId}/fee/{id}
601
+ * @request DELETE:/api/v1/fee/{id}
599
602
  * @secure
600
- * @response `200` `File`
603
+ * @response `200` `void`
604
+ * @response `400` `ProblemDetails`
605
+ * @response `404` `ProblemDetails`
606
+ * @response `default` `ProblemDetails`
601
607
  */
602
- _this.feeDelete = function (tenantId, id, params) {
608
+ _this.feeDelete = function (id, params) {
603
609
  if (params === void 0) { params = {}; }
604
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/fee/").concat(id), method: "DELETE", secure: true }, params));
610
+ return _this.request(__assign({ path: "/api/v1/fee/".concat(id), method: "DELETE", secure: true }, params));
605
611
  };
606
612
  /**
607
613
  * No description
608
614
  *
609
615
  * @tags Fee
610
616
  * @name FeeFindAll
611
- * @request GET:/api/v1/tenant/{tenantId}/fee
617
+ * @request GET:/api/v1/fee
612
618
  * @secure
613
619
  * @response `200` `object`
614
620
  */
615
- _this.feeFindAll = function (tenantId, query, params) {
621
+ _this.feeFindAll = function (query, params) {
616
622
  if (params === void 0) { params = {}; }
617
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/fee"), method: "GET", query: query, secure: true, format: "json" }, params));
623
+ return _this.request(__assign({ path: "/api/v1/fee", method: "GET", query: query, secure: true, format: "json" }, params));
618
624
  };
619
625
  /**
620
626
  * No description
621
627
  *
622
628
  * @tags Fee
623
629
  * @name FeeCreate
624
- * @request POST:/api/v1/tenant/{tenantId}/fee
630
+ * @request POST:/api/v1/fee
625
631
  * @secure
626
632
  * @response `200` `object`
627
633
  */
628
- _this.feeCreate = function (tenantId, data, params) {
634
+ _this.feeCreate = function (data, params) {
629
635
  if (params === void 0) { params = {}; }
630
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/fee"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
636
+ return _this.request(__assign({ path: "/api/v1/fee", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
631
637
  };
632
638
  /**
633
639
  * No description
634
640
  *
635
641
  * @tags FixedPriceOffer
636
642
  * @name FixedPriceOfferCreateOffer
637
- * @request POST:/api/v1/tenant/{tenantId}/listing/{listingId}/offer
643
+ * @request POST:/api/v1/listing/{listingId}/offer
638
644
  * @secure
639
645
  * @response `200` `object`
640
646
  */
641
- _this.fixedPriceOfferCreateOffer = function (tenantId, listingId, data, params) {
647
+ _this.fixedPriceOfferCreateOffer = function (listingId, data, params) {
642
648
  if (params === void 0) { params = {}; }
643
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/listing/").concat(listingId, "/offer"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
649
+ return _this.request(__assign({ path: "/api/v1/listing/".concat(listingId, "/offer"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
644
650
  };
645
651
  /**
646
652
  * No description
647
653
  *
648
654
  * @tags FixedPriceOffer
649
655
  * @name FixedPriceOfferBuyNow
650
- * @request POST:/api/v1/tenant/{tenantId}/listing/{listingId}/buy-now
656
+ * @request POST:/api/v1/listing/{listingId}/buy-now
651
657
  * @secure
652
658
  * @response `200` `object`
653
659
  */
654
- _this.fixedPriceOfferBuyNow = function (tenantId, listingId, data, params) {
660
+ _this.fixedPriceOfferBuyNow = function (listingId, data, params) {
655
661
  if (params === void 0) { params = {}; }
656
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/listing/").concat(listingId, "/buy-now"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
662
+ return _this.request(__assign({ path: "/api/v1/listing/".concat(listingId, "/buy-now"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
657
663
  };
658
664
  /**
659
665
  * No description
660
666
  *
661
667
  * @tags FixedPriceOffer
662
668
  * @name FixedPriceOfferAcceptOffer
663
- * @request POST:/api/v1/tenant/{tenantId}/listing/{listingId}/offer/{offerId}/accept
669
+ * @request POST:/api/v1/listing/{listingId}/offer/{offerId}/accept
664
670
  * @secure
665
671
  * @response `200` `object`
666
672
  */
667
- _this.fixedPriceOfferAcceptOffer = function (tenantId, listingId, offerId, data, params) {
673
+ _this.fixedPriceOfferAcceptOffer = function (listingId, offerId, data, params) {
668
674
  if (params === void 0) { params = {}; }
669
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/listing/").concat(listingId, "/offer/").concat(offerId, "/accept"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
675
+ return _this.request(__assign({ path: "/api/v1/listing/".concat(listingId, "/offer/").concat(offerId, "/accept"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
670
676
  };
671
677
  /**
672
678
  * No description
673
679
  *
674
680
  * @tags FixedPriceOffer
675
681
  * @name FixedPriceOfferRejectOffer
676
- * @request POST:/api/v1/tenant/{tenantId}/listing/{listingId}/offer/{offerId}/reject
682
+ * @request POST:/api/v1/listing/{listingId}/offer/{offerId}/reject
677
683
  * @secure
678
684
  * @response `200` `object`
679
685
  */
680
- _this.fixedPriceOfferRejectOffer = function (tenantId, listingId, offerId, data, params) {
686
+ _this.fixedPriceOfferRejectOffer = function (listingId, offerId, data, params) {
681
687
  if (params === void 0) { params = {}; }
682
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/listing/").concat(listingId, "/offer/").concat(offerId, "/reject"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
688
+ return _this.request(__assign({ path: "/api/v1/listing/".concat(listingId, "/offer/").concat(offerId, "/reject"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
683
689
  };
684
690
  /**
685
691
  * No description
686
692
  *
687
693
  * @tags FixedPriceOffer
688
694
  * @name FixedPriceOfferCreateCounterOffer
689
- * @request POST:/api/v1/tenant/{tenantId}/listing/{listingId}/offer/{offerId}/counter-offer
695
+ * @request POST:/api/v1/listing/{listingId}/offer/{offerId}/counter-offer
690
696
  * @secure
691
697
  * @response `200` `object`
692
698
  */
693
- _this.fixedPriceOfferCreateCounterOffer = function (tenantId, listingId, offerId, data, params) {
699
+ _this.fixedPriceOfferCreateCounterOffer = function (listingId, offerId, data, params) {
694
700
  if (params === void 0) { params = {}; }
695
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/listing/").concat(listingId, "/offer/").concat(offerId, "/counter-offer"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
701
+ return _this.request(__assign({ path: "/api/v1/listing/".concat(listingId, "/offer/").concat(offerId, "/counter-offer"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
696
702
  };
697
703
  /**
698
704
  * No description
@@ -711,349 +717,366 @@ var Api = /** @class */ (function (_super) {
711
717
  *
712
718
  * @tags Item
713
719
  * @name ItemFindAllForAdmin
714
- * @request GET:/api/v1/tenant/{tenantId}/admin/item
720
+ * @request GET:/api/v1/admin/item
715
721
  * @secure
716
722
  * @response `200` `object`
717
723
  */
718
- _this.itemFindAllForAdmin = function (tenantId, query, params) {
724
+ _this.itemFindAllForAdmin = function (query, params) {
719
725
  if (params === void 0) { params = {}; }
720
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/admin/item"), method: "GET", query: query, secure: true, format: "json" }, params));
726
+ return _this.request(__assign({ path: "/api/v1/admin/item", method: "GET", query: query, secure: true, format: "json" }, params));
721
727
  };
722
728
  /**
723
729
  * No description
724
730
  *
725
731
  * @tags Item
726
732
  * @name ItemGetForAdminById
727
- * @request GET:/api/v1/tenant/{tenantId}/admin/item/{itemId}
733
+ * @request GET:/api/v1/admin/item/{itemId}
728
734
  * @secure
729
735
  * @response `200` `object`
730
736
  */
731
- _this.itemGetForAdminById = function (tenantId, itemId, query, params) {
737
+ _this.itemGetForAdminById = function (itemId, query, params) {
732
738
  if (params === void 0) { params = {}; }
733
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/admin/item/").concat(itemId), method: "GET", query: query, secure: true, format: "json" }, params));
739
+ return _this.request(__assign({ path: "/api/v1/admin/item/".concat(itemId), method: "GET", query: query, secure: true, format: "json" }, params));
734
740
  };
735
741
  /**
736
742
  * No description
737
743
  *
738
744
  * @tags Item
739
745
  * @name ItemUpdateForAdmin
740
- * @request PUT:/api/v1/tenant/{tenantId}/admin/item/{itemId}
746
+ * @request PUT:/api/v1/admin/item/{itemId}
741
747
  * @secure
742
- * @response `200` `File`
748
+ * @response `204` `void`
749
+ * @response `400` `ProblemDetails`
750
+ * @response `404` `ProblemDetails`
751
+ * @response `default` `ProblemDetails`
743
752
  */
744
- _this.itemUpdateForAdmin = function (tenantId, itemId, data, params) {
753
+ _this.itemUpdateForAdmin = function (itemId, data, params) {
745
754
  if (params === void 0) { params = {}; }
746
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/admin/item/").concat(itemId), method: "PUT", body: data, secure: true, type: ContentType.Json }, params));
755
+ return _this.request(__assign({ path: "/api/v1/admin/item/".concat(itemId), method: "PUT", body: data, secure: true, type: ContentType.Json }, params));
747
756
  };
748
757
  /**
749
758
  * No description
750
759
  *
751
760
  * @tags Item
752
761
  * @name ItemAccept
753
- * @request PUT:/api/v1/tenant/{tenantId}/admin/item/{itemId}/accept
762
+ * @request PUT:/api/v1/admin/item/{itemId}/accept
754
763
  * @secure
755
764
  * @response `200` `File`
756
765
  */
757
- _this.itemAccept = function (tenantId, itemId, params) {
766
+ _this.itemAccept = function (itemId, params) {
758
767
  if (params === void 0) { params = {}; }
759
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/admin/item/").concat(itemId, "/accept"), method: "PUT", secure: true }, params));
768
+ return _this.request(__assign({ path: "/api/v1/admin/item/".concat(itemId, "/accept"), method: "PUT", secure: true }, params));
760
769
  };
761
770
  /**
762
771
  * No description
763
772
  *
764
773
  * @tags Item
765
774
  * @name ItemReject
766
- * @request PUT:/api/v1/tenant/{tenantId}/admin/item/{itemId}/reject
775
+ * @request PUT:/api/v1/admin/item/{itemId}/reject
767
776
  * @secure
768
777
  * @response `200` `File`
769
778
  */
770
- _this.itemReject = function (tenantId, itemId, params) {
779
+ _this.itemReject = function (itemId, params) {
771
780
  if (params === void 0) { params = {}; }
772
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/admin/item/").concat(itemId, "/reject"), method: "PUT", secure: true }, params));
781
+ return _this.request(__assign({ path: "/api/v1/admin/item/".concat(itemId, "/reject"), method: "PUT", secure: true }, params));
773
782
  };
774
783
  /**
775
784
  * No description
776
785
  *
777
786
  * @tags Item
778
787
  * @name ItemDelete
779
- * @request DELETE:/api/v1/tenant/{tenantId}/seller/item/{itemId}
788
+ * @request DELETE:/api/v1/seller/item/{itemId}
780
789
  * @secure
781
- * @response `200` `File`
790
+ * @response `200` `void`
791
+ * @response `400` `ProblemDetails`
792
+ * @response `404` `ProblemDetails`
793
+ * @response `default` `ProblemDetails`
782
794
  */
783
- _this.itemDelete = function (tenantId, itemId, params) {
795
+ _this.itemDelete = function (itemId, params) {
784
796
  if (params === void 0) { params = {}; }
785
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/seller/item/").concat(itemId), method: "DELETE", secure: true }, params));
797
+ return _this.request(__assign({ path: "/api/v1/seller/item/".concat(itemId), method: "DELETE", secure: true }, params));
786
798
  };
787
799
  /**
788
800
  * No description
789
801
  *
790
802
  * @tags Item
791
803
  * @name ItemGetForSellerById
792
- * @request GET:/api/v1/tenant/{tenantId}/seller/item/{itemId}
804
+ * @request GET:/api/v1/seller/item/{itemId}
793
805
  * @secure
794
806
  * @response `200` `object`
795
807
  */
796
- _this.itemGetForSellerById = function (tenantId, itemId, params) {
808
+ _this.itemGetForSellerById = function (itemId, params) {
797
809
  if (params === void 0) { params = {}; }
798
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/seller/item/").concat(itemId), method: "GET", secure: true, format: "json" }, params));
810
+ return _this.request(__assign({ path: "/api/v1/seller/item/".concat(itemId), method: "GET", secure: true, format: "json" }, params));
799
811
  };
800
812
  /**
801
813
  * No description
802
814
  *
803
815
  * @tags Item
804
816
  * @name ItemUpdateForSeller
805
- * @request PUT:/api/v1/tenant/{tenantId}/seller/item/{itemId}
817
+ * @request PUT:/api/v1/seller/item/{itemId}
806
818
  * @secure
807
- * @response `200` `File`
819
+ * @response `204` `void`
820
+ * @response `400` `ProblemDetails`
821
+ * @response `404` `ProblemDetails`
822
+ * @response `default` `ProblemDetails`
808
823
  */
809
- _this.itemUpdateForSeller = function (tenantId, itemId, data, params) {
824
+ _this.itemUpdateForSeller = function (itemId, data, params) {
810
825
  if (params === void 0) { params = {}; }
811
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/seller/item/").concat(itemId), method: "PUT", body: data, secure: true, type: ContentType.Json }, params));
826
+ return _this.request(__assign({ path: "/api/v1/seller/item/".concat(itemId), method: "PUT", body: data, secure: true, type: ContentType.Json }, params));
812
827
  };
813
828
  /**
814
829
  * No description
815
830
  *
816
831
  * @tags Item
817
832
  * @name ItemCreateProposal
818
- * @request PUT:/api/v1/tenant/{tenantId}/seller/item/{itemId}/create-proposal
833
+ * @request PUT:/api/v1/seller/item/{itemId}/create-proposal
819
834
  * @secure
820
- * @response `200` `File`
835
+ * @response `201` `void`
836
+ * @response `400` `ProblemDetails`
837
+ * @response `default` `ProblemDetails`
821
838
  */
822
- _this.itemCreateProposal = function (tenantId, itemId, params) {
839
+ _this.itemCreateProposal = function (itemId, params) {
823
840
  if (params === void 0) { params = {}; }
824
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/seller/item/").concat(itemId, "/create-proposal"), method: "PUT", secure: true }, params));
841
+ return _this.request(__assign({ path: "/api/v1/seller/item/".concat(itemId, "/create-proposal"), method: "PUT", secure: true }, params));
825
842
  };
826
843
  /**
827
844
  * No description
828
845
  *
829
846
  * @tags Item
830
847
  * @name ItemFindAllForSeller
831
- * @request GET:/api/v1/tenant/{tenantId}/seller/item
848
+ * @request GET:/api/v1/seller/item
832
849
  * @secure
833
850
  * @response `200` `object`
834
851
  */
835
- _this.itemFindAllForSeller = function (tenantId, params) {
852
+ _this.itemFindAllForSeller = function (params) {
836
853
  if (params === void 0) { params = {}; }
837
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/seller/item"), method: "GET", secure: true, format: "json" }, params));
854
+ return _this.request(__assign({ path: "/api/v1/seller/item", method: "GET", secure: true, format: "json" }, params));
838
855
  };
839
856
  /**
840
857
  * No description
841
858
  *
842
859
  * @tags Item
843
860
  * @name ItemCreate
844
- * @request POST:/api/v1/tenant/{tenantId}/seller/item
861
+ * @request POST:/api/v1/seller/item
845
862
  * @secure
846
863
  * @response `200` `object`
847
864
  */
848
- _this.itemCreate = function (tenantId, data, params) {
865
+ _this.itemCreate = function (data, params) {
849
866
  if (params === void 0) { params = {}; }
850
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/seller/item"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
867
+ return _this.request(__assign({ path: "/api/v1/seller/item", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
851
868
  };
852
869
  /**
853
870
  * No description
854
871
  *
855
872
  * @tags Listing
856
873
  * @name ListingGetForAdminById
857
- * @request GET:/api/v1/tenant/{tenantId}/admin/listing/{id}
874
+ * @request GET:/api/v1/admin/listing/{id}
858
875
  * @secure
859
876
  * @response `200` `object`
860
877
  */
861
- _this.listingGetForAdminById = function (tenantId, id, query, params) {
878
+ _this.listingGetForAdminById = function (id, query, params) {
862
879
  if (params === void 0) { params = {}; }
863
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/admin/listing/").concat(id), method: "GET", query: query, secure: true, format: "json" }, params));
880
+ return _this.request(__assign({ path: "/api/v1/admin/listing/".concat(id), method: "GET", query: query, secure: true, format: "json" }, params));
864
881
  };
865
882
  /**
866
883
  * No description
867
884
  *
868
885
  * @tags Listing
869
886
  * @name ListingUpdate
870
- * @request PUT:/api/v1/tenant/{tenantId}/admin/listing/{id}
887
+ * @request PUT:/api/v1/admin/listing/{id}
871
888
  * @secure
872
- * @response `200` `File`
889
+ * @response `204` `void`
890
+ * @response `400` `ProblemDetails`
891
+ * @response `404` `ProblemDetails`
892
+ * @response `default` `ProblemDetails`
873
893
  */
874
- _this.listingUpdate = function (tenantId, id, data, params) {
894
+ _this.listingUpdate = function (id, data, params) {
875
895
  if (params === void 0) { params = {}; }
876
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/admin/listing/").concat(id), method: "PUT", body: data, secure: true, type: ContentType.Json }, params));
896
+ return _this.request(__assign({ path: "/api/v1/admin/listing/".concat(id), method: "PUT", body: data, secure: true, type: ContentType.Json }, params));
877
897
  };
878
898
  /**
879
899
  * No description
880
900
  *
881
901
  * @tags Listing
882
902
  * @name ListingDelete
883
- * @request DELETE:/api/v1/tenant/{tenantId}/admin/listing/{id}
903
+ * @request DELETE:/api/v1/admin/listing/{id}
884
904
  * @secure
885
- * @response `200` `File`
905
+ * @response `200` `void`
906
+ * @response `400` `ProblemDetails`
907
+ * @response `404` `ProblemDetails`
908
+ * @response `default` `ProblemDetails`
886
909
  */
887
- _this.listingDelete = function (tenantId, id, params) {
910
+ _this.listingDelete = function (id, params) {
888
911
  if (params === void 0) { params = {}; }
889
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/admin/listing/").concat(id), method: "DELETE", secure: true }, params));
912
+ return _this.request(__assign({ path: "/api/v1/admin/listing/".concat(id), method: "DELETE", secure: true }, params));
890
913
  };
891
914
  /**
892
915
  * No description
893
916
  *
894
917
  * @tags Listing
895
918
  * @name ListingWithdraw
896
- * @request PUT:/api/v1/tenant/{tenantId}/admin/listing/{id}/withdraw
919
+ * @request PUT:/api/v1/admin/listing/{id}/withdraw
897
920
  * @secure
898
921
  * @response `200` `File`
899
922
  */
900
- _this.listingWithdraw = function (tenantId, id, data, params) {
923
+ _this.listingWithdraw = function (id, data, params) {
901
924
  if (params === void 0) { params = {}; }
902
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/admin/listing/").concat(id, "/withdraw"), method: "PUT", body: data, secure: true, type: ContentType.Json }, params));
925
+ return _this.request(__assign({ path: "/api/v1/admin/listing/".concat(id, "/withdraw"), method: "PUT", body: data, secure: true, type: ContentType.Json }, params));
903
926
  };
904
927
  /**
905
928
  * No description
906
929
  *
907
930
  * @tags Listing
908
931
  * @name ListingFindAllForAdmin
909
- * @request GET:/api/v1/tenant/{tenantId}/admin/listing
932
+ * @request GET:/api/v1/admin/listing
910
933
  * @secure
911
934
  * @response `200` `object`
912
935
  */
913
- _this.listingFindAllForAdmin = function (tenantId, query, params) {
936
+ _this.listingFindAllForAdmin = function (query, params) {
914
937
  if (params === void 0) { params = {}; }
915
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/admin/listing"), method: "GET", query: query, secure: true, format: "json" }, params));
938
+ return _this.request(__assign({ path: "/api/v1/admin/listing", method: "GET", query: query, secure: true, format: "json" }, params));
916
939
  };
917
940
  /**
918
941
  * No description
919
942
  *
920
943
  * @tags Listing
921
944
  * @name ListingCreate
922
- * @request POST:/api/v1/tenant/{tenantId}/admin/listing
945
+ * @request POST:/api/v1/admin/listing
923
946
  * @secure
924
947
  * @response `200` `object`
925
948
  */
926
- _this.listingCreate = function (tenantId, data, params) {
949
+ _this.listingCreate = function (data, params) {
927
950
  if (params === void 0) { params = {}; }
928
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/admin/listing"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
951
+ return _this.request(__assign({ path: "/api/v1/admin/listing", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
929
952
  };
930
953
  /**
931
954
  * No description
932
955
  *
933
956
  * @tags Listing
934
957
  * @name ListingGetForSellerById
935
- * @request GET:/api/v1/tenant/{tenantId}/seller/listing/{id}
958
+ * @request GET:/api/v1/seller/listing/{id}
936
959
  * @secure
937
960
  * @response `200` `object`
938
961
  */
939
- _this.listingGetForSellerById = function (tenantId, id, params) {
962
+ _this.listingGetForSellerById = function (id, params) {
940
963
  if (params === void 0) { params = {}; }
941
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/seller/listing/").concat(id), method: "GET", secure: true, format: "json" }, params));
964
+ return _this.request(__assign({ path: "/api/v1/seller/listing/".concat(id), method: "GET", secure: true, format: "json" }, params));
942
965
  };
943
966
  /**
944
967
  * No description
945
968
  *
946
969
  * @tags Listing
947
970
  * @name ListingFindAllForSeller
948
- * @request GET:/api/v1/tenant/{tenantId}/seller/listing
971
+ * @request GET:/api/v1/seller/listing
949
972
  * @secure
950
973
  * @response `200` `object`
951
974
  */
952
- _this.listingFindAllForSeller = function (tenantId, query, params) {
975
+ _this.listingFindAllForSeller = function (query, params) {
953
976
  if (params === void 0) { params = {}; }
954
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/seller/listing"), method: "GET", query: query, secure: true, format: "json" }, params));
977
+ return _this.request(__assign({ path: "/api/v1/seller/listing", method: "GET", query: query, secure: true, format: "json" }, params));
955
978
  };
956
979
  /**
957
980
  * No description
958
981
  *
959
982
  * @tags Listing
960
983
  * @name ListingGetForBuyerById
961
- * @request GET:/api/v1/tenant/{tenantId}/buyer/listing/{id}
984
+ * @request GET:/api/v1/buyer/listing/{id}
962
985
  * @secure
963
986
  * @response `200` `object`
964
987
  */
965
- _this.listingGetForBuyerById = function (tenantId, id, params) {
988
+ _this.listingGetForBuyerById = function (id, params) {
966
989
  if (params === void 0) { params = {}; }
967
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/buyer/listing/").concat(id), method: "GET", secure: true, format: "json" }, params));
990
+ return _this.request(__assign({ path: "/api/v1/buyer/listing/".concat(id), method: "GET", secure: true, format: "json" }, params));
968
991
  };
969
992
  /**
970
993
  * No description
971
994
  *
972
995
  * @tags Listing
973
996
  * @name ListingFindAllForBuyer
974
- * @request GET:/api/v1/tenant/{tenantId}/buyer/listing
997
+ * @request GET:/api/v1/buyer/listing
975
998
  * @secure
976
999
  * @response `200` `object`
977
1000
  */
978
- _this.listingFindAllForBuyer = function (tenantId, query, params) {
1001
+ _this.listingFindAllForBuyer = function (query, params) {
979
1002
  if (params === void 0) { params = {}; }
980
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/buyer/listing"), method: "GET", query: query, secure: true, format: "json" }, params));
1003
+ return _this.request(__assign({ path: "/api/v1/buyer/listing", method: "GET", query: query, secure: true, format: "json" }, params));
981
1004
  };
982
1005
  /**
983
1006
  * No description
984
1007
  *
985
1008
  * @tags Listing
986
1009
  * @name ListingGetById
987
- * @request GET:/api/v1/tenant/{tenantId}/listing/{id}
1010
+ * @request GET:/api/v1/listing/{id}
988
1011
  * @response `200` `object`
989
1012
  */
990
- _this.listingGetById = function (tenantId, id, params) {
1013
+ _this.listingGetById = function (id, params) {
991
1014
  if (params === void 0) { params = {}; }
992
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/listing/").concat(id), method: "GET", format: "json" }, params));
1015
+ return _this.request(__assign({ path: "/api/v1/listing/".concat(id), method: "GET", format: "json" }, params));
993
1016
  };
994
1017
  /**
995
1018
  * No description
996
1019
  *
997
1020
  * @tags Listing
998
1021
  * @name ListingWatchOrNot
999
- * @request PUT:/api/v1/tenant/{tenantId}/listing/{id}/watch-unwatch
1022
+ * @request PUT:/api/v1/listing/{id}/watch-unwatch
1000
1023
  * @secure
1001
1024
  * @response `200` `File`
1002
1025
  */
1003
- _this.listingWatchOrNot = function (tenantId, id, data, params) {
1026
+ _this.listingWatchOrNot = function (id, data, params) {
1004
1027
  if (params === void 0) { params = {}; }
1005
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/listing/").concat(id, "/watch-unwatch"), method: "PUT", body: data, secure: true, type: ContentType.Json }, params));
1028
+ return _this.request(__assign({ path: "/api/v1/listing/".concat(id, "/watch-unwatch"), method: "PUT", body: data, secure: true, type: ContentType.Json }, params));
1006
1029
  };
1007
1030
  /**
1008
1031
  * No description
1009
1032
  *
1010
1033
  * @tags Listing
1011
1034
  * @name ListingFindAll
1012
- * @request GET:/api/v1/tenant/{tenantId}/listing
1035
+ * @request GET:/api/v1/listing
1013
1036
  * @response `200` `object`
1014
1037
  */
1015
- _this.listingFindAll = function (tenantId, query, params) {
1038
+ _this.listingFindAll = function (query, params) {
1016
1039
  if (params === void 0) { params = {}; }
1017
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/listing"), method: "GET", query: query, format: "json" }, params));
1040
+ return _this.request(__assign({ path: "/api/v1/listing", method: "GET", query: query, format: "json" }, params));
1018
1041
  };
1019
1042
  /**
1020
1043
  * No description
1021
1044
  *
1022
1045
  * @tags Listing
1023
1046
  * @name ListingAccept
1024
- * @request PUT:/api/v1/tenant/{tenantId}/admin/listing/{id}/accept
1047
+ * @request PUT:/api/v1/admin/listing/{id}/accept
1025
1048
  * @secure
1026
1049
  * @response `200` `File`
1027
1050
  */
1028
- _this.listingAccept = function (tenantId, id, params) {
1051
+ _this.listingAccept = function (id, params) {
1029
1052
  if (params === void 0) { params = {}; }
1030
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/admin/listing/").concat(id, "/accept"), method: "PUT", secure: true }, params));
1053
+ return _this.request(__assign({ path: "/api/v1/admin/listing/".concat(id, "/accept"), method: "PUT", secure: true }, params));
1031
1054
  };
1032
1055
  /**
1033
1056
  * No description
1034
1057
  *
1035
1058
  * @tags Listing
1036
1059
  * @name ListingReject
1037
- * @request PUT:/api/v1/tenant/{tenantId}/admin/listing/{id}/reject
1060
+ * @request PUT:/api/v1/admin/listing/{id}/reject
1038
1061
  * @secure
1039
1062
  * @response `200` `File`
1040
1063
  */
1041
- _this.listingReject = function (tenantId, id, params) {
1064
+ _this.listingReject = function (id, params) {
1042
1065
  if (params === void 0) { params = {}; }
1043
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/admin/listing/").concat(id, "/reject"), method: "PUT", secure: true }, params));
1066
+ return _this.request(__assign({ path: "/api/v1/admin/listing/".concat(id, "/reject"), method: "PUT", secure: true }, params));
1044
1067
  };
1045
1068
  /**
1046
1069
  * No description
1047
1070
  *
1048
1071
  * @tags Listing
1049
1072
  * @name ListingComingSoon
1050
- * @request PUT:/api/v1/tenant/{tenantId}/admin/listing/{id}/comming-soon
1073
+ * @request PUT:/api/v1/admin/listing/{id}/comming-soon
1051
1074
  * @secure
1052
1075
  * @response `200` `File`
1053
1076
  */
1054
- _this.listingComingSoon = function (tenantId, id, params) {
1077
+ _this.listingComingSoon = function (id, params) {
1055
1078
  if (params === void 0) { params = {}; }
1056
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/admin/listing/").concat(id, "/comming-soon"), method: "PUT", secure: true }, params));
1079
+ return _this.request(__assign({ path: "/api/v1/admin/listing/".concat(id, "/comming-soon"), method: "PUT", secure: true }, params));
1057
1080
  };
1058
1081
  /**
1059
1082
  * No description
@@ -1061,12 +1084,12 @@ var Api = /** @class */ (function (_super) {
1061
1084
  * @tags ListingDetail
1062
1085
  * @name ListingDetailGetById
1063
1086
  * @summary Get listing details, including product and item information
1064
- * @request GET:/api/v1/tenant/{tenantId}/listing-detail/{id}
1087
+ * @request GET:/api/v1/listing-detail/{id}
1065
1088
  * @response `200` `object`
1066
1089
  */
1067
- _this.listingDetailGetById = function (tenantId, id, params) {
1090
+ _this.listingDetailGetById = function (id, params) {
1068
1091
  if (params === void 0) { params = {}; }
1069
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/listing-detail/").concat(id), method: "GET", format: "json" }, params));
1092
+ return _this.request(__assign({ path: "/api/v1/listing-detail/".concat(id), method: "GET", format: "json" }, params));
1070
1093
  };
1071
1094
  /**
1072
1095
  * No description
@@ -1074,12 +1097,12 @@ var Api = /** @class */ (function (_super) {
1074
1097
  * @tags ListingDetail
1075
1098
  * @name ListingDetailFindAllByTenantId
1076
1099
  * @summary Get all the listing details for the specified tenant, including product and item information
1077
- * @request GET:/api/v1/tenant/{tenantId}/listing-detail
1100
+ * @request GET:/api/v1/listing-detail
1078
1101
  * @response `200` `object`
1079
1102
  */
1080
- _this.listingDetailFindAllByTenantId = function (tenantId, query, params) {
1103
+ _this.listingDetailFindAllByTenantId = function (query, params) {
1081
1104
  if (params === void 0) { params = {}; }
1082
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/listing-detail"), method: "GET", query: query, format: "json" }, params));
1105
+ return _this.request(__assign({ path: "/api/v1/listing-detail", method: "GET", query: query, format: "json" }, params));
1083
1106
  };
1084
1107
  /**
1085
1108
  * No description
@@ -1087,80 +1110,77 @@ var Api = /** @class */ (function (_super) {
1087
1110
  * @tags ListingStatusCount
1088
1111
  * @name ListingStatusCountFindAllByTenantId
1089
1112
  * @summary Get the count for all the listings for a tenant grouped by the listing status
1090
- * @request GET:/api/v1/tenant/{tenantId}/listing-status-count
1113
+ * @request GET:/api/v1/listing-status-count
1091
1114
  * @response `200` `object`
1092
1115
  */
1093
- _this.listingStatusCountFindAllByTenantId = function (tenantId, query, params) {
1116
+ _this.listingStatusCountFindAllByTenantId = function (query, params) {
1094
1117
  if (params === void 0) { params = {}; }
1095
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/listing-status-count"), method: "GET", query: query, format: "json" }, params));
1118
+ return _this.request(__assign({ path: "/api/v1/listing-status-count", method: "GET", query: query, format: "json" }, params));
1096
1119
  };
1097
1120
  /**
1098
1121
  * No description
1099
1122
  *
1100
1123
  * @tags PaymentMethod
1101
1124
  * @name PaymentMethodGetSetupIntent
1102
- * @request GET:/api/v1/tenant/{tenantId}/payment-method/setup-intent
1125
+ * @request GET:/api/v1/payment-method/setup-intent
1103
1126
  * @secure
1104
1127
  * @response `200` `object`
1105
1128
  */
1106
- _this.paymentMethodGetSetupIntent = function (tenantId, params) {
1129
+ _this.paymentMethodGetSetupIntent = function (params) {
1107
1130
  if (params === void 0) { params = {}; }
1108
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/payment-method/setup-intent"), method: "GET", secure: true, format: "json" }, params));
1131
+ return _this.request(__assign({ path: "/api/v1/payment-method/setup-intent", method: "GET", secure: true, format: "json" }, params));
1109
1132
  };
1110
1133
  /**
1111
1134
  * No description
1112
1135
  *
1113
1136
  * @tags PaymentMethod
1114
1137
  * @name PaymentMethodGetPaymentMethodForUser
1115
- * @request GET:/api/v1/tenant/{tenantId}/payment-method
1138
+ * @request GET:/api/v1/payment-method
1116
1139
  * @secure
1117
1140
  * @response `200` `object`
1118
1141
  */
1119
- _this.paymentMethodGetPaymentMethodForUser = function (tenantId, params) {
1142
+ _this.paymentMethodGetPaymentMethodForUser = function (params) {
1120
1143
  if (params === void 0) { params = {}; }
1121
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/payment-method"), method: "GET", secure: true, format: "json" }, params));
1144
+ return _this.request(__assign({ path: "/api/v1/payment-method", method: "GET", secure: true, format: "json" }, params));
1122
1145
  };
1123
1146
  /**
1124
1147
  * No description
1125
1148
  *
1126
1149
  * @tags PaymentMethod
1127
1150
  * @name PaymentMethodUpdatePaymentMethodForUser
1128
- * @request PUT:/api/v1/tenant/{tenantId}/payment-method
1151
+ * @request PUT:/api/v1/payment-method
1129
1152
  * @secure
1130
- * @response `204` `void`
1131
- * @response `400` `ProblemDetails`
1132
- * @response `404` `ProblemDetails`
1133
- * @response `default` `ProblemDetails`
1153
+ * @response `200` `File`
1134
1154
  */
1135
- _this.paymentMethodUpdatePaymentMethodForUser = function (tenantId, data, params) {
1155
+ _this.paymentMethodUpdatePaymentMethodForUser = function (data, params) {
1136
1156
  if (params === void 0) { params = {}; }
1137
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/payment-method"), method: "PUT", body: data, secure: true, type: ContentType.Json }, params));
1157
+ return _this.request(__assign({ path: "/api/v1/payment-method", method: "PUT", body: data, secure: true, type: ContentType.Json }, params));
1138
1158
  };
1139
1159
  /**
1140
1160
  * No description
1141
1161
  *
1142
1162
  * @tags PaymentMethod
1143
1163
  * @name PaymentMethodCreatePaymentMethodForUser
1144
- * @request POST:/api/v1/tenant/{tenantId}/payment-method
1164
+ * @request POST:/api/v1/payment-method
1145
1165
  * @secure
1146
1166
  * @response `200` `object`
1147
1167
  */
1148
- _this.paymentMethodCreatePaymentMethodForUser = function (tenantId, data, params) {
1168
+ _this.paymentMethodCreatePaymentMethodForUser = function (data, params) {
1149
1169
  if (params === void 0) { params = {}; }
1150
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/payment-method"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1170
+ return _this.request(__assign({ path: "/api/v1/payment-method", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1151
1171
  };
1152
1172
  /**
1153
1173
  * No description
1154
1174
  *
1155
1175
  * @tags PaymentMethod
1156
1176
  * @name PaymentMethodRemovePaymentMethodFromUser
1157
- * @request DELETE:/api/v1/tenant/{tenantId}/payment-method
1177
+ * @request DELETE:/api/v1/payment-method
1158
1178
  * @secure
1159
1179
  * @response `200` `File`
1160
1180
  */
1161
- _this.paymentMethodRemovePaymentMethodFromUser = function (tenantId, params) {
1181
+ _this.paymentMethodRemovePaymentMethodFromUser = function (params) {
1162
1182
  if (params === void 0) { params = {}; }
1163
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/payment-method"), method: "DELETE", secure: true }, params));
1183
+ return _this.request(__assign({ path: "/api/v1/payment-method", method: "DELETE", secure: true }, params));
1164
1184
  };
1165
1185
  /**
1166
1186
  * No description
@@ -1238,157 +1258,182 @@ var Api = /** @class */ (function (_super) {
1238
1258
  *
1239
1259
  * @tags ProductClass
1240
1260
  * @name ProductClassFindProductClassesByTenantId
1241
- * @request GET:/api/v1/tenant/{tenantId}/product-class
1261
+ * @request GET:/api/v1/product-class
1242
1262
  * @response `200` `object`
1243
1263
  */
1244
- _this.productClassFindProductClassesByTenantId = function (tenantId, query, params) {
1264
+ _this.productClassFindProductClassesByTenantId = function (query, params) {
1245
1265
  if (params === void 0) { params = {}; }
1246
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/product-class"), method: "GET", query: query, format: "json" }, params));
1266
+ return _this.request(__assign({ path: "/api/v1/product-class", method: "GET", query: query, format: "json" }, params));
1247
1267
  };
1248
1268
  /**
1249
1269
  * No description
1250
1270
  *
1251
1271
  * @tags ProductClass
1252
1272
  * @name ProductClassAssignProductClassToTenant
1253
- * @request PUT:/api/v1/admin/tenant/{tenantId}/product-class/{id}
1273
+ * @request PUT:/api/v1/dax-admin/tenant/{tenantId}/product-class/{id}
1254
1274
  * @secure
1255
1275
  * @response `200` `File`
1256
1276
  */
1257
1277
  _this.productClassAssignProductClassToTenant = function (tenantId, id, params) {
1258
1278
  if (params === void 0) { params = {}; }
1259
- return _this.request(__assign({ path: "/api/v1/admin/tenant/".concat(tenantId, "/product-class/").concat(id), method: "PUT", secure: true }, params));
1279
+ return _this.request(__assign({ path: "/api/v1/dax-admin/tenant/".concat(tenantId, "/product-class/").concat(id), method: "PUT", secure: true }, params));
1260
1280
  };
1261
1281
  /**
1262
1282
  * No description
1263
1283
  *
1264
1284
  * @tags ProductClass
1265
1285
  * @name ProductClassRemoveProductClassFromTenant
1266
- * @request DELETE:/api/v1/admin/tenant/{tenantId}/product-class/{id}
1286
+ * @request DELETE:/api/v1/dax-admin/tenant/{tenantId}/product-class/{id}
1267
1287
  * @secure
1268
1288
  * @response `200` `File`
1269
1289
  */
1270
1290
  _this.productClassRemoveProductClassFromTenant = function (tenantId, id, params) {
1271
1291
  if (params === void 0) { params = {}; }
1272
- return _this.request(__assign({ path: "/api/v1/admin/tenant/".concat(tenantId, "/product-class/").concat(id), method: "DELETE", secure: true }, params));
1292
+ return _this.request(__assign({ path: "/api/v1/dax-admin/tenant/".concat(tenantId, "/product-class/").concat(id), method: "DELETE", secure: true }, params));
1273
1293
  };
1274
1294
  /**
1275
1295
  * No description
1276
1296
  *
1277
1297
  * @tags Product
1278
1298
  * @name ProductGetById
1279
- * @request GET:/api/v1/tenant/{tenantId}/product/{id}
1299
+ * @request GET:/api/v1/product/{id}
1280
1300
  * @response `200` `object`
1281
1301
  */
1282
- _this.productGetById = function (tenantId, id, params) {
1302
+ _this.productGetById = function (id, params) {
1283
1303
  if (params === void 0) { params = {}; }
1284
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/product/").concat(id), method: "GET", format: "json" }, params));
1304
+ return _this.request(__assign({ path: "/api/v1/product/".concat(id), method: "GET", format: "json" }, params));
1285
1305
  };
1286
1306
  /**
1287
1307
  * No description
1288
1308
  *
1289
1309
  * @tags Product
1290
1310
  * @name ProductFindAllByTenantId
1291
- * @request GET:/api/v1/tenant/{tenantId}/product
1311
+ * @request GET:/api/v1/product
1292
1312
  * @response `200` `object`
1293
1313
  */
1294
- _this.productFindAllByTenantId = function (tenantId, params) {
1314
+ _this.productFindAllByTenantId = function (params) {
1295
1315
  if (params === void 0) { params = {}; }
1296
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/product"), method: "GET", format: "json" }, params));
1316
+ return _this.request(__assign({ path: "/api/v1/product", method: "GET", format: "json" }, params));
1297
1317
  };
1298
1318
  /**
1299
1319
  * No description
1300
1320
  *
1301
1321
  * @tags TenantAdmin
1302
1322
  * @name TenantAdminGetUsersForTenant
1303
- * @request GET:/api/v1/tenant/{tenantId}/admin/user
1323
+ * @request GET:/api/v1/admin/user
1304
1324
  * @secure
1305
1325
  * @response `200` `object`
1306
1326
  */
1307
- _this.tenantAdminGetUsersForTenant = function (tenantId, params) {
1327
+ _this.tenantAdminGetUsersForTenant = function (params) {
1308
1328
  if (params === void 0) { params = {}; }
1309
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/admin/user"), method: "GET", secure: true, format: "json" }, params));
1329
+ return _this.request(__assign({ path: "/api/v1/admin/user", method: "GET", secure: true, format: "json" }, params));
1310
1330
  };
1311
1331
  /**
1312
1332
  * No description
1313
1333
  *
1314
1334
  * @tags TenantAdmin
1315
1335
  * @name TenantAdminRemoveAllRolesFromUser
1316
- * @request PUT:/api/v1/tenant/{tenantId}/admin/user/{userId}/remove-all-roles
1336
+ * @request PUT:/api/v1/admin/user/{userId}/remove-all-roles
1317
1337
  * @secure
1318
1338
  * @response `200` `File`
1319
1339
  */
1320
- _this.tenantAdminRemoveAllRolesFromUser = function (tenantId, userId, params) {
1340
+ _this.tenantAdminRemoveAllRolesFromUser = function (userId, params) {
1321
1341
  if (params === void 0) { params = {}; }
1322
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/admin/user/").concat(userId, "/remove-all-roles"), method: "PUT", secure: true }, params));
1342
+ return _this.request(__assign({ path: "/api/v1/admin/user/".concat(userId, "/remove-all-roles"), method: "PUT", secure: true }, params));
1323
1343
  };
1324
1344
  /**
1325
1345
  * No description
1326
1346
  *
1327
1347
  * @tags TenantAdmin
1328
1348
  * @name TenantAdminAssignRoleToUser
1329
- * @request PUT:/api/v1/tenant/{tenantId}/admin/user/{userId}/assign-role
1349
+ * @request PUT:/api/v1/admin/user/{userId}/assign-role
1330
1350
  * @secure
1331
1351
  * @response `200` `File`
1332
1352
  */
1333
- _this.tenantAdminAssignRoleToUser = function (tenantId, userId, data, params) {
1353
+ _this.tenantAdminAssignRoleToUser = function (userId, data, params) {
1334
1354
  if (params === void 0) { params = {}; }
1335
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId, "/admin/user/").concat(userId, "/assign-role"), method: "PUT", body: data, secure: true, type: ContentType.Json }, params));
1355
+ return _this.request(__assign({ path: "/api/v1/admin/user/".concat(userId, "/assign-role"), method: "PUT", body: data, secure: true, type: ContentType.Json }, params));
1336
1356
  };
1337
1357
  /**
1338
1358
  * No description
1339
1359
  *
1340
- * @tags Tenant
1341
- * @name TenantGetById
1342
- * @request GET:/api/v1/tenant/{tenantId}
1343
- * @secure
1360
+ * @tags VehicleDetails
1361
+ * @name VehicleDetailsGet
1362
+ * @request GET:/api/v1/vehicle/details
1344
1363
  * @response `200` `object`
1345
1364
  */
1346
- _this.tenantGetById = function (tenantId, params) {
1365
+ _this.vehicleDetailsGet = function (query, params) {
1347
1366
  if (params === void 0) { params = {}; }
1348
- return _this.request(__assign({ path: "/api/v1/tenant/".concat(tenantId), method: "GET", secure: true, format: "json" }, params));
1367
+ return _this.request(__assign({ path: "/api/v1/vehicle/details", method: "GET", query: query, format: "json" }, params));
1349
1368
  };
1350
1369
  /**
1351
1370
  * No description
1352
1371
  *
1353
- * @tags VehicleDetails
1354
- * @name VehicleDetailsGet
1355
- * @request GET:/api/v1/vehicle/details
1372
+ * @tags Webhook
1373
+ * @name WebhookProcessedPaymentWebhook
1374
+ * @request POST:/api/v1/webhook/payment
1356
1375
  * @response `200` `object`
1357
1376
  */
1358
- _this.vehicleDetailsGet = function (query, params) {
1377
+ _this.webhookProcessedPaymentWebhook = function (params) {
1359
1378
  if (params === void 0) { params = {}; }
1360
- return _this.request(__assign({ path: "/api/v1/vehicle/details", method: "GET", query: query, format: "json" }, params));
1379
+ return _this.request(__assign({ path: "/api/v1/webhook/payment", method: "POST", format: "json" }, params));
1380
+ };
1381
+ /**
1382
+ * No description
1383
+ *
1384
+ * @tags Worker
1385
+ * @name WorkerGetWorkersStatuses
1386
+ * @request GET:/api/v1/dax-admin/worker
1387
+ * @response `200` `object`
1388
+ */
1389
+ _this.workerGetWorkersStatuses = function (params) {
1390
+ if (params === void 0) { params = {}; }
1391
+ return _this.request(__assign({ path: "/api/v1/dax-admin/worker", method: "GET", format: "json" }, params));
1392
+ };
1393
+ /**
1394
+ * No description
1395
+ *
1396
+ * @tags Worker
1397
+ * @name WorkerManageListingLifeCycleWorkerStatus
1398
+ * @request PUT:/api/v1/dax-admin/worker/listing-life-cycle
1399
+ * @response `200` `File`
1400
+ */
1401
+ _this.workerManageListingLifeCycleWorkerStatus = function (query, params) {
1402
+ if (params === void 0) { params = {}; }
1403
+ return _this.request(__assign({ path: "/api/v1/dax-admin/worker/listing-life-cycle", method: "PUT", query: query }, params));
1404
+ };
1405
+ /**
1406
+ * No description
1407
+ *
1408
+ * @tags Worker
1409
+ * @name WorkerManageProcessingPaymentsWorkerStatus
1410
+ * @request PUT:/api/v1/dax-admin/worker/processing-payments
1411
+ * @response `200` `File`
1412
+ */
1413
+ _this.workerManageProcessingPaymentsWorkerStatus = function (query, params) {
1414
+ if (params === void 0) { params = {}; }
1415
+ return _this.request(__assign({ path: "/api/v1/dax-admin/worker/processing-payments", method: "PUT", query: query }, params));
1361
1416
  };
1362
1417
  return _this;
1363
1418
  }
1364
1419
  return Api;
1365
1420
  }(HttpClient));
1366
1421
 
1367
- var _a;
1368
1422
  var apiConfig = {
1369
1423
  baseUrl: '/dax-api'
1370
1424
  };
1371
- var TenantId = (_a = process.env.REACT_APP_TENANT_ID) !== null && _a !== void 0 ? _a : '';
1372
1425
  var daxApi = new Api(apiConfig);
1373
- var checkTentantIdSpecified = function () {
1374
- if (!TenantId) {
1375
- throw new Error('Tenant Id not specified. Use the REACT_APP_TENANT_ID environment variable to set it.');
1376
- }
1377
- };
1378
1426
  var listingDetailFindAll = function (listingType, listingStatus, params) {
1379
1427
  if (params === void 0) { params = {}; }
1380
- checkTentantIdSpecified();
1381
- return daxApi.listingDetailFindAllByTenantId(TenantId, __assign(__assign({}, (listingType ? { listingType: listingType } : {})), (listingStatus ? { listingStatus: listingStatus } : {})), params);
1428
+ return daxApi.listingDetailFindAllByTenantId(__assign(__assign({}, (listingType ? { listingType: listingType } : {})), (listingStatus ? { listingStatus: listingStatus } : {})), params);
1382
1429
  };
1383
1430
  var listingDetailById = function (id, params) {
1384
1431
  if (params === void 0) { params = {}; }
1385
- checkTentantIdSpecified();
1386
- return daxApi.listingDetailGetById(TenantId, id, params);
1432
+ return daxApi.listingDetailGetById(id, params);
1387
1433
  };
1388
1434
  var listingStatusCountFindAll = function (listingType, listingStatus, params) {
1389
1435
  if (params === void 0) { params = {}; }
1390
- checkTentantIdSpecified();
1391
- return daxApi.listingStatusCountFindAllByTenantId(TenantId, __assign(__assign({}, (listingType ? { listingType: listingType } : {})), (listingStatus ? { listingStatus: listingStatus } : {})), params);
1436
+ return daxApi.listingStatusCountFindAllByTenantId(__assign(__assign({}, (listingType ? { listingType: listingType } : {})), (listingStatus ? { listingStatus: listingStatus } : {})), params);
1392
1437
  };
1393
1438
 
1394
1439
  export { daxApi, listingDetailById, listingDetailFindAll, listingStatusCountFindAll };