@colijnit/ioneconnector 3.1.18 → 3.1.19
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 +30 -29
- package/build/connector.js +67 -64
- 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/address-format.enum.d.ts +4 -4
- package/build/enum/address-format.enum.js +8 -8
- 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-service-name.enum.d.ts +7 -6
- package/build/enum/backend-service-name.enum.js +11 -10
- 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/datasession-service-method.enum.d.ts +13 -13
- package/build/enum/datasession-service-method.enum.js +17 -17
- 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/end-point.enum.d.ts +4 -4
- package/build/enum/end-point.enum.js +8 -8
- package/build/enum/file-type-internal.enum.d.ts +11 -11
- package/build/enum/file-type-internal.enum.js +15 -15
- package/build/enum/file-type.enum.d.ts +5 -5
- package/build/enum/file-type.enum.js +9 -9
- package/build/enum/filter-type.enum.d.ts +4 -4
- package/build/enum/filter-type.enum.js +8 -8
- package/build/enum/health-service-method.enum.d.ts +3 -3
- package/build/enum/health-service-method.enum.js +7 -7
- package/build/enum/language-code.enum.d.ts +7 -7
- package/build/enum/language-code.enum.js +11 -11
- package/build/enum/login-service-method.enum.d.ts +24 -24
- package/build/enum/login-service-method.enum.js +28 -28
- package/build/enum/login-status.enum.d.ts +20 -20
- package/build/enum/login-status.enum.js +24 -24
- package/build/enum/message-type.enum.d.ts +6 -6
- package/build/enum/message-type.enum.js +10 -10
- package/build/enum/object-config-kind.d.ts +9 -9
- package/build/enum/object-config-kind.js +13 -13
- 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-value-type.enum.d.ts +10 -10
- package/build/enum/object-configuration-value-type.enum.js +14 -14
- package/build/enum/object-right-type.enum.d.ts +5 -5
- package/build/enum/object-right-type.enum.js +9 -9
- package/build/enum/one-zero-bool-db-type.enum.d.ts +5 -5
- package/build/enum/one-zero-bool-db-type.enum.js +20 -20
- package/build/enum/public-service-method.enum.d.ts +5 -5
- package/build/enum/public-service-method.enum.js +9 -9
- package/build/enum/reset-password-status.enum.d.ts +5 -5
- package/build/enum/reset-password-status.enum.js +9 -9
- 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-property-state.enum.d.ts +5 -5
- package/build/enum/search-property-state.enum.js +9 -9
- package/build/enum/sort-direction.d.ts +5 -5
- package/build/enum/sort-direction.js +12 -12
- package/build/enum/sort-type.enum.d.ts +6 -6
- package/build/enum/sort-type.enum.js +10 -10
- 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/user-info-service-method.enum.d.ts +3 -0
- package/build/enum/user-info-service-method.enum.js +8 -0
- package/build/enum/user-info-service-method.enum.js.map +1 -0
- 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-role-type.enum.d.ts +17 -17
- package/build/enum/user-role-type.enum.js +21 -21
- package/build/enum/value-comparison-type.enum.d.ts +15 -15
- package/build/enum/value-comparison-type.enum.js +31 -31
- 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/factory/business-object-serializer.d.ts +11 -11
- package/build/factory/business-object-serializer.js +145 -145
- 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-serializer-step.decorator.d.ts +4 -4
- package/build/factory/decorators/bo-serializer-step.decorator.js +16 -16
- package/build/factory/decorators/boolean.decorator.d.ts +12 -12
- package/build/factory/decorators/boolean.decorator.js +73 -73
- 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/co-inject.decorator.d.ts +7 -7
- package/build/factory/decorators/co-inject.decorator.js +54 -54
- 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-field.decorator.d.ts +6 -6
- package/build/factory/decorators/complex-field.decorator.js +37 -37
- 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/db-field-alias.decorator.d.ts +6 -6
- package/build/factory/decorators/db-field-alias.decorator.js +40 -40
- 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-number.decorator.d.ts +6 -6
- package/build/factory/decorators/db-number.decorator.js +35 -35
- 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/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/json.decorator.d.ts +6 -6
- package/build/factory/decorators/json.decorator.js +26 -26
- 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/no-db-field.decorator.d.ts +5 -5
- package/build/factory/decorators/no-db-field.decorator.js +34 -34
- 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/simple-method-tag.decorator.d.ts +6 -6
- package/build/factory/decorators/simple-method-tag.decorator.js +31 -31
- 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/string-number.decorator.d.ts +7 -7
- package/build/factory/decorators/string-number.decorator.js +30 -30
- package/build/factory/decorators/validate.decorator.d.ts +11 -11
- package/build/factory/decorators/validate.decorator.js +55 -55
- package/build/interface/address-common-shape.interface.d.ts +14 -14
- package/build/interface/address-common-shape.interface.js +2 -2
- 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 +10 -10
- 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-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-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 +7 -7
- package/build/model/local-storage-schema-object.js +9 -9
- package/build/model/local-storage-user-object.d.ts +7 -7
- package/build/model/local-storage-user-object.js +6 -6
- package/build/model/login-request.d.ts +15 -15
- 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-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-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/options.d.ts +26 -24
- package/build/model/options.js +16 -16
- package/build/model/options.js.map +1 -1
- 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/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-storage-root-object.d.ts +4 -4
- package/build/model/session-storage-root-object.js +9 -9
- package/build/model/session-storage-schema-object.d.ts +7 -7
- package/build/model/session-storage-schema-object.js +9 -9
- package/build/model/session-storage-user-object.d.ts +6 -6
- package/build/model/session-storage-user-object.js +10 -10
- 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-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/provider/ajax.service.d.ts +33 -32
- package/build/provider/ajax.service.js +280 -275
- package/build/provider/ajax.service.js.map +1 -1
- package/build/provider/base-backend-connection.service.d.ts +44 -43
- package/build/provider/base-backend-connection.service.js +154 -144
- package/build/provider/base-backend-connection.service.js.map +1 -1
- package/build/service/business-object-factory.d.ts +8 -8
- package/build/service/business-object-factory.js +119 -119
- package/build/service/datasession.service.d.ts +9 -9
- package/build/service/datasession.service.js +26 -26
- package/build/service/encrypt.service.d.ts +6 -6
- package/build/service/encrypt.service.js +30 -30
- 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 +10 -0
- package/build/service/external-jwt-token.service.js +22 -0
- package/build/service/external-jwt-token.service.js.map +1 -0
- package/build/service/health.service.d.ts +10 -10
- package/build/service/health.service.js +34 -34
- package/build/service/internal-jwt-token.service.d.ts +11 -0
- package/build/service/internal-jwt-token.service.js +41 -0
- package/build/service/internal-jwt-token.service.js.map +1 -0
- package/build/service/jwt-token.service.d.ts +12 -12
- package/build/service/jwt-token.service.js +32 -62
- package/build/service/jwt-token.service.js.map +1 -1
- package/build/service/local-storage.service.d.ts +27 -28
- package/build/service/local-storage.service.js +147 -154
- package/build/service/local-storage.service.js.map +1 -1
- package/build/service/login.service.d.ts +45 -45
- package/build/service/login.service.js +312 -312
- package/build/service/public.service.d.ts +12 -12
- package/build/service/public.service.js +36 -36
- package/build/service/session-storage.service.d.ts +18 -18
- package/build/service/session-storage.service.js +116 -116
- package/build/service/user-info.service.d.ts +9 -0
- package/build/service/user-info.service.js +34 -0
- package/build/service/user-info.service.js.map +1 -0
- 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/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/business-object-utils.d.ts +20 -20
- package/build/utils/business-object-utils.js +198 -198
- package/build/utils/date-utils.d.ts +5 -5
- package/build/utils/date-utils.js +24 -24
- package/build/utils/file-utils.d.ts +6 -6
- package/build/utils/file-utils.js +66 -66
- package/build/utils/function/any-nill.function.d.ts +1 -1
- package/build/utils/function/any-nill.function.js +16 -16
- package/build/utils/function/is-nill.function.d.ts +1 -1
- package/build/utils/function/is-nill.function.js +7 -7
- package/build/utils/function/not-nill.function.d.ts +1 -1
- package/build/utils/function/not-nill.function.js +7 -7
- package/build/utils/function-utils.d.ts +4 -4
- package/build/utils/function-utils.js +31 -31
- package/build/utils/image-utils.d.ts +4 -4
- package/build/utils/image-utils.js +28 -28
- package/build/utils/map-utils.d.ts +4 -4
- package/build/utils/map-utils.js +31 -31
- package/build/utils/number-utils.d.ts +39 -39
- package/build/utils/number-utils.js +268 -268
- package/build/utils/object-utils.d.ts +21 -21
- package/build/utils/object-utils.js +247 -247
- package/build/utils/parameter-value-conversion-utils.d.ts +3 -3
- package/build/utils/parameter-value-conversion-utils.js +19 -19
- package/build/utils/promise-utils.d.ts +6 -6
- package/build/utils/promise-utils.js +22 -22
- package/build/utils/ref-code-utils.d.ts +4 -4
- package/build/utils/ref-code-utils.js +19 -19
- package/build/utils/sort-utils.d.ts +12 -12
- package/build/utils/sort-utils.js +120 -120
- package/build/utils/string-utils.d.ts +25 -25
- package/build/utils/string-utils.js +212 -212
- package/build/utils/url-utils.d.ts +4 -4
- package/build/utils/url-utils.js +33 -33
- package/build/validators/communication-type.validator.d.ts +1 -1
- package/build/validators/communication-type.validator.js +16 -16
- package/build/validators/email.validator.d.ts +2 -2
- package/build/validators/email.validator.js +9 -9
- package/build/validators/empty-address.validator.d.ts +3 -3
- package/build/validators/empty-address.validator.js +12 -12
- package/build/validators/empty-array.validator.d.ts +2 -2
- package/build/validators/empty-array.validator.js +14 -14
- package/build/validators/end-date-equal.validator.d.ts +1 -1
- package/build/validators/end-date-equal.validator.js +17 -17
- package/build/validators/end-date.validator.d.ts +1 -1
- package/build/validators/end-date.validator.js +17 -17
- package/build/validators/equal.validator.d.ts +2 -2
- package/build/validators/equal.validator.js +14 -14
- package/build/validators/max-string-length.validator.d.ts +2 -2
- package/build/validators/max-string-length.validator.js +13 -13
- package/build/validators/nl-post-code.validator.d.ts +3 -3
- package/build/validators/nl-post-code.validator.js +14 -14
- package/build/validators/password.validator.d.ts +3 -3
- package/build/validators/password.validator.js +33 -33
- package/build/validators/postal-code-function.validator.d.ts +2 -2
- package/build/validators/postal-code-function.validator.js +19 -19
- package/build/validators/postal-code.validator.d.ts +1 -1
- package/build/validators/postal-code.validator.js +21 -21
- package/build/validators/precision-scale.validator.d.ts +2 -2
- package/build/validators/precision-scale.validator.js +14 -14
- package/build/validators/required.validator.d.ts +2 -2
- package/build/validators/required.validator.js +8 -8
- package/build/validators/social-security-number.validator.d.ts +2 -2
- package/build/validators/social-security-number.validator.js +28 -28
- package/build/validators/space-trim.validator.d.ts +2 -2
- package/build/validators/space-trim.validator.js +12 -12
- package/build/validators/true.validator.d.ts +2 -2
- package/build/validators/true.validator.js +8 -8
- package/package.json +64 -64
|
@@ -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.DeepConfigNameDelimiter = "_";
|
|
158
|
-
ObjectConfiguration.IdSeparator = "#";
|
|
159
|
-
ObjectConfiguration.DefaultValueListSplitChar = ",";
|
|
160
|
-
__decorate([
|
|
161
|
-
(0, boolean_decorator_1.BooleanText)("T"),
|
|
162
|
-
__metadata("design:type", Boolean)
|
|
163
|
-
], ObjectConfiguration.prototype, "completion", void 0);
|
|
164
|
-
__decorate([
|
|
165
|
-
(0, boolean_decorator_1.BooleanText)("T"),
|
|
166
|
-
__metadata("design:type", Boolean)
|
|
167
|
-
], ObjectConfiguration.prototype, "fieldAuthorisation", void 0);
|
|
168
|
-
__decorate([
|
|
169
|
-
(0, boolean_decorator_1.BooleanText)("T"),
|
|
170
|
-
__metadata("design:type", Boolean)
|
|
171
|
-
], ObjectConfiguration.prototype, "needsAuthorisation", void 0);
|
|
172
|
-
__decorate([
|
|
173
|
-
(0, boolean_decorator_1.BooleanText)("T"),
|
|
174
|
-
__metadata("design:type", Boolean)
|
|
175
|
-
], ObjectConfiguration.prototype, "nullable", void 0);
|
|
176
|
-
__decorate([
|
|
177
|
-
(0, string_number_decorator_1.StringNumber)(),
|
|
178
|
-
__metadata("design:type", Number)
|
|
179
|
-
], ObjectConfiguration.prototype, "rights", void 0);
|
|
180
|
-
__decorate([
|
|
181
|
-
(0, no_db_field_decorator_1.NoDbField)(),
|
|
182
|
-
__metadata("design:type", Boolean)
|
|
183
|
-
], ObjectConfiguration.prototype, "variableReadOnly", void 0);
|
|
184
|
-
__decorate([
|
|
185
|
-
(0, no_db_field_decorator_1.NoDbField)(),
|
|
186
|
-
__metadata("design:type", Boolean)
|
|
187
|
-
], ObjectConfiguration.prototype, "redErrorBackground", void 0);
|
|
188
|
-
__decorate([
|
|
189
|
-
(0, no_db_field_decorator_1.NoDbField)(),
|
|
190
|
-
__metadata("design:type", String)
|
|
191
|
-
], ObjectConfiguration, "DeepConfigNameDelimiter", void 0);
|
|
192
|
-
__decorate([
|
|
193
|
-
(0, no_db_field_decorator_1.NoDbField)(),
|
|
194
|
-
__metadata("design:type", String)
|
|
195
|
-
], ObjectConfiguration, "IdSeparator", void 0);
|
|
196
|
-
__decorate([
|
|
197
|
-
(0, no_db_field_decorator_1.NoDbField)(),
|
|
198
|
-
__metadata("design:type", String)
|
|
199
|
-
], ObjectConfiguration, "DefaultValueListSplitChar", void 0);
|
|
200
|
-
exports.ObjectConfiguration = ObjectConfiguration;
|
|
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.DeepConfigNameDelimiter = "_";
|
|
158
|
+
ObjectConfiguration.IdSeparator = "#";
|
|
159
|
+
ObjectConfiguration.DefaultValueListSplitChar = ",";
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, boolean_decorator_1.BooleanText)("T"),
|
|
162
|
+
__metadata("design:type", Boolean)
|
|
163
|
+
], ObjectConfiguration.prototype, "completion", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
(0, boolean_decorator_1.BooleanText)("T"),
|
|
166
|
+
__metadata("design:type", Boolean)
|
|
167
|
+
], ObjectConfiguration.prototype, "fieldAuthorisation", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, boolean_decorator_1.BooleanText)("T"),
|
|
170
|
+
__metadata("design:type", Boolean)
|
|
171
|
+
], ObjectConfiguration.prototype, "needsAuthorisation", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
(0, boolean_decorator_1.BooleanText)("T"),
|
|
174
|
+
__metadata("design:type", Boolean)
|
|
175
|
+
], ObjectConfiguration.prototype, "nullable", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
(0, string_number_decorator_1.StringNumber)(),
|
|
178
|
+
__metadata("design:type", Number)
|
|
179
|
+
], ObjectConfiguration.prototype, "rights", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, no_db_field_decorator_1.NoDbField)(),
|
|
182
|
+
__metadata("design:type", Boolean)
|
|
183
|
+
], ObjectConfiguration.prototype, "variableReadOnly", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
(0, no_db_field_decorator_1.NoDbField)(),
|
|
186
|
+
__metadata("design:type", Boolean)
|
|
187
|
+
], ObjectConfiguration.prototype, "redErrorBackground", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
(0, no_db_field_decorator_1.NoDbField)(),
|
|
190
|
+
__metadata("design:type", String)
|
|
191
|
+
], ObjectConfiguration, "DeepConfigNameDelimiter", void 0);
|
|
192
|
+
__decorate([
|
|
193
|
+
(0, no_db_field_decorator_1.NoDbField)(),
|
|
194
|
+
__metadata("design:type", String)
|
|
195
|
+
], ObjectConfiguration, "IdSeparator", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
(0, no_db_field_decorator_1.NoDbField)(),
|
|
198
|
+
__metadata("design:type", String)
|
|
199
|
+
], ObjectConfiguration, "DefaultValueListSplitChar", void 0);
|
|
200
|
+
exports.ObjectConfiguration = ObjectConfiguration;
|
|
201
201
|
//# sourceMappingURL=object-configuration.js.map
|
package/build/model/options.d.ts
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import { LanguageCode } from '../enum/language-code.enum';
|
|
2
|
-
export declare class Options {
|
|
3
|
-
url?: string;
|
|
4
|
-
version?: string;
|
|
5
|
-
username?: string;
|
|
6
|
-
password?: string;
|
|
7
|
-
schema?: string;
|
|
8
|
-
branch?: string;
|
|
9
|
-
currencyId?: number;
|
|
10
|
-
module?: string;
|
|
11
|
-
sessionId?: string;
|
|
12
|
-
dataSessionId?: string;
|
|
13
|
-
windowSessionId?: string;
|
|
14
|
-
useGroups?: boolean;
|
|
15
|
-
useRenders?: boolean;
|
|
16
|
-
useArticleIds?: boolean;
|
|
17
|
-
use3D?: boolean;
|
|
18
|
-
useLoginEncryption?: boolean;
|
|
19
|
-
languageCode?: LanguageCode;
|
|
20
|
-
timeoutInMs?: number;
|
|
21
|
-
jwtEnabled?: boolean;
|
|
22
|
-
jwtRefreshToken?: boolean;
|
|
23
|
-
logoutWhenRefresh?: boolean;
|
|
24
|
-
|
|
1
|
+
import { LanguageCode } from '../enum/language-code.enum';
|
|
2
|
+
export declare class Options {
|
|
3
|
+
url?: string;
|
|
4
|
+
version?: string;
|
|
5
|
+
username?: string;
|
|
6
|
+
password?: string;
|
|
7
|
+
schema?: string;
|
|
8
|
+
branch?: string;
|
|
9
|
+
currencyId?: number;
|
|
10
|
+
module?: string;
|
|
11
|
+
sessionId?: string;
|
|
12
|
+
dataSessionId?: string;
|
|
13
|
+
windowSessionId?: string;
|
|
14
|
+
useGroups?: boolean;
|
|
15
|
+
useRenders?: boolean;
|
|
16
|
+
useArticleIds?: boolean;
|
|
17
|
+
use3D?: boolean;
|
|
18
|
+
useLoginEncryption?: boolean;
|
|
19
|
+
languageCode?: LanguageCode;
|
|
20
|
+
timeoutInMs?: number;
|
|
21
|
+
jwtEnabled?: boolean;
|
|
22
|
+
jwtRefreshToken?: boolean;
|
|
23
|
+
logoutWhenRefresh?: boolean;
|
|
24
|
+
getAccessTokenFunction?: GetAccessTokenFunction;
|
|
25
|
+
}
|
|
26
|
+
export type GetAccessTokenFunction = () => string;
|
package/build/model/options.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Options = void 0;
|
|
4
|
-
class Options {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.useGroups = true;
|
|
7
|
-
this.useRenders = false;
|
|
8
|
-
this.useArticleIds = false;
|
|
9
|
-
this.use3D = false;
|
|
10
|
-
this.useLoginEncryption = false;
|
|
11
|
-
this.jwtEnabled = false;
|
|
12
|
-
this.jwtRefreshToken = true;
|
|
13
|
-
this.logoutWhenRefresh = true;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.Options = Options;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Options = void 0;
|
|
4
|
+
class Options {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.useGroups = true;
|
|
7
|
+
this.useRenders = false;
|
|
8
|
+
this.useArticleIds = false;
|
|
9
|
+
this.use3D = false;
|
|
10
|
+
this.useLoginEncryption = false;
|
|
11
|
+
this.jwtEnabled = false;
|
|
12
|
+
this.jwtRefreshToken = true;
|
|
13
|
+
this.logoutWhenRefresh = true;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.Options = Options;
|
|
17
17
|
//# sourceMappingURL=options.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../src/model/options.ts"],"names":[],"mappings":";;;AAEA,MAAa,OAAO;IAApB;QAaW,cAAS,GAAa,IAAI,CAAC;QAC3B,eAAU,GAAa,KAAK,CAAC;QAC7B,kBAAa,GAAa,KAAK,CAAC;QAChC,UAAK,GAAa,KAAK,CAAC;QACxB,uBAAkB,GAAa,KAAK,CAAC;QAMrC,eAAU,GAAa,KAAK,CAAC;QAC7B,oBAAe,GAAa,IAAI,CAAC;QACjC,sBAAiB,GAAa,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../src/model/options.ts"],"names":[],"mappings":";;;AAEA,MAAa,OAAO;IAApB;QAaW,cAAS,GAAa,IAAI,CAAC;QAC3B,eAAU,GAAa,KAAK,CAAC;QAC7B,kBAAa,GAAa,KAAK,CAAC;QAChC,UAAK,GAAa,KAAK,CAAC;QACxB,uBAAkB,GAAa,KAAK,CAAC;QAMrC,eAAU,GAAa,KAAK,CAAC;QAC7B,oBAAe,GAAa,IAAI,CAAC;QACjC,sBAAiB,GAAa,IAAI,CAAC;IAG9C,CAAC;CAAA;AA5BD,0BA4BC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export declare class PagingParameters {
|
|
2
|
-
static readonly DEFAULT_UPPER_BOUND: number;
|
|
3
|
-
static readonly DEFAULTS: PagingParameters;
|
|
4
|
-
static readonly HUNDRED_RESULTS: PagingParameters;
|
|
5
|
-
static readonly FIFTY_RESULTS: PagingParameters;
|
|
6
|
-
static readonly TWENTY_RESULTS: PagingParameters;
|
|
7
|
-
static readonly TEN_RESULTS: PagingParameters;
|
|
8
|
-
static readonly ONE_RESULT: PagingParameters;
|
|
9
|
-
pageLowerBound: number;
|
|
10
|
-
pageUpperBound: number;
|
|
11
|
-
maximumRows: number;
|
|
12
|
-
isLastPage: boolean;
|
|
13
|
-
constructor(pageLowerBound?: number, pageUpperBound?: number, maximumRows?: number, isLastPage?: boolean);
|
|
14
|
-
setData(rawData: any): void;
|
|
15
|
-
}
|
|
1
|
+
export declare class PagingParameters {
|
|
2
|
+
static readonly DEFAULT_UPPER_BOUND: number;
|
|
3
|
+
static readonly DEFAULTS: PagingParameters;
|
|
4
|
+
static readonly HUNDRED_RESULTS: PagingParameters;
|
|
5
|
+
static readonly FIFTY_RESULTS: PagingParameters;
|
|
6
|
+
static readonly TWENTY_RESULTS: PagingParameters;
|
|
7
|
+
static readonly TEN_RESULTS: PagingParameters;
|
|
8
|
+
static readonly ONE_RESULT: PagingParameters;
|
|
9
|
+
pageLowerBound: number;
|
|
10
|
+
pageUpperBound: number;
|
|
11
|
+
maximumRows: number;
|
|
12
|
+
isLastPage: boolean;
|
|
13
|
+
constructor(pageLowerBound?: number, pageUpperBound?: number, maximumRows?: number, isLastPage?: boolean);
|
|
14
|
+
setData(rawData: any): void;
|
|
15
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare class IPagingParameters {
|
|
2
|
-
pageLowerBound: number;
|
|
3
|
-
pageUpperBound: number;
|
|
4
|
-
maximumRows: number;
|
|
5
|
-
isLastPage: boolean;
|
|
6
|
-
}
|
|
1
|
+
export declare class IPagingParameters {
|
|
2
|
+
pageLowerBound: number;
|
|
3
|
+
pageUpperBound: number;
|
|
4
|
+
maximumRows: number;
|
|
5
|
+
isLastPage: boolean;
|
|
6
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IPagingParameters = void 0;
|
|
4
|
-
class IPagingParameters {
|
|
5
|
-
}
|
|
6
|
-
exports.IPagingParameters = IPagingParameters;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IPagingParameters = void 0;
|
|
4
|
+
class IPagingParameters {
|
|
5
|
+
}
|
|
6
|
+
exports.IPagingParameters = IPagingParameters;
|
|
7
7
|
//# sourceMappingURL=paging-parameters.interface.js.map
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PagingParameters = void 0;
|
|
4
|
-
const not_nill_function_1 = require("../utils/function/not-nill.function");
|
|
5
|
-
class PagingParameters {
|
|
6
|
-
constructor(pageLowerBound = 1, pageUpperBound = PagingParameters.DEFAULT_UPPER_BOUND, maximumRows = PagingParameters.DEFAULT_UPPER_BOUND, isLastPage = false) {
|
|
7
|
-
this.pageLowerBound = pageLowerBound;
|
|
8
|
-
this.pageUpperBound = pageUpperBound;
|
|
9
|
-
this.maximumRows = maximumRows;
|
|
10
|
-
this.isLastPage = isLastPage;
|
|
11
|
-
}
|
|
12
|
-
setData(rawData) {
|
|
13
|
-
if (!rawData) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
if ((0, not_nill_function_1.notNill)(rawData.pageLowerBound)) {
|
|
17
|
-
this.pageLowerBound = rawData.pageLowerBound;
|
|
18
|
-
}
|
|
19
|
-
if ((0, not_nill_function_1.notNill)(rawData.pageUpperBound)) {
|
|
20
|
-
this.pageUpperBound = rawData.pageUpperBound;
|
|
21
|
-
}
|
|
22
|
-
if ((0, not_nill_function_1.notNill)(rawData.maximumRows)) {
|
|
23
|
-
this.maximumRows = rawData.maximumRows;
|
|
24
|
-
}
|
|
25
|
-
if ((0, not_nill_function_1.notNill)(rawData.isLastPage)) {
|
|
26
|
-
this.isLastPage = rawData.isLastPage;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.PagingParameters = PagingParameters;
|
|
31
|
-
PagingParameters.DEFAULT_UPPER_BOUND = 1000;
|
|
32
|
-
PagingParameters.DEFAULTS = new PagingParameters(1, PagingParameters.DEFAULT_UPPER_BOUND, PagingParameters.DEFAULT_UPPER_BOUND);
|
|
33
|
-
PagingParameters.HUNDRED_RESULTS = new PagingParameters(1, 100, 100);
|
|
34
|
-
PagingParameters.FIFTY_RESULTS = new PagingParameters(1, 50, 50);
|
|
35
|
-
PagingParameters.TWENTY_RESULTS = new PagingParameters(1, 20, 20);
|
|
36
|
-
PagingParameters.TEN_RESULTS = new PagingParameters(1, 10, 10);
|
|
37
|
-
PagingParameters.ONE_RESULT = new PagingParameters(1, 1, 1);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PagingParameters = void 0;
|
|
4
|
+
const not_nill_function_1 = require("../utils/function/not-nill.function");
|
|
5
|
+
class PagingParameters {
|
|
6
|
+
constructor(pageLowerBound = 1, pageUpperBound = PagingParameters.DEFAULT_UPPER_BOUND, maximumRows = PagingParameters.DEFAULT_UPPER_BOUND, isLastPage = false) {
|
|
7
|
+
this.pageLowerBound = pageLowerBound;
|
|
8
|
+
this.pageUpperBound = pageUpperBound;
|
|
9
|
+
this.maximumRows = maximumRows;
|
|
10
|
+
this.isLastPage = isLastPage;
|
|
11
|
+
}
|
|
12
|
+
setData(rawData) {
|
|
13
|
+
if (!rawData) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
if ((0, not_nill_function_1.notNill)(rawData.pageLowerBound)) {
|
|
17
|
+
this.pageLowerBound = rawData.pageLowerBound;
|
|
18
|
+
}
|
|
19
|
+
if ((0, not_nill_function_1.notNill)(rawData.pageUpperBound)) {
|
|
20
|
+
this.pageUpperBound = rawData.pageUpperBound;
|
|
21
|
+
}
|
|
22
|
+
if ((0, not_nill_function_1.notNill)(rawData.maximumRows)) {
|
|
23
|
+
this.maximumRows = rawData.maximumRows;
|
|
24
|
+
}
|
|
25
|
+
if ((0, not_nill_function_1.notNill)(rawData.isLastPage)) {
|
|
26
|
+
this.isLastPage = rawData.isLastPage;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.PagingParameters = PagingParameters;
|
|
31
|
+
PagingParameters.DEFAULT_UPPER_BOUND = 1000;
|
|
32
|
+
PagingParameters.DEFAULTS = new PagingParameters(1, PagingParameters.DEFAULT_UPPER_BOUND, PagingParameters.DEFAULT_UPPER_BOUND);
|
|
33
|
+
PagingParameters.HUNDRED_RESULTS = new PagingParameters(1, 100, 100);
|
|
34
|
+
PagingParameters.FIFTY_RESULTS = new PagingParameters(1, 50, 50);
|
|
35
|
+
PagingParameters.TWENTY_RESULTS = new PagingParameters(1, 20, 20);
|
|
36
|
+
PagingParameters.TEN_RESULTS = new PagingParameters(1, 10, 10);
|
|
37
|
+
PagingParameters.ONE_RESULT = new PagingParameters(1, 1, 1);
|
|
38
38
|
//# sourceMappingURL=paging-parameters.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DataServiceData } from "./data-service-data";
|
|
2
|
-
export interface PublicServiceRequestData extends DataServiceData {
|
|
3
|
-
upId?: string;
|
|
4
|
-
languageCode?: string;
|
|
5
|
-
}
|
|
1
|
+
import { DataServiceData } from "./data-service-data";
|
|
2
|
+
export interface PublicServiceRequestData extends DataServiceData {
|
|
3
|
+
upId?: string;
|
|
4
|
+
languageCode?: string;
|
|
5
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=public-service-request-data.js.map
|