@veloceapps/api 6.0.0-86 → 6.0.0-88
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 +66 -0
- package/bundles/veloceapps-api.umd.js.map +1 -1
- package/esm2015/index.js +2 -1
- package/esm2015/lib/api.module.js +4 -1
- package/esm2015/lib/services/guided-sellings-api.service.js +66 -0
- package/fesm2015/veloceapps-api.js +64 -1
- package/fesm2015/veloceapps-api.js.map +1 -1
- package/index.d.ts +1 -0
- package/lib/services/guided-sellings-api.service.d.ts +19 -0
- package/package.json +1 -1
@@ -1416,6 +1416,69 @@
|
|
1416
1416
|
type: i0.Injectable
|
1417
1417
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
1418
1418
|
|
1419
|
+
var GuidedSellingsApiService = /** @class */ (function () {
|
1420
|
+
function GuidedSellingsApiService(baseHttpService) {
|
1421
|
+
var _this = this;
|
1422
|
+
this.baseHttpService = baseHttpService;
|
1423
|
+
this.serviceUrl = '/guided-sellings';
|
1424
|
+
this.fetchGuidedSellings$ = function (searchParams) {
|
1425
|
+
var params = new i4.HttpParams({ fromObject: Object.assign({}, searchParams) });
|
1426
|
+
return rxjs.of([{ id: '1', name: 'test', description: 'test' }]);
|
1427
|
+
// return this.baseHttpService.api({ url: `${this.serviceUrl}`, params });
|
1428
|
+
};
|
1429
|
+
this.searchGuidedSellings$ = function (searchParams, expression) {
|
1430
|
+
return rxjs.of([{ id: '1', name: 'test', description: 'test' }]);
|
1431
|
+
var params = new i4.HttpParams({ fromObject: Object.assign({}, searchParams) });
|
1432
|
+
return _this.baseHttpService.api({
|
1433
|
+
method: 'post',
|
1434
|
+
url: _this.serviceUrl + "/search",
|
1435
|
+
params: params,
|
1436
|
+
body: expression || {},
|
1437
|
+
});
|
1438
|
+
};
|
1439
|
+
this.createNewGuidedSelling$ = function (guidedSelling) {
|
1440
|
+
return _this.baseHttpService.api({
|
1441
|
+
url: "" + _this.serviceUrl,
|
1442
|
+
method: 'post',
|
1443
|
+
body: guidedSelling,
|
1444
|
+
});
|
1445
|
+
};
|
1446
|
+
this.duplicateGuidedSelling$ = function (cloneRequest) {
|
1447
|
+
return _this.baseHttpService.api({
|
1448
|
+
url: _this.serviceUrl + "/" + cloneRequest.id + "/clone",
|
1449
|
+
method: 'post',
|
1450
|
+
body: cloneRequest,
|
1451
|
+
});
|
1452
|
+
};
|
1453
|
+
this.updateGuidedSelling$ = function (data) {
|
1454
|
+
return _this.baseHttpService.api({
|
1455
|
+
url: _this.serviceUrl + "/" + data.id,
|
1456
|
+
method: 'put',
|
1457
|
+
body: data,
|
1458
|
+
});
|
1459
|
+
};
|
1460
|
+
this.removeGuidedSelling$ = function (id) {
|
1461
|
+
return _this.baseHttpService.api({
|
1462
|
+
url: _this.serviceUrl + "/" + id,
|
1463
|
+
method: 'delete',
|
1464
|
+
});
|
1465
|
+
};
|
1466
|
+
this.restoreGuidedSelling$ = function (id) {
|
1467
|
+
return _this.baseHttpService.api({
|
1468
|
+
url: _this.serviceUrl + "/" + id + "/restore",
|
1469
|
+
method: 'patch',
|
1470
|
+
});
|
1471
|
+
};
|
1472
|
+
}
|
1473
|
+
return GuidedSellingsApiService;
|
1474
|
+
}());
|
1475
|
+
GuidedSellingsApiService.MAX_RESULTS = 60;
|
1476
|
+
GuidedSellingsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GuidedSellingsApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
1477
|
+
GuidedSellingsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GuidedSellingsApiService });
|
1478
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GuidedSellingsApiService, decorators: [{
|
1479
|
+
type: i0.Injectable
|
1480
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
|
1481
|
+
|
1419
1482
|
var OffersApiService = /** @class */ (function () {
|
1420
1483
|
function OffersApiService(baseHttpService) {
|
1421
1484
|
this.baseHttpService = baseHttpService;
|
@@ -2695,6 +2758,7 @@
|
|
2695
2758
|
RulesApiService,
|
2696
2759
|
RuleGroupsApiService,
|
2697
2760
|
FlowsApiService,
|
2761
|
+
GuidedSellingsApiService,
|
2698
2762
|
ShoppingCartSettingsApiService,
|
2699
2763
|
ProductApiService,
|
2700
2764
|
CatalogAdminApiService,
|
@@ -2729,6 +2793,7 @@
|
|
2729
2793
|
RulesApiService,
|
2730
2794
|
RuleGroupsApiService,
|
2731
2795
|
FlowsApiService,
|
2796
|
+
GuidedSellingsApiService,
|
2732
2797
|
ShoppingCartSettingsApiService,
|
2733
2798
|
ProductApiService,
|
2734
2799
|
CatalogAdminApiService,
|
@@ -2759,6 +2824,7 @@
|
|
2759
2824
|
exports.DocumentTemplatesApiService = DocumentTemplatesApiService;
|
2760
2825
|
exports.EndpointsApiService = EndpointsApiService;
|
2761
2826
|
exports.FlowsApiService = FlowsApiService;
|
2827
|
+
exports.GuidedSellingsApiService = GuidedSellingsApiService;
|
2762
2828
|
exports.OffersApiService = OffersApiService;
|
2763
2829
|
exports.OrgInfoApiService = OrgInfoApiService;
|
2764
2830
|
exports.PicklistsApiService = PicklistsApiService;
|