@veloceapps/api 2.0.25 → 3.0.1

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.
@@ -430,7 +430,7 @@
430
430
  }());
431
431
 
432
432
  var ChargeItemDTO = /** @class */ (function () {
433
- function ChargeItemDTO(id, price, unitPrice, baseListPrice, baseListUnitPrice, listPrice, listUnitPrice, netPrice, netUnitPrice, chargeId, chargeType, chargeMethod, priceItemId, startDate, priceWaterfalls, quantity, properties, chargeTypeDisplayValue, arr, frequencyUnit, frequencyDuration, endDate, sellingTerm, currency, unitCost, cost, minUnitPrice, minPrice, enablePriceAdjustment, enableListPriceAdjustment, listPriceAdjustment, priceAdjustment, requiresApprovals) {
433
+ function ChargeItemDTO(id, price, unitPrice, baseListPrice, baseListUnitPrice, listPrice, listUnitPrice, netPrice, netUnitPrice, chargeId, chargeType, chargeMethod, priceItemId, startDate, priceWaterfalls, quantity, properties, chargeTypeDisplayValue, arr, frequencyUnit, frequencyDuration, endDate, sellingTerm, currency, unitCost, cost, minUnitPrice, minPrice, enablePriceAdjustment, enableListPriceAdjustment, listPriceAdjustment, priceAdjustment) {
434
434
  this.id = id;
435
435
  this.price = price;
436
436
  this.unitPrice = unitPrice;
@@ -463,7 +463,6 @@
463
463
  this.enableListPriceAdjustment = enableListPriceAdjustment;
464
464
  this.listPriceAdjustment = listPriceAdjustment;
465
465
  this.priceAdjustment = priceAdjustment;
466
- this.requiresApprovals = requiresApprovals;
467
466
  }
468
467
  ChargeItemDTO.fromDTO = function (dto) {
469
468
  return {
@@ -499,7 +498,6 @@
499
498
  enableListPriceAdjustment: dto.enableListPriceAdjustment,
500
499
  listPriceAdjustment: dto.listPriceAdjustment && PriceAdjustmentDTO.fromDTO(dto.listPriceAdjustment),
501
500
  priceAdjustment: dto.priceAdjustment && PriceAdjustmentDTO.fromDTO(dto.priceAdjustment),
502
- requiresApprovals: dto.requiresApprovals,
503
501
  };
504
502
  };
505
503
  return ChargeItemDTO;
@@ -605,7 +603,7 @@
605
603
  }());
606
604
 
607
605
  var LineItemDTO = /** @class */ (function () {
608
- function LineItemDTO(id, activated, attributes, attributeDomains, cfgStatus, chargeGroupItems, chargeItems, domainComputations, lineItems, messages, name, optionalCharges, pending, portDomains, properties, qty, totalPrices, type, productId, port, parentId, assetId, openOrderLineItemId, productName, rootId, actionCode, serviceStartDate, effectiveDate, startDate, endDate, planId, sellingFrequencyUnit, sellingFrequencyDuration, offeringId, offeringItemId, offeringInstanceId, rampInstanceId, enableRamp, configurable, requiresApprovals) {
606
+ function LineItemDTO(id, activated, attributes, attributeDomains, cfgStatus, chargeGroupItems, chargeItems, domainComputations, lineItems, messages, name, optionalCharges, pending, portDomains, properties, qty, totalPrices, type, productId, port, parentId, assetId, openOrderLineItemId, productName, rootId, actionCode, serviceStartDate, effectiveDate, startDate, endDate, planId, sellingFrequencyUnit, sellingFrequencyDuration, offeringId, offeringItemId, offeringInstanceId, rampInstanceId, enableRamp, configurable) {
609
607
  this.id = id;
610
608
  this.activated = activated;
611
609
  this.attributes = attributes;
@@ -645,7 +643,6 @@
645
643
  this.rampInstanceId = rampInstanceId;
646
644
  this.enableRamp = enableRamp;
647
645
  this.configurable = configurable;
648
- this.requiresApprovals = requiresApprovals;
649
646
  }
650
647
  LineItemDTO.fromDTO = function (dto) {
651
648
  return {
@@ -688,7 +685,6 @@
688
685
  rampInstanceId: dto.rampInstanceId,
689
686
  enableRamp: dto.enableRamp,
690
687
  configurable: dto.configurable,
691
- requiresApprovals: dto.requiresApprovals,
692
688
  };
693
689
  };
694
690
  return LineItemDTO;
@@ -972,40 +968,29 @@
972
968
  this.httpService = httpService;
973
969
  this.SERVICE_URL = '/proxy';
974
970
  }
975
- SalesforceApiService.prototype.query = function (searchRequest, objectName) {
976
- return this.httpService.api({
977
- method: 'post',
978
- body: Object.assign(Object.assign({}, searchRequest), { count: searchRequest.count || 100 }),
979
- url: this.SERVICE_URL + "/query/" + objectName,
980
- });
971
+ SalesforceApiService.prototype.query = function (searchRequest, objectName, options) {
972
+ return this.httpService.api(Object.assign({ method: 'post', body: Object.assign(Object.assign({}, searchRequest), { count: searchRequest.count || 100 }), url: this.SERVICE_URL + "/query/" + objectName }, options));
981
973
  };
982
- SalesforceApiService.prototype.queryObjects = function (search) {
974
+ SalesforceApiService.prototype.queryObjects = function (search, options) {
983
975
  var params = new i5.HttpParams();
984
976
  if (search) {
985
977
  params.append('search', search);
986
978
  }
987
- return this.httpService.api({
988
- url: this.SERVICE_URL + "/query",
989
- params: params,
990
- });
979
+ return this.httpService.api(Object.assign({ url: this.SERVICE_URL + "/query", params: params }, options));
991
980
  };
992
- SalesforceApiService.prototype.describe = function (objectName, fieldName) {
981
+ SalesforceApiService.prototype.describe = function (objectName, fieldName, options) {
993
982
  var methodUrl = this.SERVICE_URL + "/describe/" + objectName + "/fields" + (fieldName ? "/" + fieldName : '');
994
- return this.httpService.api({ url: methodUrl });
983
+ return this.httpService.api(Object.assign({ url: methodUrl }, options));
995
984
  };
996
- SalesforceApiService.prototype.describe2 = function (objectName, fields) {
985
+ SalesforceApiService.prototype.describe2 = function (objectName, fields, options) {
997
986
  var methodUrl = this.SERVICE_URL + "/describe/" + objectName + "/fields";
998
- return this.httpService.api({ method: 'post', url: methodUrl, body: fields });
987
+ return this.httpService.api(Object.assign({ method: 'post', url: methodUrl, body: fields }, options));
999
988
  };
1000
- SalesforceApiService.prototype.apexGetRequest = function (path, params) {
1001
- return this.httpService.api({ url: this.SERVICE_URL + "/apex" + path, params: params });
989
+ SalesforceApiService.prototype.apexGetRequest = function (path, params, options) {
990
+ return this.httpService.api(Object.assign({ url: this.SERVICE_URL + "/apex" + path, params: params }, options));
1002
991
  };
1003
- SalesforceApiService.prototype.apexPostRequest = function (path, body) {
1004
- return this.httpService.api({
1005
- method: 'post',
1006
- body: body,
1007
- url: this.SERVICE_URL + "/apex" + path,
1008
- });
992
+ SalesforceApiService.prototype.apexPostRequest = function (path, body, options) {
993
+ return this.httpService.api(Object.assign({ method: 'post', body: body, url: this.SERVICE_URL + "/apex" + path }, options));
1009
994
  };
1010
995
  return SalesforceApiService;
1011
996
  }());
@@ -1036,19 +1021,11 @@
1036
1021
  errorHandler: errorHandler,
1037
1022
  });
1038
1023
  };
1039
- QuoteApiService.prototype.upsertQuote = function (request) {
1040
- return this.httpService.api({
1041
- method: 'post',
1042
- url: "" + this.SERVICE_URL,
1043
- body: request,
1044
- });
1024
+ QuoteApiService.prototype.upsertQuote = function (request, options) {
1025
+ return this.httpService.api(Object.assign({ method: 'post', url: "" + this.SERVICE_URL, body: request }, options));
1045
1026
  };
1046
- QuoteApiService.prototype.submitQuote = function (request) {
1047
- return this.httpService.api({
1048
- method: 'post',
1049
- url: this.SERVICE_URL + "/submit",
1050
- body: request,
1051
- });
1027
+ QuoteApiService.prototype.submitQuote = function (request, options) {
1028
+ return this.httpService.api(Object.assign({ method: 'post', url: this.SERVICE_URL + "/submit", body: request }, options));
1052
1029
  };
1053
1030
  QuoteApiService.prototype.attachDocument = function (id, documentName, data) {
1054
1031
  var formData = new FormData();