@colijnit/mainapi 259.1.8 → 259.1.9
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/build/main-auth.js
CHANGED
|
@@ -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
|
|
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
|
|
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
|
}
|
package/build/main-public.js
CHANGED
|
@@ -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
|
|
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
|
|
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:
|
|
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 =
|
|
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
|
|
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)
|