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