@colijnit/transactionapi 1.1.52 → 1.1.54
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/address-format.enum.js +4 -2
- package/build/enum/article-method.enum.js +4 -2
- package/build/enum/article-object-name.enum.js +4 -2
- package/build/enum/article-operation.enum.js +4 -2
- package/build/enum/backend-service-name.enum.js +4 -2
- package/build/enum/catalog-object-name.enum.js +4 -2
- package/build/enum/connection-endpoint-enum.js +4 -2
- package/build/enum/data-mapping.enum.js +4 -2
- package/build/enum/deco-node-kind.enum.js +4 -2
- package/build/enum/deco-node-type.enum.js +4 -2
- package/build/enum/discount-type.enum.js +4 -2
- package/build/enum/document-object-name.enum.js +4 -2
- package/build/enum/domain-name.enum.js +4 -2
- package/build/enum/filter-type.enum.js +4 -2
- package/build/enum/financial-object-name.enum.js +4 -2
- package/build/enum/general-method.enum.js +4 -2
- package/build/enum/general-object-name.enum.js +4 -2
- package/build/enum/line-confirmation-reason.enum.js +4 -2
- package/build/enum/line-pending-reason.enum.js +4 -2
- package/build/enum/login-service-method.enum.js +4 -2
- package/build/enum/logistics-method.enum.js +4 -2
- package/build/enum/master-data-method-name.enum.js +4 -2
- package/build/enum/master-data-object-name.enum.js +4 -2
- package/build/enum/master-data-operation-name.enum.js +4 -2
- package/build/enum/module-name.enum.js +4 -2
- package/build/enum/node-type.enum.js +4 -2
- package/build/enum/one-zero-bool-db-type.enum.js +6 -3
- package/build/enum/operation-name.enum.js +4 -2
- package/build/enum/payment-method.enum.js +4 -2
- package/build/enum/pending-reason-type.enum.js +4 -2
- package/build/enum/pricing-method.enum.js +4 -2
- package/build/enum/print-service-method.enum.js +4 -2
- package/build/enum/public-service-method.enum.js +4 -2
- package/build/enum/public-service-method.js +4 -2
- package/build/enum/purchase-advice-method.enum.js +4 -2
- package/build/enum/purchase-advice-object-name.enum.js +4 -2
- package/build/enum/quantity-in-historic-state.enum.js +4 -2
- package/build/enum/refcode/commission-code-type.enum.js +4 -2
- package/build/enum/refcode/document-publication.enum.js +4 -2
- package/build/enum/refcode/good-type.enum.js +4 -2
- package/build/enum/refcode/price-list-type.enum.js +4 -2
- package/build/enum/refcode/ref-type.enum.js +4 -2
- package/build/enum/refcode/selector-type.enum.js +4 -2
- package/build/enum/refcode/stock-status.enum.js +6 -3
- package/build/enum/relation-kind.enum.js +4 -2
- package/build/enum/relation-name-kind.enum.js +4 -2
- package/build/enum/relation-object-name.enum.js +4 -2
- package/build/enum/relation-reference-kind.enum.js +4 -2
- package/build/enum/relation-status.enum.js +4 -2
- package/build/enum/reporting-method.enum.js +4 -2
- package/build/enum/retail-transaction-pending-reason.enum.js +4 -2
- package/build/enum/search-data-type.enum.js +4 -2
- package/build/enum/search-period.enum.js +4 -2
- package/build/enum/search-property-state.enum.js +4 -2
- package/build/enum/search-type.enum.js +4 -2
- package/build/enum/sequence-name.enum.js +4 -2
- package/build/enum/sla-publication.enum.js +4 -2
- package/build/enum/sort-direction.js +6 -3
- package/build/enum/sort-type.enum.js +4 -2
- package/build/enum/stock-method.enum.js +4 -2
- package/build/enum/table-name.enum.js +4 -2
- package/build/enum/tag-object-name.enum.js +4 -2
- package/build/enum/tag-operation-name.enum.js +4 -2
- package/build/enum/text-kind-type.enum.js +4 -2
- package/build/enum/transaction-kind.enum.js +4 -2
- package/build/enum/transaction-line-type.enum.js +4 -2
- package/build/enum/transaction-method.enum.js +4 -2
- package/build/enum/transaction-object-name.enum.js +4 -2
- package/build/enum/transaction-operation.enum.js +4 -2
- package/build/ione-api-transaction.d.ts +4 -19
- package/build/ione-api-transaction.js +12 -11
- package/build/model/acceptance-container.bo.d.ts +1 -1
- package/build/model/acceptance-container.bo.js +23 -39
- package/build/model/acceptance-line.bo.d.ts +1 -1
- package/build/model/acceptance-line.bo.js +6 -22
- package/build/model/admin-cash-register-group.bo.d.ts +1 -1
- package/build/model/admin-cash-register-group.bo.js +6 -22
- package/build/model/admin-payment-method.bo.d.ts +1 -1
- package/build/model/admin-payment-method.bo.js +6 -22
- package/build/model/art-quick-sel-o-article.d.ts +4 -4
- package/build/model/art-quick-sel-o-article.js +27 -43
- package/build/model/article-category.d.ts +3 -3
- package/build/model/article-category.js +23 -37
- package/build/model/article-full-object.d.ts +5 -5
- package/build/model/article-full-object.js +42 -56
- package/build/model/article-group-image.d.ts +2 -2
- package/build/model/article-group-image.js +14 -30
- package/build/model/article-group.d.ts +2 -2
- package/build/model/article-group.js +17 -31
- package/build/model/article-list-object-extended.d.ts +2 -2
- package/build/model/article-list-object-extended.js +46 -63
- package/build/model/article-list-object.d.ts +1 -1
- package/build/model/article-list-object.js +16 -17
- package/build/model/article-price.d.ts +3 -3
- package/build/model/article-price.js +6 -22
- package/build/model/article-pricing.d.ts +1 -1
- package/build/model/article-pricing.js +11 -27
- package/build/model/article.d.ts +2 -2
- package/build/model/article.js +60 -76
- package/build/model/atmosphere.d.ts +1 -1
- package/build/model/atmosphere.js +8 -24
- package/build/model/cash-register-group.bo.d.ts +1 -1
- package/build/model/cash-register-group.bo.js +15 -29
- package/build/model/cash-register.d.ts +1 -1
- package/build/model/cash-register.js +10 -23
- package/build/model/change-header-adm-coordinator-request.js +5 -6
- package/build/model/change-header-branch-request.js +5 -6
- package/build/model/change-header-currency-request.js +5 -6
- package/build/model/change-header-delivery-date-definitive-request.js +5 -6
- package/build/model/change-header-delivery-date-request.js +5 -6
- package/build/model/change-header-delivery-method-request.js +5 -6
- package/build/model/change-header-delivery-options-request.js +6 -5
- package/build/model/change-header-dont-send-order-forms-request.js +5 -6
- package/build/model/change-header-invoice-address-request.js +5 -6
- package/build/model/change-header-marketing-code-request.js +5 -6
- package/build/model/change-header-on-hold-codes-request.js +6 -5
- package/build/model/change-header-own-reference-request.js +5 -6
- package/build/model/change-header-partial-delivery-allowed-request.js +5 -6
- package/build/model/change-header-preferred-delivery-date-request.js +5 -6
- package/build/model/change-header-price-kind-request.js +5 -6
- package/build/model/change-header-print-discount-request.js +5 -6
- package/build/model/change-header-relation-reference-request.js +5 -6
- package/build/model/change-header-relation-transaction-date-request.js +5 -6
- package/build/model/change-header-release-transaction-request.js +5 -6
- package/build/model/change-header-remarks-request.js +5 -6
- package/build/model/change-header-to-down-pay-amount-request.js +5 -6
- package/build/model/change-header-to-down-pay-percentage-request.js +5 -6
- package/build/model/change-header-transaction-address-request.js +5 -6
- package/build/model/change-header-transaction-definitive-request.js +5 -6
- package/build/model/change-line-assembly-time-request.js +5 -6
- package/build/model/change-line-collection-code-request.js +5 -6
- package/build/model/change-line-commission-code-request.js +5 -6
- package/build/model/change-line-delivery-date-request.js +10 -11
- package/build/model/change-line-delivery-method-request.js +5 -6
- package/build/model/change-line-discount-request.js +5 -6
- package/build/model/change-line-edit-time-request.js +5 -6
- package/build/model/change-line-good-description-request.js +5 -6
- package/build/model/change-line-price-list-request.js +5 -6
- package/build/model/change-line-price-request.js +5 -6
- package/build/model/change-line-quantity-request.js +5 -6
- package/build/model/change-line-reference-request.js +5 -6
- package/build/model/change-line-sequence-request.js +5 -6
- package/build/model/change-line-supplier-article-number-request.js +5 -6
- package/build/model/change-line-supplier-request.js +5 -6
- package/build/model/change-line-vat-request.js +5 -6
- package/build/model/change-line-warehouse-request.js +5 -6
- package/build/model/code-description.js +6 -5
- package/build/model/color.d.ts +1 -1
- package/build/model/color.js +34 -53
- package/build/model/concept.d.ts +1 -1
- package/build/model/concept.js +8 -24
- package/build/model/constant/java-constants.js +4 -2
- package/build/model/country.bo.d.ts +2 -2
- package/build/model/country.bo.js +9 -25
- package/build/model/create-outstanding-entry-request.js +5 -6
- package/build/model/create-payment-link-request.js +5 -6
- package/build/model/create-payment-link-result.bo.d.ts +1 -1
- package/build/model/create-payment-link-result.bo.js +6 -22
- package/build/model/customer-group.bo.d.ts +1 -1
- package/build/model/customer-group.bo.js +14 -30
- package/build/model/delivery-method.bo.d.ts +1 -1
- package/build/model/delivery-method.bo.js +31 -45
- package/build/model/delivery-option.bo.d.ts +1 -1
- package/build/model/delivery-option.bo.js +10 -23
- package/build/model/delivery-order-status.bo.js +6 -22
- package/build/model/design.d.ts +1 -1
- package/build/model/design.js +8 -24
- package/build/model/doc-delivery-batch.bo.d.ts +1 -1
- package/build/model/doc-delivery-batch.bo.js +6 -22
- package/build/model/down-payment.bo.d.ts +1 -1
- package/build/model/down-payment.bo.js +11 -27
- package/build/model/email-delivery-note-request.bo.js +6 -22
- package/build/model/external-storage.d.ts +1 -1
- package/build/model/external-storage.js +9 -24
- package/build/model/get-article-price-request.d.ts +1 -1
- package/build/model/get-article-price-request.js +5 -6
- package/build/model/get-articles-for-catalog.js +6 -5
- package/build/model/get-postal-code-retrieval-output-params.js +9 -12
- package/build/model/get-purchase-order-confirmation.js +5 -6
- package/build/model/get-purchase-portal-line.js +5 -6
- package/build/model/get-stock-info-output-params.js +8 -7
- package/build/model/goods-receipt-status-with-history.bo.js +6 -22
- package/build/model/goods-receipt-status.bo.js +6 -22
- package/build/model/header-operation-status.bo.js +6 -5
- package/build/model/info.d.ts +1 -1
- package/build/model/info.js +19 -35
- package/build/model/line-operation-response.bo.js +6 -22
- package/build/model/line-operation-status.bo.js +5 -6
- package/build/model/linked-article.d.ts +6 -6
- package/build/model/linked-article.js +57 -101
- package/build/model/logistical-state-detail.bo.d.ts +1 -1
- package/build/model/logistical-state-detail.bo.js +11 -27
- package/build/model/marketing.bo.d.ts +1 -1
- package/build/model/marketing.bo.js +8 -24
- package/build/model/on-hold-code.bo.d.ts +1 -1
- package/build/model/on-hold-code.bo.js +19 -35
- package/build/model/payment-link-status.bo.d.ts +1 -1
- package/build/model/payment-link-status.bo.js +19 -35
- package/build/model/payment-method.bo.d.ts +2 -2
- package/build/model/payment-method.bo.js +27 -41
- package/build/model/payment-request.js +5 -6
- package/build/model/pdf-delivery-note-request.bo.js +6 -22
- package/build/model/price-list.d.ts +3 -3
- package/build/model/price-list.js +17 -33
- package/build/model/print-delivery-note-request.bo.js +6 -22
- package/build/model/purchase-advice-filters.js +5 -6
- package/build/model/purchase-advice-line.bo.d.ts +2 -2
- package/build/model/purchase-advice-line.bo.js +19 -35
- package/build/model/purchase-order-line-receipt-correction-details.bo.d.ts +1 -1
- package/build/model/purchase-order-line-receipt-correction-details.bo.js +6 -22
- package/build/model/purchase-order-line-receipt-details.bo.d.ts +1 -1
- package/build/model/purchase-order-line-receipt-details.bo.js +6 -22
- package/build/model/purchase-order-line.bo.d.ts +1 -1
- package/build/model/purchase-order-line.bo.js +11 -27
- package/build/model/purchase-order.bo.d.ts +1 -1
- package/build/model/purchase-order.bo.js +6 -22
- package/build/model/purchase-portal-filters.bo.d.ts +1 -1
- package/build/model/purchase-portal-filters.bo.js +6 -22
- package/build/model/purchase-portal-line.bo.d.ts +2 -2
- package/build/model/purchase-portal-line.bo.js +15 -29
- package/build/model/purchase-portal-object-name.enum.js +4 -2
- package/build/model/receive-goods-for-purchase-order-correction-request.bo.d.ts +2 -2
- package/build/model/receive-goods-for-purchase-order-correction-request.bo.js +6 -22
- package/build/model/receive-goods-for-purchase-order-request.bo.d.ts +2 -2
- package/build/model/receive-goods-for-purchase-order-request.bo.js +11 -27
- package/build/model/report/email-order-confirmation.js +5 -6
- package/build/model/report/pdf-order-confirmation.js +5 -6
- package/build/model/report/print-order-confirmation.js +5 -6
- package/build/model/reporting-document-base-request.bo.d.ts +1 -1
- package/build/model/reporting-document-base-request.bo.js +6 -22
- package/build/model/reporting-document-email-base-request.bo.js +6 -22
- package/build/model/reporting-document-pdf-base-request.bo.js +6 -22
- package/build/model/reporting-document-print-base-request.bo.js +6 -22
- package/build/model/resolve-header-pending-reason-request.bo.js +6 -6
- package/build/model/resolve-pending-reason-request.bo.js +6 -9
- package/build/model/session.js +6 -5
- package/build/model/set-transaction-delivery-options-request.bo.d.ts +1 -1
- package/build/model/set-transaction-delivery-options-request.bo.js +19 -35
- package/build/model/set-transaction-discounts-request.js +5 -6
- package/build/model/supplier-product.bo.d.ts +1 -1
- package/build/model/supplier-product.bo.js +19 -35
- package/build/model/transaction-add-line-response.bo.js +6 -22
- package/build/model/transaction-add-text-line-request.bo.d.ts +1 -1
- package/build/model/transaction-add-text-line-request.bo.js +17 -31
- package/build/model/transaction-article-warehouse.bo.d.ts +2 -2
- package/build/model/transaction-article-warehouse.bo.js +40 -54
- package/build/model/transaction-change-line-quantity-response.bo.js +6 -22
- package/build/model/transaction-down-payment-info.bo.d.ts +1 -1
- package/build/model/transaction-down-payment-info.bo.js +15 -29
- package/build/model/transaction-info-response.bo.js +40 -54
- package/build/model/transaction-info.bo.d.ts +5 -3
- package/build/model/transaction-info.bo.js +47 -64
- package/build/model/transaction-line-info.bo.d.ts +1 -1
- package/build/model/transaction-line-info.bo.js +101 -143
- package/build/model/transaction-line-reporting-request.bo.d.ts +1 -1
- package/build/model/transaction-line-reporting-request.bo.js +6 -22
- package/build/model/transaction-line-status-base.bo.d.ts +1 -1
- package/build/model/transaction-line-status-base.bo.js +6 -22
- package/build/model/transaction-list-object.bo.d.ts +4 -4
- package/build/model/transaction-list-object.bo.js +77 -97
- package/build/model/transaction-lock-result.bo.d.ts +1 -1
- package/build/model/transaction-lock-result.bo.js +11 -27
- package/build/model/transaction-response-base.bo.d.ts +1 -1
- package/build/model/transaction-response-base.bo.js +6 -22
- package/build/model/transaction-search-view-request.d.ts +1 -1
- package/build/model/transaction-search-view-request.js +6 -5
- package/build/model/transaction-search-view.bo.d.ts +3 -3
- package/build/model/transaction-search-view.bo.js +98 -124
- package/build/model/transaction-total.bo.d.ts +1 -1
- package/build/model/transaction-total.bo.js +6 -22
- package/build/model/transactionLineCharacteristic.bo.d.ts +1 -1
- package/build/model/transactionLineCharacteristic.bo.js +12 -11
- package/build/model/transactionLineCharacteristicChoice.bo.js +5 -6
- package/build/model/tree-object.d.ts +1 -1
- package/build/model/tree-object.js +19 -35
- package/build/model/turnover-group-image.d.ts +2 -2
- package/build/model/turnover-group-image.js +14 -30
- package/build/model/vat.d.ts +2 -2
- package/build/model/vat.js +17 -33
- package/build/model/warehouse.bo.d.ts +1 -1
- package/build/model/warehouse.bo.js +46 -60
- package/build/transaction-auth.d.ts +7 -23
- package/build/transaction-auth.js +782 -1014
- package/build/transaction-public.d.ts +4 -19
- package/build/transaction-public.js +576 -1063
- package/build/transaction.d.ts +7 -22
- package/build/transaction.js +279 -432
- package/build/transaction.unit.test.js +341 -837
- package/build/type/object-configuration-default-value-type.js +2 -0
- package/build/websocket/socket.d.ts +1 -1
- package/build/websocket/socket.js +63 -115
- package/package.json +10 -3
- package/build/catalog.d.ts +0 -35
- package/build/catalog.js +0 -47
- package/build/enum/absence-type.enum.d.ts +0 -10
- package/build/enum/absence-type.enum.js +0 -11
- package/build/enum/address-type.enum.d.ts +0 -8
- package/build/enum/address-type.enum.js +0 -9
- package/build/enum/co-document-image-display-kind.enum.d.ts +0 -5
- package/build/enum/co-document-image-display-kind.enum.js +0 -6
- package/build/enum/communication-type.enum.d.ts +0 -8
- package/build/enum/communication-type.enum.js +0 -9
- package/build/enum/company-type.enum.d.ts +0 -4
- package/build/enum/company-type.enum.js +0 -5
- package/build/enum/customer-employee-contact-link-status.enum.d.ts +0 -4
- package/build/enum/customer-employee-contact-link-status.enum.js +0 -5
- package/build/enum/customer-type.enum.d.ts +0 -5
- package/build/enum/customer-type.enum.js +0 -6
- package/build/enum/data-service-method.enum.d.ts +0 -14
- package/build/enum/data-service-method.enum.js +0 -15
- package/build/enum/datasession-service-method.enum.d.ts +0 -11
- package/build/enum/datasession-service-method.enum.js +0 -12
- package/build/enum/db-boolean-value-type.enum.d.ts +0 -12
- package/build/enum/db-boolean-value-type.enum.js +0 -28
- package/build/enum/delivery-time-unit-type.enum.d.ts +0 -4
- package/build/enum/delivery-time-unit-type.enum.js +0 -5
- package/build/enum/fixed-supplier-type.enum.d.ts +0 -13
- package/build/enum/fixed-supplier-type.enum.js +0 -14
- package/build/enum/gender-type.enum.d.ts +0 -5
- package/build/enum/gender-type.enum.js +0 -6
- package/build/enum/insured-interest-type.enum.d.ts +0 -10
- package/build/enum/insured-interest-type.enum.js +0 -11
- package/build/enum/message-type.enum.d.ts +0 -6
- package/build/enum/message-type.enum.js +0 -7
- package/build/enum/node-display-type.enum.d.ts +0 -5
- package/build/enum/node-display-type.enum.js +0 -6
- package/build/enum/own-risk.enum.d.ts +0 -7
- package/build/enum/own-risk.enum.js +0 -8
- package/build/enum/priority-type.enum.d.ts +0 -7
- package/build/enum/priority-type.enum.js +0 -8
- package/build/enum/product-kind.enum.d.ts +0 -6
- package/build/enum/product-kind.enum.js +0 -7
- package/build/enum/refcode/article-publication.enum.d.ts +0 -5
- package/build/enum/refcode/article-publication.enum.js +0 -6
- package/build/enum/refcode/co-document-type.enum.d.ts +0 -5
- package/build/enum/refcode/co-document-type.enum.js +0 -6
- package/build/enum/refcode/file-type-internal.enum.d.ts +0 -11
- package/build/enum/refcode/file-type-internal.enum.js +0 -12
- package/build/enum/refcode/file-type.enum.d.ts +0 -5
- package/build/enum/refcode/file-type.enum.js +0 -6
- package/build/enum/refcode/object-config-kind.d.ts +0 -9
- package/build/enum/refcode/object-config-kind.js +0 -10
- package/build/enum/refcode/object-configuration-data-type.enum.d.ts +0 -7
- package/build/enum/refcode/object-configuration-data-type.enum.js +0 -8
- package/build/enum/refcode/object-configuration-value-type.enum.d.ts +0 -10
- package/build/enum/refcode/object-configuration-value-type.enum.js +0 -11
- package/build/enum/refcode/object-right-type.enum.d.ts +0 -5
- package/build/enum/refcode/object-right-type.enum.js +0 -6
- package/build/enum/refcode/price-type.enum.d.ts +0 -4
- package/build/enum/refcode/price-type.enum.js +0 -5
- package/build/enum/refcode/text-standard-type-text.d.ts +0 -7
- package/build/enum/refcode/text-standard-type-text.js +0 -8
- package/build/enum/refcode/text-standard-type.d.ts +0 -7
- package/build/enum/refcode/text-standard-type.js +0 -8
- package/build/enum/refcode/user-right-type.enum.d.ts +0 -7
- package/build/enum/refcode/user-right-type.enum.js +0 -8
- package/build/enum/true-false-db-type.enum.d.ts +0 -5
- package/build/enum/true-false-db-type.enum.js +0 -16
- package/build/enum/value-comparison-type.enum.d.ts +0 -15
- package/build/enum/value-comparison-type.enum.js +0 -28
- package/build/enum/vat-type.enum.d.ts +0 -4
- package/build/enum/vat-type.enum.js +0 -5
- package/build/enum/yes-no-db-type.enum.d.ts +0 -5
- package/build/enum/yes-no-db-type.enum.js +0 -16
- package/build/factory/decorators/boolean.decorator.d.ts +0 -11
- package/build/factory/decorators/boolean.decorator.js +0 -71
- package/build/factory/decorators/business-object-data.decorator.d.ts +0 -24
- package/build/factory/decorators/business-object-data.decorator.js +0 -85
- package/build/factory/decorators/complex-array.decorator.d.ts +0 -5
- package/build/factory/decorators/complex-array.decorator.js +0 -35
- package/build/factory/decorators/complex-field.decorator.d.ts +0 -5
- package/build/factory/decorators/complex-field.decorator.js +0 -35
- package/build/factory/decorators/date-field.decorator.d.ts +0 -5
- package/build/factory/decorators/date-field.decorator.js +0 -25
- package/build/factory/decorators/db-field-alias.decorator.d.ts +0 -5
- package/build/factory/decorators/db-field-alias.decorator.js +0 -38
- package/build/factory/decorators/db-method-value.decorator.d.ts +0 -5
- package/build/factory/decorators/db-method-value.decorator.js +0 -18
- package/build/factory/decorators/db-number.decorator.d.ts +0 -5
- package/build/factory/decorators/db-number.decorator.js +0 -35
- package/build/factory/decorators/exclude-when-empty-string.decorator.d.ts +0 -5
- package/build/factory/decorators/exclude-when-empty-string.decorator.js +0 -18
- package/build/factory/decorators/json.decorator.d.ts +0 -5
- package/build/factory/decorators/json.decorator.js +0 -24
- package/build/factory/decorators/map-property.decorator.d.ts +0 -6
- package/build/factory/decorators/map-property.decorator.js +0 -28
- package/build/factory/decorators/no-db-field.decorator.d.ts +0 -4
- package/build/factory/decorators/no-db-field.decorator.js +0 -32
- package/build/factory/decorators/number-string.decorator.d.ts +0 -6
- package/build/factory/decorators/number-string.decorator.js +0 -22
- package/build/factory/decorators/simple-property-tag.decorator.d.ts +0 -5
- package/build/factory/decorators/simple-property-tag.decorator.js +0 -36
- package/build/factory/decorators/string-number.decorator.d.ts +0 -6
- package/build/factory/decorators/string-number.decorator.js +0 -28
- package/build/interface/business-object-data-shape.d.ts +0 -21
- package/build/interface/business-object-data-shape.js +0 -0
- package/build/interface/check-precision-and-scale-result.d.ts +0 -4
- package/build/interface/check-precision-and-scale-result.js +0 -0
- package/build/interface/contact-option-common-shape.d.ts +0 -7
- package/build/interface/contact-option-common-shape.js +0 -0
- package/build/interface/contact-option-sequence-range.d.ts +0 -5
- package/build/interface/contact-option-sequence-range.js +0 -0
- package/build/interface/data-service-response-data.interface.d.ts +0 -9
- package/build/interface/data-service-response-data.interface.js +0 -0
- package/build/interface/field-validation.interface.d.ts +0 -6
- package/build/interface/field-validation.interface.js +0 -0
- package/build/interface/field-validations-object.interface.d.ts +0 -4
- package/build/interface/field-validations-object.interface.js +0 -0
- package/build/interface/filter-property.d.ts +0 -9
- package/build/interface/filter-property.js +0 -0
- package/build/interface/paging-parameters.interface.d.ts +0 -6
- package/build/interface/paging-parameters.interface.js +0 -6
- package/build/interface/precision-scale-object.d.ts +0 -4
- package/build/interface/precision-scale-object.js +0 -0
- package/build/interface/relman-complete-name.d.ts +0 -5
- package/build/interface/relman-complete-name.js +0 -0
- package/build/interface/search-property.d.ts +0 -11
- package/build/interface/search-property.js +0 -0
- package/build/interface/sort-property.d.ts +0 -11
- package/build/interface/sort-property.js +0 -0
- package/build/interface/validation-message.interface.d.ts +0 -6
- package/build/interface/validation-message.interface.js +0 -0
- package/build/interface/validation-result.interface.d.ts +0 -14
- package/build/interface/validation-result.interface.js +0 -0
- package/build/interface/value-comparison-type-view-wrapper.d.ts +0 -5
- package/build/interface/value-comparison-type-view-wrapper.js +0 -0
- package/build/model/address-contact-option.bo.d.ts +0 -14
- package/build/model/address-contact-option.bo.js +0 -25
- package/build/model/address.bo.d.ts +0 -37
- package/build/model/address.bo.js +0 -148
- package/build/model/answer-price.d.ts +0 -15
- package/build/model/answer-price.js +0 -90
- package/build/model/answer.d.ts +0 -36
- package/build/model/answer.js +0 -184
- package/build/model/article-seo-value.d.ts +0 -5
- package/build/model/article-seo-value.js +0 -6
- package/build/model/bank-account.bo.d.ts +0 -15
- package/build/model/bank-account.bo.js +0 -25
- package/build/model/branch-lov.bo.d.ts +0 -9
- package/build/model/branch-lov.bo.js +0 -25
- package/build/model/brand.d.ts +0 -8
- package/build/model/brand.js +0 -25
- package/build/model/business-object-id-type.d.ts +0 -4
- package/build/model/business-object-id-type.js +0 -10
- package/build/model/business-object.d.ts +0 -7
- package/build/model/business-object.js +0 -71
- package/build/model/co-document-right.d.ts +0 -7
- package/build/model/co-document-right.js +0 -22
- package/build/model/co-document.d.ts +0 -62
- package/build/model/co-document.js +0 -223
- package/build/model/co-domain-value.bo.d.ts +0 -10
- package/build/model/co-domain-value.bo.js +0 -36
- package/build/model/co-notition-right.bo.d.ts +0 -10
- package/build/model/co-notition-right.bo.js +0 -25
- package/build/model/co-notition.bo.d.ts +0 -24
- package/build/model/co-notition.bo.js +0 -96
- package/build/model/co-text.d.ts +0 -26
- package/build/model/co-text.js +0 -43
- package/build/model/contact-moment.bo.d.ts +0 -17
- package/build/model/contact-moment.bo.js +0 -51
- package/build/model/contact-option.bo.d.ts +0 -16
- package/build/model/contact-option.bo.js +0 -46
- package/build/model/customer-full-object.bo.d.ts +0 -107
- package/build/model/customer-full-object.bo.js +0 -334
- package/build/model/data-service-data.d.ts +0 -15
- package/build/model/data-service-data.js +0 -6
- package/build/model/data-service-request-data.d.ts +0 -15
- package/build/model/data-service-request-data.js +0 -6
- package/build/model/data-service-response-data.d.ts +0 -15
- package/build/model/data-service-response-data.js +0 -66
- package/build/model/data-service-response-root.d.ts +0 -5
- package/build/model/data-service-response-root.js +0 -0
- package/build/model/deco-node.d.ts +0 -18
- package/build/model/deco-node.js +0 -93
- package/build/model/department.bo.d.ts +0 -12
- package/build/model/department.bo.js +0 -81
- package/build/model/employee-group-dto.bo.d.ts +0 -7
- package/build/model/employee-group-dto.bo.js +0 -42
- package/build/model/field-validation.d.ts +0 -10
- package/build/model/field-validation.js +0 -61
- package/build/model/field-validations-object.d.ts +0 -4
- package/build/model/field-validations-object.js +0 -0
- package/build/model/frozen-article-composition.d.ts +0 -13
- package/build/model/frozen-article-composition.js +0 -79
- package/build/model/frozen-article-simple.d.ts +0 -12
- package/build/model/frozen-article-simple.js +0 -74
- package/build/model/frozen-article.d.ts +0 -14
- package/build/model/frozen-article.js +0 -75
- package/build/model/hd-service-request-data.d.ts +0 -5
- package/build/model/hd-service-request-data.js +0 -0
- package/build/model/insuredInterest.bo.d.ts +0 -13
- package/build/model/insuredInterest.bo.js +0 -51
- package/build/model/login.d.ts +0 -17
- package/build/model/login.js +0 -65
- package/build/model/match-article.d.ts +0 -10
- package/build/model/match-article.js +0 -66
- package/build/model/material.d.ts +0 -6
- package/build/model/material.js +0 -25
- package/build/model/nul-relation-object.d.ts +0 -6
- package/build/model/nul-relation-object.js +0 -5
- package/build/model/object-configuration.d.ts +0 -50
- package/build/model/object-configuration.js +0 -202
- package/build/model/off-set-account.bo.d.ts +0 -15
- package/build/model/off-set-account.bo.js +0 -95
- package/build/model/own-risk.bo.d.ts +0 -11
- package/build/model/own-risk.bo.js +0 -51
- package/build/model/paging-parameters.d.ts +0 -16
- package/build/model/paging-parameters.js +0 -44
- package/build/model/payroll-number.bo.d.ts +0 -7
- package/build/model/payroll-number.bo.js +0 -42
- package/build/model/privacy-setting.bo.d.ts +0 -9
- package/build/model/privacy-setting.bo.js +0 -25
- package/build/model/question.d.ts +0 -9
- package/build/model/question.js +0 -54
- package/build/model/relation-any-type.d.ts +0 -3
- package/build/model/relation-any-type.js +0 -0
- package/build/model/relation-contact-link.bo.d.ts +0 -36
- package/build/model/relation-contact-link.bo.js +0 -158
- package/build/model/relation-contact-serial-number.bo.d.ts +0 -22
- package/build/model/relation-contact-serial-number.bo.js +0 -85
- package/build/model/relation-contract-login-data.bo.d.ts +0 -10
- package/build/model/relation-contract-login-data.bo.js +0 -42
- package/build/model/relation-contract.bo.d.ts +0 -63
- package/build/model/relation-contract.bo.js +0 -141
- package/build/model/relation-employee-fte.bo.d.ts +0 -8
- package/build/model/relation-employee-fte.bo.js +0 -39
- package/build/model/relation-event-link.bo.d.ts +0 -15
- package/build/model/relation-event-link.bo.js +0 -70
- package/build/model/relation-event-subscriber.bo.d.ts +0 -7
- package/build/model/relation-event-subscriber.bo.js +0 -42
- package/build/model/relation-list-object.bo.d.ts +0 -72
- package/build/model/relation-list-object.bo.js +0 -197
- package/build/model/relation-mailing-code.d.ts +0 -7
- package/build/model/relation-mailing-code.js +0 -25
- package/build/model/relation-objects-shared-field-logic.d.ts +0 -12
- package/build/model/relation-objects-shared-field-logic.js +0 -82
- package/build/model/relation-price-list.bo.d.ts +0 -11
- package/build/model/relation-price-list.bo.js +0 -58
- package/build/model/relation-privacy-setting.bo.d.ts +0 -12
- package/build/model/relation-privacy-setting.bo.js +0 -65
- package/build/model/relation-reference-type.bo.d.ts +0 -8
- package/build/model/relation-reference-type.bo.js +0 -58
- package/build/model/relation-request.d.ts +0 -51
- package/build/model/relation-request.js +0 -13
- package/build/model/relation-small-object.bo.d.ts +0 -28
- package/build/model/relation-small-object.bo.js +0 -99
- package/build/model/relation.bo.d.ts +0 -119
- package/build/model/relation.bo.js +0 -495
- package/build/model/sales-person.bo.d.ts +0 -7
- package/build/model/sales-person.bo.js +0 -43
- package/build/model/selection.d.ts +0 -45
- package/build/model/selection.js +0 -155
- package/build/model/service-provider.bo.d.ts +0 -20
- package/build/model/service-provider.bo.js +0 -105
- package/build/model/skip-button-info.d.ts +0 -6
- package/build/model/skip-button-info.js +0 -37
- package/build/model/sla-product.bo.d.ts +0 -20
- package/build/model/sla-product.bo.js +0 -56
- package/build/model/super-article-image.d.ts +0 -7
- package/build/model/super-article-image.js +0 -25
- package/build/model/super-article.d.ts +0 -21
- package/build/model/super-article.js +0 -86
- package/build/model/supplier-full-object.bo.d.ts +0 -64
- package/build/model/supplier-full-object.bo.js +0 -200
- package/build/model/tag-stock-item.bo.d.ts +0 -24
- package/build/model/tag-stock-item.bo.js +0 -36
- package/build/model/tag-tree-item.bo.d.ts +0 -18
- package/build/model/tag-tree-item.bo.js +0 -58
- package/build/model/tag.d.ts +0 -11
- package/build/model/tag.js +0 -55
- package/build/model/validation-message.d.ts +0 -15
- package/build/model/validation-message.js +0 -46
- package/build/model/validation-result.d.ts +0 -33
- package/build/model/validation-result.js +0 -199
- package/build/service/business-object-serializer.service.d.ts +0 -10
- package/build/service/business-object-serializer.service.js +0 -143
- package/build/type/business-object-id-type.d.ts +0 -4
- package/build/type/business-object-id-type.js +0 -10
- package/build/utils/array-utils.d.ts +0 -13
- package/build/utils/array-utils.js +0 -137
- package/build/utils/bo-factory-step.utils.d.ts +0 -4
- package/build/utils/bo-factory-step.utils.js +0 -15
- package/build/utils/bo-serializer-step.utils.d.ts +0 -4
- package/build/utils/bo-serializer-step.utils.js +0 -15
- package/build/utils/business-object-utils.d.ts +0 -10
- package/build/utils/business-object-utils.js +0 -80
- package/build/utils/date-utils.d.ts +0 -5
- package/build/utils/date-utils.js +0 -24
- package/build/utils/default-send-value.utils.d.ts +0 -6
- package/build/utils/default-send-value.utils.js +0 -51
- package/build/utils/file-utils.d.ts +0 -6
- package/build/utils/file-utils.js +0 -66
- package/build/utils/function/is-nill.function.d.ts +0 -1
- package/build/utils/function/is-nill.function.js +0 -3
- package/build/utils/function/not-nill.function.d.ts +0 -1
- package/build/utils/function/not-nill.function.js +0 -3
- package/build/utils/function-utils.d.ts +0 -4
- package/build/utils/function-utils.js +0 -32
- package/build/utils/image-utils.d.ts +0 -4
- package/build/utils/image-utils.js +0 -28
- package/build/utils/number-utils.d.ts +0 -19
- package/build/utils/number-utils.js +0 -161
- package/build/utils/object-utils.d.ts +0 -18
- package/build/utils/object-utils.js +0 -225
- package/build/utils/parameter-value-conversion-utils.d.ts +0 -3
- package/build/utils/parameter-value-conversion-utils.js +0 -19
- package/build/utils/promise-utils.d.ts +0 -6
- package/build/utils/promise-utils.js +0 -66
- package/build/utils/ref-code-utils.d.ts +0 -4
- package/build/utils/ref-code-utils.js +0 -23
- package/build/utils/simple-method-tag.utils.d.ts +0 -5
- package/build/utils/simple-method-tag.utils.js +0 -29
- package/build/utils/sort-utils.d.ts +0 -12
- package/build/utils/sort-utils.js +0 -128
- package/build/utils/string-utils.d.ts +0 -9
- package/build/utils/string-utils.js +0 -69
- package/build/utils/url-utils.d.ts +0 -4
- package/build/utils/url-utils.js +0 -32
|
@@ -1,495 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
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;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
20
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
21
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
|
-
};
|
|
23
|
-
import { BusinessObject } from './business-object';
|
|
24
|
-
import { DateField } from '../factory/decorators/date-field.decorator';
|
|
25
|
-
import { BooleanText } from '../factory/decorators/boolean.decorator';
|
|
26
|
-
import { ComplexArray } from '../factory/decorators/complex-array.decorator';
|
|
27
|
-
import { Address } from './address.bo';
|
|
28
|
-
import { NoDbField } from '../factory/decorators/no-db-field.decorator';
|
|
29
|
-
import { DbFieldAlias } from '../factory/decorators/db-field-alias.decorator';
|
|
30
|
-
import { ContactOption } from './contact-option.bo';
|
|
31
|
-
import { CommunicationType } from '../enum/communication-type.enum';
|
|
32
|
-
import { ArrayUtils } from '../utils/array-utils';
|
|
33
|
-
import { AddressType } from '../enum/address-type.enum';
|
|
34
|
-
import { BusinessObjectUtils } from '../utils/business-object-utils';
|
|
35
|
-
import { RelationEmployeeFte } from './relation-employee-fte.bo';
|
|
36
|
-
import { VatType } from '../enum/vat-type.enum';
|
|
37
|
-
import { RelationContactLink } from './relation-contact-link.bo';
|
|
38
|
-
var Relation = (function (_super) {
|
|
39
|
-
__extends(Relation, _super);
|
|
40
|
-
function Relation() {
|
|
41
|
-
var _this = _super.call(this) || this;
|
|
42
|
-
_this.addresses = [];
|
|
43
|
-
_this.relationEmployeeFtes = [];
|
|
44
|
-
_this.vatType = VatType.Sale;
|
|
45
|
-
_this.avatarImageContentsLoaded = false;
|
|
46
|
-
_this.allDocumentContentsLoaded = false;
|
|
47
|
-
_this._contactOptions = [];
|
|
48
|
-
_this._contactOptionsSequenceLimits = new Map([
|
|
49
|
-
[CommunicationType.Email, { highest: new ContactOption(), lowest: new ContactOption() }]
|
|
50
|
-
]);
|
|
51
|
-
return _this;
|
|
52
|
-
}
|
|
53
|
-
Object.defineProperty(Relation.prototype, "contactOptions", {
|
|
54
|
-
get: function () {
|
|
55
|
-
return this._contactOptions;
|
|
56
|
-
},
|
|
57
|
-
set: function (value) {
|
|
58
|
-
this._contactOptions = value;
|
|
59
|
-
this._syncContactOptionsSequenceLimits();
|
|
60
|
-
},
|
|
61
|
-
enumerable: true,
|
|
62
|
-
configurable: true
|
|
63
|
-
});
|
|
64
|
-
Object.defineProperty(Relation.prototype, "displayName", {
|
|
65
|
-
get: function () {
|
|
66
|
-
return BusinessObjectUtils.GetDisplayName(this.firstName, this.prefix, this.familyName);
|
|
67
|
-
},
|
|
68
|
-
enumerable: true,
|
|
69
|
-
configurable: true
|
|
70
|
-
});
|
|
71
|
-
Object.defineProperty(Relation.prototype, "displayInitials", {
|
|
72
|
-
get: function () {
|
|
73
|
-
return BusinessObjectUtils.GetDisplayInitials(this.firstName, this.familyName);
|
|
74
|
-
},
|
|
75
|
-
enumerable: true,
|
|
76
|
-
configurable: true
|
|
77
|
-
});
|
|
78
|
-
Object.defineProperty(Relation.prototype, "activeAddresses", {
|
|
79
|
-
get: function () {
|
|
80
|
-
return (this.addresses && this.addresses.length > 0) ? this.addresses.filter(function (a) { return a.isActive; }) : [];
|
|
81
|
-
},
|
|
82
|
-
enumerable: true,
|
|
83
|
-
configurable: true
|
|
84
|
-
});
|
|
85
|
-
Object.defineProperty(Relation.prototype, "displayFirstAddress", {
|
|
86
|
-
get: function () {
|
|
87
|
-
if (!this.addresses) {
|
|
88
|
-
return "";
|
|
89
|
-
}
|
|
90
|
-
var address = this.addresses.filter(function (a) { return a.isActive; })[0];
|
|
91
|
-
return address && address.displayAddress;
|
|
92
|
-
},
|
|
93
|
-
enumerable: true,
|
|
94
|
-
configurable: true
|
|
95
|
-
});
|
|
96
|
-
Object.defineProperty(Relation.prototype, "displayFirstOrganisation", {
|
|
97
|
-
get: function () {
|
|
98
|
-
return "";
|
|
99
|
-
},
|
|
100
|
-
enumerable: true,
|
|
101
|
-
configurable: true
|
|
102
|
-
});
|
|
103
|
-
Object.defineProperty(Relation.prototype, "displayFirstPostal", {
|
|
104
|
-
get: function () {
|
|
105
|
-
if (!this.addresses || this.addresses.length === 0) {
|
|
106
|
-
return "";
|
|
107
|
-
}
|
|
108
|
-
return this.addresses[0].displayPostal;
|
|
109
|
-
},
|
|
110
|
-
enumerable: true,
|
|
111
|
-
configurable: true
|
|
112
|
-
});
|
|
113
|
-
Object.defineProperty(Relation.prototype, "primaryPhoneNumber", {
|
|
114
|
-
get: function () {
|
|
115
|
-
return this._getLowestSequenceOfContactOptionsWithType(CommunicationType.Telephone);
|
|
116
|
-
},
|
|
117
|
-
enumerable: true,
|
|
118
|
-
configurable: true
|
|
119
|
-
});
|
|
120
|
-
Object.defineProperty(Relation.prototype, "primaryMobileNumber", {
|
|
121
|
-
get: function () {
|
|
122
|
-
return this._getLowestSequenceOfContactOptionsWithType(CommunicationType.Mobile);
|
|
123
|
-
},
|
|
124
|
-
enumerable: true,
|
|
125
|
-
configurable: true
|
|
126
|
-
});
|
|
127
|
-
Object.defineProperty(Relation.prototype, "primaryPhoneOrMobileNumber", {
|
|
128
|
-
get: function () {
|
|
129
|
-
var phone = this.primaryPhoneNumber;
|
|
130
|
-
if (phone) {
|
|
131
|
-
return phone;
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
return this.primaryMobileNumber;
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
enumerable: true,
|
|
138
|
-
configurable: true
|
|
139
|
-
});
|
|
140
|
-
Object.defineProperty(Relation.prototype, "primaryEmail", {
|
|
141
|
-
get: function () {
|
|
142
|
-
return this._getLowestSequenceOfContactOptionsWithType(CommunicationType.Email);
|
|
143
|
-
},
|
|
144
|
-
enumerable: true,
|
|
145
|
-
configurable: true
|
|
146
|
-
});
|
|
147
|
-
Object.defineProperty(Relation.prototype, "firstDeliveryAddress", {
|
|
148
|
-
get: function () {
|
|
149
|
-
return this._getFirstAddressOfType(AddressType.DeliveryAddress);
|
|
150
|
-
},
|
|
151
|
-
enumerable: true,
|
|
152
|
-
configurable: true
|
|
153
|
-
});
|
|
154
|
-
Object.defineProperty(Relation.prototype, "firstBillingAddress", {
|
|
155
|
-
get: function () {
|
|
156
|
-
return this._getFirstAddressOfType(AddressType.BillingAddress);
|
|
157
|
-
},
|
|
158
|
-
enumerable: true,
|
|
159
|
-
configurable: true
|
|
160
|
-
});
|
|
161
|
-
Object.defineProperty(Relation.prototype, "numberOfContactOptions", {
|
|
162
|
-
get: function () {
|
|
163
|
-
return this._contactOptions ? this._contactOptions.length : 0;
|
|
164
|
-
},
|
|
165
|
-
enumerable: true,
|
|
166
|
-
configurable: true
|
|
167
|
-
});
|
|
168
|
-
Object.defineProperty(Relation.prototype, "numberOfAddresses", {
|
|
169
|
-
get: function () {
|
|
170
|
-
return this.addresses ? this.addresses.length : 0;
|
|
171
|
-
},
|
|
172
|
-
enumerable: true,
|
|
173
|
-
configurable: true
|
|
174
|
-
});
|
|
175
|
-
Relation.prototype.getId = function () {
|
|
176
|
-
return this.relationId;
|
|
177
|
-
};
|
|
178
|
-
Relation.prototype.addContactOption = function (option) {
|
|
179
|
-
this._contactOptions.push(option);
|
|
180
|
-
this._syncContactOptionsSequenceLimitsByOption(option);
|
|
181
|
-
};
|
|
182
|
-
Relation.prototype.getNewContactOptionSequenceForType = function (type) {
|
|
183
|
-
var sequenceRange = this._contactOptionsSequenceLimits.get(type);
|
|
184
|
-
if (sequenceRange) {
|
|
185
|
-
return sequenceRange.highest.sequence !== null ? sequenceRange.highest.sequence + 1 : 0;
|
|
186
|
-
}
|
|
187
|
-
return 0;
|
|
188
|
-
};
|
|
189
|
-
Relation.prototype.getEmailContactOption = function () {
|
|
190
|
-
return ArrayUtils.Find(this.contactOptions, function (co) { return co.type === CommunicationType.Email; });
|
|
191
|
-
};
|
|
192
|
-
Relation.prototype.getEmailContactOptions = function () {
|
|
193
|
-
return ArrayUtils.FindAll(this.contactOptions, function (co) { return co.type === CommunicationType.Email; });
|
|
194
|
-
};
|
|
195
|
-
Relation.prototype.getPhoneOrMobileContactOptions = function () {
|
|
196
|
-
return ArrayUtils.FindAll(this.contactOptions, function (co) { return co.type === CommunicationType.Telephone || co.type === CommunicationType.Mobile; });
|
|
197
|
-
};
|
|
198
|
-
Relation.prototype.getPhoneContactOption = function () {
|
|
199
|
-
return ArrayUtils.Find(this.contactOptions, function (co) { return co.type === CommunicationType.Telephone; });
|
|
200
|
-
};
|
|
201
|
-
Relation.prototype.getFaxContactOptions = function () {
|
|
202
|
-
return ArrayUtils.FindAll(this.contactOptions, function (co) { return co.type === CommunicationType.Fax; });
|
|
203
|
-
};
|
|
204
|
-
Relation.prototype.getMobileContactOptions = function () {
|
|
205
|
-
return ArrayUtils.FindAll(this.contactOptions, function (co) { return co.type === CommunicationType.Mobile; });
|
|
206
|
-
};
|
|
207
|
-
Relation.prototype.getSearchAddress = function () {
|
|
208
|
-
return ArrayUtils.Find(this.addresses, function (ad) { return ad.searchAddress = true; });
|
|
209
|
-
};
|
|
210
|
-
Relation.prototype.increaseContactOptionSequence = function (option) {
|
|
211
|
-
this._setNewContactOptionSequence(option);
|
|
212
|
-
};
|
|
213
|
-
Relation.prototype.decreaseContactOptionSequence = function (option) {
|
|
214
|
-
this._setNewContactOptionSequence(option, false);
|
|
215
|
-
};
|
|
216
|
-
Relation.prototype.deactivateAddress = function (address) {
|
|
217
|
-
if (!address) {
|
|
218
|
-
return;
|
|
219
|
-
}
|
|
220
|
-
address.endDate = new Date();
|
|
221
|
-
};
|
|
222
|
-
Relation.prototype.getNextAddressSequence = function () {
|
|
223
|
-
var max = -1;
|
|
224
|
-
if (this.addresses) {
|
|
225
|
-
for (var i = 0, len = this.addresses.length; i < len; i++) {
|
|
226
|
-
var addr = this.addresses[i];
|
|
227
|
-
if (addr.sequence > max) {
|
|
228
|
-
max = addr.sequence;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
return max + 1;
|
|
233
|
-
};
|
|
234
|
-
Relation.prototype.getFirstAvailableAddress = function (order) {
|
|
235
|
-
if (order === void 0) { order = []; }
|
|
236
|
-
var len = order.length;
|
|
237
|
-
for (var i = 0; i < len; i++) {
|
|
238
|
-
var address = this._getFirstAddressOfType(order[i]);
|
|
239
|
-
if (address) {
|
|
240
|
-
return address;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
};
|
|
244
|
-
Relation.prototype.asRelationContactLink = function () {
|
|
245
|
-
var link = new RelationContactLink();
|
|
246
|
-
link.relationId = this.relationId;
|
|
247
|
-
link.relationNumber = this.relationNumber;
|
|
248
|
-
link.relationType = this.relationType;
|
|
249
|
-
link.firstName = this.firstName;
|
|
250
|
-
link.familyName = this.familyName;
|
|
251
|
-
link.initials = this.initials;
|
|
252
|
-
link.prefix = this.prefix;
|
|
253
|
-
link.mailAddress = this._getEmailAddress();
|
|
254
|
-
link.phoneNumber = this._getPhoneNumber();
|
|
255
|
-
link.addressDTO = this.addresses ? this.addresses[0] : undefined;
|
|
256
|
-
return link;
|
|
257
|
-
};
|
|
258
|
-
Relation.prototype.handleContactOptionsChange = function () {
|
|
259
|
-
this._syncContactOptionsSequenceLimits();
|
|
260
|
-
};
|
|
261
|
-
Relation.prototype.enforceUniqueSearchAddressAfterChange = function (newOrChangedAddr) {
|
|
262
|
-
if (this.addresses) {
|
|
263
|
-
var searchAddrFound_1 = newOrChangedAddr ? newOrChangedAddr.searchAddress : false;
|
|
264
|
-
this.addresses.forEach(function (addr) {
|
|
265
|
-
if (addr !== newOrChangedAddr && addr.searchAddress) {
|
|
266
|
-
if (searchAddrFound_1) {
|
|
267
|
-
addr.searchAddress = false;
|
|
268
|
-
}
|
|
269
|
-
else {
|
|
270
|
-
searchAddrFound_1 = true;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
};
|
|
276
|
-
Relation.prototype.getLowestSequenceOfContactOptionsWithType = function (type) {
|
|
277
|
-
if (this.contactOptions && this.contactOptions.length > 0) {
|
|
278
|
-
var sequenceLimits = this._contactOptionsSequenceLimits.get(type);
|
|
279
|
-
if (sequenceLimits) {
|
|
280
|
-
return sequenceLimits.lowest;
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
return undefined;
|
|
284
|
-
};
|
|
285
|
-
Relation.prototype.getFirstAddressOrCreateNew = function () {
|
|
286
|
-
var firstAddress = this._getFirstAddress();
|
|
287
|
-
if (firstAddress) {
|
|
288
|
-
return firstAddress;
|
|
289
|
-
}
|
|
290
|
-
else {
|
|
291
|
-
var address = new Address();
|
|
292
|
-
address.addressType = AddressType.DeliveryAddress;
|
|
293
|
-
address.startDate = new Date();
|
|
294
|
-
address.sequence = this.getNextAddressSequence();
|
|
295
|
-
this.addresses.push(address);
|
|
296
|
-
return address;
|
|
297
|
-
}
|
|
298
|
-
};
|
|
299
|
-
Relation.prototype._getFirstAddress = function () {
|
|
300
|
-
if (!this.addresses || !this.addresses.length) {
|
|
301
|
-
return;
|
|
302
|
-
}
|
|
303
|
-
return this.getFirstAvailableAddress([
|
|
304
|
-
AddressType.DeliveryAddress,
|
|
305
|
-
AddressType.BillingAddress,
|
|
306
|
-
AddressType.VisitingAddress,
|
|
307
|
-
AddressType.MailingAddress,
|
|
308
|
-
AddressType.NursingAddress
|
|
309
|
-
]);
|
|
310
|
-
};
|
|
311
|
-
Relation.prototype._setNewContactOptionSequence = function (option, up) {
|
|
312
|
-
if (up === void 0) { up = true; }
|
|
313
|
-
var index = this._contactOptions.indexOf(option);
|
|
314
|
-
var newSequence = up ? option.sequence + 1 : option.sequence - 1;
|
|
315
|
-
this._contactOptions[index].sequence = newSequence;
|
|
316
|
-
for (var _i = 0, _a = this._contactOptions; _i < _a.length; _i++) {
|
|
317
|
-
var contactOption = _a[_i];
|
|
318
|
-
if (contactOption.type === option.type) {
|
|
319
|
-
if (option !== contactOption && contactOption.sequence === newSequence) {
|
|
320
|
-
if (up) {
|
|
321
|
-
contactOption.sequence--;
|
|
322
|
-
}
|
|
323
|
-
else {
|
|
324
|
-
contactOption.sequence++;
|
|
325
|
-
}
|
|
326
|
-
this._syncContactOptionsSequenceLimitsByOption(contactOption);
|
|
327
|
-
break;
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
this._syncContactOptionsSequenceLimitsByOption(option);
|
|
332
|
-
};
|
|
333
|
-
Relation.prototype._syncContactOptionsSequenceLimits = function () {
|
|
334
|
-
var _this = this;
|
|
335
|
-
this._contactOptionsSequenceLimits.clear();
|
|
336
|
-
if (!this._contactOptions) {
|
|
337
|
-
return;
|
|
338
|
-
}
|
|
339
|
-
this._contactOptions.forEach(function (co) {
|
|
340
|
-
var sl = _this._contactOptionsSequenceLimits.get(co.type);
|
|
341
|
-
if (!sl) {
|
|
342
|
-
_this._contactOptionsSequenceLimits.set(co.type, { highest: co, lowest: co });
|
|
343
|
-
co.highestSequence = true;
|
|
344
|
-
co.lowestSequence = true;
|
|
345
|
-
}
|
|
346
|
-
else {
|
|
347
|
-
if (co.sequence > sl.highest.sequence) {
|
|
348
|
-
sl.highest = co;
|
|
349
|
-
_this._setContactOptionsHighestSequence(co);
|
|
350
|
-
}
|
|
351
|
-
if (co.sequence < sl.lowest.sequence) {
|
|
352
|
-
sl.lowest = co;
|
|
353
|
-
_this._setContactOptionsLowestSequence(co);
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
});
|
|
357
|
-
};
|
|
358
|
-
Relation.prototype._setContactOptionsHighestSequence = function (highest) {
|
|
359
|
-
highest.highestSequence = true;
|
|
360
|
-
this._contactOptions.forEach(function (co) {
|
|
361
|
-
if (co.type === highest.type && co !== highest) {
|
|
362
|
-
co.highestSequence = false;
|
|
363
|
-
}
|
|
364
|
-
});
|
|
365
|
-
};
|
|
366
|
-
Relation.prototype._setContactOptionsLowestSequence = function (lowest) {
|
|
367
|
-
lowest.lowestSequence = true;
|
|
368
|
-
this._contactOptions.forEach(function (co) {
|
|
369
|
-
if (co.type === lowest.type && co !== lowest) {
|
|
370
|
-
co.lowestSequence = false;
|
|
371
|
-
}
|
|
372
|
-
});
|
|
373
|
-
};
|
|
374
|
-
Relation.prototype._syncContactOptionsSequenceLimitsByOption = function (option) {
|
|
375
|
-
if (!option) {
|
|
376
|
-
return;
|
|
377
|
-
}
|
|
378
|
-
var sequenceRange = this._contactOptionsSequenceLimits.get(option.type);
|
|
379
|
-
if (!sequenceRange) {
|
|
380
|
-
this._contactOptionsSequenceLimits.set(option.type, { highest: option, lowest: option });
|
|
381
|
-
option.highestSequence = true;
|
|
382
|
-
option.lowestSequence = true;
|
|
383
|
-
}
|
|
384
|
-
else {
|
|
385
|
-
if (option.sequence >= sequenceRange.highest.sequence && option.comNr !== sequenceRange.highest.comNr) {
|
|
386
|
-
sequenceRange.highest = option;
|
|
387
|
-
this._setContactOptionsHighestSequence(option);
|
|
388
|
-
}
|
|
389
|
-
if (option.sequence <= sequenceRange.lowest.sequence && option.comNr !== sequenceRange.lowest.comNr) {
|
|
390
|
-
sequenceRange.lowest = option;
|
|
391
|
-
this._setContactOptionsLowestSequence(option);
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
};
|
|
395
|
-
Relation.prototype._getLowestSequenceOfContactOptionsWithType = function (type) {
|
|
396
|
-
if (this.contactOptions && this.contactOptions.length > 0) {
|
|
397
|
-
var sequenceLimits = this._contactOptionsSequenceLimits.get(type);
|
|
398
|
-
if (sequenceLimits) {
|
|
399
|
-
return sequenceLimits.lowest.value;
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
return "";
|
|
403
|
-
};
|
|
404
|
-
Relation.prototype._getFirstAddressOfType = function (type) {
|
|
405
|
-
if (this.addresses) {
|
|
406
|
-
var len = this.addresses.length;
|
|
407
|
-
for (var i = 0; i < len; i++) {
|
|
408
|
-
if (this.addresses[i].addressType === type) {
|
|
409
|
-
return this.addresses[i];
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
};
|
|
414
|
-
Relation.prototype._getEmailAddress = function () {
|
|
415
|
-
var emailContactOption = this.getEmailContactOption();
|
|
416
|
-
if (emailContactOption) {
|
|
417
|
-
return emailContactOption.value;
|
|
418
|
-
}
|
|
419
|
-
};
|
|
420
|
-
Relation.prototype._getPhoneNumber = function () {
|
|
421
|
-
var phoneContactOption = this.getPhoneContactOption();
|
|
422
|
-
if (phoneContactOption) {
|
|
423
|
-
return phoneContactOption.value;
|
|
424
|
-
}
|
|
425
|
-
};
|
|
426
|
-
__decorate([
|
|
427
|
-
DateField(),
|
|
428
|
-
__metadata("design:type", Date)
|
|
429
|
-
], Relation.prototype, "startDate", void 0);
|
|
430
|
-
__decorate([
|
|
431
|
-
DateField(),
|
|
432
|
-
__metadata("design:type", Date)
|
|
433
|
-
], Relation.prototype, "endDate", void 0);
|
|
434
|
-
__decorate([
|
|
435
|
-
BooleanText(),
|
|
436
|
-
__metadata("design:type", Boolean)
|
|
437
|
-
], Relation.prototype, "active", void 0);
|
|
438
|
-
__decorate([
|
|
439
|
-
BooleanText(),
|
|
440
|
-
__metadata("design:type", Boolean)
|
|
441
|
-
], Relation.prototype, "block", void 0);
|
|
442
|
-
__decorate([
|
|
443
|
-
DateField(),
|
|
444
|
-
__metadata("design:type", Date)
|
|
445
|
-
], Relation.prototype, "workPermitStartDate", void 0);
|
|
446
|
-
__decorate([
|
|
447
|
-
DateField(),
|
|
448
|
-
__metadata("design:type", Date)
|
|
449
|
-
], Relation.prototype, "workPermitEndDate", void 0);
|
|
450
|
-
__decorate([
|
|
451
|
-
ComplexArray(Address),
|
|
452
|
-
__metadata("design:type", Array)
|
|
453
|
-
], Relation.prototype, "addresses", void 0);
|
|
454
|
-
__decorate([
|
|
455
|
-
ComplexArray(ContactOption),
|
|
456
|
-
__metadata("design:type", Array),
|
|
457
|
-
__metadata("design:paramtypes", [Array])
|
|
458
|
-
], Relation.prototype, "contactOptions", null);
|
|
459
|
-
__decorate([
|
|
460
|
-
ComplexArray(RelationEmployeeFte),
|
|
461
|
-
__metadata("design:type", Array)
|
|
462
|
-
], Relation.prototype, "relationEmployeeFtes", void 0);
|
|
463
|
-
__decorate([
|
|
464
|
-
NoDbField(),
|
|
465
|
-
__metadata("design:type", Number)
|
|
466
|
-
], Relation.prototype, "amountOutstanding", void 0);
|
|
467
|
-
__decorate([
|
|
468
|
-
NoDbField(),
|
|
469
|
-
__metadata("design:type", String)
|
|
470
|
-
], Relation.prototype, "vatType", void 0);
|
|
471
|
-
__decorate([
|
|
472
|
-
NoDbField(),
|
|
473
|
-
__metadata("design:type", String),
|
|
474
|
-
__metadata("design:paramtypes", [])
|
|
475
|
-
], Relation.prototype, "displayName", null);
|
|
476
|
-
__decorate([
|
|
477
|
-
NoDbField(),
|
|
478
|
-
__metadata("design:type", Boolean)
|
|
479
|
-
], Relation.prototype, "avatarImageContentsLoaded", void 0);
|
|
480
|
-
__decorate([
|
|
481
|
-
NoDbField(),
|
|
482
|
-
__metadata("design:type", Boolean)
|
|
483
|
-
], Relation.prototype, "allDocumentContentsLoaded", void 0);
|
|
484
|
-
__decorate([
|
|
485
|
-
DbFieldAlias("contactOptions"),
|
|
486
|
-
ComplexArray(ContactOption),
|
|
487
|
-
__metadata("design:type", Array)
|
|
488
|
-
], Relation.prototype, "_contactOptions", void 0);
|
|
489
|
-
__decorate([
|
|
490
|
-
NoDbField(),
|
|
491
|
-
__metadata("design:type", Map)
|
|
492
|
-
], Relation.prototype, "_contactOptionsSequenceLimits", void 0);
|
|
493
|
-
return Relation;
|
|
494
|
-
}(BusinessObject));
|
|
495
|
-
export { Relation };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
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;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
20
|
-
import { BusinessObjectData } from '../factory/decorators/business-object-data.decorator';
|
|
21
|
-
import { DataMapping } from '../enum/data-mapping.enum';
|
|
22
|
-
import { BusinessObject } from './business-object';
|
|
23
|
-
var SalesPerson = (function (_super) {
|
|
24
|
-
__extends(SalesPerson, _super);
|
|
25
|
-
function SalesPerson() {
|
|
26
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
27
|
-
}
|
|
28
|
-
SalesPerson.prototype.getId = function () {
|
|
29
|
-
return (this.relationId);
|
|
30
|
-
};
|
|
31
|
-
SalesPerson = __decorate([
|
|
32
|
-
BusinessObjectData({
|
|
33
|
-
mapping: DataMapping.Simplebasedata,
|
|
34
|
-
name: "SalesPerson",
|
|
35
|
-
label: "SALES_PERSON",
|
|
36
|
-
labelPlural: "SALES_PERSONS",
|
|
37
|
-
codeField: "employeeNo",
|
|
38
|
-
descriptionField: "name"
|
|
39
|
-
})
|
|
40
|
-
], SalesPerson);
|
|
41
|
-
return SalesPerson;
|
|
42
|
-
}(BusinessObject));
|
|
43
|
-
export { SalesPerson };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { BusinessObject } from "./business-object";
|
|
2
|
-
import { DecoNode } from "./deco-node";
|
|
3
|
-
import { NodeType } from "../enum/node-type.enum";
|
|
4
|
-
export declare class Selection extends BusinessObject {
|
|
5
|
-
nodeId: number;
|
|
6
|
-
colors: any[];
|
|
7
|
-
tags: any[];
|
|
8
|
-
decoConnection: string;
|
|
9
|
-
answer: string;
|
|
10
|
-
commercialAnswer: string;
|
|
11
|
-
generic: boolean;
|
|
12
|
-
artRetailGrossPrice: number;
|
|
13
|
-
node: any;
|
|
14
|
-
decoId: number;
|
|
15
|
-
nodeType: NodeType;
|
|
16
|
-
orderAmount: number;
|
|
17
|
-
question: string;
|
|
18
|
-
commercialQuestion: string;
|
|
19
|
-
id: number;
|
|
20
|
-
presentationLevel: number;
|
|
21
|
-
artRetailPrice: number;
|
|
22
|
-
artRecommendedPrice: number;
|
|
23
|
-
required: boolean;
|
|
24
|
-
grouped: boolean;
|
|
25
|
-
questionPublicationCode: any;
|
|
26
|
-
answerPublicationCode: any;
|
|
27
|
-
hierarchicalPublicationCode: any;
|
|
28
|
-
artNodeIdDeco: string;
|
|
29
|
-
parentArtNodeIdDeco: string;
|
|
30
|
-
optCycle: number;
|
|
31
|
-
optCycleDeco: number;
|
|
32
|
-
userInput: boolean;
|
|
33
|
-
userInputValue: string;
|
|
34
|
-
imageData: string;
|
|
35
|
-
instanceId: string;
|
|
36
|
-
decoNode: DecoNode;
|
|
37
|
-
variation: DecoNode;
|
|
38
|
-
addables: Selection[];
|
|
39
|
-
imageDataLastAnswer: string;
|
|
40
|
-
lastAnswerNodeId: number;
|
|
41
|
-
lastAnswer: string;
|
|
42
|
-
answerTree: string;
|
|
43
|
-
get answerTreeAsArray(): any;
|
|
44
|
-
constructor(rawData?: any);
|
|
45
|
-
}
|