@veloceapps/api 6.0.0-65 → 6.0.0-67

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.
@@ -1416,6 +1416,61 @@
1416
1416
  type: i0.Injectable
1417
1417
  }], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
1418
1418
 
1419
+ var OffersApiService = /** @class */ (function () {
1420
+ function OffersApiService(baseHttpService) {
1421
+ this.baseHttpService = baseHttpService;
1422
+ this.serviceUrl = '/admin/offers';
1423
+ }
1424
+ OffersApiService.prototype.createOffer$ = function (body) {
1425
+ return this.baseHttpService.api({
1426
+ url: "" + this.serviceUrl,
1427
+ method: 'post',
1428
+ body: body,
1429
+ });
1430
+ };
1431
+ OffersApiService.prototype.fetchOffers$ = function () {
1432
+ return this.baseHttpService.api({
1433
+ url: "" + this.serviceUrl,
1434
+ });
1435
+ };
1436
+ OffersApiService.prototype.fetchOffer$ = function (id) {
1437
+ return this.baseHttpService.api({
1438
+ url: this.serviceUrl + "/" + id,
1439
+ });
1440
+ };
1441
+ OffersApiService.prototype.updateOffer$ = function (offer) {
1442
+ return this.baseHttpService.api({
1443
+ url: this.serviceUrl + "/" + offer.id,
1444
+ method: 'put',
1445
+ body: offer,
1446
+ });
1447
+ };
1448
+ OffersApiService.prototype.removeOffer$ = function (id) {
1449
+ return this.baseHttpService.api({
1450
+ url: this.serviceUrl + "/" + id,
1451
+ method: 'delete',
1452
+ });
1453
+ };
1454
+ OffersApiService.prototype.searchOffers$ = function (expression, skip, count) {
1455
+ var params = new i4.HttpParams();
1456
+ params = params.set('skip', '' + skip);
1457
+ params = params.set('count', '' + count);
1458
+ return this.baseHttpService.api({
1459
+ method: 'post',
1460
+ url: this.serviceUrl + "/search",
1461
+ params: params,
1462
+ body: expression,
1463
+ });
1464
+ };
1465
+ return OffersApiService;
1466
+ }());
1467
+ OffersApiService.MAX_RESULTS = 60;
1468
+ OffersApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OffersApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1469
+ OffersApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OffersApiService });
1470
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OffersApiService, decorators: [{
1471
+ type: i0.Injectable
1472
+ }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
1473
+
1419
1474
  var OrgInfoApiService = /** @class */ (function () {
1420
1475
  function OrgInfoApiService(http) {
1421
1476
  var _a;
@@ -2632,6 +2687,7 @@
2632
2687
  PicklistsApiService,
2633
2688
  EndpointsApiService,
2634
2689
  OrgInfoApiService,
2690
+ OffersApiService,
2635
2691
  ], imports: [[i4.HttpClientModule]] });
2636
2692
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ApiModule, decorators: [{
2637
2693
  type: i0.NgModule,
@@ -2665,6 +2721,7 @@
2665
2721
  PicklistsApiService,
2666
2722
  EndpointsApiService,
2667
2723
  OrgInfoApiService,
2724
+ OffersApiService,
2668
2725
  ],
2669
2726
  }]
2670
2727
  }] });
@@ -2685,6 +2742,7 @@
2685
2742
  exports.DocumentTemplatesApiService = DocumentTemplatesApiService;
2686
2743
  exports.EndpointsApiService = EndpointsApiService;
2687
2744
  exports.FlowsApiService = FlowsApiService;
2745
+ exports.OffersApiService = OffersApiService;
2688
2746
  exports.OrgInfoApiService = OrgInfoApiService;
2689
2747
  exports.PicklistsApiService = PicklistsApiService;
2690
2748
  exports.PriceApiService = PriceApiService;