@colijnit/mainapi 1.0.32 → 1.0.34
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/enum/absence-type.enum.d.ts +10 -10
- package/build/enum/absence-type.enum.js +14 -14
- package/build/enum/activities-object-name.enum.d.ts +3 -3
- package/build/enum/activities-object-name.enum.js +7 -7
- package/build/enum/activities-operation-name.enum.d.ts +5 -5
- package/build/enum/activities-operation-name.enum.js +9 -9
- package/build/enum/activity-type.d.ts +9 -9
- package/build/enum/activity-type.js +13 -13
- package/build/enum/article-publication.enum.d.ts +5 -5
- package/build/enum/article-publication.enum.js +9 -9
- package/build/enum/backend-service-name.enum.d.ts +9 -9
- package/build/enum/backend-service-name.enum.js +13 -13
- package/build/enum/co-document-image-display-kind.enum.d.ts +5 -5
- package/build/enum/co-document-image-display-kind.enum.js +9 -9
- package/build/enum/co-document-type.enum.d.ts +5 -5
- package/build/enum/co-document-type.enum.js +9 -9
- package/build/enum/co-sub-report.bo.d.ts +11 -11
- package/build/enum/co-sub-report.bo.js +21 -21
- package/build/enum/config-object-name.enum.d.ts +3 -3
- package/build/enum/config-object-name.enum.js +7 -7
- package/build/enum/data-mapping.enum.d.ts +5 -5
- package/build/enum/data-mapping.enum.js +9 -9
- package/build/enum/data-service-method.enum.d.ts +15 -15
- package/build/enum/data-service-method.enum.js +19 -19
- package/build/enum/db-boolean-value-type.enum.d.ts +12 -12
- package/build/enum/db-boolean-value-type.enum.js +32 -32
- package/build/enum/delivery-time-unit-type.enum.d.ts +4 -4
- package/build/enum/delivery-time-unit-type.enum.js +8 -8
- package/build/enum/document-allowed-type.enum.d.ts +10 -10
- package/build/enum/document-allowed-type.enum.js +14 -14
- package/build/enum/document-method.enum.d.ts +6 -6
- package/build/enum/document-method.enum.js +10 -10
- package/build/enum/domain-name.enum.d.ts +64 -64
- package/build/enum/domain-name.enum.js +68 -68
- package/build/enum/file-type-internal.enum.d.ts +11 -11
- package/build/enum/file-type-internal.enum.js +15 -15
- package/build/enum/file-type.enum.d.ts +5 -5
- package/build/enum/file-type.enum.js +9 -9
- package/build/enum/general-method.enum.d.ts +37 -37
- package/build/enum/general-method.enum.js +41 -41
- package/build/enum/insured-interest-type.enum.d.ts +10 -10
- package/build/enum/insured-interest-type.enum.js +14 -14
- package/build/enum/internal-param.enum.d.ts +9 -9
- package/build/enum/internal-param.enum.js +13 -13
- package/build/enum/ione-module-name.enum.d.ts +39 -39
- package/build/enum/ione-module-name.enum.js +55 -55
- package/build/enum/master-data-object-name.enum.d.ts +24 -24
- package/build/enum/master-data-object-name.enum.js +28 -28
- package/build/enum/message-type.enum.d.ts +6 -6
- package/build/enum/message-type.enum.js +10 -10
- package/build/enum/module-name.enum.d.ts +13 -13
- package/build/enum/module-name.enum.js +17 -17
- package/build/enum/module-navigation-link.d.ts +5 -5
- package/build/enum/module-navigation-link.js +2 -2
- package/build/enum/note-display-type.enum.d.ts +5 -5
- package/build/enum/note-display-type.enum.js +9 -9
- package/build/enum/one-zero-bool-db-type.enum.d.ts +5 -5
- package/build/enum/one-zero-bool-db-type.enum.js +20 -20
- package/build/enum/own-risk.enum.d.ts +7 -7
- package/build/enum/own-risk.enum.js +11 -11
- package/build/enum/preset-object-name.enum.d.ts +3 -3
- package/build/enum/preset-object-name.enum.js +7 -7
- package/build/enum/price-type.enum.d.ts +4 -4
- package/build/enum/price-type.enum.js +8 -8
- package/build/enum/printing-service-method.d.ts +8 -8
- package/build/enum/printing-service-method.js +12 -12
- package/build/enum/priority-type.enum.d.ts +7 -7
- package/build/enum/priority-type.enum.js +11 -11
- package/build/enum/product-kind.enum.d.ts +6 -6
- package/build/enum/product-kind.enum.js +10 -10
- package/build/enum/public-service-method.d.ts +20 -20
- package/build/enum/public-service-method.js +24 -24
- package/build/enum/relation-kind.d.ts +10 -10
- package/build/enum/relation-kind.js +14 -14
- package/build/enum/relman-complete-name.d.ts +5 -5
- package/build/enum/relman-complete-name.js +2 -2
- package/build/enum/report-method.enum.d.ts +15 -15
- package/build/enum/report-method.enum.js +19 -19
- package/build/enum/report-object-name.enum.d.ts +3 -3
- package/build/enum/report-object-name.enum.js +7 -7
- package/build/enum/report-param-type.enum.d.ts +15 -15
- package/build/enum/report-param-type.enum.js +19 -19
- package/build/enum/report-type.enum.d.ts +45 -45
- package/build/enum/report-type.enum.js +49 -49
- package/build/enum/reporting-documents-method.enum.d.ts +4 -4
- package/build/enum/reporting-documents-method.enum.js +8 -8
- package/build/enum/send-method-type.enum.d.ts +10 -10
- package/build/enum/send-method-type.enum.js +14 -14
- package/build/enum/sequence-name.enum.d.ts +31 -31
- package/build/enum/sequence-name.enum.js +35 -35
- package/build/enum/simple-base-data-object-name.enum.d.ts +5 -5
- package/build/enum/simple-base-data-object-name.enum.js +9 -9
- package/build/enum/simple-base-data-operation-name.enum.d.ts +4 -4
- package/build/enum/simple-base-data-operation-name.enum.js +8 -8
- package/build/enum/tab-category.enum.d.ts +19 -19
- package/build/enum/tab-category.enum.js +23 -23
- package/build/enum/table-name.enum.d.ts +82 -82
- package/build/enum/table-name.enum.js +86 -86
- package/build/enum/tag-method.enum.d.ts +4 -4
- package/build/enum/tag-method.enum.js +8 -8
- package/build/enum/tag-object.enum.d.ts +3 -3
- package/build/enum/tag-object.enum.js +7 -7
- package/build/enum/tag-operation-name.enum.d.ts +3 -3
- package/build/enum/tag-operation-name.enum.js +7 -7
- package/build/enum/text-standard-type-text.d.ts +7 -7
- package/build/enum/text-standard-type-text.js +11 -11
- package/build/enum/text-standard-type.d.ts +7 -7
- package/build/enum/text-standard-type.js +11 -11
- package/build/enum/transaction-kind.d.ts +13 -13
- package/build/enum/transaction-kind.js +17 -17
- package/build/enum/true-false-db-type.enum.d.ts +5 -5
- package/build/enum/true-false-db-type.enum.js +20 -20
- package/build/enum/vat-type.enum.d.ts +4 -4
- package/build/enum/vat-type.enum.js +8 -8
- package/build/enum/workflow-category.enum.d.ts +18 -18
- package/build/enum/workflow-category.enum.js +22 -22
- package/build/enum/workflow-trigger-type.enum.d.ts +8 -8
- package/build/enum/workflow-trigger-type.enum.js +12 -12
- package/build/enum/yes-no-db-type.enum.d.ts +5 -5
- package/build/enum/yes-no-db-type.enum.js +20 -20
- package/build/main-api-connection.d.ts +62 -62
- package/build/main-api-connection.js +14 -14
- package/build/main-api.d.ts +77 -76
- package/build/main-api.js +203 -203
- package/build/main-api.unit.test.d.ts +1 -1
- package/build/main-api.unit.test.js +128 -128
- package/build/main-auth.d.ts +56 -56
- package/build/main-auth.js +488 -488
- package/build/main-public.d.ts +58 -58
- package/build/main-public.js +226 -226
- package/build/model/activity.bo.d.ts +58 -58
- package/build/model/activity.bo.js +484 -484
- package/build/model/article-seo-value.d.ts +5 -5
- package/build/model/article-seo-value.js +6 -6
- package/build/model/branch.bo.d.ts +8 -8
- package/build/model/branch.bo.js +7 -7
- package/build/model/brand.d.ts +8 -8
- package/build/model/brand.js +10 -10
- package/build/model/category.bo.d.ts +12 -12
- package/build/model/category.bo.js +16 -16
- package/build/model/co-document-right.d.ts +7 -7
- package/build/model/co-document-right.js +7 -7
- package/build/model/co-document.d.ts +64 -64
- package/build/model/co-document.js +180 -180
- package/build/model/co-domain-value.bo.d.ts +10 -10
- package/build/model/co-domain-value.bo.js +20 -20
- package/build/model/co-notition-right.bo.d.ts +10 -10
- package/build/model/co-notition-right.bo.js +13 -13
- package/build/model/co-notition.bo.d.ts +24 -24
- package/build/model/co-notition.bo.js +79 -79
- package/build/model/co-report-category-link.bo.d.ts +8 -8
- package/build/model/co-report-category-link.bo.js +7 -7
- package/build/model/co-report-sjablonen-documenten.bo.d.ts +6 -6
- package/build/model/co-report-sjablonen-documenten.bo.js +7 -7
- package/build/model/co-report.bo.d.ts +47 -47
- package/build/model/co-report.bo.js +68 -68
- package/build/model/co-rv-domain-value.bo.d.ts +10 -10
- package/build/model/co-rv-domain-value.bo.js +20 -20
- package/build/model/co-text.d.ts +26 -26
- package/build/model/co-text.js +28 -28
- package/build/model/color.bo.d.ts +7 -7
- package/build/model/color.bo.js +10 -10
- package/build/model/constant/java-constants.d.ts +2 -2
- package/build/model/constant/java-constants.js +5 -5
- package/build/model/contact-moment.bo.d.ts +17 -17
- package/build/model/contact-moment.bo.js +39 -39
- package/build/model/currency.bo.d.ts +13 -13
- package/build/model/currency.bo.js +33 -33
- package/build/model/department.bo.d.ts +12 -12
- package/build/model/department.bo.js +69 -69
- package/build/model/document-allowed-extension.bo.d.ts +6 -6
- package/build/model/document-allowed-extension.bo.js +7 -7
- package/build/model/form-question-response.bo.d.ts +10 -10
- package/build/model/form-question-response.bo.js +31 -31
- package/build/model/form.bo.d.ts +16 -16
- package/build/model/form.bo.js +13 -13
- package/build/model/get-postal-code-retrieval-output-params.d.ts +7 -7
- package/build/model/get-postal-code-retrieval-output-params.js +6 -6
- package/build/model/insured-interest.bo.d.ts +13 -13
- package/build/model/insured-interest.bo.js +39 -39
- package/build/model/language.bo.d.ts +5 -5
- package/build/model/language.bo.js +7 -7
- package/build/model/order-line-set-category.bo.d.ts +8 -8
- package/build/model/order-line-set-category.bo.js +7 -7
- package/build/model/own-risk.bo.d.ts +11 -11
- package/build/model/own-risk.bo.js +39 -39
- package/build/model/payment-condition-ledger-account.bo.d.ts +6 -6
- package/build/model/payment-condition-ledger-account.bo.js +7 -7
- package/build/model/payment-condition.bo.d.ts +11 -11
- package/build/model/payment-condition.bo.js +34 -34
- package/build/model/preset.bo.d.ts +12 -12
- package/build/model/preset.bo.js +16 -16
- package/build/model/printer.bo.d.ts +8 -8
- package/build/model/printer.bo.js +13 -13
- package/build/model/printing-service-request-data.d.ts +16 -16
- package/build/model/printing-service-request-data.js +2 -2
- package/build/model/privacy-setting.bo.d.ts +9 -9
- package/build/model/privacy-setting.bo.js +13 -13
- package/build/model/relation-small-object.bo.d.ts +28 -28
- package/build/model/relation-small-object.bo.js +63 -63
- package/build/model/remark.bo.d.ts +17 -17
- package/build/model/remark.bo.js +52 -52
- package/build/model/report-category.bo.d.ts +6 -6
- package/build/model/report-category.bo.js +7 -7
- package/build/model/report-layout-selection-base.bo.d.ts +9 -9
- package/build/model/report-layout-selection-base.bo.js +7 -7
- package/build/model/report-layout-selection-email.bo.d.ts +4 -4
- package/build/model/report-layout-selection-email.bo.js +7 -7
- package/build/model/report-layout-selection-print.bo.d.ts +5 -5
- package/build/model/report-layout-selection-print.bo.js +7 -7
- package/build/model/report-param.d.ts +16 -16
- package/build/model/report-param.js +9 -9
- package/build/model/reporting-document-base-request.d.ts +4 -4
- package/build/model/reporting-document-base-request.js +6 -6
- package/build/model/reporting-document-email-base-request.d.ts +5 -5
- package/build/model/reporting-document-email-base-request.js +7 -7
- package/build/model/reporting-document-email-sign-doc-base-request.d.ts +4 -4
- package/build/model/reporting-document-email-sign-doc-base-request.js +7 -7
- package/build/model/reporting-document-pdf-base-request.d.ts +3 -3
- package/build/model/reporting-document-pdf-base-request.js +7 -7
- package/build/model/reporting-document-print-base-request.d.ts +7 -7
- package/build/model/reporting-document-print-base-request.js +7 -7
- package/build/model/reporting-document-print-sign-doc-base-request.d.ts +4 -4
- package/build/model/reporting-document-print-sign-doc-base-request.js +7 -7
- package/build/model/send-method.bo.d.ts +5 -5
- package/build/model/send-method.bo.js +7 -7
- package/build/model/store-group.bo.d.ts +9 -9
- package/build/model/store-group.bo.js +7 -7
- package/build/model/tag-stock-item.bo.d.ts +24 -24
- package/build/model/tag-stock-item.bo.js +21 -21
- package/build/model/tag-tree-item.bo.d.ts +18 -18
- package/build/model/tag-tree-item.bo.js +52 -52
- package/build/model/tag.d.ts +11 -11
- package/build/model/tag.js +41 -41
- package/build/model/task.bo.d.ts +83 -83
- package/build/model/task.bo.js +257 -257
- package/build/model/title.bo.d.ts +9 -9
- package/build/model/title.bo.js +13 -13
- package/build/model/transition.bo.d.ts +5 -5
- package/build/model/transition.bo.js +21 -21
- package/build/model/tree-object.d.ts +8 -8
- package/build/model/tree-object.js +29 -29
- package/build/model/user-group.bo.d.ts +13 -13
- package/build/model/user-group.bo.js +16 -16
- package/build/model/work.bo.d.ts +19 -19
- package/build/model/work.bo.js +53 -53
- package/build/model/workflow-generic-transition.bo.d.ts +22 -22
- package/build/model/workflow-generic-transition.bo.js +28 -28
- package/build/model/workflow-trigger.bo.d.ts +44 -44
- package/build/model/workflow-trigger.bo.js +52 -52
- package/build/model/workflow.bo.d.ts +36 -36
- package/build/model/workflow.bo.js +151 -151
- package/build/utils/css-utils.d.ts +18 -18
- package/build/utils/css-utils.js +148 -148
- package/build/utils/file-utils.d.ts +34 -34
- package/build/utils/file-utils.js +397 -397
- package/build/utils/time-utils.d.ts +6 -6
- package/build/utils/time-utils.js +44 -44
- package/package.json +3 -3
- package/build/model/activity-workflow.d.ts +0 -24
- package/build/model/activity-workflow.js +0 -66
- package/build/model/workflow-process.d.ts +0 -13
- package/build/model/workflow-process.js +0 -7
|
@@ -1,180 +1,180 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CoDocument = void 0;
|
|
13
|
-
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
14
|
-
const boolean_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/boolean.decorator");
|
|
15
|
-
const no_db_field_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/no-db-field.decorator");
|
|
16
|
-
const db_field_alias_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/db-field-alias.decorator");
|
|
17
|
-
const date_field_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/date-field.decorator");
|
|
18
|
-
const rxjs_1 = require("rxjs");
|
|
19
|
-
const file_type_enum_1 = require("../enum/file-type.enum");
|
|
20
|
-
const co_document_right_1 = require("./co-document-right");
|
|
21
|
-
const tag_1 = require("./tag");
|
|
22
|
-
const article_seo_value_1 = require("./article-seo-value");
|
|
23
|
-
const file_type_internal_enum_1 = require("../enum/file-type-internal.enum");
|
|
24
|
-
const complex_array_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/complex-array.decorator");
|
|
25
|
-
const object_right_type_enum_1 = require("@colijnit/ioneconnector/build/enum/object-right-type.enum");
|
|
26
|
-
const file_utils_1 = require("../utils/file-utils");
|
|
27
|
-
const co_document_image_display_kind_enum_1 = require("../enum/co-document-image-display-kind.enum");
|
|
28
|
-
class CoDocument extends business_object_1.BusinessObject {
|
|
29
|
-
constructor(rawData = {}) {
|
|
30
|
-
super();
|
|
31
|
-
this.pathIsUrl = false;
|
|
32
|
-
this.tags = [];
|
|
33
|
-
this.rights = [];
|
|
34
|
-
this.seoTitles = [];
|
|
35
|
-
this.retailFormulas = [];
|
|
36
|
-
this.documentBodyChange = new rxjs_1.Subject();
|
|
37
|
-
this._idObject = {};
|
|
38
|
-
}
|
|
39
|
-
set documentId(value) {
|
|
40
|
-
this._documentId = value;
|
|
41
|
-
this._idObject.docId = value;
|
|
42
|
-
}
|
|
43
|
-
get documentId() {
|
|
44
|
-
return this._documentId;
|
|
45
|
-
}
|
|
46
|
-
set documentBody(documentBody) {
|
|
47
|
-
const prev = this._documentBody;
|
|
48
|
-
this._documentBody = documentBody;
|
|
49
|
-
if (prev !== this._documentBody) {
|
|
50
|
-
this.documentBodyChange.next(this._documentBody);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
get documentBody() {
|
|
54
|
-
return this._documentBody;
|
|
55
|
-
}
|
|
56
|
-
get fileTypeInternal() {
|
|
57
|
-
if (!this._fileTypeInternal) {
|
|
58
|
-
const fileType = file_utils_1.FileUtils.FileNameToFileTypeInternal(this.fileName);
|
|
59
|
-
if (fileType) {
|
|
60
|
-
this._fileTypeInternal = fileType;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
return this._fileTypeInternal;
|
|
64
|
-
}
|
|
65
|
-
get mimeTypeInternal() {
|
|
66
|
-
if (this._mimeTypeInternal) {
|
|
67
|
-
return this._mimeTypeInternal;
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
this._initMimetypeInternal();
|
|
71
|
-
return this._mimeTypeInternal;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
set mimeTypeInternal(value) {
|
|
75
|
-
this._mimeTypeInternal = value;
|
|
76
|
-
}
|
|
77
|
-
get bodyAsDataUri() {
|
|
78
|
-
if (this._documentBody) {
|
|
79
|
-
return this.documentBodyAsDataUri;
|
|
80
|
-
}
|
|
81
|
-
else if (this.thumbnailBody) {
|
|
82
|
-
return this.thumbnailBodyAsDataUri;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
get documentBodyAsDataUri() {
|
|
86
|
-
try {
|
|
87
|
-
return file_utils_1.FileUtils.DocumentBodyToDataUri(this.documentBody, this.mimeTypeInternal);
|
|
88
|
-
}
|
|
89
|
-
catch (error) {
|
|
90
|
-
return "";
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
get thumbnailBodyAsDataUri() {
|
|
94
|
-
try {
|
|
95
|
-
return file_utils_1.FileUtils.DocumentBodyToDataUri(this.thumbnailBody, this.mimeTypeInternal);
|
|
96
|
-
}
|
|
97
|
-
catch (error) {
|
|
98
|
-
return "";
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
get isAvatar() {
|
|
102
|
-
return this.imageDisplayKind === co_document_image_display_kind_enum_1.CoDocumentImageDisplayKind.Avatar;
|
|
103
|
-
}
|
|
104
|
-
get readonly() {
|
|
105
|
-
return this.rightLevel === object_right_type_enum_1.ObjectRightType.ReadOnly;
|
|
106
|
-
}
|
|
107
|
-
getId() {
|
|
108
|
-
return this.documentId;
|
|
109
|
-
}
|
|
110
|
-
isImageDocument() {
|
|
111
|
-
return (this.fileTypeInternal === file_type_internal_enum_1.FileTypeInternal.Image);
|
|
112
|
-
}
|
|
113
|
-
_initMimetypeInternal() {
|
|
114
|
-
if ((this.fileType === file_type_enum_1.FileType.Image || !this.fileType) && this.fileName) {
|
|
115
|
-
const fileExtension = this.fileName.substr(this.fileName.lastIndexOf(".") + 1);
|
|
116
|
-
this._mimeTypeInternal = "image/" + fileExtension;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
__decorate([
|
|
121
|
-
date_field_decorator_1.DateField(),
|
|
122
|
-
__metadata("design:type", Date)
|
|
123
|
-
], CoDocument.prototype, "creationDate", void 0);
|
|
124
|
-
__decorate([
|
|
125
|
-
date_field_decorator_1.DateField(),
|
|
126
|
-
__metadata("design:type", Date)
|
|
127
|
-
], CoDocument.prototype, "modifiedDate", void 0);
|
|
128
|
-
__decorate([
|
|
129
|
-
boolean_decorator_1.BooleanText("T"),
|
|
130
|
-
__metadata("design:type", Boolean)
|
|
131
|
-
], CoDocument.prototype, "downloadable", void 0);
|
|
132
|
-
__decorate([
|
|
133
|
-
boolean_decorator_1.BooleanText("T"),
|
|
134
|
-
__metadata("design:type", Boolean)
|
|
135
|
-
], CoDocument.prototype, "attachToNotification", void 0);
|
|
136
|
-
__decorate([
|
|
137
|
-
boolean_decorator_1.BooleanText("T"),
|
|
138
|
-
__metadata("design:type", Boolean)
|
|
139
|
-
], CoDocument.prototype, "pathIsUrl", void 0);
|
|
140
|
-
__decorate([
|
|
141
|
-
complex_array_decorator_1.ComplexArray(tag_1.Tag),
|
|
142
|
-
__metadata("design:type", Array)
|
|
143
|
-
], CoDocument.prototype, "tags", void 0);
|
|
144
|
-
__decorate([
|
|
145
|
-
complex_array_decorator_1.ComplexArray(co_document_right_1.CoDocumentRight),
|
|
146
|
-
__metadata("design:type", Array)
|
|
147
|
-
], CoDocument.prototype, "rights", void 0);
|
|
148
|
-
__decorate([
|
|
149
|
-
complex_array_decorator_1.ComplexArray(article_seo_value_1.ArticleSeoValue),
|
|
150
|
-
__metadata("design:type", Array)
|
|
151
|
-
], CoDocument.prototype, "seoTitles", void 0);
|
|
152
|
-
__decorate([
|
|
153
|
-
no_db_field_decorator_1.NoDbField(),
|
|
154
|
-
__metadata("design:type", Number)
|
|
155
|
-
], CoDocument.prototype, "idForLink", void 0);
|
|
156
|
-
__decorate([
|
|
157
|
-
db_field_alias_decorator_1.DbFieldAlias("documentBody"),
|
|
158
|
-
__metadata("design:type", String)
|
|
159
|
-
], CoDocument.prototype, "_documentBody", void 0);
|
|
160
|
-
__decorate([
|
|
161
|
-
db_field_alias_decorator_1.DbFieldAlias("documentId"),
|
|
162
|
-
__metadata("design:type", Number)
|
|
163
|
-
], CoDocument.prototype, "_documentId", void 0);
|
|
164
|
-
__decorate([
|
|
165
|
-
no_db_field_decorator_1.NoDbField(),
|
|
166
|
-
__metadata("design:type", rxjs_1.Subject)
|
|
167
|
-
], CoDocument.prototype, "documentBodyChange", void 0);
|
|
168
|
-
__decorate([
|
|
169
|
-
no_db_field_decorator_1.NoDbField(),
|
|
170
|
-
__metadata("design:type", Number)
|
|
171
|
-
], CoDocument.prototype, "_fileTypeInternal", void 0);
|
|
172
|
-
__decorate([
|
|
173
|
-
no_db_field_decorator_1.NoDbField(),
|
|
174
|
-
__metadata("design:type", String)
|
|
175
|
-
], CoDocument.prototype, "_mimeTypeInternal", void 0);
|
|
176
|
-
__decorate([
|
|
177
|
-
no_db_field_decorator_1.NoDbField(),
|
|
178
|
-
__metadata("design:type", Object)
|
|
179
|
-
], CoDocument.prototype, "_idObject", void 0);
|
|
180
|
-
exports.CoDocument = CoDocument;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CoDocument = void 0;
|
|
13
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
14
|
+
const boolean_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/boolean.decorator");
|
|
15
|
+
const no_db_field_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/no-db-field.decorator");
|
|
16
|
+
const db_field_alias_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/db-field-alias.decorator");
|
|
17
|
+
const date_field_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/date-field.decorator");
|
|
18
|
+
const rxjs_1 = require("rxjs");
|
|
19
|
+
const file_type_enum_1 = require("../enum/file-type.enum");
|
|
20
|
+
const co_document_right_1 = require("./co-document-right");
|
|
21
|
+
const tag_1 = require("./tag");
|
|
22
|
+
const article_seo_value_1 = require("./article-seo-value");
|
|
23
|
+
const file_type_internal_enum_1 = require("../enum/file-type-internal.enum");
|
|
24
|
+
const complex_array_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/complex-array.decorator");
|
|
25
|
+
const object_right_type_enum_1 = require("@colijnit/ioneconnector/build/enum/object-right-type.enum");
|
|
26
|
+
const file_utils_1 = require("../utils/file-utils");
|
|
27
|
+
const co_document_image_display_kind_enum_1 = require("../enum/co-document-image-display-kind.enum");
|
|
28
|
+
class CoDocument extends business_object_1.BusinessObject {
|
|
29
|
+
constructor(rawData = {}) {
|
|
30
|
+
super();
|
|
31
|
+
this.pathIsUrl = false;
|
|
32
|
+
this.tags = [];
|
|
33
|
+
this.rights = [];
|
|
34
|
+
this.seoTitles = [];
|
|
35
|
+
this.retailFormulas = [];
|
|
36
|
+
this.documentBodyChange = new rxjs_1.Subject();
|
|
37
|
+
this._idObject = {};
|
|
38
|
+
}
|
|
39
|
+
set documentId(value) {
|
|
40
|
+
this._documentId = value;
|
|
41
|
+
this._idObject.docId = value;
|
|
42
|
+
}
|
|
43
|
+
get documentId() {
|
|
44
|
+
return this._documentId;
|
|
45
|
+
}
|
|
46
|
+
set documentBody(documentBody) {
|
|
47
|
+
const prev = this._documentBody;
|
|
48
|
+
this._documentBody = documentBody;
|
|
49
|
+
if (prev !== this._documentBody) {
|
|
50
|
+
this.documentBodyChange.next(this._documentBody);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
get documentBody() {
|
|
54
|
+
return this._documentBody;
|
|
55
|
+
}
|
|
56
|
+
get fileTypeInternal() {
|
|
57
|
+
if (!this._fileTypeInternal) {
|
|
58
|
+
const fileType = file_utils_1.FileUtils.FileNameToFileTypeInternal(this.fileName);
|
|
59
|
+
if (fileType) {
|
|
60
|
+
this._fileTypeInternal = fileType;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return this._fileTypeInternal;
|
|
64
|
+
}
|
|
65
|
+
get mimeTypeInternal() {
|
|
66
|
+
if (this._mimeTypeInternal) {
|
|
67
|
+
return this._mimeTypeInternal;
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
this._initMimetypeInternal();
|
|
71
|
+
return this._mimeTypeInternal;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
set mimeTypeInternal(value) {
|
|
75
|
+
this._mimeTypeInternal = value;
|
|
76
|
+
}
|
|
77
|
+
get bodyAsDataUri() {
|
|
78
|
+
if (this._documentBody) {
|
|
79
|
+
return this.documentBodyAsDataUri;
|
|
80
|
+
}
|
|
81
|
+
else if (this.thumbnailBody) {
|
|
82
|
+
return this.thumbnailBodyAsDataUri;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
get documentBodyAsDataUri() {
|
|
86
|
+
try {
|
|
87
|
+
return file_utils_1.FileUtils.DocumentBodyToDataUri(this.documentBody, this.mimeTypeInternal);
|
|
88
|
+
}
|
|
89
|
+
catch (error) {
|
|
90
|
+
return "";
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
get thumbnailBodyAsDataUri() {
|
|
94
|
+
try {
|
|
95
|
+
return file_utils_1.FileUtils.DocumentBodyToDataUri(this.thumbnailBody, this.mimeTypeInternal);
|
|
96
|
+
}
|
|
97
|
+
catch (error) {
|
|
98
|
+
return "";
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
get isAvatar() {
|
|
102
|
+
return this.imageDisplayKind === co_document_image_display_kind_enum_1.CoDocumentImageDisplayKind.Avatar;
|
|
103
|
+
}
|
|
104
|
+
get readonly() {
|
|
105
|
+
return this.rightLevel === object_right_type_enum_1.ObjectRightType.ReadOnly;
|
|
106
|
+
}
|
|
107
|
+
getId() {
|
|
108
|
+
return this.documentId;
|
|
109
|
+
}
|
|
110
|
+
isImageDocument() {
|
|
111
|
+
return (this.fileTypeInternal === file_type_internal_enum_1.FileTypeInternal.Image);
|
|
112
|
+
}
|
|
113
|
+
_initMimetypeInternal() {
|
|
114
|
+
if ((this.fileType === file_type_enum_1.FileType.Image || !this.fileType) && this.fileName) {
|
|
115
|
+
const fileExtension = this.fileName.substr(this.fileName.lastIndexOf(".") + 1);
|
|
116
|
+
this._mimeTypeInternal = "image/" + fileExtension;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
__decorate([
|
|
121
|
+
date_field_decorator_1.DateField(),
|
|
122
|
+
__metadata("design:type", Date)
|
|
123
|
+
], CoDocument.prototype, "creationDate", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
date_field_decorator_1.DateField(),
|
|
126
|
+
__metadata("design:type", Date)
|
|
127
|
+
], CoDocument.prototype, "modifiedDate", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
boolean_decorator_1.BooleanText("T"),
|
|
130
|
+
__metadata("design:type", Boolean)
|
|
131
|
+
], CoDocument.prototype, "downloadable", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
boolean_decorator_1.BooleanText("T"),
|
|
134
|
+
__metadata("design:type", Boolean)
|
|
135
|
+
], CoDocument.prototype, "attachToNotification", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
boolean_decorator_1.BooleanText("T"),
|
|
138
|
+
__metadata("design:type", Boolean)
|
|
139
|
+
], CoDocument.prototype, "pathIsUrl", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
complex_array_decorator_1.ComplexArray(tag_1.Tag),
|
|
142
|
+
__metadata("design:type", Array)
|
|
143
|
+
], CoDocument.prototype, "tags", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
complex_array_decorator_1.ComplexArray(co_document_right_1.CoDocumentRight),
|
|
146
|
+
__metadata("design:type", Array)
|
|
147
|
+
], CoDocument.prototype, "rights", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
complex_array_decorator_1.ComplexArray(article_seo_value_1.ArticleSeoValue),
|
|
150
|
+
__metadata("design:type", Array)
|
|
151
|
+
], CoDocument.prototype, "seoTitles", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
no_db_field_decorator_1.NoDbField(),
|
|
154
|
+
__metadata("design:type", Number)
|
|
155
|
+
], CoDocument.prototype, "idForLink", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
db_field_alias_decorator_1.DbFieldAlias("documentBody"),
|
|
158
|
+
__metadata("design:type", String)
|
|
159
|
+
], CoDocument.prototype, "_documentBody", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
db_field_alias_decorator_1.DbFieldAlias("documentId"),
|
|
162
|
+
__metadata("design:type", Number)
|
|
163
|
+
], CoDocument.prototype, "_documentId", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
no_db_field_decorator_1.NoDbField(),
|
|
166
|
+
__metadata("design:type", rxjs_1.Subject)
|
|
167
|
+
], CoDocument.prototype, "documentBodyChange", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
no_db_field_decorator_1.NoDbField(),
|
|
170
|
+
__metadata("design:type", Number)
|
|
171
|
+
], CoDocument.prototype, "_fileTypeInternal", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
no_db_field_decorator_1.NoDbField(),
|
|
174
|
+
__metadata("design:type", String)
|
|
175
|
+
], CoDocument.prototype, "_mimeTypeInternal", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
no_db_field_decorator_1.NoDbField(),
|
|
178
|
+
__metadata("design:type", Object)
|
|
179
|
+
], CoDocument.prototype, "_idObject", void 0);
|
|
180
|
+
exports.CoDocument = CoDocument;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
-
export declare class CoDomainValue extends BusinessObject {
|
|
3
|
-
code: string;
|
|
4
|
-
description: string;
|
|
5
|
-
sequence: number;
|
|
6
|
-
get codeAsNumber(): number;
|
|
7
|
-
constructor();
|
|
8
|
-
getId(): any;
|
|
9
|
-
toString(): string;
|
|
10
|
-
}
|
|
1
|
+
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
+
export declare class CoDomainValue extends BusinessObject {
|
|
3
|
+
code: string;
|
|
4
|
+
description: string;
|
|
5
|
+
sequence: number;
|
|
6
|
+
get codeAsNumber(): number;
|
|
7
|
+
constructor();
|
|
8
|
+
getId(): any;
|
|
9
|
+
toString(): string;
|
|
10
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CoDomainValue = void 0;
|
|
4
|
-
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
5
|
-
const number_utils_1 = require("@colijnit/ioneconnector/build/utils/number-utils");
|
|
6
|
-
class CoDomainValue extends business_object_1.BusinessObject {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
}
|
|
10
|
-
get codeAsNumber() {
|
|
11
|
-
return number_utils_1.NumberUtils.ParseInt(this.code);
|
|
12
|
-
}
|
|
13
|
-
getId() {
|
|
14
|
-
return this.code;
|
|
15
|
-
}
|
|
16
|
-
toString() {
|
|
17
|
-
return this.code + ": " + this.description;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.CoDomainValue = CoDomainValue;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CoDomainValue = void 0;
|
|
4
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
5
|
+
const number_utils_1 = require("@colijnit/ioneconnector/build/utils/number-utils");
|
|
6
|
+
class CoDomainValue extends business_object_1.BusinessObject {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
}
|
|
10
|
+
get codeAsNumber() {
|
|
11
|
+
return number_utils_1.NumberUtils.ParseInt(this.code);
|
|
12
|
+
}
|
|
13
|
+
getId() {
|
|
14
|
+
return this.code;
|
|
15
|
+
}
|
|
16
|
+
toString() {
|
|
17
|
+
return this.code + ": " + this.description;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.CoDomainValue = CoDomainValue;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
2
|
-
import { ObjectRightType } from '@colijnit/ioneconnector/build/enum/object-right-type.enum';
|
|
3
|
-
import { BusinessObjectIDType } from '@colijnit/ioneconnector/build/type/business-object-id-type';
|
|
4
|
-
export declare class CoNotitionRight extends BusinessObject {
|
|
5
|
-
userGroupId: number;
|
|
6
|
-
noteId: number;
|
|
7
|
-
rightLevel: ObjectRightType;
|
|
8
|
-
constructor();
|
|
9
|
-
getId(): BusinessObjectIDType;
|
|
10
|
-
}
|
|
1
|
+
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
2
|
+
import { ObjectRightType } from '@colijnit/ioneconnector/build/enum/object-right-type.enum';
|
|
3
|
+
import { BusinessObjectIDType } from '@colijnit/ioneconnector/build/type/business-object-id-type';
|
|
4
|
+
export declare class CoNotitionRight extends BusinessObject {
|
|
5
|
+
userGroupId: number;
|
|
6
|
+
noteId: number;
|
|
7
|
+
rightLevel: ObjectRightType;
|
|
8
|
+
constructor();
|
|
9
|
+
getId(): BusinessObjectIDType;
|
|
10
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CoNotitionRight = void 0;
|
|
4
|
-
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
5
|
-
class CoNotitionRight extends business_object_1.BusinessObject {
|
|
6
|
-
constructor() {
|
|
7
|
-
super();
|
|
8
|
-
}
|
|
9
|
-
getId() {
|
|
10
|
-
return this.userGroupId;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.CoNotitionRight = CoNotitionRight;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CoNotitionRight = void 0;
|
|
4
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
5
|
+
class CoNotitionRight extends business_object_1.BusinessObject {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
}
|
|
9
|
+
getId() {
|
|
10
|
+
return this.userGroupId;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.CoNotitionRight = CoNotitionRight;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
-
import { CoNotitionRight } from "./co-notition-right.bo";
|
|
3
|
-
import { NoteDisplayType } from '../enum/note-display-type.enum';
|
|
4
|
-
import { TableName } from '../enum/table-name.enum';
|
|
5
|
-
import { ObjectRightType } from '@colijnit/ioneconnector/build/enum/object-right-type.enum';
|
|
6
|
-
export declare class CoNotition extends BusinessObject {
|
|
7
|
-
notId: number;
|
|
8
|
-
description: string;
|
|
9
|
-
creationDate: Date;
|
|
10
|
-
creationUser: string;
|
|
11
|
-
display: NoteDisplayType;
|
|
12
|
-
manual: boolean;
|
|
13
|
-
memo: any;
|
|
14
|
-
modifiedDate: Date;
|
|
15
|
-
modifiedUser: string;
|
|
16
|
-
table: TableName;
|
|
17
|
-
key: string;
|
|
18
|
-
rightLevel: ObjectRightType;
|
|
19
|
-
rights: CoNotitionRight[];
|
|
20
|
-
constructor();
|
|
21
|
-
getId(): number;
|
|
22
|
-
hasWriteAccess(group: number): boolean;
|
|
23
|
-
get readonly(): boolean;
|
|
24
|
-
}
|
|
1
|
+
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
+
import { CoNotitionRight } from "./co-notition-right.bo";
|
|
3
|
+
import { NoteDisplayType } from '../enum/note-display-type.enum';
|
|
4
|
+
import { TableName } from '../enum/table-name.enum';
|
|
5
|
+
import { ObjectRightType } from '@colijnit/ioneconnector/build/enum/object-right-type.enum';
|
|
6
|
+
export declare class CoNotition extends BusinessObject {
|
|
7
|
+
notId: number;
|
|
8
|
+
description: string;
|
|
9
|
+
creationDate: Date;
|
|
10
|
+
creationUser: string;
|
|
11
|
+
display: NoteDisplayType;
|
|
12
|
+
manual: boolean;
|
|
13
|
+
memo: any;
|
|
14
|
+
modifiedDate: Date;
|
|
15
|
+
modifiedUser: string;
|
|
16
|
+
table: TableName;
|
|
17
|
+
key: string;
|
|
18
|
+
rightLevel: ObjectRightType;
|
|
19
|
+
rights: CoNotitionRight[];
|
|
20
|
+
constructor();
|
|
21
|
+
getId(): number;
|
|
22
|
+
hasWriteAccess(group: number): boolean;
|
|
23
|
+
get readonly(): boolean;
|
|
24
|
+
}
|