@colijnit/mainapi 260.1.9 → 260.1.11

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.
@@ -25,5 +25,8 @@ export declare enum InternalParam {
25
25
  CustomerCanCreateAccount = "CUST_CAN_CREATE_ACCOUNT",
26
26
  JsInterBranch = "JS_INTER_FILIAAL",
27
27
  SellDirectlyFromSupplier = "SELL_DIRECTLY_FROM_SUPPL",
28
- AllowChangesOnInvoicedSalesOrders = "FACT_VOLLEDIG"
28
+ AllowChangesOnInvoicedSalesOrders = "FACT_VOLLEDIG",
29
+ ThresholdCashPaymentMessage = "THRESHOLD_CASH_PAY_MSG",
30
+ DiscountCode = "KORTINGCODEVERP",
31
+ InternalPlanDays = "LEVERPLAN"
29
32
  }
@@ -30,4 +30,7 @@ var InternalParam;
30
30
  InternalParam["JsInterBranch"] = "JS_INTER_FILIAAL";
31
31
  InternalParam["SellDirectlyFromSupplier"] = "SELL_DIRECTLY_FROM_SUPPL";
32
32
  InternalParam["AllowChangesOnInvoicedSalesOrders"] = "FACT_VOLLEDIG";
33
+ InternalParam["ThresholdCashPaymentMessage"] = "THRESHOLD_CASH_PAY_MSG";
34
+ InternalParam["DiscountCode"] = "KORTINGCODEVERP";
35
+ InternalParam["InternalPlanDays"] = "LEVERPLAN";
33
36
  })(InternalParam = exports.InternalParam || (exports.InternalParam = {}));
@@ -719,7 +719,7 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
719
719
  getImage(key, publication = 4, includeMimetype = false, thumb = true, tableName = table_name_enum_1.TableName.Goods) {
720
720
  return __awaiter(this, void 0, void 0, function* () {
721
721
  const getImageObject = yield this.getSingleImage(key, publication, includeMimetype, thumb, tableName);
722
- if (getImageObject.validationResult && getImageObject.validationResult.success) {
722
+ if (getImageObject && getImageObject.validationResult && getImageObject.validationResult.success) {
723
723
  if (getImageObject.resultObject) {
724
724
  const document = getImageObject.resultObject;
725
725
  const type = document.documentType;
@@ -375,7 +375,7 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
375
375
  getImage(key, publication = 4, includeMimetype = false, thumb = true) {
376
376
  return __awaiter(this, void 0, void 0, function* () {
377
377
  const getImageObject = yield this.getSingleImage(key, publication, includeMimetype, thumb, table_name_enum_1.TableName.Goods);
378
- if (getImageObject.validationResult && getImageObject.validationResult.success) {
378
+ if (getImageObject && getImageObject.validationResult && getImageObject.validationResult.success) {
379
379
  if (getImageObject.resultObject) {
380
380
  const document = getImageObject.resultObject;
381
381
  const type = document.documentType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/mainapi",
3
- "version": "260.1.9",
3
+ "version": "260.1.11",
4
4
  "scripts": {
5
5
  "build": "grunt clean && tsc",
6
6
  "browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",