@colijnit/ioneconnector 261.1.3 → 261.1.5
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/connector.d.ts +33 -31
- package/build/connector.js +79 -73
- package/build/connector.js.map +1 -1
- package/build/connector.unit.test.d.ts +1 -1
- package/build/connector.unit.test.js +108 -108
- package/build/enum/activate-user-account-status.enum.d.ts +6 -6
- package/build/enum/activate-user-account-status.enum.js +10 -10
- package/build/enum/activate-user-account-status.enum.js.map +1 -1
- package/build/enum/address-format.enum.d.ts +4 -4
- package/build/enum/address-format.enum.js +8 -8
- package/build/enum/address-format.enum.js.map +1 -1
- package/build/enum/backend-language-code.enum.d.ts +6 -6
- package/build/enum/backend-language-code.enum.js +10 -10
- package/build/enum/backend-language-code.enum.js.map +1 -1
- package/build/enum/backend-service-name.enum.d.ts +7 -7
- package/build/enum/backend-service-name.enum.js +11 -11
- package/build/enum/backend-service-name.enum.js.map +1 -1
- package/build/enum/communication-type.enum.d.ts +8 -8
- package/build/enum/communication-type.enum.js +12 -12
- package/build/enum/communication-type.enum.js.map +1 -1
- package/build/enum/datasession-service-method.enum.d.ts +13 -13
- package/build/enum/datasession-service-method.enum.js +17 -17
- package/build/enum/datasession-service-method.enum.js.map +1 -1
- package/build/enum/db-boolean-value-type.enum.d.ts +12 -12
- package/build/enum/db-boolean-value-type.enum.js +32 -32
- package/build/enum/db-boolean-value-type.enum.js.map +1 -1
- package/build/enum/end-point.enum.d.ts +4 -4
- package/build/enum/end-point.enum.js +8 -8
- package/build/enum/end-point.enum.js.map +1 -1
- package/build/enum/external-method.enum.d.ts +22 -22
- package/build/enum/external-method.enum.js +26 -26
- package/build/enum/external-method.enum.js.map +1 -1
- package/build/enum/file-type-internal.enum.d.ts +11 -11
- package/build/enum/file-type-internal.enum.js +15 -15
- package/build/enum/file-type-internal.enum.js.map +1 -1
- package/build/enum/file-type.enum.d.ts +5 -5
- package/build/enum/file-type.enum.js +9 -9
- package/build/enum/file-type.enum.js.map +1 -1
- package/build/enum/filter-type.enum.d.ts +4 -4
- package/build/enum/filter-type.enum.js +8 -8
- package/build/enum/filter-type.enum.js.map +1 -1
- package/build/enum/health-service-method.enum.d.ts +3 -3
- package/build/enum/health-service-method.enum.js +7 -7
- package/build/enum/health-service-method.enum.js.map +1 -1
- package/build/enum/language-code.enum.d.ts +7 -7
- package/build/enum/language-code.enum.js +11 -11
- package/build/enum/language-code.enum.js.map +1 -1
- package/build/enum/login-service-method.enum.d.ts +25 -25
- package/build/enum/login-service-method.enum.js +29 -29
- package/build/enum/login-service-method.enum.js.map +1 -1
- package/build/enum/login-status.enum.d.ts +20 -20
- package/build/enum/login-status.enum.js +24 -24
- package/build/enum/login-status.enum.js.map +1 -1
- package/build/enum/message-type.enum.d.ts +6 -6
- package/build/enum/message-type.enum.js +10 -10
- package/build/enum/message-type.enum.js.map +1 -1
- package/build/enum/object-config-kind.d.ts +9 -9
- package/build/enum/object-config-kind.js +13 -13
- package/build/enum/object-config-kind.js.map +1 -1
- package/build/enum/object-configuration-data-type.enum.d.ts +7 -7
- package/build/enum/object-configuration-data-type.enum.js +11 -11
- package/build/enum/object-configuration-data-type.enum.js.map +1 -1
- package/build/enum/object-configuration-value-type.enum.d.ts +10 -10
- package/build/enum/object-configuration-value-type.enum.js +14 -14
- package/build/enum/object-configuration-value-type.enum.js.map +1 -1
- package/build/enum/object-right-type.enum.d.ts +5 -5
- package/build/enum/object-right-type.enum.js +9 -9
- package/build/enum/object-right-type.enum.js.map +1 -1
- package/build/enum/one-zero-bool-db-type.enum.d.ts +5 -5
- package/build/enum/one-zero-bool-db-type.enum.js +20 -20
- package/build/enum/one-zero-bool-db-type.enum.js.map +1 -1
- package/build/enum/public-service-method.enum.d.ts +5 -5
- package/build/enum/public-service-method.enum.js +9 -9
- package/build/enum/public-service-method.enum.js.map +1 -1
- package/build/enum/reset-password-status.enum.d.ts +5 -5
- package/build/enum/reset-password-status.enum.js +9 -9
- package/build/enum/reset-password-status.enum.js.map +1 -1
- package/build/enum/screen-config-subcategory.enum.d.ts +2 -2
- package/build/enum/screen-config-subcategory.enum.js +2 -2
- package/build/enum/search-data-type.enum.d.ts +4 -4
- package/build/enum/search-data-type.enum.js +8 -8
- package/build/enum/search-data-type.enum.js.map +1 -1
- package/build/enum/search-property-state.enum.d.ts +5 -5
- package/build/enum/search-property-state.enum.js +9 -9
- package/build/enum/search-property-state.enum.js.map +1 -1
- package/build/enum/sort-direction.d.ts +5 -5
- package/build/enum/sort-direction.js +12 -12
- package/build/enum/sort-direction.js.map +1 -1
- package/build/enum/sort-type.enum.d.ts +6 -6
- package/build/enum/sort-type.enum.js +10 -10
- package/build/enum/sort-type.enum.js.map +1 -1
- package/build/enum/true-false-db-type.enum.d.ts +5 -5
- package/build/enum/true-false-db-type.enum.js +20 -20
- package/build/enum/true-false-db-type.enum.js.map +1 -1
- package/build/enum/user-info-service-method.enum.d.ts +3 -3
- package/build/enum/user-info-service-method.enum.js +7 -7
- package/build/enum/user-info-service-method.enum.js.map +1 -1
- package/build/enum/user-right-type.enum.d.ts +7 -7
- package/build/enum/user-right-type.enum.js +11 -11
- package/build/enum/user-right-type.enum.js.map +1 -1
- package/build/enum/user-role-type.enum.d.ts +17 -17
- package/build/enum/user-role-type.enum.js +21 -21
- package/build/enum/user-role-type.enum.js.map +1 -1
- package/build/enum/value-comparison-type.enum.d.ts +15 -15
- package/build/enum/value-comparison-type.enum.js +31 -31
- package/build/enum/value-comparison-type.enum.js.map +1 -1
- package/build/enum/yes-no-db-type.enum.d.ts +5 -5
- package/build/enum/yes-no-db-type.enum.js +20 -20
- package/build/enum/yes-no-db-type.enum.js.map +1 -1
- package/build/factory/business-object-serializer.d.ts +11 -11
- package/build/factory/business-object-serializer.js +145 -145
- package/build/factory/business-object-serializer.js.map +1 -1
- package/build/factory/decorators/bo-factory-step.decorator.d.ts +4 -4
- package/build/factory/decorators/bo-factory-step.decorator.js +16 -16
- package/build/factory/decorators/bo-factory-step.decorator.js.map +1 -1
- package/build/factory/decorators/bo-serializer-step.decorator.d.ts +4 -4
- package/build/factory/decorators/bo-serializer-step.decorator.js +16 -16
- package/build/factory/decorators/bo-serializer-step.decorator.js.map +1 -1
- package/build/factory/decorators/boolean.decorator.d.ts +12 -12
- package/build/factory/decorators/boolean.decorator.js +73 -73
- package/build/factory/decorators/boolean.decorator.js.map +1 -1
- package/build/factory/decorators/business-object-data.decorator.d.ts +23 -23
- package/build/factory/decorators/business-object-data.decorator.js +87 -87
- package/build/factory/decorators/business-object-data.decorator.js.map +1 -1
- package/build/factory/decorators/co-inject.decorator.d.ts +7 -7
- package/build/factory/decorators/co-inject.decorator.js +54 -54
- package/build/factory/decorators/co-inject.decorator.js.map +1 -1
- package/build/factory/decorators/complex-array.decorator.d.ts +6 -6
- package/build/factory/decorators/complex-array.decorator.js +37 -37
- package/build/factory/decorators/complex-array.decorator.js.map +1 -1
- package/build/factory/decorators/complex-field.decorator.d.ts +6 -6
- package/build/factory/decorators/complex-field.decorator.js +37 -37
- package/build/factory/decorators/complex-field.decorator.js.map +1 -1
- package/build/factory/decorators/date-field.decorator.d.ts +6 -6
- package/build/factory/decorators/date-field.decorator.js +27 -27
- package/build/factory/decorators/date-field.decorator.js.map +1 -1
- package/build/factory/decorators/db-field-alias.decorator.d.ts +6 -6
- package/build/factory/decorators/db-field-alias.decorator.js +40 -40
- package/build/factory/decorators/db-field-alias.decorator.js.map +1 -1
- package/build/factory/decorators/db-method-value.decorator.d.ts +5 -5
- package/build/factory/decorators/db-method-value.decorator.js +19 -19
- package/build/factory/decorators/db-method-value.decorator.js.map +1 -1
- package/build/factory/decorators/db-number.decorator.d.ts +6 -6
- package/build/factory/decorators/db-number.decorator.js +35 -35
- package/build/factory/decorators/db-number.decorator.js.map +1 -1
- package/build/factory/decorators/default-send-value.decorator.d.ts +7 -7
- package/build/factory/decorators/default-send-value.decorator.js +53 -53
- package/build/factory/decorators/default-send-value.decorator.js.map +1 -1
- package/build/factory/decorators/exclude-when-empty-string.decorator.d.ts +5 -5
- package/build/factory/decorators/exclude-when-empty-string.decorator.js +19 -19
- package/build/factory/decorators/exclude-when-empty-string.decorator.js.map +1 -1
- package/build/factory/decorators/json.decorator.d.ts +6 -6
- package/build/factory/decorators/json.decorator.js +26 -26
- package/build/factory/decorators/json.decorator.js.map +1 -1
- package/build/factory/decorators/map-property.decorator.d.ts +6 -6
- package/build/factory/decorators/map-property.decorator.js +29 -29
- package/build/factory/decorators/map-property.decorator.js.map +1 -1
- package/build/factory/decorators/no-db-field.decorator.d.ts +5 -5
- package/build/factory/decorators/no-db-field.decorator.js +34 -34
- package/build/factory/decorators/no-db-field.decorator.js.map +1 -1
- package/build/factory/decorators/number-string.decorator.d.ts +6 -6
- package/build/factory/decorators/number-string.decorator.js +23 -23
- package/build/factory/decorators/number-string.decorator.js.map +1 -1
- package/build/factory/decorators/simple-method-tag.decorator.d.ts +6 -6
- package/build/factory/decorators/simple-method-tag.decorator.js +31 -31
- package/build/factory/decorators/simple-method-tag.decorator.js.map +1 -1
- package/build/factory/decorators/simple-property-tag.decorator.d.ts +6 -6
- package/build/factory/decorators/simple-property-tag.decorator.js +38 -38
- package/build/factory/decorators/simple-property-tag.decorator.js.map +1 -1
- package/build/factory/decorators/string-number.decorator.d.ts +7 -7
- package/build/factory/decorators/string-number.decorator.js +30 -30
- package/build/factory/decorators/string-number.decorator.js.map +1 -1
- package/build/factory/decorators/validate.decorator.d.ts +11 -11
- package/build/factory/decorators/validate.decorator.js +55 -55
- package/build/factory/decorators/validate.decorator.js.map +1 -1
- package/build/interface/address-common-shape.interface.d.ts +14 -14
- package/build/interface/address-common-shape.interface.js +2 -2
- package/build/interface/authorized-axios-request-config.interface.d.ts +5 -0
- package/build/interface/authorized-axios-request-config.interface.js +3 -0
- package/build/interface/authorized-axios-request-config.interface.js.map +1 -0
- package/build/interface/business-object-data-shape.d.ts +19 -19
- package/build/interface/business-object-data-shape.js +2 -2
- package/build/interface/check-precision-and-scale-result.d.ts +4 -4
- package/build/interface/check-precision-and-scale-result.js +2 -2
- package/build/interface/check-within-stepped-bounds-result.d.ts +4 -4
- package/build/interface/check-within-stepped-bounds-result.js +2 -2
- package/build/interface/filter-property.d.ts +9 -9
- package/build/interface/filter-property.js +2 -2
- package/build/interface/login-storage-data.interface.d.ts +12 -12
- package/build/interface/login-storage-data.interface.js +2 -2
- package/build/interface/precision-scale-object.d.ts +4 -4
- package/build/interface/precision-scale-object.js +2 -2
- package/build/interface/search-property.d.ts +11 -11
- package/build/interface/search-property.js +2 -2
- package/build/interface/sort-property.d.ts +11 -11
- package/build/interface/sort-property.js +2 -2
- package/build/interface/text-part.d.ts +4 -4
- package/build/interface/text-part.js +2 -2
- package/build/interface/value-comparison-type-view-wrapper.d.ts +6 -6
- package/build/interface/value-comparison-type-view-wrapper.js +2 -2
- package/build/model/business-object.d.ts +13 -13
- package/build/model/business-object.js +34 -34
- package/build/model/company.bo.d.ts +9 -9
- package/build/model/company.bo.js +13 -13
- package/build/model/constant/java-constants.d.ts +2 -2
- package/build/model/constant/java-constants.js +5 -5
- package/build/model/country.bo.d.ts +11 -11
- package/build/model/country.bo.js +11 -11
- package/build/model/data-service-data.d.ts +15 -15
- package/build/model/data-service-data.js +6 -6
- package/build/model/data-service-response-data.d.ts +19 -19
- package/build/model/data-service-response-data.interface.d.ts +9 -9
- package/build/model/data-service-response-data.interface.js +2 -2
- package/build/model/data-service-response-data.js +57 -57
- package/build/model/data-service-response-data.js.map +1 -1
- package/build/model/data-service-response-exception.d.ts +29 -29
- package/build/model/data-service-response-exception.js +2 -2
- package/build/model/data-service-response-root.d.ts +7 -7
- package/build/model/data-service-response-root.js +2 -2
- package/build/model/default-all-scr-cfg-subcategory.d.ts +2 -2
- package/build/model/default-all-scr-cfg-subcategory.js +4 -4
- package/build/model/default-get-object-configurations-params.d.ts +2 -2
- package/build/model/default-get-object-configurations-params.js +5 -5
- package/build/model/field-validation.d.ts +11 -11
- package/build/model/field-validation.interface.d.ts +6 -6
- package/build/model/field-validation.interface.js +2 -2
- package/build/model/field-validation.js +76 -76
- package/build/model/field-validation.js.map +1 -1
- package/build/model/field-validations-object.d.ts +4 -4
- package/build/model/field-validations-object.interface.d.ts +4 -4
- package/build/model/field-validations-object.interface.js +2 -2
- package/build/model/field-validations-object.js +2 -2
- package/build/model/ione-local-storage-root-object.d.ts +5 -5
- package/build/model/ione-local-storage-root-object.js +9 -9
- package/build/model/keycloak-parameters.bo.d.ts +5 -5
- package/build/model/keycloak-parameters.bo.js +7 -7
- package/build/model/local-storage-root-object.d.ts +4 -4
- package/build/model/local-storage-root-object.js +9 -9
- package/build/model/local-storage-schema-object.d.ts +6 -6
- package/build/model/local-storage-schema-object.js +9 -9
- package/build/model/local-storage-user-object.d.ts +12 -11
- package/build/model/local-storage-user-object.js +9 -9
- package/build/model/local-storage-user-object.js.map +1 -1
- package/build/model/login-request.d.ts +17 -16
- package/build/model/login-request.interface.d.ts +12 -12
- package/build/model/login-request.interface.js +2 -2
- package/build/model/login-request.js +6 -6
- package/build/model/login-request.js.map +1 -1
- package/build/model/login-response.d.ts +36 -36
- package/build/model/login-response.interface.d.ts +22 -22
- package/build/model/login-response.interface.js +2 -2
- package/build/model/login-response.js +57 -57
- package/build/model/login-response.js.map +1 -1
- package/build/model/login-service-request-data.d.ts +17 -17
- package/build/model/login-service-request-data.js +2 -2
- package/build/model/login.d.ts +16 -16
- package/build/model/login.js +35 -35
- package/build/model/menu-content.bo.d.ts +13 -13
- package/build/model/menu-content.bo.js +13 -13
- package/build/model/object-configuration.d.ts +53 -53
- package/build/model/object-configuration.js +200 -200
- package/build/model/object-configuration.js.map +1 -1
- package/build/model/options.d.ts +29 -29
- package/build/model/options.js +16 -16
- package/build/model/paging-parameters.d.ts +15 -15
- package/build/model/paging-parameters.interface.d.ts +6 -6
- package/build/model/paging-parameters.interface.js +6 -6
- package/build/model/paging-parameters.js +37 -37
- package/build/model/paging-parameters.js.map +1 -1
- package/build/model/public-service-request-data.d.ts +5 -5
- package/build/model/public-service-request-data.js +2 -2
- package/build/model/server-response-data.d.ts +5 -5
- package/build/model/server-response-data.js +2 -2
- package/build/model/server-stack-trace-element.d.ts +7 -7
- package/build/model/server-stack-trace-element.js +2 -2
- package/build/model/session.d.ts +6 -6
- package/build/model/session.js +6 -6
- package/build/model/token-response.bo.d.ts +5 -5
- package/build/model/token-response.bo.js +7 -7
- package/build/model/user-parameters-values.bo.d.ts +8 -8
- package/build/model/user-parameters-values.bo.js +7 -7
- package/build/model/validation-message.d.ts +13 -13
- package/build/model/validation-message.interface.d.ts +6 -6
- package/build/model/validation-message.interface.js +2 -2
- package/build/model/validation-message.js +48 -48
- package/build/model/validation-message.js.map +1 -1
- package/build/model/validation-result.d.ts +34 -34
- package/build/model/validation-result.interface.d.ts +14 -14
- package/build/model/validation-result.interface.js +2 -2
- package/build/model/validation-result.js +192 -192
- package/build/model/validation-result.js.map +1 -1
- package/build/provider/ajax.service.d.ts +44 -36
- package/build/provider/ajax.service.js +435 -375
- package/build/provider/ajax.service.js.map +1 -1
- package/build/provider/base-backend-connection.service.d.ts +47 -47
- package/build/provider/base-backend-connection.service.js +186 -188
- package/build/provider/base-backend-connection.service.js.map +1 -1
- package/build/service/business-object-factory.d.ts +13 -13
- package/build/service/business-object-factory.js +235 -235
- package/build/service/business-object-factory.js.map +1 -1
- package/build/service/datasession.service.d.ts +9 -9
- package/build/service/datasession.service.js +26 -26
- package/build/service/datasession.service.js.map +1 -1
- package/build/service/encrypt.service.d.ts +6 -6
- package/build/service/encrypt.service.js +30 -30
- package/build/service/encrypt.service.js.map +1 -1
- package/build/service/encrypt.service.unit.test.d.ts +1 -1
- package/build/service/encrypt.service.unit.test.js +14 -14
- package/build/service/external-jwt-token.service.d.ts +8 -7
- package/build/service/external-jwt-token.service.js +21 -17
- package/build/service/external-jwt-token.service.js.map +1 -1
- package/build/service/health.service.d.ts +10 -10
- package/build/service/health.service.js +36 -34
- package/build/service/health.service.js.map +1 -1
- package/build/service/internal-jwt-token.service.d.ts +11 -8
- package/build/service/internal-jwt-token.service.js +57 -40
- package/build/service/internal-jwt-token.service.js.map +1 -1
- package/build/service/jwt-token.service.d.ts +15 -12
- package/build/service/jwt-token.service.js +45 -32
- package/build/service/jwt-token.service.js.map +1 -1
- package/build/service/local-storage.service.d.ts +39 -37
- package/build/service/local-storage.service.js +261 -248
- package/build/service/local-storage.service.js.map +1 -1
- package/build/service/login.service.d.ts +50 -50
- package/build/service/login.service.js +311 -321
- package/build/service/login.service.js.map +1 -1
- package/build/service/public.service.d.ts +12 -12
- package/build/service/public.service.js +33 -36
- package/build/service/public.service.js.map +1 -1
- package/build/service/storage.service.d.ts +35 -33
- package/build/service/storage.service.js +100 -94
- package/build/service/storage.service.js.map +1 -1
- package/build/service/user-info.service.d.ts +9 -9
- package/build/service/user-info.service.js +34 -33
- package/build/service/user-info.service.js.map +1 -1
- package/build/tests/int/connector.int.test.d.ts +1 -1
- package/build/tests/int/connector.int.test.js +12 -12
- package/build/type/business-object-id-type.d.ts +4 -4
- package/build/type/business-object-id-type.js +13 -13
- package/build/type/business-object-id-type.js.map +1 -1
- package/build/type/object-configuration-default-value-type.d.ts +1 -1
- package/build/type/object-configuration-default-value-type.js +2 -2
- package/build/utils/array-utils.d.ts +38 -38
- package/build/utils/array-utils.js +375 -375
- package/build/utils/array-utils.js.map +1 -1
- package/build/utils/business-object-utils.d.ts +20 -20
- package/build/utils/business-object-utils.js +198 -198
- package/build/utils/business-object-utils.js.map +1 -1
- package/build/utils/date-utils.d.ts +5 -5
- package/build/utils/date-utils.js +24 -24
- package/build/utils/date-utils.js.map +1 -1
- package/build/utils/file-utils.d.ts +6 -6
- package/build/utils/file-utils.js +66 -66
- package/build/utils/file-utils.js.map +1 -1
- package/build/utils/function/any-nill.function.d.ts +1 -1
- package/build/utils/function/any-nill.function.js +15 -16
- package/build/utils/function/any-nill.function.js.map +1 -1
- package/build/utils/function/is-nill.function.d.ts +1 -1
- package/build/utils/function/is-nill.function.js +6 -7
- package/build/utils/function/is-nill.function.js.map +1 -1
- package/build/utils/function/not-nill.function.d.ts +1 -1
- package/build/utils/function/not-nill.function.js +6 -7
- package/build/utils/function/not-nill.function.js.map +1 -1
- package/build/utils/function-utils.d.ts +4 -4
- package/build/utils/function-utils.js +31 -31
- package/build/utils/function-utils.js.map +1 -1
- package/build/utils/image-utils.d.ts +4 -4
- package/build/utils/image-utils.js +28 -28
- package/build/utils/image-utils.js.map +1 -1
- package/build/utils/map-utils.d.ts +4 -4
- package/build/utils/map-utils.js +31 -31
- package/build/utils/map-utils.js.map +1 -1
- package/build/utils/number-utils.d.ts +39 -39
- package/build/utils/number-utils.js +268 -268
- package/build/utils/number-utils.js.map +1 -1
- package/build/utils/object-utils.d.ts +21 -21
- package/build/utils/object-utils.js +247 -247
- package/build/utils/object-utils.js.map +1 -1
- package/build/utils/parameter-value-conversion-utils.d.ts +3 -3
- package/build/utils/parameter-value-conversion-utils.js +19 -19
- package/build/utils/parameter-value-conversion-utils.js.map +1 -1
- package/build/utils/promise-utils.d.ts +6 -6
- package/build/utils/promise-utils.js +22 -22
- package/build/utils/promise-utils.js.map +1 -1
- package/build/utils/ref-code-utils.d.ts +4 -4
- package/build/utils/ref-code-utils.js +19 -19
- package/build/utils/ref-code-utils.js.map +1 -1
- package/build/utils/sort-utils.d.ts +12 -12
- package/build/utils/sort-utils.js +120 -120
- package/build/utils/sort-utils.js.map +1 -1
- package/build/utils/string-utils.d.ts +25 -25
- package/build/utils/string-utils.js +212 -212
- package/build/utils/string-utils.js.map +1 -1
- package/build/utils/url-utils.d.ts +4 -4
- package/build/utils/url-utils.js +33 -33
- package/build/utils/url-utils.js.map +1 -1
- package/build/validators/communication-type.validator.d.ts +1 -1
- package/build/validators/communication-type.validator.js +15 -16
- package/build/validators/communication-type.validator.js.map +1 -1
- package/build/validators/email.validator.d.ts +2 -2
- package/build/validators/email.validator.js +8 -9
- package/build/validators/email.validator.js.map +1 -1
- package/build/validators/empty-address.validator.d.ts +3 -3
- package/build/validators/empty-address.validator.js +11 -12
- package/build/validators/empty-address.validator.js.map +1 -1
- package/build/validators/empty-array.validator.d.ts +2 -2
- package/build/validators/empty-array.validator.js +13 -14
- package/build/validators/empty-array.validator.js.map +1 -1
- package/build/validators/end-date-equal.validator.d.ts +1 -1
- package/build/validators/end-date-equal.validator.js +16 -17
- package/build/validators/end-date-equal.validator.js.map +1 -1
- package/build/validators/end-date.validator.d.ts +1 -1
- package/build/validators/end-date.validator.js +16 -17
- package/build/validators/end-date.validator.js.map +1 -1
- package/build/validators/equal.validator.d.ts +2 -2
- package/build/validators/equal.validator.js +13 -14
- package/build/validators/equal.validator.js.map +1 -1
- package/build/validators/max-string-length.validator.d.ts +2 -2
- package/build/validators/max-string-length.validator.js +12 -13
- package/build/validators/max-string-length.validator.js.map +1 -1
- package/build/validators/nl-post-code.validator.d.ts +3 -3
- package/build/validators/nl-post-code.validator.js +13 -14
- package/build/validators/nl-post-code.validator.js.map +1 -1
- package/build/validators/password.validator.d.ts +3 -3
- package/build/validators/password.validator.js +32 -33
- package/build/validators/password.validator.js.map +1 -1
- package/build/validators/postal-code-function.validator.d.ts +2 -2
- package/build/validators/postal-code-function.validator.js +18 -19
- package/build/validators/postal-code-function.validator.js.map +1 -1
- package/build/validators/postal-code.validator.d.ts +1 -1
- package/build/validators/postal-code.validator.js +20 -21
- package/build/validators/postal-code.validator.js.map +1 -1
- package/build/validators/precision-scale.validator.d.ts +2 -2
- package/build/validators/precision-scale.validator.js +13 -14
- package/build/validators/precision-scale.validator.js.map +1 -1
- package/build/validators/required.validator.d.ts +2 -2
- package/build/validators/required.validator.js +7 -8
- package/build/validators/required.validator.js.map +1 -1
- package/build/validators/social-security-number.validator.d.ts +2 -2
- package/build/validators/social-security-number.validator.js +27 -28
- package/build/validators/social-security-number.validator.js.map +1 -1
- package/build/validators/space-trim.validator.d.ts +2 -2
- package/build/validators/space-trim.validator.js +11 -12
- package/build/validators/space-trim.validator.js.map +1 -1
- package/build/validators/true.validator.d.ts +2 -2
- package/build/validators/true.validator.js +7 -8
- package/build/validators/true.validator.js.map +1 -1
- package/package.json +8 -8
package/build/model/login.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Login = void 0;
|
|
4
|
-
class Login {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.upId = "";
|
|
7
|
-
this.clientVersion = "";
|
|
8
|
-
this.clientTimeZoneOffset = "0";
|
|
9
|
-
this._userType = "H";
|
|
10
|
-
}
|
|
11
|
-
set passWord(value) {
|
|
12
|
-
this._passWord = value;
|
|
13
|
-
}
|
|
14
|
-
get passWordClean() {
|
|
15
|
-
return this._passWordClean;
|
|
16
|
-
}
|
|
17
|
-
set userName(value) {
|
|
18
|
-
this._userName = value;
|
|
19
|
-
}
|
|
20
|
-
set passWordClean(value) {
|
|
21
|
-
this._passWordClean = value;
|
|
22
|
-
}
|
|
23
|
-
getSerialized() {
|
|
24
|
-
return {
|
|
25
|
-
userName: this._userName,
|
|
26
|
-
userPassword: this._passWord,
|
|
27
|
-
upId: this.upId,
|
|
28
|
-
clientVersion: this.clientVersion,
|
|
29
|
-
clientLanguage: this.clientLanguage,
|
|
30
|
-
userType: this._userType,
|
|
31
|
-
clientTimeZoneOffset: this.clientTimeZoneOffset
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.Login = Login;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Login = void 0;
|
|
4
|
+
class Login {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.upId = "";
|
|
7
|
+
this.clientVersion = "";
|
|
8
|
+
this.clientTimeZoneOffset = "0";
|
|
9
|
+
this._userType = "H";
|
|
10
|
+
}
|
|
11
|
+
set passWord(value) {
|
|
12
|
+
this._passWord = value;
|
|
13
|
+
}
|
|
14
|
+
get passWordClean() {
|
|
15
|
+
return this._passWordClean;
|
|
16
|
+
}
|
|
17
|
+
set userName(value) {
|
|
18
|
+
this._userName = value;
|
|
19
|
+
}
|
|
20
|
+
set passWordClean(value) {
|
|
21
|
+
this._passWordClean = value;
|
|
22
|
+
}
|
|
23
|
+
getSerialized() {
|
|
24
|
+
return {
|
|
25
|
+
userName: this._userName,
|
|
26
|
+
userPassword: this._passWord,
|
|
27
|
+
upId: this.upId,
|
|
28
|
+
clientVersion: this.clientVersion,
|
|
29
|
+
clientLanguage: this.clientLanguage,
|
|
30
|
+
userType: this._userType,
|
|
31
|
+
clientTimeZoneOffset: this.clientTimeZoneOffset
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.Login = Login;
|
|
36
36
|
//# sourceMappingURL=login.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { BusinessObject } from './business-object';
|
|
2
|
-
export declare class MenuContent extends BusinessObject {
|
|
3
|
-
itemId: string;
|
|
4
|
-
parentItemId: string;
|
|
5
|
-
headSequence: number;
|
|
6
|
-
subSequence: number;
|
|
7
|
-
labelId: string;
|
|
8
|
-
icon: string;
|
|
9
|
-
target: string;
|
|
10
|
-
clientType: string;
|
|
11
|
-
constructor();
|
|
12
|
-
getId(): string;
|
|
13
|
-
}
|
|
1
|
+
import { BusinessObject } from './business-object';
|
|
2
|
+
export declare class MenuContent extends BusinessObject {
|
|
3
|
+
itemId: string;
|
|
4
|
+
parentItemId: string;
|
|
5
|
+
headSequence: number;
|
|
6
|
+
subSequence: number;
|
|
7
|
+
labelId: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
target: string;
|
|
10
|
+
clientType: string;
|
|
11
|
+
constructor();
|
|
12
|
+
getId(): string;
|
|
13
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MenuContent = void 0;
|
|
4
|
-
const business_object_1 = require("./business-object");
|
|
5
|
-
class MenuContent extends business_object_1.BusinessObject {
|
|
6
|
-
constructor() {
|
|
7
|
-
super();
|
|
8
|
-
}
|
|
9
|
-
getId() {
|
|
10
|
-
return this.itemId;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.MenuContent = MenuContent;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MenuContent = void 0;
|
|
4
|
+
const business_object_1 = require("./business-object");
|
|
5
|
+
class MenuContent extends business_object_1.BusinessObject {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
}
|
|
9
|
+
getId() {
|
|
10
|
+
return this.itemId;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.MenuContent = MenuContent;
|
|
14
14
|
//# sourceMappingURL=menu-content.bo.js.map
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { BusinessObject } from './business-object';
|
|
2
|
-
import { ObjectConfigKind } from '../enum/object-config-kind';
|
|
3
|
-
import { UserRightType } from '../enum/user-right-type.enum';
|
|
4
|
-
import { ObjectConfigurationDataType } from '../enum/object-configuration-data-type.enum';
|
|
5
|
-
import { ObjectConfigurationValueType } from '../enum/object-configuration-value-type.enum';
|
|
6
|
-
import { ObjectConfigurationDefaultValueType } from '../type/object-configuration-default-value-type';
|
|
7
|
-
export declare class ObjectConfiguration extends BusinessObject {
|
|
8
|
-
completion: boolean;
|
|
9
|
-
completionFactor: number;
|
|
10
|
-
configName: string;
|
|
11
|
-
dataName: string;
|
|
12
|
-
defaultValue: string;
|
|
13
|
-
displayName: string;
|
|
14
|
-
fieldAuthorisation: boolean;
|
|
15
|
-
kind: ObjectConfigKind;
|
|
16
|
-
maxLength: number;
|
|
17
|
-
needsAuthorisation: boolean;
|
|
18
|
-
nullable: boolean;
|
|
19
|
-
rights: UserRightType;
|
|
20
|
-
scale: number;
|
|
21
|
-
type: ObjectConfigurationDataType;
|
|
22
|
-
dateDisplayType: any;
|
|
23
|
-
valueType: ObjectConfigurationValueType;
|
|
24
|
-
static DeepConfigNameDelimiter: string;
|
|
25
|
-
static IdSeparator: string;
|
|
26
|
-
static DefaultValueListSplitChar: string;
|
|
27
|
-
variableReadOnly: boolean;
|
|
28
|
-
redErrorBackground: boolean;
|
|
29
|
-
constructor();
|
|
30
|
-
getId(): string;
|
|
31
|
-
isFieldKind(): boolean;
|
|
32
|
-
isKind(kind: ObjectConfigKind): boolean;
|
|
33
|
-
isRequired(): boolean;
|
|
34
|
-
mayRead(): boolean;
|
|
35
|
-
mayWrite(): boolean;
|
|
36
|
-
immediatelyVisible(): boolean;
|
|
37
|
-
immediatelyHidden(): boolean;
|
|
38
|
-
noRights(): boolean;
|
|
39
|
-
isHidden(): boolean;
|
|
40
|
-
isReadonly(): boolean;
|
|
41
|
-
isActiveFieldValidationObject(): boolean;
|
|
42
|
-
getDefaultValue(): ObjectConfigurationDefaultValueType;
|
|
43
|
-
getDefaultStringValue(): string;
|
|
44
|
-
getDefaultNumberValue(): number;
|
|
45
|
-
getDefaultDateValue(): Date;
|
|
46
|
-
getDefaultBooleanValue(): boolean;
|
|
47
|
-
getDefaultMultiNumbersValue(): number[];
|
|
48
|
-
getDefaultMultiStringsValue(): string[];
|
|
49
|
-
hasDefaultValue(): boolean;
|
|
50
|
-
getDataNameWithoutSubObjectPath(subObjPath: string): string;
|
|
51
|
-
hasMaxLength(): boolean;
|
|
52
|
-
hasDataNameForObjectPath(objectPropertyPath?: string): boolean;
|
|
53
|
-
}
|
|
1
|
+
import { BusinessObject } from './business-object';
|
|
2
|
+
import { ObjectConfigKind } from '../enum/object-config-kind';
|
|
3
|
+
import { UserRightType } from '../enum/user-right-type.enum';
|
|
4
|
+
import { ObjectConfigurationDataType } from '../enum/object-configuration-data-type.enum';
|
|
5
|
+
import { ObjectConfigurationValueType } from '../enum/object-configuration-value-type.enum';
|
|
6
|
+
import { ObjectConfigurationDefaultValueType } from '../type/object-configuration-default-value-type';
|
|
7
|
+
export declare class ObjectConfiguration extends BusinessObject {
|
|
8
|
+
completion: boolean;
|
|
9
|
+
completionFactor: number;
|
|
10
|
+
configName: string;
|
|
11
|
+
dataName: string;
|
|
12
|
+
defaultValue: string;
|
|
13
|
+
displayName: string;
|
|
14
|
+
fieldAuthorisation: boolean;
|
|
15
|
+
kind: ObjectConfigKind;
|
|
16
|
+
maxLength: number;
|
|
17
|
+
needsAuthorisation: boolean;
|
|
18
|
+
nullable: boolean;
|
|
19
|
+
rights: UserRightType;
|
|
20
|
+
scale: number;
|
|
21
|
+
type: ObjectConfigurationDataType;
|
|
22
|
+
dateDisplayType: any;
|
|
23
|
+
valueType: ObjectConfigurationValueType;
|
|
24
|
+
static DeepConfigNameDelimiter: string;
|
|
25
|
+
static IdSeparator: string;
|
|
26
|
+
static DefaultValueListSplitChar: string;
|
|
27
|
+
variableReadOnly: boolean;
|
|
28
|
+
redErrorBackground: boolean;
|
|
29
|
+
constructor();
|
|
30
|
+
getId(): string;
|
|
31
|
+
isFieldKind(): boolean;
|
|
32
|
+
isKind(kind: ObjectConfigKind): boolean;
|
|
33
|
+
isRequired(): boolean;
|
|
34
|
+
mayRead(): boolean;
|
|
35
|
+
mayWrite(): boolean;
|
|
36
|
+
immediatelyVisible(): boolean;
|
|
37
|
+
immediatelyHidden(): boolean;
|
|
38
|
+
noRights(): boolean;
|
|
39
|
+
isHidden(): boolean;
|
|
40
|
+
isReadonly(): boolean;
|
|
41
|
+
isActiveFieldValidationObject(): boolean;
|
|
42
|
+
getDefaultValue(): ObjectConfigurationDefaultValueType;
|
|
43
|
+
getDefaultStringValue(): string;
|
|
44
|
+
getDefaultNumberValue(): number;
|
|
45
|
+
getDefaultDateValue(): Date;
|
|
46
|
+
getDefaultBooleanValue(): boolean;
|
|
47
|
+
getDefaultMultiNumbersValue(): number[];
|
|
48
|
+
getDefaultMultiStringsValue(): string[];
|
|
49
|
+
hasDefaultValue(): boolean;
|
|
50
|
+
getDataNameWithoutSubObjectPath(subObjPath: string): string;
|
|
51
|
+
hasMaxLength(): boolean;
|
|
52
|
+
hasDataNameForObjectPath(objectPropertyPath?: string): boolean;
|
|
53
|
+
}
|
|
@@ -1,201 +1,201 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ObjectConfiguration = void 0;
|
|
13
|
-
const boolean_decorator_1 = require("../factory/decorators/boolean.decorator");
|
|
14
|
-
const no_db_field_decorator_1 = require("../factory/decorators/no-db-field.decorator");
|
|
15
|
-
const string_number_decorator_1 = require("../factory/decorators/string-number.decorator");
|
|
16
|
-
const not_nill_function_1 = require("../utils/function/not-nill.function");
|
|
17
|
-
const string_utils_1 = require("../utils/string-utils");
|
|
18
|
-
const number_utils_1 = require("../utils/number-utils");
|
|
19
|
-
const date_utils_1 = require("../utils/date-utils");
|
|
20
|
-
const business_object_1 = require("./business-object");
|
|
21
|
-
const object_config_kind_1 = require("../enum/object-config-kind");
|
|
22
|
-
const user_right_type_enum_1 = require("../enum/user-right-type.enum");
|
|
23
|
-
const object_configuration_data_type_enum_1 = require("../enum/object-configuration-data-type.enum");
|
|
24
|
-
const object_configuration_value_type_enum_1 = require("../enum/object-configuration-value-type.enum");
|
|
25
|
-
class ObjectConfiguration extends business_object_1.BusinessObject {
|
|
26
|
-
constructor() {
|
|
27
|
-
super();
|
|
28
|
-
}
|
|
29
|
-
getId() {
|
|
30
|
-
return this.configName;
|
|
31
|
-
}
|
|
32
|
-
isFieldKind() {
|
|
33
|
-
return this.kind === object_config_kind_1.ObjectConfigKind.Field;
|
|
34
|
-
}
|
|
35
|
-
isKind(kind) {
|
|
36
|
-
return this.kind === kind;
|
|
37
|
-
}
|
|
38
|
-
isRequired() {
|
|
39
|
-
return !this.nullable;
|
|
40
|
-
}
|
|
41
|
-
mayRead() {
|
|
42
|
-
return this.rights >= user_right_type_enum_1.UserRightType.AvailableRead;
|
|
43
|
-
}
|
|
44
|
-
mayWrite() {
|
|
45
|
-
return this.rights >= user_right_type_enum_1.UserRightType.AvailableReadWrite;
|
|
46
|
-
}
|
|
47
|
-
immediatelyVisible() {
|
|
48
|
-
return this.rights === user_right_type_enum_1.UserRightType.Read || this.rights === user_right_type_enum_1.UserRightType.ReadWrite;
|
|
49
|
-
}
|
|
50
|
-
immediatelyHidden() {
|
|
51
|
-
return this.noRights();
|
|
52
|
-
}
|
|
53
|
-
noRights() {
|
|
54
|
-
return this.rights === user_right_type_enum_1.UserRightType.None;
|
|
55
|
-
}
|
|
56
|
-
isHidden() {
|
|
57
|
-
return !this.immediatelyVisible();
|
|
58
|
-
}
|
|
59
|
-
isReadonly() {
|
|
60
|
-
return !this.mayWrite();
|
|
61
|
-
}
|
|
62
|
-
isActiveFieldValidationObject() {
|
|
63
|
-
return this.mayWrite() && !this.isHidden() && this.isFieldKind() && this.type !== object_configuration_data_type_enum_1.ObjectConfigurationDataType.Boolean;
|
|
64
|
-
}
|
|
65
|
-
getDefaultValue() {
|
|
66
|
-
if ((0, not_nill_function_1.notNill)(this.defaultValue)) {
|
|
67
|
-
switch (this.valueType) {
|
|
68
|
-
case object_configuration_value_type_enum_1.ObjectConfigurationValueType.Alphanumeric:
|
|
69
|
-
return this.getDefaultStringValue();
|
|
70
|
-
case object_configuration_value_type_enum_1.ObjectConfigurationValueType.ListOfValues:
|
|
71
|
-
if (this.type === object_configuration_data_type_enum_1.ObjectConfigurationDataType.Number) {
|
|
72
|
-
return this.getDefaultNumberValue();
|
|
73
|
-
}
|
|
74
|
-
else if (this.type === object_configuration_data_type_enum_1.ObjectConfigurationDataType.Varchar) {
|
|
75
|
-
return this.getDefaultStringValue();
|
|
76
|
-
}
|
|
77
|
-
break;
|
|
78
|
-
case object_configuration_value_type_enum_1.ObjectConfigurationValueType.Date:
|
|
79
|
-
return this.getDefaultDateValue();
|
|
80
|
-
case object_configuration_value_type_enum_1.ObjectConfigurationValueType.Boolean:
|
|
81
|
-
return this.getDefaultBooleanValue();
|
|
82
|
-
case object_configuration_value_type_enum_1.ObjectConfigurationValueType.Number:
|
|
83
|
-
return this.getDefaultNumberValue();
|
|
84
|
-
case object_configuration_value_type_enum_1.ObjectConfigurationValueType.MultiSelect:
|
|
85
|
-
return [this.defaultValue];
|
|
86
|
-
case object_configuration_value_type_enum_1.ObjectConfigurationValueType.MultiSelectNumbers:
|
|
87
|
-
return this.getDefaultMultiNumbersValue();
|
|
88
|
-
case object_configuration_value_type_enum_1.ObjectConfigurationValueType.MultiSelectStrings:
|
|
89
|
-
return this.getDefaultMultiStringsValue();
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
getDefaultStringValue() {
|
|
94
|
-
return string_utils_1.StringUtils.ToStringOrDefault(this.defaultValue);
|
|
95
|
-
}
|
|
96
|
-
getDefaultNumberValue() {
|
|
97
|
-
return number_utils_1.NumberUtils.ParseFloatKeepPrecision(this.defaultValue);
|
|
98
|
-
}
|
|
99
|
-
getDefaultDateValue() {
|
|
100
|
-
return date_utils_1.DateUtils.StringAsDate(this.defaultValue);
|
|
101
|
-
}
|
|
102
|
-
getDefaultBooleanValue() {
|
|
103
|
-
return boolean_decorator_1.BooleanTextDecorator.GetLogicalBooleanValue(this.defaultValue);
|
|
104
|
-
}
|
|
105
|
-
getDefaultMultiNumbersValue() {
|
|
106
|
-
const numbers = [];
|
|
107
|
-
if (string_utils_1.StringUtils.IsStringWithLength(this.defaultValue)) {
|
|
108
|
-
const defaultValSplit = this.defaultValue.split(ObjectConfiguration.DefaultValueListSplitChar);
|
|
109
|
-
for (let i = 0, len = defaultValSplit.length; i < len; i++) {
|
|
110
|
-
numbers.push(number_utils_1.NumberUtils.ParseFloatKeepPrecision(defaultValSplit[i]));
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
return numbers;
|
|
114
|
-
}
|
|
115
|
-
getDefaultMultiStringsValue() {
|
|
116
|
-
let strings = [];
|
|
117
|
-
if (string_utils_1.StringUtils.IsStringWithLength(this.defaultValue)) {
|
|
118
|
-
strings = this.defaultValue.split(ObjectConfiguration.DefaultValueListSplitChar);
|
|
119
|
-
}
|
|
120
|
-
return strings;
|
|
121
|
-
}
|
|
122
|
-
hasDefaultValue() {
|
|
123
|
-
return (0, not_nill_function_1.notNill)(this.getDefaultValue());
|
|
124
|
-
}
|
|
125
|
-
getDataNameWithoutSubObjectPath(subObjPath) {
|
|
126
|
-
if (this.dataName && this.dataName.indexOf(ObjectConfiguration.DeepConfigNameDelimiter) !== -1) {
|
|
127
|
-
const answerWithDelimiterLeadChar = this.dataName.split(subObjPath)[1];
|
|
128
|
-
if (answerWithDelimiterLeadChar) {
|
|
129
|
-
return answerWithDelimiterLeadChar.slice(1);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
return this.dataName;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
hasMaxLength() {
|
|
137
|
-
return (0, not_nill_function_1.notNill)(this.maxLength);
|
|
138
|
-
}
|
|
139
|
-
hasDataNameForObjectPath(objectPropertyPath = "") {
|
|
140
|
-
if (objectPropertyPath) {
|
|
141
|
-
let answer = true;
|
|
142
|
-
const propPathSplit = objectPropertyPath.split(ObjectConfiguration.DeepConfigNameDelimiter);
|
|
143
|
-
const myCfgNameSplit = this.dataName ? this.dataName.split(ObjectConfiguration.DeepConfigNameDelimiter) : [];
|
|
144
|
-
for (let i = 0, len = propPathSplit.length; i < len; i++) {
|
|
145
|
-
answer = (propPathSplit[i] === myCfgNameSplit[i]);
|
|
146
|
-
if (!answer) {
|
|
147
|
-
break;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
return answer;
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
return this.dataName ? this.dataName.indexOf(ObjectConfiguration.DeepConfigNameDelimiter) === -1 : true;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
ObjectConfiguration
|
|
158
|
-
ObjectConfiguration.
|
|
159
|
-
ObjectConfiguration.
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ObjectConfiguration = void 0;
|
|
13
|
+
const boolean_decorator_1 = require("../factory/decorators/boolean.decorator");
|
|
14
|
+
const no_db_field_decorator_1 = require("../factory/decorators/no-db-field.decorator");
|
|
15
|
+
const string_number_decorator_1 = require("../factory/decorators/string-number.decorator");
|
|
16
|
+
const not_nill_function_1 = require("../utils/function/not-nill.function");
|
|
17
|
+
const string_utils_1 = require("../utils/string-utils");
|
|
18
|
+
const number_utils_1 = require("../utils/number-utils");
|
|
19
|
+
const date_utils_1 = require("../utils/date-utils");
|
|
20
|
+
const business_object_1 = require("./business-object");
|
|
21
|
+
const object_config_kind_1 = require("../enum/object-config-kind");
|
|
22
|
+
const user_right_type_enum_1 = require("../enum/user-right-type.enum");
|
|
23
|
+
const object_configuration_data_type_enum_1 = require("../enum/object-configuration-data-type.enum");
|
|
24
|
+
const object_configuration_value_type_enum_1 = require("../enum/object-configuration-value-type.enum");
|
|
25
|
+
class ObjectConfiguration extends business_object_1.BusinessObject {
|
|
26
|
+
constructor() {
|
|
27
|
+
super();
|
|
28
|
+
}
|
|
29
|
+
getId() {
|
|
30
|
+
return this.configName;
|
|
31
|
+
}
|
|
32
|
+
isFieldKind() {
|
|
33
|
+
return this.kind === object_config_kind_1.ObjectConfigKind.Field;
|
|
34
|
+
}
|
|
35
|
+
isKind(kind) {
|
|
36
|
+
return this.kind === kind;
|
|
37
|
+
}
|
|
38
|
+
isRequired() {
|
|
39
|
+
return !this.nullable;
|
|
40
|
+
}
|
|
41
|
+
mayRead() {
|
|
42
|
+
return this.rights >= user_right_type_enum_1.UserRightType.AvailableRead;
|
|
43
|
+
}
|
|
44
|
+
mayWrite() {
|
|
45
|
+
return this.rights >= user_right_type_enum_1.UserRightType.AvailableReadWrite;
|
|
46
|
+
}
|
|
47
|
+
immediatelyVisible() {
|
|
48
|
+
return this.rights === user_right_type_enum_1.UserRightType.Read || this.rights === user_right_type_enum_1.UserRightType.ReadWrite;
|
|
49
|
+
}
|
|
50
|
+
immediatelyHidden() {
|
|
51
|
+
return this.noRights();
|
|
52
|
+
}
|
|
53
|
+
noRights() {
|
|
54
|
+
return this.rights === user_right_type_enum_1.UserRightType.None;
|
|
55
|
+
}
|
|
56
|
+
isHidden() {
|
|
57
|
+
return !this.immediatelyVisible();
|
|
58
|
+
}
|
|
59
|
+
isReadonly() {
|
|
60
|
+
return !this.mayWrite();
|
|
61
|
+
}
|
|
62
|
+
isActiveFieldValidationObject() {
|
|
63
|
+
return this.mayWrite() && !this.isHidden() && this.isFieldKind() && this.type !== object_configuration_data_type_enum_1.ObjectConfigurationDataType.Boolean;
|
|
64
|
+
}
|
|
65
|
+
getDefaultValue() {
|
|
66
|
+
if ((0, not_nill_function_1.notNill)(this.defaultValue)) {
|
|
67
|
+
switch (this.valueType) {
|
|
68
|
+
case object_configuration_value_type_enum_1.ObjectConfigurationValueType.Alphanumeric:
|
|
69
|
+
return this.getDefaultStringValue();
|
|
70
|
+
case object_configuration_value_type_enum_1.ObjectConfigurationValueType.ListOfValues:
|
|
71
|
+
if (this.type === object_configuration_data_type_enum_1.ObjectConfigurationDataType.Number) {
|
|
72
|
+
return this.getDefaultNumberValue();
|
|
73
|
+
}
|
|
74
|
+
else if (this.type === object_configuration_data_type_enum_1.ObjectConfigurationDataType.Varchar) {
|
|
75
|
+
return this.getDefaultStringValue();
|
|
76
|
+
}
|
|
77
|
+
break;
|
|
78
|
+
case object_configuration_value_type_enum_1.ObjectConfigurationValueType.Date:
|
|
79
|
+
return this.getDefaultDateValue();
|
|
80
|
+
case object_configuration_value_type_enum_1.ObjectConfigurationValueType.Boolean:
|
|
81
|
+
return this.getDefaultBooleanValue();
|
|
82
|
+
case object_configuration_value_type_enum_1.ObjectConfigurationValueType.Number:
|
|
83
|
+
return this.getDefaultNumberValue();
|
|
84
|
+
case object_configuration_value_type_enum_1.ObjectConfigurationValueType.MultiSelect:
|
|
85
|
+
return [this.defaultValue];
|
|
86
|
+
case object_configuration_value_type_enum_1.ObjectConfigurationValueType.MultiSelectNumbers:
|
|
87
|
+
return this.getDefaultMultiNumbersValue();
|
|
88
|
+
case object_configuration_value_type_enum_1.ObjectConfigurationValueType.MultiSelectStrings:
|
|
89
|
+
return this.getDefaultMultiStringsValue();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
getDefaultStringValue() {
|
|
94
|
+
return string_utils_1.StringUtils.ToStringOrDefault(this.defaultValue);
|
|
95
|
+
}
|
|
96
|
+
getDefaultNumberValue() {
|
|
97
|
+
return number_utils_1.NumberUtils.ParseFloatKeepPrecision(this.defaultValue);
|
|
98
|
+
}
|
|
99
|
+
getDefaultDateValue() {
|
|
100
|
+
return date_utils_1.DateUtils.StringAsDate(this.defaultValue);
|
|
101
|
+
}
|
|
102
|
+
getDefaultBooleanValue() {
|
|
103
|
+
return boolean_decorator_1.BooleanTextDecorator.GetLogicalBooleanValue(this.defaultValue);
|
|
104
|
+
}
|
|
105
|
+
getDefaultMultiNumbersValue() {
|
|
106
|
+
const numbers = [];
|
|
107
|
+
if (string_utils_1.StringUtils.IsStringWithLength(this.defaultValue)) {
|
|
108
|
+
const defaultValSplit = this.defaultValue.split(ObjectConfiguration.DefaultValueListSplitChar);
|
|
109
|
+
for (let i = 0, len = defaultValSplit.length; i < len; i++) {
|
|
110
|
+
numbers.push(number_utils_1.NumberUtils.ParseFloatKeepPrecision(defaultValSplit[i]));
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return numbers;
|
|
114
|
+
}
|
|
115
|
+
getDefaultMultiStringsValue() {
|
|
116
|
+
let strings = [];
|
|
117
|
+
if (string_utils_1.StringUtils.IsStringWithLength(this.defaultValue)) {
|
|
118
|
+
strings = this.defaultValue.split(ObjectConfiguration.DefaultValueListSplitChar);
|
|
119
|
+
}
|
|
120
|
+
return strings;
|
|
121
|
+
}
|
|
122
|
+
hasDefaultValue() {
|
|
123
|
+
return (0, not_nill_function_1.notNill)(this.getDefaultValue());
|
|
124
|
+
}
|
|
125
|
+
getDataNameWithoutSubObjectPath(subObjPath) {
|
|
126
|
+
if (this.dataName && this.dataName.indexOf(ObjectConfiguration.DeepConfigNameDelimiter) !== -1) {
|
|
127
|
+
const answerWithDelimiterLeadChar = this.dataName.split(subObjPath)[1];
|
|
128
|
+
if (answerWithDelimiterLeadChar) {
|
|
129
|
+
return answerWithDelimiterLeadChar.slice(1);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
return this.dataName;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
hasMaxLength() {
|
|
137
|
+
return (0, not_nill_function_1.notNill)(this.maxLength);
|
|
138
|
+
}
|
|
139
|
+
hasDataNameForObjectPath(objectPropertyPath = "") {
|
|
140
|
+
if (objectPropertyPath) {
|
|
141
|
+
let answer = true;
|
|
142
|
+
const propPathSplit = objectPropertyPath.split(ObjectConfiguration.DeepConfigNameDelimiter);
|
|
143
|
+
const myCfgNameSplit = this.dataName ? this.dataName.split(ObjectConfiguration.DeepConfigNameDelimiter) : [];
|
|
144
|
+
for (let i = 0, len = propPathSplit.length; i < len; i++) {
|
|
145
|
+
answer = (propPathSplit[i] === myCfgNameSplit[i]);
|
|
146
|
+
if (!answer) {
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return answer;
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
return this.dataName ? this.dataName.indexOf(ObjectConfiguration.DeepConfigNameDelimiter) === -1 : true;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
exports.ObjectConfiguration = ObjectConfiguration;
|
|
158
|
+
ObjectConfiguration.DeepConfigNameDelimiter = "_";
|
|
159
|
+
ObjectConfiguration.IdSeparator = "#";
|
|
160
|
+
ObjectConfiguration.DefaultValueListSplitChar = ",";
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, boolean_decorator_1.BooleanText)("T"),
|
|
163
|
+
__metadata("design:type", Boolean)
|
|
164
|
+
], ObjectConfiguration.prototype, "completion", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, boolean_decorator_1.BooleanText)("T"),
|
|
167
|
+
__metadata("design:type", Boolean)
|
|
168
|
+
], ObjectConfiguration.prototype, "fieldAuthorisation", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
(0, boolean_decorator_1.BooleanText)("T"),
|
|
171
|
+
__metadata("design:type", Boolean)
|
|
172
|
+
], ObjectConfiguration.prototype, "needsAuthorisation", void 0);
|
|
173
|
+
__decorate([
|
|
174
|
+
(0, boolean_decorator_1.BooleanText)("T"),
|
|
175
|
+
__metadata("design:type", Boolean)
|
|
176
|
+
], ObjectConfiguration.prototype, "nullable", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
(0, string_number_decorator_1.StringNumber)(),
|
|
179
|
+
__metadata("design:type", Number)
|
|
180
|
+
], ObjectConfiguration.prototype, "rights", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
(0, no_db_field_decorator_1.NoDbField)(),
|
|
183
|
+
__metadata("design:type", Boolean)
|
|
184
|
+
], ObjectConfiguration.prototype, "variableReadOnly", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
(0, no_db_field_decorator_1.NoDbField)(),
|
|
187
|
+
__metadata("design:type", Boolean)
|
|
188
|
+
], ObjectConfiguration.prototype, "redErrorBackground", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
(0, no_db_field_decorator_1.NoDbField)(),
|
|
191
|
+
__metadata("design:type", String)
|
|
192
|
+
], ObjectConfiguration, "DeepConfigNameDelimiter", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, no_db_field_decorator_1.NoDbField)(),
|
|
195
|
+
__metadata("design:type", String)
|
|
196
|
+
], ObjectConfiguration, "IdSeparator", void 0);
|
|
197
|
+
__decorate([
|
|
198
|
+
(0, no_db_field_decorator_1.NoDbField)(),
|
|
199
|
+
__metadata("design:type", String)
|
|
200
|
+
], ObjectConfiguration, "DefaultValueListSplitChar", void 0);
|
|
201
201
|
//# sourceMappingURL=object-configuration.js.map
|