@colijnit/ioneconnector 262.1.0 → 262.1.2
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 -33
- package/build/connector.js +79 -79
- 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 -38
- package/build/provider/ajax.service.js +435 -381
- 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 +9 -9
|
@@ -1,322 +1,312 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LoginService = void 0;
|
|
4
|
-
const login_service_method_enum_1 = require("../enum/login-service-method.enum");
|
|
5
|
-
const backend_service_name_enum_1 = require("../enum/backend-service-name.enum");
|
|
6
|
-
const encrypt_service_1 = require("./encrypt.service");
|
|
7
|
-
const datasession_service_1 = require("./datasession.service");
|
|
8
|
-
const public_service_1 = require("./public.service");
|
|
9
|
-
const business_object_factory_1 = require("./business-object-factory");
|
|
10
|
-
const login_response_1 = require("../model/login-response");
|
|
11
|
-
const login_request_1 = require("../model/login-request");
|
|
12
|
-
const login_status_enum_1 = require("../enum/login-status.enum");
|
|
13
|
-
const token_response_bo_1 = require("../model/token-response.bo");
|
|
14
|
-
const health_service_1 = require("./health.service");
|
|
15
|
-
const keycloak_parameters_bo_1 = require("../model/keycloak-parameters.bo");
|
|
16
|
-
const company_bo_1 = require("../model/company.bo");
|
|
17
|
-
const backend_language_code_enum_1 = require("../enum/backend-language-code.enum");
|
|
18
|
-
const language_code_enum_1 = require("../enum/language-code.enum");
|
|
19
|
-
class LoginService {
|
|
20
|
-
constructor(backendConnection) {
|
|
21
|
-
this._useEncryption = false;
|
|
22
|
-
this._boFactory = new business_object_factory_1.BusinessObjectFactory();
|
|
23
|
-
this._companies = [];
|
|
24
|
-
this._clientLanguageToBackendLanguage = new Map([
|
|
25
|
-
[language_code_enum_1.LanguageCode.Dutch, backend_language_code_enum_1.BackendLanguageCode.Dutch],
|
|
26
|
-
[language_code_enum_1.LanguageCode.English, backend_language_code_enum_1.BackendLanguageCode.English],
|
|
27
|
-
[language_code_enum_1.LanguageCode.German, backend_language_code_enum_1.BackendLanguageCode.German],
|
|
28
|
-
[language_code_enum_1.LanguageCode.French, backend_language_code_enum_1.BackendLanguageCode.French]
|
|
29
|
-
]);
|
|
30
|
-
this.backendConnection = backendConnection;
|
|
31
|
-
this.loginRequest = new login_request_1.LoginRequest();
|
|
32
|
-
this._healthService = new health_service_1.HealthService(backendConnection);
|
|
33
|
-
if (this.backendConnection.options.username || this.backendConnection.options.password) {
|
|
34
|
-
this.loginRequest.userName = this.backendConnection.options.username;
|
|
35
|
-
this.loginRequest.
|
|
36
|
-
}
|
|
37
|
-
this.loginRequest.upId = parseInt(this.backendConnection.options.schema, 10);
|
|
38
|
-
this.loginRequest.clientVersion = this.backendConnection.version.toString();
|
|
39
|
-
this.loginRequest.clientLanguage = this.backendConnection.options.languageCode;
|
|
40
|
-
this._useEncryption = this.backendConnection.options.useLoginEncryption;
|
|
41
|
-
this._encryptionService = new encrypt_service_1.EncryptService();
|
|
42
|
-
this._publicService = new public_service_1.PublicService(this.backendConnection, this._encryptionService);
|
|
43
|
-
this._datasessionService = new datasession_service_1.DatasessionService(this.backendConnection);
|
|
44
|
-
}
|
|
45
|
-
async getPublicKey() {
|
|
46
|
-
return this._publicService.getPublicKey();
|
|
47
|
-
}
|
|
48
|
-
async getKeycloakParams() {
|
|
49
|
-
const response = await this._publicService.getKeycloakParameters()
|
|
50
|
-
.catch(() => {
|
|
51
|
-
return undefined;
|
|
52
|
-
});
|
|
53
|
-
if (response) {
|
|
54
|
-
this.keycloakParams = this._boFactory.makeWithRawBackendData(keycloak_parameters_bo_1.KeycloakParameters, response);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
async getCompanies() {
|
|
58
|
-
const response = await this._publicService.getCompanies()
|
|
59
|
-
.catch(() => {
|
|
60
|
-
return undefined;
|
|
61
|
-
});
|
|
62
|
-
if (response) {
|
|
63
|
-
this._companies = this._boFactory.makeBOArrayFromRawBackendDataArray(company_bo_1.Company, response);
|
|
64
|
-
this.company = this._companies.find(c => c.upId === +this.backendConnection.schema);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
async loginAndCreateDataSession(request, encrypt) {
|
|
68
|
-
if (!request && this.backendConnection.sessionId) {
|
|
69
|
-
this.backendConnection.createNewSession();
|
|
70
|
-
return this.backendConnection.storageService.localLoginResponse;
|
|
71
|
-
}
|
|
72
|
-
if (request) {
|
|
73
|
-
this.backendConnection.setSchemaUserNameAndVersion(request.upId.toString(), request.userName);
|
|
74
|
-
}
|
|
75
|
-
this.backendConnection.usePublicToken = false;
|
|
76
|
-
this.backendConnection.createNewSession();
|
|
77
|
-
const response = await this.login(request, encrypt, true)
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
this.
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
rawResponse = await this.
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
return
|
|
183
|
-
}
|
|
184
|
-
async
|
|
185
|
-
const inputParams = {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
password: password,
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
upId: upId,
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
return this._call(login_service_method_enum_1.LoginServiceMethod.
|
|
220
|
-
}
|
|
221
|
-
async
|
|
222
|
-
const
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
data = {};
|
|
313
|
-
}
|
|
314
|
-
if (showLoader === undefined) {
|
|
315
|
-
showLoader = true;
|
|
316
|
-
}
|
|
317
|
-
return this.backendConnection.call(method, data, showLoader, backend_service_name_enum_1.BackendServiceName.LoginService, undefined, false, undefined, url);
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
exports.LoginService = LoginService;
|
|
321
|
-
LoginService.HEARTBEAT_INTERVAL_MS = 59000;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LoginService = void 0;
|
|
4
|
+
const login_service_method_enum_1 = require("../enum/login-service-method.enum");
|
|
5
|
+
const backend_service_name_enum_1 = require("../enum/backend-service-name.enum");
|
|
6
|
+
const encrypt_service_1 = require("./encrypt.service");
|
|
7
|
+
const datasession_service_1 = require("./datasession.service");
|
|
8
|
+
const public_service_1 = require("./public.service");
|
|
9
|
+
const business_object_factory_1 = require("./business-object-factory");
|
|
10
|
+
const login_response_1 = require("../model/login-response");
|
|
11
|
+
const login_request_1 = require("../model/login-request");
|
|
12
|
+
const login_status_enum_1 = require("../enum/login-status.enum");
|
|
13
|
+
const token_response_bo_1 = require("../model/token-response.bo");
|
|
14
|
+
const health_service_1 = require("./health.service");
|
|
15
|
+
const keycloak_parameters_bo_1 = require("../model/keycloak-parameters.bo");
|
|
16
|
+
const company_bo_1 = require("../model/company.bo");
|
|
17
|
+
const backend_language_code_enum_1 = require("../enum/backend-language-code.enum");
|
|
18
|
+
const language_code_enum_1 = require("../enum/language-code.enum");
|
|
19
|
+
class LoginService {
|
|
20
|
+
constructor(backendConnection) {
|
|
21
|
+
this._useEncryption = false;
|
|
22
|
+
this._boFactory = new business_object_factory_1.BusinessObjectFactory();
|
|
23
|
+
this._companies = [];
|
|
24
|
+
this._clientLanguageToBackendLanguage = new Map([
|
|
25
|
+
[language_code_enum_1.LanguageCode.Dutch, backend_language_code_enum_1.BackendLanguageCode.Dutch],
|
|
26
|
+
[language_code_enum_1.LanguageCode.English, backend_language_code_enum_1.BackendLanguageCode.English],
|
|
27
|
+
[language_code_enum_1.LanguageCode.German, backend_language_code_enum_1.BackendLanguageCode.German],
|
|
28
|
+
[language_code_enum_1.LanguageCode.French, backend_language_code_enum_1.BackendLanguageCode.French]
|
|
29
|
+
]);
|
|
30
|
+
this.backendConnection = backendConnection;
|
|
31
|
+
this.loginRequest = new login_request_1.LoginRequest();
|
|
32
|
+
this._healthService = new health_service_1.HealthService(backendConnection);
|
|
33
|
+
if (this.backendConnection.options.username || this.backendConnection.options.password) {
|
|
34
|
+
this.loginRequest.userName = this.backendConnection.options.username;
|
|
35
|
+
this.loginRequest.pw = this.backendConnection.options.password;
|
|
36
|
+
}
|
|
37
|
+
this.loginRequest.upId = parseInt(this.backendConnection.options.schema, 10);
|
|
38
|
+
this.loginRequest.clientVersion = this.backendConnection.version.toString();
|
|
39
|
+
this.loginRequest.clientLanguage = this.backendConnection.options.languageCode;
|
|
40
|
+
this._useEncryption = this.backendConnection.options.useLoginEncryption;
|
|
41
|
+
this._encryptionService = new encrypt_service_1.EncryptService();
|
|
42
|
+
this._publicService = new public_service_1.PublicService(this.backendConnection, this._encryptionService);
|
|
43
|
+
this._datasessionService = new datasession_service_1.DatasessionService(this.backendConnection);
|
|
44
|
+
}
|
|
45
|
+
async getPublicKey() {
|
|
46
|
+
return this._publicService.getPublicKey();
|
|
47
|
+
}
|
|
48
|
+
async getKeycloakParams() {
|
|
49
|
+
const response = await this._publicService.getKeycloakParameters()
|
|
50
|
+
.catch(() => {
|
|
51
|
+
return undefined;
|
|
52
|
+
});
|
|
53
|
+
if (response) {
|
|
54
|
+
this.keycloakParams = this._boFactory.makeWithRawBackendData(keycloak_parameters_bo_1.KeycloakParameters, response);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
async getCompanies() {
|
|
58
|
+
const response = await this._publicService.getCompanies()
|
|
59
|
+
.catch(() => {
|
|
60
|
+
return undefined;
|
|
61
|
+
});
|
|
62
|
+
if (response) {
|
|
63
|
+
this._companies = this._boFactory.makeBOArrayFromRawBackendDataArray(company_bo_1.Company, response);
|
|
64
|
+
this.company = this._companies.find(c => c.upId === +this.backendConnection.schema);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
async loginAndCreateDataSession(request, encrypt) {
|
|
68
|
+
if (!request && this.backendConnection.sessionId) {
|
|
69
|
+
this.backendConnection.createNewSession();
|
|
70
|
+
return this.backendConnection.storageService.localLoginResponse;
|
|
71
|
+
}
|
|
72
|
+
if (request) {
|
|
73
|
+
this.backendConnection.setSchemaUserNameAndVersion(request.upId.toString(), request.userName);
|
|
74
|
+
}
|
|
75
|
+
this.backendConnection.usePublicToken = false;
|
|
76
|
+
this.backendConnection.createNewSession();
|
|
77
|
+
const response = await this.login(request, encrypt, true).catch(() => {
|
|
78
|
+
return undefined;
|
|
79
|
+
});
|
|
80
|
+
if (response && request) {
|
|
81
|
+
response.password = request.userPassword;
|
|
82
|
+
}
|
|
83
|
+
return response;
|
|
84
|
+
}
|
|
85
|
+
clearStorage() {
|
|
86
|
+
this.backendConnection.storageService.clear();
|
|
87
|
+
}
|
|
88
|
+
clearAllStorage() {
|
|
89
|
+
this.backendConnection.storageService.clearAll();
|
|
90
|
+
}
|
|
91
|
+
logout() {
|
|
92
|
+
let shouldLogout = false;
|
|
93
|
+
if (this.backendConnection.storageService.localSessionId || this.backendConnection.jwtService.jwt) {
|
|
94
|
+
shouldLogout = true;
|
|
95
|
+
}
|
|
96
|
+
this.clearStorage();
|
|
97
|
+
if (shouldLogout) {
|
|
98
|
+
return this._call(login_service_method_enum_1.LoginServiceMethod.LogoutUser, {}, false).then((userData) => {
|
|
99
|
+
try {
|
|
100
|
+
if (this.backendConnection.version < 252) {
|
|
101
|
+
this._stopHeartBeat();
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
this._healthService.stopHeartBeat();
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
catch (e) {
|
|
108
|
+
}
|
|
109
|
+
return userData;
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
async login(request, encrypt, createDataSession) {
|
|
114
|
+
if (request) {
|
|
115
|
+
this.loginRequest = request;
|
|
116
|
+
}
|
|
117
|
+
if (encrypt !== undefined) {
|
|
118
|
+
this._useEncryption = encrypt;
|
|
119
|
+
}
|
|
120
|
+
const result = await this._callLogin();
|
|
121
|
+
return this._handleAndReturnLoginResponse(result, createDataSession);
|
|
122
|
+
}
|
|
123
|
+
async loginByKeycloakCode(code, state, uri) {
|
|
124
|
+
this.backendConnection.storageService.setLocalKeycloakState(state);
|
|
125
|
+
const loginRequest = new login_request_1.LoginRequest();
|
|
126
|
+
const backendLanguageCode = this._clientLanguageToBackendLanguage.get(this.backendConnection.options.languageCode);
|
|
127
|
+
loginRequest.upId = this.company.upId;
|
|
128
|
+
loginRequest.loginCode = code;
|
|
129
|
+
loginRequest.redirectUri = uri;
|
|
130
|
+
loginRequest.clientVersion = this.backendConnection.version.toString();
|
|
131
|
+
loginRequest.clientLanguage = backendLanguageCode ? backendLanguageCode : backend_language_code_enum_1.BackendLanguageCode.Dutch;
|
|
132
|
+
this.backendConnection.createNewSession(true);
|
|
133
|
+
const result = await this._loginUserByLoginCode(loginRequest);
|
|
134
|
+
return this._handleAndReturnLoginResponse(result, true, true);
|
|
135
|
+
}
|
|
136
|
+
async loginToExternalSource(externalSourceId, url, schema, version) {
|
|
137
|
+
if (this.backendConnection.sessionId) {
|
|
138
|
+
this.backendConnection.createNewSession();
|
|
139
|
+
return this.backendConnection.storageService.localLoginResponse;
|
|
140
|
+
}
|
|
141
|
+
this.loginRequest.userName = undefined;
|
|
142
|
+
this.loginRequest.pw = undefined;
|
|
143
|
+
this.loginRequest.userPassword = undefined;
|
|
144
|
+
this.loginRequest.upId = schema ? parseInt(schema) : parseInt(this.backendConnection.schema);
|
|
145
|
+
this.loginRequest.clientVersion = version ? version : this.backendConnection.version.toString();
|
|
146
|
+
this.backendConnection.createNewSession();
|
|
147
|
+
const result = await this._callLoginToExternalSource(externalSourceId, url);
|
|
148
|
+
return this._handleAndReturnLoginResponse(result, true);
|
|
149
|
+
}
|
|
150
|
+
async refreshAccessToken(refreshToken) {
|
|
151
|
+
let rawResponse;
|
|
152
|
+
if (this.backendConnection.usePublicToken) {
|
|
153
|
+
rawResponse = await this.backendConnection.createPublicSession();
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
const inputParams = {
|
|
157
|
+
sessionId: this.backendConnection.session.id,
|
|
158
|
+
refreshToken: refreshToken,
|
|
159
|
+
};
|
|
160
|
+
rawResponse = await this._call(login_service_method_enum_1.LoginServiceMethod.RefreshAccessToken, inputParams, false);
|
|
161
|
+
}
|
|
162
|
+
return this._boFactory.makeWithRawBackendData(token_response_bo_1.TokenResponse, rawResponse);
|
|
163
|
+
}
|
|
164
|
+
async confirmCode(upId, userName, password, confirmationCode, clientDeviceFingerprint, clientDeviceDescription, rememberClientDeviceForMFA) {
|
|
165
|
+
const inputParams = {
|
|
166
|
+
upId: upId,
|
|
167
|
+
userName: userName,
|
|
168
|
+
userPassword: password,
|
|
169
|
+
confirmationCode: confirmationCode,
|
|
170
|
+
clientDeviceFingerprint: clientDeviceFingerprint,
|
|
171
|
+
clientDeviceDescription: clientDeviceDescription,
|
|
172
|
+
rememberClientDeviceForMFA: rememberClientDeviceForMFA
|
|
173
|
+
};
|
|
174
|
+
const response = await this._call(login_service_method_enum_1.LoginServiceMethod.ConfirmCode, inputParams, false);
|
|
175
|
+
return await this._handleAndReturnLoginResponse(response, true);
|
|
176
|
+
}
|
|
177
|
+
async resetGoogleAuth(upId, userName) {
|
|
178
|
+
const inputParams = {
|
|
179
|
+
upId: upId,
|
|
180
|
+
userName: userName,
|
|
181
|
+
};
|
|
182
|
+
return this._call(login_service_method_enum_1.LoginServiceMethod.ResetGoogleAuth, inputParams, false);
|
|
183
|
+
}
|
|
184
|
+
async changePassword(password, securityCode, upId) {
|
|
185
|
+
const inputParams = {
|
|
186
|
+
securityCode: securityCode,
|
|
187
|
+
password: password,
|
|
188
|
+
upId: upId
|
|
189
|
+
};
|
|
190
|
+
return this._call(login_service_method_enum_1.LoginServiceMethod.ChangePassword, inputParams, false);
|
|
191
|
+
}
|
|
192
|
+
async changePasswordAndActivateUser(password, securityCode, upId, reCaptchaResponse) {
|
|
193
|
+
const inputParams = {
|
|
194
|
+
password: password,
|
|
195
|
+
securityCode: securityCode,
|
|
196
|
+
upId: upId,
|
|
197
|
+
response: reCaptchaResponse
|
|
198
|
+
};
|
|
199
|
+
return this._call(login_service_method_enum_1.LoginServiceMethod.ChangePasswordAndActivateUser, inputParams, false);
|
|
200
|
+
}
|
|
201
|
+
async sendResetPasswordOrInviteMessage(upId, userName, reCaptchaResponse) {
|
|
202
|
+
const inputParams = {
|
|
203
|
+
upId: upId,
|
|
204
|
+
userName: userName,
|
|
205
|
+
response: reCaptchaResponse
|
|
206
|
+
};
|
|
207
|
+
if (upId && userName) {
|
|
208
|
+
this.backendConnection.setSchemaUserNameAndVersion(upId.toString(), userName);
|
|
209
|
+
}
|
|
210
|
+
this.backendConnection.usePublicToken = false;
|
|
211
|
+
this.backendConnection.createNewSession();
|
|
212
|
+
return this._call(login_service_method_enum_1.LoginServiceMethod.SendResetPasswordOrInviteMessage, inputParams, false);
|
|
213
|
+
}
|
|
214
|
+
async getUserNameBySecurityCode(securityCode, upId) {
|
|
215
|
+
const inputParams = {
|
|
216
|
+
securityCode: securityCode,
|
|
217
|
+
upId: upId,
|
|
218
|
+
};
|
|
219
|
+
return this._call(login_service_method_enum_1.LoginServiceMethod.GetUserNameBySecurityCode, inputParams, true);
|
|
220
|
+
}
|
|
221
|
+
async _handleAndReturnLoginResponse(response, createDataSession = false, keycloak = false) {
|
|
222
|
+
const loginResponse = this._boFactory.makeWithRawBackendData(login_response_1.LoginResponse, response);
|
|
223
|
+
if (loginResponse && loginResponse.loginStatus === login_status_enum_1.LoginStatus.SUCCESS) {
|
|
224
|
+
this.backendConnection.storageService.setLoginResponse(loginResponse);
|
|
225
|
+
this.backendConnection.options.username = loginResponse.userName;
|
|
226
|
+
this._setJwtLoginDataByLoginResponse(loginResponse, keycloak);
|
|
227
|
+
if (createDataSession) {
|
|
228
|
+
const datasessionCreated = await this._datasessionService.createDataSession(this.backendConnection.session.dataSessionId);
|
|
229
|
+
if (datasessionCreated === true) {
|
|
230
|
+
this.backendConnection.storeSessions();
|
|
231
|
+
try {
|
|
232
|
+
if (this.backendConnection.version < 252) {
|
|
233
|
+
this._startHeartBeat();
|
|
234
|
+
}
|
|
235
|
+
else {
|
|
236
|
+
this._healthService.startHeartBeat();
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
catch (e) {
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
this.backendConnection.storageService.setLocalDataSessionId(undefined);
|
|
244
|
+
this.backendConnection.storageService.setLocalSessionId(undefined);
|
|
245
|
+
this.logout();
|
|
246
|
+
throw new Error('Openening data session failed for session \''
|
|
247
|
+
+ '\'. Logging out user.');
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
return loginResponse;
|
|
252
|
+
}
|
|
253
|
+
_setJwtLoginDataByLoginResponse(loginResponse, keycloak = false) {
|
|
254
|
+
const loginData = {
|
|
255
|
+
upId: loginResponse.upId,
|
|
256
|
+
userName: loginResponse.userName,
|
|
257
|
+
dateFormat: loginResponse.userParametersValues.formatDate,
|
|
258
|
+
accessToken: loginResponse.accessToken,
|
|
259
|
+
refreshToken: loginResponse.refreshToken,
|
|
260
|
+
keycloak: keycloak
|
|
261
|
+
};
|
|
262
|
+
this.backendConnection.storageService.setSessionLoginData(loginData);
|
|
263
|
+
this.backendConnection.jwtService.setExpirationTime(loginResponse.accessToken);
|
|
264
|
+
}
|
|
265
|
+
_startHeartBeat() {
|
|
266
|
+
if (!this.heartbeatTimer) {
|
|
267
|
+
this.heartbeatTimer = setInterval(() => {
|
|
268
|
+
this._call(login_service_method_enum_1.LoginServiceMethod.GetHeartBeat, {}, false).catch((e) => {
|
|
269
|
+
console.error(e);
|
|
270
|
+
});
|
|
271
|
+
}, LoginService.HEARTBEAT_INTERVAL_MS);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
_stopHeartBeat() {
|
|
275
|
+
if (this.heartbeatTimer) {
|
|
276
|
+
clearInterval(this.heartbeatTimer);
|
|
277
|
+
this.heartbeatTimer = null;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
async _checkEncryption() {
|
|
281
|
+
if (!this._useEncryption) {
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
else {
|
|
285
|
+
await this._publicService.getPublicKey();
|
|
286
|
+
this.loginRequest.userPassword = this._encryptionService.encRsa(this.loginRequest.pw);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
async _callLogin() {
|
|
290
|
+
await this._checkEncryption();
|
|
291
|
+
return this._call(login_service_method_enum_1.LoginServiceMethod.Login, this.loginRequest, true);
|
|
292
|
+
}
|
|
293
|
+
_callLoginToExternalSource(externalSourceId, url) {
|
|
294
|
+
this.loginRequest.externalSourceId = externalSourceId;
|
|
295
|
+
return this._call(login_service_method_enum_1.LoginServiceMethod.LoginToExternalSource, this.loginRequest, true, url);
|
|
296
|
+
}
|
|
297
|
+
_loginUserByLoginCode(loginRequest) {
|
|
298
|
+
return this._call(login_service_method_enum_1.LoginServiceMethod.LoginWithCode, loginRequest, true);
|
|
299
|
+
}
|
|
300
|
+
_call(method, data, showLoader, url) {
|
|
301
|
+
if (data === undefined) {
|
|
302
|
+
data = {};
|
|
303
|
+
}
|
|
304
|
+
if (showLoader === undefined) {
|
|
305
|
+
showLoader = true;
|
|
306
|
+
}
|
|
307
|
+
return this.backendConnection.call(method, data, showLoader, backend_service_name_enum_1.BackendServiceName.LoginService, undefined, false, undefined, url);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
exports.LoginService = LoginService;
|
|
311
|
+
LoginService.HEARTBEAT_INTERVAL_MS = 59000;
|
|
322
312
|
//# sourceMappingURL=login.service.js.map
|