@colijnit/mainapi 259.1.8 → 259.1.10

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.
@@ -7,5 +7,6 @@ export declare enum InternalDefault {
7
7
  DashboardVideoWidgetURL = "DASH_WIDGET_VIDEO_URL",
8
8
  DaysUntilFirstPlanDate = "PLAN_DGN_AANVR_VOORUIT",
9
9
  MinimalAmountWhichPickingIsGrouped = "AANT_PICK_GROEP",
10
- PrefPlanningFromDeliveryDate = "VKP_VANAF_LEVDAT"
10
+ PrefPlanningFromDeliveryDate = "VKP_VANAF_LEVDAT",
11
+ PrintColliStickers = "VOR_BINNEN"
11
12
  }
@@ -12,4 +12,5 @@ var InternalDefault;
12
12
  InternalDefault["DaysUntilFirstPlanDate"] = "PLAN_DGN_AANVR_VOORUIT";
13
13
  InternalDefault["MinimalAmountWhichPickingIsGrouped"] = "AANT_PICK_GROEP";
14
14
  InternalDefault["PrefPlanningFromDeliveryDate"] = "VKP_VANAF_LEVDAT";
15
+ InternalDefault["PrintColliStickers"] = "VOR_BINNEN";
15
16
  })(InternalDefault = exports.InternalDefault || (exports.InternalDefault = {}));
@@ -884,10 +884,10 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
884
884
  }
885
885
  else if (type === co_document_type_enum_1.CoDocumentType.SaveAsLinkOnDefaultLocation) {
886
886
  }
887
- else if (type === co_document_type_enum_1.CoDocumentType.SaveAsLinkOnCdnServerLocation && hasPublicAccess === 'T') {
887
+ else if (type === co_document_type_enum_1.CoDocumentType.SaveAsLinkOnCdnServerLocation && hasPublicAccess) {
888
888
  return this._handleDocumentUrl(filePath, fileType);
889
889
  }
890
- else if (type === co_document_type_enum_1.CoDocumentType.SaveAsLinkOnCdnServerLocation && hasPublicAccess === 'F') {
890
+ else if (type === co_document_type_enum_1.CoDocumentType.SaveAsLinkOnCdnServerLocation && !hasPublicAccess) {
891
891
  return this._handleDocumentBody(documentId, mimeType, thumb, fileType);
892
892
  }
893
893
  }
@@ -436,10 +436,10 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
436
436
  }
437
437
  else if (type === co_document_type_enum_1.CoDocumentType.SaveAsLinkOnDefaultLocation) {
438
438
  }
439
- else if (type === co_document_type_enum_1.CoDocumentType.SaveAsLinkOnCdnServerLocation && hasPublicAccess === 'T') {
439
+ else if (type === co_document_type_enum_1.CoDocumentType.SaveAsLinkOnCdnServerLocation && hasPublicAccess) {
440
440
  return this._handleDocumentUrl(filePath, fileType);
441
441
  }
442
- else if (type === co_document_type_enum_1.CoDocumentType.SaveAsLinkOnCdnServerLocation && hasPublicAccess === 'F') {
442
+ else if (type === co_document_type_enum_1.CoDocumentType.SaveAsLinkOnCdnServerLocation && !hasPublicAccess) {
443
443
  return this._handleDocumentBody(documentId, mimeType, thumb, fileType);
444
444
  }
445
445
  }
@@ -32,7 +32,7 @@ export declare class CoDocument extends BusinessObject {
32
32
  downloadable: boolean;
33
33
  attachToNotification: boolean;
34
34
  pathIsUrl: boolean;
35
- hasPublicAccess: string;
35
+ hasPublicAccess: boolean;
36
36
  imageType: string;
37
37
  imageDisplayKind: string;
38
38
  tags: Tag[];
@@ -34,6 +34,7 @@ const sort_type_enum_1 = require("@colijnit/ioneconnector/build/enum/sort-type.e
34
34
  const sort_direction_1 = require("@colijnit/ioneconnector/build/enum/sort-direction");
35
35
  const ref_code_class_to_domain_name_map_1 = require("./constant/ref-code-class-to-domain-name-map");
36
36
  const co_document_right_1 = require("./co-document-right");
37
+ const default_send_value_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/default-send-value.decorator");
37
38
  let CoDocument = class CoDocument extends business_object_1.BusinessObject {
38
39
  set documentId(value) {
39
40
  this._documentId = value;
@@ -117,7 +118,7 @@ let CoDocument = class CoDocument extends business_object_1.BusinessObject {
117
118
  constructor(rawData = {}) {
118
119
  super();
119
120
  this.pathIsUrl = false;
120
- this.hasPublicAccess = 'F';
121
+ this.hasPublicAccess = false;
121
122
  this.tags = [];
122
123
  this.rights = [];
123
124
  this.seoTitles = [];
@@ -140,7 +141,7 @@ let CoDocument = class CoDocument extends business_object_1.BusinessObject {
140
141
  isStoredAsLink() {
141
142
  return this.documentType == co_document_type_enum_1.CoDocumentType.SaveAsLinkOnRandomLocation
142
143
  || this.documentType == co_document_type_enum_1.CoDocumentType.SaveAsLinkOnDefaultLocation
143
- || (this.documentType == co_document_type_enum_1.CoDocumentType.SaveAsLinkOnCdnServerLocation && this.hasPublicAccess === 'T');
144
+ || (this.documentType == co_document_type_enum_1.CoDocumentType.SaveAsLinkOnCdnServerLocation && this.hasPublicAccess);
144
145
  }
145
146
  };
146
147
  __decorate([
@@ -163,6 +164,11 @@ __decorate([
163
164
  (0, boolean_decorator_1.BooleanText)('T'),
164
165
  __metadata("design:type", Boolean)
165
166
  ], CoDocument.prototype, "pathIsUrl", void 0);
167
+ __decorate([
168
+ (0, boolean_decorator_1.BooleanText)("T"),
169
+ (0, default_send_value_decorator_1.DefaultSendValue)("F"),
170
+ __metadata("design:type", Boolean)
171
+ ], CoDocument.prototype, "hasPublicAccess", void 0);
166
172
  __decorate([
167
173
  (0, complex_array_decorator_1.ComplexArray)(tag_1.Tag),
168
174
  __metadata("design:type", Array)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/mainapi",
3
- "version": "259.1.8",
3
+ "version": "259.1.10",
4
4
  "scripts": {
5
5
  "build": "grunt clean && tsc",
6
6
  "browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",