@veloceapps/api 6.0.0-72 → 6.0.0-73
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/bundles/veloceapps-api.umd.js +17 -0
- package/bundles/veloceapps-api.umd.js.map +1 -1
- package/esm2015/lib/services/offers-api.service.js +19 -1
- package/esm2015/lib/types/dto/offers-dto.types.js +2 -0
- package/esm2015/lib/types/index.js +1 -1
- package/fesm2015/veloceapps-api.js +18 -1
- package/fesm2015/veloceapps-api.js.map +1 -1
- package/lib/services/offers-api.service.d.ts +3 -1
- package/lib/types/dto/offers-dto.types.d.ts +9 -0
- package/lib/types/index.d.ts +1 -0
- package/package.json +1 -1
@@ -1462,6 +1462,23 @@
|
|
1462
1462
|
body: expression,
|
1463
1463
|
});
|
1464
1464
|
};
|
1465
|
+
OffersApiService.prototype.fetchOfferProducts$ = function (id) {
|
1466
|
+
return this.baseHttpService
|
1467
|
+
.api({
|
1468
|
+
url: this.serviceUrl + "/" + id + "/products",
|
1469
|
+
})
|
1470
|
+
.pipe(rxjs.map(function (response) { return response.products; }));
|
1471
|
+
};
|
1472
|
+
OffersApiService.prototype.upsertOfferProducts$ = function (id, products) {
|
1473
|
+
var request = { products: products };
|
1474
|
+
return this.baseHttpService
|
1475
|
+
.api({
|
1476
|
+
url: this.serviceUrl + "/" + id + "/products",
|
1477
|
+
method: 'put',
|
1478
|
+
body: request,
|
1479
|
+
})
|
1480
|
+
.pipe(rxjs.map(function (response) { return response.products; }));
|
1481
|
+
};
|
1465
1482
|
return OffersApiService;
|
1466
1483
|
}());
|
1467
1484
|
OffersApiService.MAX_RESULTS = 60;
|