@colijnit/articleapi 257.1.3 → 258.1.0
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/articles-auth.d.ts +107 -107
- package/build/articles-auth.js +871 -871
- package/build/articles-public.d.ts +105 -105
- package/build/articles-public.js +456 -456
- package/build/articles.d.ts +121 -121
- package/build/articles.js +348 -348
- package/build/articles.unit.test.d.ts +1 -1
- package/build/articles.unit.test.js +285 -285
- package/build/catalog.d.ts +35 -35
- package/build/catalog.js +25 -25
- package/build/enum/absence-type.enum.d.ts +10 -10
- package/build/enum/absence-type.enum.js +11 -11
- package/build/enum/address-format.enum.d.ts +4 -4
- package/build/enum/address-format.enum.js +5 -5
- package/build/enum/address-type.enum.d.ts +8 -8
- package/build/enum/address-type.enum.js +9 -9
- package/build/enum/article-method.enum.d.ts +50 -50
- package/build/enum/article-method.enum.js +51 -51
- package/build/enum/article-object-name.enum.d.ts +30 -30
- package/build/enum/article-object-name.enum.js +31 -31
- package/build/enum/article-operation.enum.d.ts +5 -5
- package/build/enum/article-operation.enum.js +6 -6
- package/build/enum/article-stock-method.enum.d.ts +13 -13
- package/build/enum/article-stock-method.enum.js +14 -14
- package/build/enum/backend-service-name.enum.d.ts +9 -9
- package/build/enum/backend-service-name.enum.js +10 -10
- package/build/enum/catalog-object-name.enum.d.ts +3 -3
- package/build/enum/catalog-object-name.enum.js +4 -4
- package/build/enum/co-document-image-display-kind.enum.d.ts +5 -5
- package/build/enum/co-document-image-display-kind.enum.js +6 -6
- package/build/enum/communication-type.enum.d.ts +8 -8
- package/build/enum/communication-type.enum.js +9 -9
- package/build/enum/company-type.enum.d.ts +4 -4
- package/build/enum/company-type.enum.js +5 -5
- package/build/enum/connection-endpoint-enum.d.ts +4 -4
- package/build/enum/connection-endpoint-enum.js +5 -5
- package/build/enum/customer-employee-contact-link-status.enum.d.ts +4 -4
- package/build/enum/customer-employee-contact-link-status.enum.js +5 -5
- package/build/enum/customer-type.enum.d.ts +5 -5
- package/build/enum/customer-type.enum.js +6 -6
- package/build/enum/data-mapping.enum.d.ts +59 -59
- package/build/enum/data-mapping.enum.js +60 -60
- package/build/enum/data-service-method.enum.d.ts +14 -14
- package/build/enum/data-service-method.enum.js +15 -15
- package/build/enum/deco-node-kind.enum.d.ts +4 -4
- package/build/enum/deco-node-kind.enum.js +5 -5
- package/build/enum/deco-node-type.enum.d.ts +4 -4
- package/build/enum/deco-node-type.enum.js +5 -5
- package/build/enum/domain-name.enum.d.ts +60 -60
- package/build/enum/domain-name.enum.js +61 -61
- package/build/enum/external-catalog-method.enum.d.ts +4 -4
- package/build/enum/external-catalog-method.enum.js +5 -5
- package/build/enum/fixed-supplier-type.enum.d.ts +13 -13
- package/build/enum/fixed-supplier-type.enum.js +14 -14
- package/build/enum/gender-type.enum.d.ts +5 -5
- package/build/enum/gender-type.enum.js +6 -6
- package/build/enum/general-method.enum.d.ts +5 -5
- package/build/enum/general-method.enum.js +6 -6
- package/build/enum/general-object-name.enum.d.ts +4 -4
- package/build/enum/general-object-name.enum.js +5 -5
- package/build/enum/hdeco-placement.enum.d.ts +6 -6
- package/build/enum/hdeco-placement.enum.js +7 -7
- package/build/enum/hdeco-positioning.enum.d.ts +4 -4
- package/build/enum/hdeco-positioning.enum.js +5 -5
- package/build/enum/insured-interest-type.enum.d.ts +10 -10
- package/build/enum/insured-interest-type.enum.js +11 -11
- package/build/enum/line-confirmation-reason.enum.d.ts +6 -6
- package/build/enum/line-confirmation-reason.enum.js +7 -7
- package/build/enum/line-pending-reason.enum.d.ts +19 -19
- package/build/enum/line-pending-reason.enum.js +20 -20
- package/build/enum/logistics-method.enum.d.ts +4 -4
- package/build/enum/logistics-method.enum.js +5 -5
- package/build/enum/master-data-method-name.enum.d.ts +3 -3
- package/build/enum/master-data-method-name.enum.js +4 -4
- package/build/enum/master-data-object-name.enum.d.ts +19 -19
- package/build/enum/master-data-object-name.enum.js +20 -20
- package/build/enum/message-type.enum.d.ts +6 -6
- package/build/enum/message-type.enum.js +7 -7
- package/build/enum/module-name.enum.d.ts +18 -18
- package/build/enum/module-name.enum.js +19 -19
- package/build/enum/node-display-type.enum.d.ts +5 -5
- package/build/enum/node-display-type.enum.js +6 -6
- package/build/enum/node-type.enum.d.ts +5 -5
- package/build/enum/node-type.enum.js +6 -6
- package/build/enum/operation-name.enum.d.ts +7 -7
- package/build/enum/operation-name.enum.js +8 -8
- package/build/enum/own-risk.enum.d.ts +7 -7
- package/build/enum/own-risk.enum.js +8 -8
- package/build/enum/pending-reason-type.enum.d.ts +9 -9
- package/build/enum/pending-reason-type.enum.js +10 -10
- package/build/enum/pricing-method.enum.d.ts +3 -3
- package/build/enum/pricing-method.enum.js +4 -4
- package/build/enum/priority-type.enum.d.ts +7 -7
- package/build/enum/priority-type.enum.js +8 -8
- package/build/enum/product-kind.enum.d.ts +6 -6
- package/build/enum/product-kind.enum.js +7 -7
- package/build/enum/public-service-method.d.ts +90 -90
- package/build/enum/public-service-method.enum.d.ts +3 -3
- package/build/enum/public-service-method.enum.js +4 -4
- package/build/enum/public-service-method.js +91 -91
- package/build/enum/ref-code-class-to-domain-name-map.d.ts +2 -2
- package/build/enum/ref-code-class-to-domain-name-map.js +9 -9
- package/build/enum/refcode/article-publication.enum.d.ts +5 -5
- package/build/enum/refcode/article-publication.enum.js +6 -6
- package/build/enum/refcode/co-document-type.enum.d.ts +6 -6
- package/build/enum/refcode/co-document-type.enum.js +7 -7
- package/build/enum/refcode/commission-code-type.enum.d.ts +5 -5
- package/build/enum/refcode/commission-code-type.enum.js +6 -6
- package/build/enum/refcode/configuration-display-option.enum.d.ts +14 -14
- package/build/enum/refcode/configuration-display-option.enum.js +15 -15
- package/build/enum/refcode/document-publication.enum.d.ts +9 -9
- package/build/enum/refcode/document-publication.enum.js +10 -10
- package/build/enum/refcode/good-type.enum.d.ts +21 -21
- package/build/enum/refcode/good-type.enum.js +22 -22
- package/build/enum/refcode/object-config-kind.d.ts +9 -9
- package/build/enum/refcode/object-config-kind.js +10 -10
- package/build/enum/refcode/object-configuration-data-type.enum.d.ts +7 -7
- package/build/enum/refcode/object-configuration-data-type.enum.js +8 -8
- package/build/enum/refcode/object-configuration-value-type.enum.d.ts +10 -10
- package/build/enum/refcode/object-configuration-value-type.enum.js +11 -11
- package/build/enum/refcode/object-right-type.enum.d.ts +5 -5
- package/build/enum/refcode/object-right-type.enum.js +6 -6
- package/build/enum/refcode/price-list-type.enum.d.ts +8 -8
- package/build/enum/refcode/price-list-type.enum.js +9 -9
- package/build/enum/refcode/price-type.enum.d.ts +4 -4
- package/build/enum/refcode/price-type.enum.js +5 -5
- package/build/enum/refcode/ref-type.enum.d.ts +8 -8
- package/build/enum/refcode/ref-type.enum.js +9 -9
- package/build/enum/refcode/selector-type.enum.d.ts +5 -5
- package/build/enum/refcode/selector-type.enum.js +6 -6
- package/build/enum/refcode/stock-status.enum.d.ts +8 -8
- package/build/enum/refcode/stock-status.enum.js +22 -22
- package/build/enum/refcode/text-standard-type-text.d.ts +7 -7
- package/build/enum/refcode/text-standard-type-text.js +8 -8
- package/build/enum/refcode/text-standard-type.d.ts +7 -7
- package/build/enum/refcode/text-standard-type.js +8 -8
- package/build/enum/refcode/transaction-kind.d.ts +13 -13
- package/build/enum/refcode/transaction-kind.js +14 -14
- package/build/enum/refcode/user-right-type.enum.d.ts +7 -7
- package/build/enum/refcode/user-right-type.enum.js +8 -8
- package/build/enum/relation-kind.enum.d.ts +10 -10
- package/build/enum/relation-kind.enum.js +11 -11
- package/build/enum/relation-name-kind.enum.d.ts +4 -4
- package/build/enum/relation-name-kind.enum.js +5 -5
- package/build/enum/relation-object-name.enum.d.ts +4 -4
- package/build/enum/relation-object-name.enum.js +5 -5
- package/build/enum/relation-reference-kind.enum.d.ts +10 -10
- package/build/enum/relation-reference-kind.enum.js +11 -11
- package/build/enum/relation-status.enum.d.ts +6 -6
- package/build/enum/relation-status.enum.js +7 -7
- package/build/enum/reporting-documents-method.enum.d.ts +6 -6
- package/build/enum/reporting-documents-method.enum.js +7 -7
- package/build/enum/retail-transaction-pending-reason.enum.d.ts +5 -5
- package/build/enum/retail-transaction-pending-reason.enum.js +6 -6
- package/build/enum/sequence-name.enum.d.ts +4 -4
- package/build/enum/sequence-name.enum.js +5 -5
- package/build/enum/sla-publication.enum.d.ts +4 -4
- package/build/enum/sla-publication.enum.js +5 -5
- package/build/enum/stock-management-method.enum.d.ts +6 -6
- package/build/enum/stock-management-method.enum.js +7 -7
- package/build/enum/stock-method.enum.d.ts +3 -3
- package/build/enum/stock-method.enum.js +4 -4
- package/build/enum/table-name.enum.d.ts +82 -82
- package/build/enum/table-name.enum.js +83 -83
- package/build/enum/tag-object-name.enum.d.ts +3 -3
- package/build/enum/tag-object-name.enum.js +4 -4
- package/build/enum/text-kind-type.enum.d.ts +21 -21
- package/build/enum/text-kind-type.enum.js +22 -22
- package/build/enum/vat-type.enum.d.ts +4 -4
- package/build/enum/vat-type.enum.js +5 -5
- package/build/interface/contact-option-common-shape.d.ts +7 -7
- package/build/interface/contact-option-common-shape.js +1 -1
- package/build/interface/external-settings.interface.d.ts +4 -4
- package/build/interface/external-settings.interface.js +1 -1
- package/build/interface/external-source-article-add.interface.d.ts +9 -9
- package/build/interface/external-source-article-add.interface.js +1 -1
- package/build/interface/external-source-article-click.interface.d.ts +10 -10
- package/build/interface/external-source-article-click.interface.js +1 -1
- package/build/interface/json-article-flat-tree.interface.d.ts +7 -7
- package/build/interface/json-article-flat-tree.interface.js +1 -1
- package/build/interface/relman-complete-name.d.ts +5 -5
- package/build/interface/relman-complete-name.js +1 -1
- package/build/ione-api-articles.d.ts +106 -106
- package/build/ione-api-articles.js +10 -10
- package/build/model/art-quick-sel-o-article.d.ts +22 -22
- package/build/model/art-quick-sel-o-article.js +26 -26
- package/build/model/article-category.d.ts +11 -11
- package/build/model/article-category.js +30 -30
- package/build/model/article-details.bo.d.ts +41 -41
- package/build/model/article-details.bo.js +28 -28
- package/build/model/article-extended-request.d.ts +77 -77
- package/build/model/article-extended-request.js +9 -9
- package/build/model/article-extended.bo.d.ts +43 -43
- package/build/model/article-extended.bo.js +14 -14
- package/build/model/article-flat-storage-request.d.ts +6 -6
- package/build/model/article-flat-storage-request.js +14 -14
- package/build/model/article-flat-tree.bo.d.ts +19 -19
- package/build/model/article-flat-tree.bo.js +53 -53
- package/build/model/article-flat.bo.d.ts +135 -135
- package/build/model/article-flat.bo.js +19 -19
- package/build/model/article-full-object.d.ts +161 -161
- package/build/model/article-full-object.js +46 -46
- package/build/model/article-group-image.d.ts +8 -8
- package/build/model/article-group-image.js +17 -17
- package/build/model/article-group.d.ts +11 -11
- package/build/model/article-group.js +21 -21
- package/build/model/article-light.bo.d.ts +12 -12
- package/build/model/article-light.bo.js +18 -18
- package/build/model/article-list-object-extended.bo.d.ts +90 -90
- package/build/model/article-list-object-extended.bo.js +42 -42
- package/build/model/article-list-object.d.ts +27 -27
- package/build/model/article-list-object.js +18 -18
- package/build/model/article-price-list.d.ts +44 -44
- package/build/model/article-price-list.js +3 -3
- package/build/model/article-price.d.ts +21 -21
- package/build/model/article-price.js +17 -17
- package/build/model/article-pricing.d.ts +10 -10
- package/build/model/article-pricing.js +13 -13
- package/build/model/article-quick-sel.d.ts +37 -37
- package/build/model/article-quick-sel.js +102 -102
- package/build/model/article-search-filter-max-and-min-price.d.ts +4 -4
- package/build/model/article-search-filter-max-and-min-price.js +2 -2
- package/build/model/article-search-filter-method.enum.d.ts +14 -14
- package/build/model/article-search-filter-method.enum.js +15 -15
- package/build/model/article-search-filter-selection.d.ts +5 -5
- package/build/model/article-search-filter-selection.js +2 -2
- package/build/model/article-search-filter-selections.d.ts +5 -5
- package/build/model/article-search-filter-selections.js +16 -16
- package/build/model/article-search-info.d.ts +2 -2
- package/build/model/article-search-info.js +2 -2
- package/build/model/article-seo-value.d.ts +5 -5
- package/build/model/article-seo-value.js +2 -2
- package/build/model/article-stock-comparison-search-request.d.ts +5 -5
- package/build/model/article-stock-comparison-search-request.js +3 -3
- package/build/model/article-stock-management.d.ts +6 -6
- package/build/model/article-stock-management.js +2 -2
- package/build/model/article-stock-search-request.d.ts +6 -6
- package/build/model/article-stock-search-request.js +3 -3
- package/build/model/article-stock-transfer-search-request.d.ts +7 -7
- package/build/model/article-stock-transfer-search-request.js +3 -3
- package/build/model/article-stock.bo.d.ts +21 -21
- package/build/model/article-stock.bo.js +3 -3
- package/build/model/article-stock.d.ts +12 -12
- package/build/model/article-stock.js +2 -2
- package/build/model/article-transaction.bo.d.ts +19 -19
- package/build/model/article-transaction.bo.js +3 -3
- package/build/model/article-transaction.d.ts +5 -5
- package/build/model/article-transaction.js +2 -2
- package/build/model/article.bo.d.ts +46 -46
- package/build/model/article.bo.js +25 -25
- package/build/model/catalog-definition-parameters.bo.d.ts +12 -12
- package/build/model/catalog-definition-parameters.bo.js +10 -10
- package/build/model/catalog-definition.bo.d.ts +27 -27
- package/build/model/catalog-definition.bo.js +62 -62
- package/build/model/catalogs-available.bo.d.ts +6 -6
- package/build/model/catalogs-available.bo.js +8 -8
- package/build/model/category-design.bo.d.ts +12 -12
- package/build/model/category-design.bo.js +3 -3
- package/build/model/category-type.bo.d.ts +7 -7
- package/build/model/category-type.bo.js +3 -3
- package/build/model/characteristic.bo.d.ts +14 -14
- package/build/model/characteristic.bo.js +18 -18
- package/build/model/co-document.bo.d.ts +73 -73
- package/build/model/co-document.bo.js +251 -251
- package/build/model/color.bo.d.ts +10 -10
- package/build/model/color.bo.js +36 -36
- package/build/model/colour.d.ts +9 -9
- package/build/model/colour.js +36 -36
- package/build/model/composite-good.d.ts +11 -11
- package/build/model/composite-good.js +3 -3
- package/build/model/configurator-statistics-environment.d.ts +8 -8
- package/build/model/configurator-statistics-environment.js +2 -2
- package/build/model/deco-node.d.ts +17 -17
- package/build/model/deco-node.js +58 -58
- package/build/model/delivery-prognosis.d.ts +4 -4
- package/build/model/delivery-prognosis.js +2 -2
- package/build/model/document-content.d.ts +4 -4
- package/build/model/document-content.js +2 -2
- package/build/model/document-export.d.ts +2 -2
- package/build/model/document-export.js +2 -2
- package/build/model/external-catalog-startup-info-request.d.ts +11 -11
- package/build/model/external-catalog-startup-info-request.js +3 -3
- package/build/model/external-catalog-startup-info.d.ts +13 -13
- package/build/model/external-catalog-startup-info.js +3 -3
- package/build/model/external-source-parameter.bo.d.ts +7 -7
- package/build/model/external-source-parameter.bo.js +9 -9
- package/build/model/external-source-translation.bo.d.ts +7 -7
- package/build/model/external-source-translation.bo.js +3 -3
- package/build/model/external-source.bo.d.ts +24 -24
- package/build/model/external-source.bo.js +25 -25
- package/build/model/frozen-article-composition.d.ts +13 -13
- package/build/model/frozen-article-composition.js +49 -49
- package/build/model/frozen-article-simple.d.ts +12 -12
- package/build/model/frozen-article-simple.js +45 -45
- package/build/model/frozen-article.d.ts +66 -66
- package/build/model/frozen-article.js +55 -55
- package/build/model/get-article-price-request.d.ts +21 -21
- package/build/model/get-article-price-request.js +2 -2
- package/build/model/get-stock-history-request.d.ts +13 -13
- package/build/model/get-stock-history-request.js +2 -2
- package/build/model/good.bo.d.ts +54 -54
- package/build/model/good.bo.js +3 -3
- package/build/model/linked-article.d.ts +39 -39
- package/build/model/linked-article.js +57 -57
- package/build/model/main-article-characteristic.bo.d.ts +9 -9
- package/build/model/main-article-characteristic.bo.js +14 -14
- package/build/model/main-article.bo.d.ts +39 -39
- package/build/model/main-article.bo.js +49 -49
- package/build/model/material.bo.d.ts +6 -6
- package/build/model/material.bo.js +6 -6
- package/build/model/note-right.bo.d.ts +4 -4
- package/build/model/note-right.bo.js +3 -3
- package/build/model/note.bo.d.ts +17 -17
- package/build/model/note.bo.js +25 -25
- package/build/model/price-list-info.d.ts +16 -16
- package/build/model/price-list-info.js +3 -3
- package/build/model/print-price-stickers-request.d.ts +5 -5
- package/build/model/print-price-stickers-request.js +7 -7
- package/build/model/print-stock-stickers.d.ts +10 -10
- package/build/model/print-stock-stickers.js +2 -2
- package/build/model/selection.d.ts +105 -105
- package/build/model/selection.js +194 -194
- package/build/model/selector-article.d.ts +64 -64
- package/build/model/selector-article.js +77 -77
- package/build/model/stock-amounts-view.d.ts +8 -8
- package/build/model/stock-amounts-view.js +3 -3
- package/build/model/stock-forecast.bo.d.ts +16 -16
- package/build/model/stock-forecast.bo.js +3 -3
- package/build/model/stock-history.bo.d.ts +29 -29
- package/build/model/stock-history.bo.js +3 -3
- package/build/model/stock-location.bo.d.ts +5 -5
- package/build/model/stock-location.bo.js +3 -3
- package/build/model/stock-management-warehouses.bo.d.ts +5 -5
- package/build/model/stock-management-warehouses.bo.js +3 -3
- package/build/model/stock-status.bo.d.ts +5 -5
- package/build/model/stock-status.bo.js +3 -3
- package/build/model/super-article-image.d.ts +7 -7
- package/build/model/super-article-image.js +6 -6
- package/build/model/super-article.d.ts +21 -21
- package/build/model/super-article.js +58 -58
- package/build/model/text.bo.d.ts +22 -22
- package/build/model/text.bo.js +20 -20
- package/build/model/transfer.stock.d.ts +5 -5
- package/build/model/transfer.stock.js +2 -2
- package/build/model/turnover-group-image.bo.d.ts +9 -9
- package/build/model/turnover-group-image.bo.js +21 -21
- package/build/model/update-article-stock-info.d.ts +6 -6
- package/build/model/update-article-stock-info.js +13 -13
- package/build/model/warehouse-per-new-value.d.ts +4 -4
- package/build/model/warehouse-per-new-value.js +2 -2
- package/package.json +5 -5
|
@@ -1,251 +1,251 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
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;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { BusinessObjectData } from "@colijnit/ioneconnector/build/factory/decorators/business-object-data.decorator";
|
|
8
|
-
import { DataMapping } from "../enum/data-mapping.enum";
|
|
9
|
-
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
10
|
-
import { DateField } from "@colijnit/ioneconnector/build/factory/decorators/date-field.decorator";
|
|
11
|
-
import { CoDocumentType } from "../enum/refcode/co-document-type.enum";
|
|
12
|
-
import { FileType } from "@colijnit/mainapi/build/enum/file-type.enum";
|
|
13
|
-
import { BooleanText } from "@colijnit/ioneconnector/build/factory/decorators/boolean.decorator";
|
|
14
|
-
import { DefaultSendValue } from "@colijnit/ioneconnector/build/factory/decorators/default-send-value.decorator";
|
|
15
|
-
import { CoDocumentImageDisplayKind } from "../enum/co-document-image-display-kind.enum";
|
|
16
|
-
import { ComplexArray } from "@colijnit/ioneconnector/build/factory/decorators/complex-array.decorator";
|
|
17
|
-
import { TagTreeItem } from "@colijnit/mainapi/build/model/tag-tree-item.bo";
|
|
18
|
-
import { ObjectRightType } from "../enum/refcode/object-right-type.enum";
|
|
19
|
-
import { CoDocumentRight } from "@colijnit/mainapi/build/model/co-document-right";
|
|
20
|
-
import { NoDbField } from "@colijnit/ioneconnector/build/factory/decorators/no-db-field.decorator";
|
|
21
|
-
import { ArticleSeoValue } from "./article-seo-value";
|
|
22
|
-
import { FileTypeInternal } from "@colijnit/mainapi/build/enum/file-type-internal.enum";
|
|
23
|
-
import { FileUtils } from "@colijnit/mainapi/build/utils/file-utils";
|
|
24
|
-
import { DbFieldAlias } from "@colijnit/ioneconnector/build/factory/decorators/db-field-alias.decorator";
|
|
25
|
-
import { ComplexField } from "@colijnit/ioneconnector/build/factory/decorators/complex-field.decorator";
|
|
26
|
-
import { Subject } from "rxjs";
|
|
27
|
-
import { StringUtils } from "@colijnit/ioneconnector/build/utils/string-utils";
|
|
28
|
-
import { BoSerializerStep } from "@colijnit/ioneconnector/build/factory/decorators/bo-serializer-step.decorator";
|
|
29
|
-
import { FilterType } from "@colijnit/ioneconnector/build/enum/filter-type.enum";
|
|
30
|
-
import { SearchPropertyState } from "@colijnit/ioneconnector/build/enum/search-property-state.enum";
|
|
31
|
-
import { SortType } from "@colijnit/ioneconnector/build/enum/sort-type.enum";
|
|
32
|
-
import { SortDirection } from "@colijnit/ioneconnector/build/enum/sort-direction";
|
|
33
|
-
import { RefCodeClassToDomainNameMap } from "../enum/ref-code-class-to-domain-name-map";
|
|
34
|
-
let CoDocument = class CoDocument extends BusinessObject {
|
|
35
|
-
set documentId(value) {
|
|
36
|
-
this._documentId = value;
|
|
37
|
-
this._idObject.docId = value;
|
|
38
|
-
}
|
|
39
|
-
get documentId() {
|
|
40
|
-
return this._documentId;
|
|
41
|
-
}
|
|
42
|
-
set documentBody(documentBody) {
|
|
43
|
-
const prev = this._documentBody;
|
|
44
|
-
this._documentBody = documentBody;
|
|
45
|
-
if (prev !== this._documentBody) {
|
|
46
|
-
this.documentBodyChange.next(this._documentBody);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
get documentBody() {
|
|
50
|
-
if ((this.documentType !== this._documentType.SaveAsDocument)
|
|
51
|
-
&& (this.documentType !== this._documentType.SaveAsLinkOnCdnServerLocation)) {
|
|
52
|
-
return this.filePath;
|
|
53
|
-
}
|
|
54
|
-
return this._documentBody;
|
|
55
|
-
}
|
|
56
|
-
get fileTypeInternal() {
|
|
57
|
-
if (!this._fileTypeInternal) {
|
|
58
|
-
const fileType = 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
|
-
if (this.isStoredAsLink()) {
|
|
88
|
-
return this.filePath;
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
return FileUtils.DocumentBodyToDataUri(this.documentBody, this.mimeTypeInternal);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
catch (error) {
|
|
95
|
-
return "";
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
get thumbnailBodyAsDataUri() {
|
|
99
|
-
try {
|
|
100
|
-
if (this.isStoredAsLink()) {
|
|
101
|
-
return this.filePath;
|
|
102
|
-
}
|
|
103
|
-
return FileUtils.DocumentBodyToDataUri(this.thumbnailBody, this.mimeTypeInternal);
|
|
104
|
-
}
|
|
105
|
-
catch (error) {
|
|
106
|
-
return "";
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
get isAvatar() {
|
|
110
|
-
return this.imageDisplayKind === CoDocumentImageDisplayKind.Avatar;
|
|
111
|
-
}
|
|
112
|
-
get readonly() {
|
|
113
|
-
return this.rightLevel === ObjectRightType.ReadOnly;
|
|
114
|
-
}
|
|
115
|
-
set readonly(value) {
|
|
116
|
-
if (value) {
|
|
117
|
-
this.rightLevel = ObjectRightType.ReadOnly;
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
this.rightLevel = ObjectRightType.ReadWrite;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
constructor() {
|
|
124
|
-
super();
|
|
125
|
-
this.pathIsUrl = false;
|
|
126
|
-
this.tags = [];
|
|
127
|
-
this.rights = [];
|
|
128
|
-
this.seoTitles = [];
|
|
129
|
-
this.retailFormulas = [];
|
|
130
|
-
this.documentBodyChange = new Subject();
|
|
131
|
-
this._idObject = {};
|
|
132
|
-
this._documentType = CoDocumentType;
|
|
133
|
-
}
|
|
134
|
-
getId() {
|
|
135
|
-
return this.documentId;
|
|
136
|
-
}
|
|
137
|
-
isImageDocument() {
|
|
138
|
-
return (this.fileTypeInternal === FileTypeInternal.Image);
|
|
139
|
-
}
|
|
140
|
-
getDocumentImageDimensions() {
|
|
141
|
-
if (this.isImageDocument() && this.imageDimensions === undefined) {
|
|
142
|
-
const image = new Image();
|
|
143
|
-
image.src = this.documentBodyAsDataUri;
|
|
144
|
-
return StringUtils.Format("{0}x{1}", [image.width, image.height]);
|
|
145
|
-
}
|
|
146
|
-
return this.imageDimensions;
|
|
147
|
-
}
|
|
148
|
-
getDocumentFileSizeAsString() {
|
|
149
|
-
if (this.fileSize === undefined) {
|
|
150
|
-
return this.documentBody.length === 0 ? " kB" :
|
|
151
|
-
this.documentBody.length < 1024 ? this.documentBody.length + "B" :
|
|
152
|
-
(this.documentBody.length / 1024).toFixed(0).toString() + " kB";
|
|
153
|
-
}
|
|
154
|
-
return this.fileSize;
|
|
155
|
-
}
|
|
156
|
-
getImageDisplayKind() {
|
|
157
|
-
if (this.imageDisplayKind === undefined) {
|
|
158
|
-
this.imageDisplayKind = CoDocumentImageDisplayKind.NormalImage;
|
|
159
|
-
}
|
|
160
|
-
return this.imageDisplayKind;
|
|
161
|
-
}
|
|
162
|
-
preventOverridingThumbnailToEmpty() {
|
|
163
|
-
if (!this.thumbnailBody) {
|
|
164
|
-
this.thumbnailBody = this._documentBody;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
_initMimetypeInternal() {
|
|
168
|
-
if ((this.fileType === FileType.Image || !this.fileType || this.isImageDocument()) && this.fileName) {
|
|
169
|
-
const fileExtension = this.fileName.substr(this.fileName.lastIndexOf(".") + 1);
|
|
170
|
-
this._mimeTypeInternal = "image/" + fileExtension;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
isStoredAsLink() {
|
|
174
|
-
return this.documentType == CoDocumentType.SaveAsLinkOnRandomLocation || this.documentType == CoDocumentType.SaveAsLinkOnDefaultLocation;
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
__decorate([
|
|
178
|
-
DateField()
|
|
179
|
-
], CoDocument.prototype, "creationDate", void 0);
|
|
180
|
-
__decorate([
|
|
181
|
-
DateField()
|
|
182
|
-
], CoDocument.prototype, "modifiedDate", void 0);
|
|
183
|
-
__decorate([
|
|
184
|
-
BooleanText("T")
|
|
185
|
-
], CoDocument.prototype, "downloadable", void 0);
|
|
186
|
-
__decorate([
|
|
187
|
-
BooleanText("T")
|
|
188
|
-
], CoDocument.prototype, "attachToNotification", void 0);
|
|
189
|
-
__decorate([
|
|
190
|
-
BooleanText("T"),
|
|
191
|
-
DefaultSendValue("F")
|
|
192
|
-
], CoDocument.prototype, "pathIsUrl", void 0);
|
|
193
|
-
__decorate([
|
|
194
|
-
ComplexArray(TagTreeItem)
|
|
195
|
-
], CoDocument.prototype, "tags", void 0);
|
|
196
|
-
__decorate([
|
|
197
|
-
ComplexArray(CoDocumentRight)
|
|
198
|
-
], CoDocument.prototype, "rights", void 0);
|
|
199
|
-
__decorate([
|
|
200
|
-
DefaultSendValue([]),
|
|
201
|
-
ComplexArray(ArticleSeoValue)
|
|
202
|
-
], CoDocument.prototype, "seoTitles", void 0);
|
|
203
|
-
__decorate([
|
|
204
|
-
NoDbField()
|
|
205
|
-
], CoDocument.prototype, "idForLink", void 0);
|
|
206
|
-
__decorate([
|
|
207
|
-
NoDbField()
|
|
208
|
-
], CoDocument.prototype, "convertToUSDZ", void 0);
|
|
209
|
-
__decorate([
|
|
210
|
-
DbFieldAlias("documentBody")
|
|
211
|
-
], CoDocument.prototype, "_documentBody", void 0);
|
|
212
|
-
__decorate([
|
|
213
|
-
DbFieldAlias("documentId")
|
|
214
|
-
], CoDocument.prototype, "_documentId", void 0);
|
|
215
|
-
__decorate([
|
|
216
|
-
NoDbField(),
|
|
217
|
-
ComplexField(Subject)
|
|
218
|
-
], CoDocument.prototype, "documentBodyChange", void 0);
|
|
219
|
-
__decorate([
|
|
220
|
-
NoDbField()
|
|
221
|
-
], CoDocument.prototype, "_fileTypeInternal", void 0);
|
|
222
|
-
__decorate([
|
|
223
|
-
NoDbField()
|
|
224
|
-
], CoDocument.prototype, "_mimeTypeInternal", void 0);
|
|
225
|
-
__decorate([
|
|
226
|
-
NoDbField()
|
|
227
|
-
], CoDocument.prototype, "_idObject", void 0);
|
|
228
|
-
__decorate([
|
|
229
|
-
NoDbField()
|
|
230
|
-
], CoDocument.prototype, "_documentType", void 0);
|
|
231
|
-
__decorate([
|
|
232
|
-
BoSerializerStep()
|
|
233
|
-
], CoDocument.prototype, "preventOverridingThumbnailToEmpty", null);
|
|
234
|
-
CoDocument = __decorate([
|
|
235
|
-
BusinessObjectData({
|
|
236
|
-
name: "CoDocument",
|
|
237
|
-
mapping: DataMapping.General,
|
|
238
|
-
groupField: "fileType",
|
|
239
|
-
groupDomainName: RefCodeClassToDomainNameMap.get(FileType),
|
|
240
|
-
searchProperties: [
|
|
241
|
-
{ property: "fileName", state: SearchPropertyState.LockedActive, label: "FILE_NAME" }
|
|
242
|
-
],
|
|
243
|
-
filterProperties: [
|
|
244
|
-
{ property: "downloadable", type: FilterType.BooleanSimple, label: "DOWNLOADABLE", active: false, valuePass: true }
|
|
245
|
-
],
|
|
246
|
-
sortProperties: [
|
|
247
|
-
{ property: "fileName", label: "FILE_NAME", active: false, type: SortType.String, direction: SortDirection.Ascending }
|
|
248
|
-
]
|
|
249
|
-
})
|
|
250
|
-
], CoDocument);
|
|
251
|
-
export { CoDocument };
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { BusinessObjectData } from "@colijnit/ioneconnector/build/factory/decorators/business-object-data.decorator";
|
|
8
|
+
import { DataMapping } from "../enum/data-mapping.enum";
|
|
9
|
+
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
10
|
+
import { DateField } from "@colijnit/ioneconnector/build/factory/decorators/date-field.decorator";
|
|
11
|
+
import { CoDocumentType } from "../enum/refcode/co-document-type.enum";
|
|
12
|
+
import { FileType } from "@colijnit/mainapi/build/enum/file-type.enum";
|
|
13
|
+
import { BooleanText } from "@colijnit/ioneconnector/build/factory/decorators/boolean.decorator";
|
|
14
|
+
import { DefaultSendValue } from "@colijnit/ioneconnector/build/factory/decorators/default-send-value.decorator";
|
|
15
|
+
import { CoDocumentImageDisplayKind } from "../enum/co-document-image-display-kind.enum";
|
|
16
|
+
import { ComplexArray } from "@colijnit/ioneconnector/build/factory/decorators/complex-array.decorator";
|
|
17
|
+
import { TagTreeItem } from "@colijnit/mainapi/build/model/tag-tree-item.bo";
|
|
18
|
+
import { ObjectRightType } from "../enum/refcode/object-right-type.enum";
|
|
19
|
+
import { CoDocumentRight } from "@colijnit/mainapi/build/model/co-document-right";
|
|
20
|
+
import { NoDbField } from "@colijnit/ioneconnector/build/factory/decorators/no-db-field.decorator";
|
|
21
|
+
import { ArticleSeoValue } from "./article-seo-value";
|
|
22
|
+
import { FileTypeInternal } from "@colijnit/mainapi/build/enum/file-type-internal.enum";
|
|
23
|
+
import { FileUtils } from "@colijnit/mainapi/build/utils/file-utils";
|
|
24
|
+
import { DbFieldAlias } from "@colijnit/ioneconnector/build/factory/decorators/db-field-alias.decorator";
|
|
25
|
+
import { ComplexField } from "@colijnit/ioneconnector/build/factory/decorators/complex-field.decorator";
|
|
26
|
+
import { Subject } from "rxjs";
|
|
27
|
+
import { StringUtils } from "@colijnit/ioneconnector/build/utils/string-utils";
|
|
28
|
+
import { BoSerializerStep } from "@colijnit/ioneconnector/build/factory/decorators/bo-serializer-step.decorator";
|
|
29
|
+
import { FilterType } from "@colijnit/ioneconnector/build/enum/filter-type.enum";
|
|
30
|
+
import { SearchPropertyState } from "@colijnit/ioneconnector/build/enum/search-property-state.enum";
|
|
31
|
+
import { SortType } from "@colijnit/ioneconnector/build/enum/sort-type.enum";
|
|
32
|
+
import { SortDirection } from "@colijnit/ioneconnector/build/enum/sort-direction";
|
|
33
|
+
import { RefCodeClassToDomainNameMap } from "../enum/ref-code-class-to-domain-name-map";
|
|
34
|
+
let CoDocument = class CoDocument extends BusinessObject {
|
|
35
|
+
set documentId(value) {
|
|
36
|
+
this._documentId = value;
|
|
37
|
+
this._idObject.docId = value;
|
|
38
|
+
}
|
|
39
|
+
get documentId() {
|
|
40
|
+
return this._documentId;
|
|
41
|
+
}
|
|
42
|
+
set documentBody(documentBody) {
|
|
43
|
+
const prev = this._documentBody;
|
|
44
|
+
this._documentBody = documentBody;
|
|
45
|
+
if (prev !== this._documentBody) {
|
|
46
|
+
this.documentBodyChange.next(this._documentBody);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
get documentBody() {
|
|
50
|
+
if ((this.documentType !== this._documentType.SaveAsDocument)
|
|
51
|
+
&& (this.documentType !== this._documentType.SaveAsLinkOnCdnServerLocation)) {
|
|
52
|
+
return this.filePath;
|
|
53
|
+
}
|
|
54
|
+
return this._documentBody;
|
|
55
|
+
}
|
|
56
|
+
get fileTypeInternal() {
|
|
57
|
+
if (!this._fileTypeInternal) {
|
|
58
|
+
const fileType = 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
|
+
if (this.isStoredAsLink()) {
|
|
88
|
+
return this.filePath;
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
return FileUtils.DocumentBodyToDataUri(this.documentBody, this.mimeTypeInternal);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
catch (error) {
|
|
95
|
+
return "";
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
get thumbnailBodyAsDataUri() {
|
|
99
|
+
try {
|
|
100
|
+
if (this.isStoredAsLink()) {
|
|
101
|
+
return this.filePath;
|
|
102
|
+
}
|
|
103
|
+
return FileUtils.DocumentBodyToDataUri(this.thumbnailBody, this.mimeTypeInternal);
|
|
104
|
+
}
|
|
105
|
+
catch (error) {
|
|
106
|
+
return "";
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
get isAvatar() {
|
|
110
|
+
return this.imageDisplayKind === CoDocumentImageDisplayKind.Avatar;
|
|
111
|
+
}
|
|
112
|
+
get readonly() {
|
|
113
|
+
return this.rightLevel === ObjectRightType.ReadOnly;
|
|
114
|
+
}
|
|
115
|
+
set readonly(value) {
|
|
116
|
+
if (value) {
|
|
117
|
+
this.rightLevel = ObjectRightType.ReadOnly;
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
this.rightLevel = ObjectRightType.ReadWrite;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
constructor() {
|
|
124
|
+
super();
|
|
125
|
+
this.pathIsUrl = false;
|
|
126
|
+
this.tags = [];
|
|
127
|
+
this.rights = [];
|
|
128
|
+
this.seoTitles = [];
|
|
129
|
+
this.retailFormulas = [];
|
|
130
|
+
this.documentBodyChange = new Subject();
|
|
131
|
+
this._idObject = {};
|
|
132
|
+
this._documentType = CoDocumentType;
|
|
133
|
+
}
|
|
134
|
+
getId() {
|
|
135
|
+
return this.documentId;
|
|
136
|
+
}
|
|
137
|
+
isImageDocument() {
|
|
138
|
+
return (this.fileTypeInternal === FileTypeInternal.Image);
|
|
139
|
+
}
|
|
140
|
+
getDocumentImageDimensions() {
|
|
141
|
+
if (this.isImageDocument() && this.imageDimensions === undefined) {
|
|
142
|
+
const image = new Image();
|
|
143
|
+
image.src = this.documentBodyAsDataUri;
|
|
144
|
+
return StringUtils.Format("{0}x{1}", [image.width, image.height]);
|
|
145
|
+
}
|
|
146
|
+
return this.imageDimensions;
|
|
147
|
+
}
|
|
148
|
+
getDocumentFileSizeAsString() {
|
|
149
|
+
if (this.fileSize === undefined) {
|
|
150
|
+
return this.documentBody.length === 0 ? " kB" :
|
|
151
|
+
this.documentBody.length < 1024 ? this.documentBody.length + "B" :
|
|
152
|
+
(this.documentBody.length / 1024).toFixed(0).toString() + " kB";
|
|
153
|
+
}
|
|
154
|
+
return this.fileSize;
|
|
155
|
+
}
|
|
156
|
+
getImageDisplayKind() {
|
|
157
|
+
if (this.imageDisplayKind === undefined) {
|
|
158
|
+
this.imageDisplayKind = CoDocumentImageDisplayKind.NormalImage;
|
|
159
|
+
}
|
|
160
|
+
return this.imageDisplayKind;
|
|
161
|
+
}
|
|
162
|
+
preventOverridingThumbnailToEmpty() {
|
|
163
|
+
if (!this.thumbnailBody) {
|
|
164
|
+
this.thumbnailBody = this._documentBody;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
_initMimetypeInternal() {
|
|
168
|
+
if ((this.fileType === FileType.Image || !this.fileType || this.isImageDocument()) && this.fileName) {
|
|
169
|
+
const fileExtension = this.fileName.substr(this.fileName.lastIndexOf(".") + 1);
|
|
170
|
+
this._mimeTypeInternal = "image/" + fileExtension;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
isStoredAsLink() {
|
|
174
|
+
return this.documentType == CoDocumentType.SaveAsLinkOnRandomLocation || this.documentType == CoDocumentType.SaveAsLinkOnDefaultLocation;
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
__decorate([
|
|
178
|
+
DateField()
|
|
179
|
+
], CoDocument.prototype, "creationDate", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
DateField()
|
|
182
|
+
], CoDocument.prototype, "modifiedDate", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
BooleanText("T")
|
|
185
|
+
], CoDocument.prototype, "downloadable", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
BooleanText("T")
|
|
188
|
+
], CoDocument.prototype, "attachToNotification", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
BooleanText("T"),
|
|
191
|
+
DefaultSendValue("F")
|
|
192
|
+
], CoDocument.prototype, "pathIsUrl", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
ComplexArray(TagTreeItem)
|
|
195
|
+
], CoDocument.prototype, "tags", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
ComplexArray(CoDocumentRight)
|
|
198
|
+
], CoDocument.prototype, "rights", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
DefaultSendValue([]),
|
|
201
|
+
ComplexArray(ArticleSeoValue)
|
|
202
|
+
], CoDocument.prototype, "seoTitles", void 0);
|
|
203
|
+
__decorate([
|
|
204
|
+
NoDbField()
|
|
205
|
+
], CoDocument.prototype, "idForLink", void 0);
|
|
206
|
+
__decorate([
|
|
207
|
+
NoDbField()
|
|
208
|
+
], CoDocument.prototype, "convertToUSDZ", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
DbFieldAlias("documentBody")
|
|
211
|
+
], CoDocument.prototype, "_documentBody", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
DbFieldAlias("documentId")
|
|
214
|
+
], CoDocument.prototype, "_documentId", void 0);
|
|
215
|
+
__decorate([
|
|
216
|
+
NoDbField(),
|
|
217
|
+
ComplexField(Subject)
|
|
218
|
+
], CoDocument.prototype, "documentBodyChange", void 0);
|
|
219
|
+
__decorate([
|
|
220
|
+
NoDbField()
|
|
221
|
+
], CoDocument.prototype, "_fileTypeInternal", void 0);
|
|
222
|
+
__decorate([
|
|
223
|
+
NoDbField()
|
|
224
|
+
], CoDocument.prototype, "_mimeTypeInternal", void 0);
|
|
225
|
+
__decorate([
|
|
226
|
+
NoDbField()
|
|
227
|
+
], CoDocument.prototype, "_idObject", void 0);
|
|
228
|
+
__decorate([
|
|
229
|
+
NoDbField()
|
|
230
|
+
], CoDocument.prototype, "_documentType", void 0);
|
|
231
|
+
__decorate([
|
|
232
|
+
BoSerializerStep()
|
|
233
|
+
], CoDocument.prototype, "preventOverridingThumbnailToEmpty", null);
|
|
234
|
+
CoDocument = __decorate([
|
|
235
|
+
BusinessObjectData({
|
|
236
|
+
name: "CoDocument",
|
|
237
|
+
mapping: DataMapping.General,
|
|
238
|
+
groupField: "fileType",
|
|
239
|
+
groupDomainName: RefCodeClassToDomainNameMap.get(FileType),
|
|
240
|
+
searchProperties: [
|
|
241
|
+
{ property: "fileName", state: SearchPropertyState.LockedActive, label: "FILE_NAME" }
|
|
242
|
+
],
|
|
243
|
+
filterProperties: [
|
|
244
|
+
{ property: "downloadable", type: FilterType.BooleanSimple, label: "DOWNLOADABLE", active: false, valuePass: true }
|
|
245
|
+
],
|
|
246
|
+
sortProperties: [
|
|
247
|
+
{ property: "fileName", label: "FILE_NAME", active: false, type: SortType.String, direction: SortDirection.Ascending }
|
|
248
|
+
]
|
|
249
|
+
})
|
|
250
|
+
], CoDocument);
|
|
251
|
+
export { CoDocument };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
-
export declare class Color extends BusinessObject {
|
|
3
|
-
colorCode: string;
|
|
4
|
-
description: string;
|
|
5
|
-
rgbColor: string;
|
|
6
|
-
active: boolean;
|
|
7
|
-
get hexColor(): string;
|
|
8
|
-
constructor(rawData?: any);
|
|
9
|
-
getId(): string;
|
|
10
|
-
}
|
|
1
|
+
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
+
export declare class Color extends BusinessObject {
|
|
3
|
+
colorCode: string;
|
|
4
|
+
description: string;
|
|
5
|
+
rgbColor: string;
|
|
6
|
+
active: boolean;
|
|
7
|
+
get hexColor(): string;
|
|
8
|
+
constructor(rawData?: any);
|
|
9
|
+
getId(): string;
|
|
10
|
+
}
|
package/build/model/color.bo.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
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;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
8
|
-
import { MapProperty } from '@colijnit/ioneconnector/build/factory/decorators/map-property.decorator';
|
|
9
|
-
export class Color extends BusinessObject {
|
|
10
|
-
get hexColor() {
|
|
11
|
-
let hex = this.rgbColor ? Number(this.rgbColor).toString(16) : '';
|
|
12
|
-
if (hex.length < 2) {
|
|
13
|
-
hex = "0" + hex;
|
|
14
|
-
}
|
|
15
|
-
return '#' + hex;
|
|
16
|
-
}
|
|
17
|
-
constructor(rawData) {
|
|
18
|
-
super();
|
|
19
|
-
this.colorCode = null;
|
|
20
|
-
this.description = null;
|
|
21
|
-
this.rgbColor = null;
|
|
22
|
-
this.active = false;
|
|
23
|
-
}
|
|
24
|
-
getId() {
|
|
25
|
-
return this.colorCode;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
__decorate([
|
|
29
|
-
MapProperty('KLEUR')
|
|
30
|
-
], Color.prototype, "colorCode", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
MapProperty('OMSCHRIJVING')
|
|
33
|
-
], Color.prototype, "description", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
MapProperty('RGB_WAARDE')
|
|
36
|
-
], Color.prototype, "rgbColor", void 0);
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
8
|
+
import { MapProperty } from '@colijnit/ioneconnector/build/factory/decorators/map-property.decorator';
|
|
9
|
+
export class Color extends BusinessObject {
|
|
10
|
+
get hexColor() {
|
|
11
|
+
let hex = this.rgbColor ? Number(this.rgbColor).toString(16) : '';
|
|
12
|
+
if (hex.length < 2) {
|
|
13
|
+
hex = "0" + hex;
|
|
14
|
+
}
|
|
15
|
+
return '#' + hex;
|
|
16
|
+
}
|
|
17
|
+
constructor(rawData) {
|
|
18
|
+
super();
|
|
19
|
+
this.colorCode = null;
|
|
20
|
+
this.description = null;
|
|
21
|
+
this.rgbColor = null;
|
|
22
|
+
this.active = false;
|
|
23
|
+
}
|
|
24
|
+
getId() {
|
|
25
|
+
return this.colorCode;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
__decorate([
|
|
29
|
+
MapProperty('KLEUR')
|
|
30
|
+
], Color.prototype, "colorCode", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
MapProperty('OMSCHRIJVING')
|
|
33
|
+
], Color.prototype, "description", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
MapProperty('RGB_WAARDE')
|
|
36
|
+
], Color.prototype, "rgbColor", void 0);
|
package/build/model/colour.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
-
export declare class Colour extends BusinessObject {
|
|
3
|
-
colorCode: string;
|
|
4
|
-
description: string;
|
|
5
|
-
rgbColor: string;
|
|
6
|
-
jsOnly: boolean;
|
|
7
|
-
get hexColor(): string;
|
|
8
|
-
getId(): string;
|
|
9
|
-
}
|
|
1
|
+
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
+
export declare class Colour extends BusinessObject {
|
|
3
|
+
colorCode: string;
|
|
4
|
+
description: string;
|
|
5
|
+
rgbColor: string;
|
|
6
|
+
jsOnly: boolean;
|
|
7
|
+
get hexColor(): string;
|
|
8
|
+
getId(): string;
|
|
9
|
+
}
|