@snabcentr/client-core 3.7.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/snabcentr-client-core.mjs +466 -498
- package/fesm2022/snabcentr-client-core.mjs.map +1 -1
- package/package.json +23 -24
- package/release_notes.tmp +1 -1
- package/types/snabcentr-client-core.d.ts +10137 -0
- package/auth/index.d.ts +0 -3
- package/auth/interfaces/index.d.ts +0 -5
- package/auth/interfaces/sc-i-api-error-response.d.ts +0 -13
- package/auth/interfaces/sc-i-auth-token.d.ts +0 -14
- package/auth/interfaces/sc-i-login.d.ts +0 -13
- package/auth/interfaces/sc-i-phone-login.d.ts +0 -13
- package/auth/interfaces/sc-i-token.d.ts +0 -13
- package/auth/services/index.d.ts +0 -2
- package/auth/services/sc-auth.service.d.ts +0 -78
- package/auth/services/sc-token.service.d.ts +0 -79
- package/auth/tokens/index.d.ts +0 -3
- package/auth/tokens/sc-access-auth-token-storage-key.d.ts +0 -5
- package/auth/tokens/sc-guest-token-storage-key.d.ts +0 -5
- package/auth/tokens/sc-refresh-auth-token-storage-key.d.ts +0 -5
- package/banners/dto/index.d.ts +0 -2
- package/banners/dto/sc-banner.d.ts +0 -56
- package/banners/dto/sc-i-banner.d.ts +0 -41
- package/banners/index.d.ts +0 -2
- package/banners/services/sc-banner.service.d.ts +0 -22
- package/cart/classes/index.d.ts +0 -2
- package/cart/classes/sc-cart.d.ts +0 -26
- package/cart/classes/sc-sum.d.ts +0 -12
- package/cart/constants/index.d.ts +0 -1
- package/cart/constants/sc-empty-cart.d.ts +0 -7
- package/cart/index.d.ts +0 -4
- package/cart/internal/index.d.ts +0 -1
- package/cart/internal/sc-i-cart.d.ts +0 -19
- package/cart/services/index.d.ts +0 -1
- package/cart/services/sc-cart.service.d.ts +0 -113
- package/catalog/classes/index.d.ts +0 -3
- package/catalog/classes/sc-cached-data.d.ts +0 -25
- package/catalog/classes/sc-cached-item.d.ts +0 -53
- package/catalog/classes/sc-catalog-item.d.ts +0 -31
- package/catalog/dto/index.d.ts +0 -7
- package/catalog/dto/sc-category.d.ts +0 -133
- package/catalog/dto/sc-i-discount.d.ts +0 -21
- package/catalog/dto/sc-i-product-images.d.ts +0 -25
- package/catalog/dto/sc-i-product-notify-when-in-stock.d.ts +0 -21
- package/catalog/dto/sc-i-properties.d.ts +0 -88
- package/catalog/dto/sc-product.d.ts +0 -177
- package/catalog/dto/sc-virtual-category.d.ts +0 -27
- package/catalog/enums/index.d.ts +0 -3
- package/catalog/enums/sc-catalog-format.d.ts +0 -13
- package/catalog/enums/sc-mime-types.d.ts +0 -77
- package/catalog/enums/sc-product-tile-type.d.ts +0 -13
- package/catalog/index.d.ts +0 -8
- package/catalog/interfaces/index.d.ts +0 -13
- package/catalog/interfaces/sc-catalog-filter.d.ts +0 -7
- package/catalog/interfaces/sc-i-base-catalog-filter.d.ts +0 -17
- package/catalog/interfaces/sc-i-catalog-item.d.ts +0 -16
- package/catalog/interfaces/sc-i-category-product-params.d.ts +0 -45
- package/catalog/interfaces/sc-i-category-products-pagination-params.d.ts +0 -19
- package/catalog/interfaces/sc-i-category.d.ts +0 -29
- package/catalog/interfaces/sc-i-checkbox-filter.d.ts +0 -31
- package/catalog/interfaces/sc-i-product.d.ts +0 -78
- package/catalog/interfaces/sc-i-range-filter.d.ts +0 -26
- package/catalog/interfaces/sc-i-toggle-filter.d.ts +0 -14
- package/catalog/interfaces/sc-i-virtual-category.d.ts +0 -20
- package/catalog/interfaces/sc-property-filters.d.ts +0 -5
- package/catalog/interfaces/sc-t-product-sort-field.d.ts +0 -4
- package/catalog/internal/index.d.ts +0 -1
- package/catalog/internal/sc-i-filter-tree-category.d.ts +0 -15
- package/catalog/services/index.d.ts +0 -4
- package/catalog/services/sc-catalog-filter.service.d.ts +0 -37
- package/catalog/services/sc-catalog.service.d.ts +0 -199
- package/catalog/services/sc-favorite.service.d.ts +0 -62
- package/catalog/services/sc-recommendation.service.d.ts +0 -76
- package/catalog/tokens/index.d.ts +0 -1
- package/catalog/tokens/sc-count-first-discounted-products.d.ts +0 -5
- package/catalog/types/index.d.ts +0 -2
- package/catalog/types/sc-filters-tree-catalog.d.ts +0 -5
- package/catalog/types/sc-price-history.d.ts +0 -13
- package/common/classes/index.d.ts +0 -10
- package/common/classes/sc-catalogable-item.d.ts +0 -17
- package/common/classes/sc-coded-identity.d.ts +0 -17
- package/common/classes/sc-deletable-named-identity.d.ts +0 -17
- package/common/classes/sc-hidden-catalogable-item.d.ts +0 -17
- package/common/classes/sc-identity.d.ts +0 -25
- package/common/classes/sc-image.d.ts +0 -24
- package/common/classes/sc-named-identity.d.ts +0 -17
- package/common/classes/sc-primary-catalogable-item.d.ts +0 -17
- package/common/classes/sc-reference.d.ts +0 -21
- package/common/classes/sc-updatable-named-identity.d.ts +0 -17
- package/common/enums/index.d.ts +0 -1
- package/common/enums/request-state-status-enum.d.ts +0 -17
- package/common/index.d.ts +0 -3
- package/common/interfaces/index.d.ts +0 -18
- package/common/interfaces/sc-i-catalogable-item.d.ts +0 -10
- package/common/interfaces/sc-i-coded-identity.d.ts +0 -10
- package/common/interfaces/sc-i-created-at.d.ts +0 -9
- package/common/interfaces/sc-i-date-period.d.ts +0 -6
- package/common/interfaces/sc-i-deletable-named-identity.d.ts +0 -7
- package/common/interfaces/sc-i-deleted-at.d.ts +0 -9
- package/common/interfaces/sc-i-file.d.ts +0 -13
- package/common/interfaces/sc-i-hidden-catalogable-item.d.ts +0 -10
- package/common/interfaces/sc-i-identity.d.ts +0 -13
- package/common/interfaces/sc-i-image.d.ts +0 -17
- package/common/interfaces/sc-i-named-identity.d.ts +0 -7
- package/common/interfaces/sc-i-named.d.ts +0 -9
- package/common/interfaces/sc-i-primary-catalogable-item.d.ts +0 -10
- package/common/interfaces/sc-i-reference.d.ts +0 -14
- package/common/interfaces/sc-i-request-state.d.ts +0 -35
- package/common/interfaces/sc-i-typed-nullable-range.d.ts +0 -13
- package/common/interfaces/sc-i-updatable-named-identity.d.ts +0 -7
- package/common/interfaces/sc-i-updated-at.d.ts +0 -9
- package/config/index.d.ts +0 -11
- package/config/sc-i-api-keys.d.ts +0 -13
- package/config/sc-i-app-release.d.ts +0 -17
- package/config/sc-i-cache-lifetime.d.ts +0 -27
- package/config/sc-i-company-base-info.d.ts +0 -54
- package/config/sc-i-date-format.d.ts +0 -17
- package/config/sc-i-feedback-api.d.ts +0 -17
- package/config/sc-i-maps-default-options.d.ts +0 -13
- package/config/sc-i-update-interval.d.ts +0 -13
- package/config/sc-i-urls.d.ts +0 -44
- package/config/sc-i-user-configs.d.ts +0 -9
- package/config/sc-route-keys.d.ts +0 -153
- package/configurator/dto/index.d.ts +0 -7
- package/configurator/dto/sc-i-configurator-base.d.ts +0 -5
- package/configurator/dto/sc-i-configurator-calculate-result.d.ts +0 -18
- package/configurator/dto/sc-i-configurator-calculate-sheet.d.ts +0 -9
- package/configurator/dto/sc-i-configurator-search-product-base.d.ts +0 -5
- package/configurator/dto/sc-i-configurator-settings-base.d.ts +0 -5
- package/configurator/dto/sc-i-sandwich-calculate-item.d.ts +0 -17
- package/configurator/dto/sc-i-sandwich-calculate.d.ts +0 -14
- package/configurator/index.d.ts +0 -3
- package/configurator/services/index.d.ts +0 -1
- package/configurator/services/sc-configurator.service.d.ts +0 -81
- package/configurator/types/index.d.ts +0 -1
- package/configurator/types/sc-type-by-key.d.ts +0 -5
- package/contacts/dto/index.d.ts +0 -9
- package/contacts/dto/sc-i-contact-and-media.d.ts +0 -23
- package/contacts/dto/sc-i-direction-manager-contact.d.ts +0 -42
- package/contacts/dto/sc-i-feedback-message.d.ts +0 -35
- package/contacts/dto/sc-i-org-contact.d.ts +0 -46
- package/contacts/dto/sc-i-requisites-with-label.d.ts +0 -13
- package/contacts/dto/sc-i-requisites.d.ts +0 -58
- package/contacts/dto/sc-i-retail-contact.d.ts +0 -47
- package/contacts/dto/sc-i-social-media.d.ts +0 -18
- package/contacts/dto/sc-uploaded-file.d.ts +0 -14
- package/contacts/enums/index.d.ts +0 -2
- package/contacts/enums/sc-feedback-forms.d.ts +0 -29
- package/contacts/enums/sc-social-type.d.ts +0 -21
- package/contacts/index.d.ts +0 -3
- package/contacts/services/index.d.ts +0 -3
- package/contacts/services/sc-contacts.service.d.ts +0 -79
- package/contacts/services/sc-feedback.service.d.ts +0 -41
- package/contacts/services/sc-requisites.service.d.ts +0 -90
- package/contragent/dto/index.d.ts +0 -13
- package/contragent/dto/sc-contragent-on-data-create.d.ts +0 -8
- package/contragent/dto/sc-contragent.d.ts +0 -8
- package/contragent/dto/sc-i-bank-account-on-data-create.d.ts +0 -25
- package/contragent/dto/sc-i-bank-account.d.ts +0 -15
- package/contragent/dto/sc-i-contragent-entrepreneur-on-data-create.d.ts +0 -43
- package/contragent/dto/sc-i-contragent-entrepreneur.d.ts +0 -38
- package/contragent/dto/sc-i-contragent-individual-on-data-create.d.ts +0 -23
- package/contragent/dto/sc-i-contragent-individual.d.ts +0 -18
- package/contragent/dto/sc-i-contragent-legal-on-data-create.d.ts +0 -10
- package/contragent/dto/sc-i-contragent-legal.d.ts +0 -10
- package/contragent/dto/sc-i-contragent-non-resident-legal-on-data-create.d.ts +0 -18
- package/contragent/dto/sc-i-contragent-non-resident-legal.d.ts +0 -19
- package/contragent/dto/sc-i-opf.d.ts +0 -21
- package/contragent/index.d.ts +0 -2
- package/contragent/services/index.d.ts +0 -1
- package/contragent/services/sc-contragent.service.d.ts +0 -105
- package/converters/index.d.ts +0 -2
- package/converters/services/sc-converters.service.d.ts +0 -61
- package/converters/types/index.d.ts +0 -1
- package/converters/types/sc-date-to-string.d.ts +0 -6
- package/delivery-address/dto/index.d.ts +0 -2
- package/delivery-address/dto/sc-i-delivery-addresses-on-data-create.d.ts +0 -44
- package/delivery-address/dto/sc-i-delivery-addresses.d.ts +0 -10
- package/delivery-address/index.d.ts +0 -2
- package/delivery-address/services/index.d.ts +0 -1
- package/delivery-address/services/sc-delivery-address.service.d.ts +0 -73
- package/esm2022/auth/index.mjs +0 -4
- package/esm2022/auth/interfaces/index.mjs +0 -6
- package/esm2022/auth/interfaces/sc-i-api-error-response.mjs +0 -2
- package/esm2022/auth/interfaces/sc-i-auth-token.mjs +0 -2
- package/esm2022/auth/interfaces/sc-i-login.mjs +0 -2
- package/esm2022/auth/interfaces/sc-i-phone-login.mjs +0 -2
- package/esm2022/auth/interfaces/sc-i-token.mjs +0 -2
- package/esm2022/auth/services/index.mjs +0 -3
- package/esm2022/auth/services/sc-auth.service.mjs +0 -162
- package/esm2022/auth/services/sc-token.service.mjs +0 -158
- package/esm2022/auth/tokens/index.mjs +0 -4
- package/esm2022/auth/tokens/sc-access-auth-token-storage-key.mjs +0 -9
- package/esm2022/auth/tokens/sc-guest-token-storage-key.mjs +0 -9
- package/esm2022/auth/tokens/sc-refresh-auth-token-storage-key.mjs +0 -9
- package/esm2022/banners/dto/index.mjs +0 -3
- package/esm2022/banners/dto/sc-banner.mjs +0 -34
- package/esm2022/banners/dto/sc-i-banner.mjs +0 -2
- package/esm2022/banners/index.mjs +0 -3
- package/esm2022/banners/services/sc-banner.service.mjs +0 -35
- package/esm2022/cart/classes/index.mjs +0 -3
- package/esm2022/cart/classes/sc-cart.mjs +0 -18
- package/esm2022/cart/classes/sc-sum.mjs +0 -14
- package/esm2022/cart/constants/index.mjs +0 -2
- package/esm2022/cart/constants/sc-empty-cart.mjs +0 -2
- package/esm2022/cart/index.mjs +0 -5
- package/esm2022/cart/internal/index.mjs +0 -2
- package/esm2022/cart/internal/sc-i-cart.mjs +0 -2
- package/esm2022/cart/services/index.mjs +0 -2
- package/esm2022/cart/services/sc-cart.service.mjs +0 -203
- package/esm2022/catalog/classes/index.mjs +0 -4
- package/esm2022/catalog/classes/sc-cached-data.mjs +0 -23
- package/esm2022/catalog/classes/sc-cached-item.mjs +0 -60
- package/esm2022/catalog/classes/sc-catalog-item.mjs +0 -19
- package/esm2022/catalog/dto/index.mjs +0 -8
- package/esm2022/catalog/dto/sc-category.mjs +0 -180
- package/esm2022/catalog/dto/sc-i-discount.mjs +0 -2
- package/esm2022/catalog/dto/sc-i-product-images.mjs +0 -2
- package/esm2022/catalog/dto/sc-i-product-notify-when-in-stock.mjs +0 -2
- package/esm2022/catalog/dto/sc-i-properties.mjs +0 -2
- package/esm2022/catalog/dto/sc-product.mjs +0 -159
- package/esm2022/catalog/dto/sc-virtual-category.mjs +0 -22
- package/esm2022/catalog/enums/index.mjs +0 -4
- package/esm2022/catalog/enums/sc-catalog-format.mjs +0 -16
- package/esm2022/catalog/enums/sc-mime-types.mjs +0 -81
- package/esm2022/catalog/enums/sc-product-tile-type.mjs +0 -16
- package/esm2022/catalog/index.mjs +0 -9
- package/esm2022/catalog/interfaces/index.mjs +0 -14
- package/esm2022/catalog/interfaces/sc-catalog-filter.mjs +0 -2
- package/esm2022/catalog/interfaces/sc-i-base-catalog-filter.mjs +0 -2
- package/esm2022/catalog/interfaces/sc-i-catalog-item.mjs +0 -2
- package/esm2022/catalog/interfaces/sc-i-category-product-params.mjs +0 -2
- package/esm2022/catalog/interfaces/sc-i-category-products-pagination-params.mjs +0 -2
- package/esm2022/catalog/interfaces/sc-i-category.mjs +0 -3
- package/esm2022/catalog/interfaces/sc-i-checkbox-filter.mjs +0 -2
- package/esm2022/catalog/interfaces/sc-i-product.mjs +0 -3
- package/esm2022/catalog/interfaces/sc-i-range-filter.mjs +0 -2
- package/esm2022/catalog/interfaces/sc-i-toggle-filter.mjs +0 -2
- package/esm2022/catalog/interfaces/sc-i-virtual-category.mjs +0 -2
- package/esm2022/catalog/interfaces/sc-property-filters.mjs +0 -2
- package/esm2022/catalog/interfaces/sc-t-product-sort-field.mjs +0 -2
- package/esm2022/catalog/internal/index.mjs +0 -2
- package/esm2022/catalog/internal/sc-i-filter-tree-category.mjs +0 -2
- package/esm2022/catalog/services/index.mjs +0 -5
- package/esm2022/catalog/services/sc-catalog-filter.service.mjs +0 -73
- package/esm2022/catalog/services/sc-catalog.service.mjs +0 -357
- package/esm2022/catalog/services/sc-favorite.service.mjs +0 -91
- package/esm2022/catalog/services/sc-recommendation.service.mjs +0 -165
- package/esm2022/catalog/tokens/index.mjs +0 -2
- package/esm2022/catalog/tokens/sc-count-first-discounted-products.mjs +0 -8
- package/esm2022/catalog/types/index.mjs +0 -3
- package/esm2022/catalog/types/sc-filters-tree-catalog.mjs +0 -2
- package/esm2022/catalog/types/sc-price-history.mjs +0 -2
- package/esm2022/common/classes/index.mjs +0 -11
- package/esm2022/common/classes/sc-catalogable-item.mjs +0 -16
- package/esm2022/common/classes/sc-coded-identity.mjs +0 -21
- package/esm2022/common/classes/sc-deletable-named-identity.mjs +0 -18
- package/esm2022/common/classes/sc-hidden-catalogable-item.mjs +0 -16
- package/esm2022/common/classes/sc-identity.mjs +0 -23
- package/esm2022/common/classes/sc-image.mjs +0 -16
- package/esm2022/common/classes/sc-named-identity.mjs +0 -21
- package/esm2022/common/classes/sc-primary-catalogable-item.mjs +0 -16
- package/esm2022/common/classes/sc-reference.mjs +0 -17
- package/esm2022/common/classes/sc-updatable-named-identity.mjs +0 -18
- package/esm2022/common/enums/index.mjs +0 -2
- package/esm2022/common/enums/request-state-status-enum.mjs +0 -19
- package/esm2022/common/index.mjs +0 -4
- package/esm2022/common/interfaces/index.mjs +0 -19
- package/esm2022/common/interfaces/sc-i-catalogable-item.mjs +0 -2
- package/esm2022/common/interfaces/sc-i-coded-identity.mjs +0 -2
- package/esm2022/common/interfaces/sc-i-created-at.mjs +0 -2
- package/esm2022/common/interfaces/sc-i-date-period.mjs +0 -2
- package/esm2022/common/interfaces/sc-i-deletable-named-identity.mjs +0 -2
- package/esm2022/common/interfaces/sc-i-deleted-at.mjs +0 -2
- package/esm2022/common/interfaces/sc-i-file.mjs +0 -2
- package/esm2022/common/interfaces/sc-i-hidden-catalogable-item.mjs +0 -2
- package/esm2022/common/interfaces/sc-i-identity.mjs +0 -2
- package/esm2022/common/interfaces/sc-i-image.mjs +0 -2
- package/esm2022/common/interfaces/sc-i-named-identity.mjs +0 -2
- package/esm2022/common/interfaces/sc-i-named.mjs +0 -2
- package/esm2022/common/interfaces/sc-i-primary-catalogable-item.mjs +0 -2
- package/esm2022/common/interfaces/sc-i-reference.mjs +0 -2
- package/esm2022/common/interfaces/sc-i-request-state.mjs +0 -26
- package/esm2022/common/interfaces/sc-i-typed-nullable-range.mjs +0 -2
- package/esm2022/common/interfaces/sc-i-updatable-named-identity.mjs +0 -2
- package/esm2022/common/interfaces/sc-i-updated-at.mjs +0 -2
- package/esm2022/config/index.mjs +0 -12
- package/esm2022/config/sc-i-api-keys.mjs +0 -2
- package/esm2022/config/sc-i-app-release.mjs +0 -2
- package/esm2022/config/sc-i-cache-lifetime.mjs +0 -2
- package/esm2022/config/sc-i-company-base-info.mjs +0 -2
- package/esm2022/config/sc-i-date-format.mjs +0 -2
- package/esm2022/config/sc-i-feedback-api.mjs +0 -2
- package/esm2022/config/sc-i-maps-default-options.mjs +0 -2
- package/esm2022/config/sc-i-update-interval.mjs +0 -2
- package/esm2022/config/sc-i-urls.mjs +0 -2
- package/esm2022/config/sc-i-user-configs.mjs +0 -2
- package/esm2022/config/sc-route-keys.mjs +0 -155
- package/esm2022/configurator/dto/index.mjs +0 -8
- package/esm2022/configurator/dto/sc-i-configurator-base.mjs +0 -2
- package/esm2022/configurator/dto/sc-i-configurator-calculate-result.mjs +0 -2
- package/esm2022/configurator/dto/sc-i-configurator-calculate-sheet.mjs +0 -2
- package/esm2022/configurator/dto/sc-i-configurator-search-product-base.mjs +0 -2
- package/esm2022/configurator/dto/sc-i-configurator-settings-base.mjs +0 -2
- package/esm2022/configurator/dto/sc-i-sandwich-calculate-item.mjs +0 -2
- package/esm2022/configurator/dto/sc-i-sandwich-calculate.mjs +0 -2
- package/esm2022/configurator/index.mjs +0 -4
- package/esm2022/configurator/services/index.mjs +0 -2
- package/esm2022/configurator/services/sc-configurator.service.mjs +0 -119
- package/esm2022/configurator/types/index.mjs +0 -2
- package/esm2022/configurator/types/sc-type-by-key.mjs +0 -2
- package/esm2022/contacts/dto/index.mjs +0 -10
- package/esm2022/contacts/dto/sc-i-contact-and-media.mjs +0 -2
- package/esm2022/contacts/dto/sc-i-direction-manager-contact.mjs +0 -2
- package/esm2022/contacts/dto/sc-i-feedback-message.mjs +0 -2
- package/esm2022/contacts/dto/sc-i-org-contact.mjs +0 -2
- package/esm2022/contacts/dto/sc-i-requisites-with-label.mjs +0 -2
- package/esm2022/contacts/dto/sc-i-requisites.mjs +0 -2
- package/esm2022/contacts/dto/sc-i-retail-contact.mjs +0 -2
- package/esm2022/contacts/dto/sc-i-social-media.mjs +0 -2
- package/esm2022/contacts/dto/sc-uploaded-file.mjs +0 -16
- package/esm2022/contacts/enums/index.mjs +0 -3
- package/esm2022/contacts/enums/sc-feedback-forms.mjs +0 -31
- package/esm2022/contacts/enums/sc-social-type.mjs +0 -24
- package/esm2022/contacts/index.mjs +0 -4
- package/esm2022/contacts/services/index.mjs +0 -4
- package/esm2022/contacts/services/sc-contacts.service.mjs +0 -110
- package/esm2022/contacts/services/sc-feedback.service.mjs +0 -73
- package/esm2022/contacts/services/sc-requisites.service.mjs +0 -141
- package/esm2022/contragent/dto/index.mjs +0 -14
- package/esm2022/contragent/dto/sc-contragent-on-data-create.mjs +0 -2
- package/esm2022/contragent/dto/sc-contragent.mjs +0 -2
- package/esm2022/contragent/dto/sc-i-bank-account-on-data-create.mjs +0 -2
- package/esm2022/contragent/dto/sc-i-bank-account.mjs +0 -2
- package/esm2022/contragent/dto/sc-i-contragent-entrepreneur-on-data-create.mjs +0 -2
- package/esm2022/contragent/dto/sc-i-contragent-entrepreneur.mjs +0 -2
- package/esm2022/contragent/dto/sc-i-contragent-individual-on-data-create.mjs +0 -2
- package/esm2022/contragent/dto/sc-i-contragent-individual.mjs +0 -2
- package/esm2022/contragent/dto/sc-i-contragent-legal-on-data-create.mjs +0 -2
- package/esm2022/contragent/dto/sc-i-contragent-legal.mjs +0 -2
- package/esm2022/contragent/dto/sc-i-contragent-non-resident-legal-on-data-create.mjs +0 -2
- package/esm2022/contragent/dto/sc-i-contragent-non-resident-legal.mjs +0 -2
- package/esm2022/contragent/dto/sc-i-opf.mjs +0 -2
- package/esm2022/contragent/index.mjs +0 -3
- package/esm2022/contragent/services/index.mjs +0 -2
- package/esm2022/contragent/services/sc-contragent.service.mjs +0 -166
- package/esm2022/converters/index.mjs +0 -3
- package/esm2022/converters/services/sc-converters.service.mjs +0 -136
- package/esm2022/converters/types/index.mjs +0 -2
- package/esm2022/converters/types/sc-date-to-string.mjs +0 -2
- package/esm2022/delivery-address/dto/index.mjs +0 -3
- package/esm2022/delivery-address/dto/sc-i-delivery-addresses-on-data-create.mjs +0 -2
- package/esm2022/delivery-address/dto/sc-i-delivery-addresses.mjs +0 -2
- package/esm2022/delivery-address/index.mjs +0 -3
- package/esm2022/delivery-address/services/index.mjs +0 -2
- package/esm2022/delivery-address/services/sc-delivery-address.service.mjs +0 -120
- package/esm2022/files/classes/sc-document-info-node.mjs +0 -16
- package/esm2022/files/classes/sc-document-info.mjs +0 -2
- package/esm2022/files/enums/sc-document-info-types-enum.mjs +0 -21
- package/esm2022/files/enums/sc-icon-types-enum.mjs +0 -36
- package/esm2022/files/index.mjs +0 -6
- package/esm2022/files/services/sc-files.service.mjs +0 -92
- package/esm2022/frequently-asked-questions/index.mjs +0 -3
- package/esm2022/frequently-asked-questions/interfaces/index.mjs +0 -4
- package/esm2022/frequently-asked-questions/interfaces/sc-i-faq-group.mjs +0 -2
- package/esm2022/frequently-asked-questions/interfaces/sc-i-faq-item.mjs +0 -2
- package/esm2022/frequently-asked-questions/interfaces/sc-i-frequently-asked-questions-pagination-params.mjs +0 -2
- package/esm2022/frequently-asked-questions/services/index.mjs +0 -2
- package/esm2022/frequently-asked-questions/services/sc-frequently-asked-questions.service.mjs +0 -50
- package/esm2022/guards/index.mjs +0 -3
- package/esm2022/guards/sc-auth-as-client.guard.mjs +0 -56
- package/esm2022/guards/sc-id-or-slug.guard.mjs +0 -35
- package/esm2022/helpers/index.mjs +0 -4
- package/esm2022/helpers/sc-get-current-route.mjs +0 -14
- package/esm2022/helpers/sc-image-helper.mjs +0 -91
- package/esm2022/helpers/sc-units-helper.mjs +0 -33
- package/esm2022/httpInterceptors/classes/index.mjs +0 -2
- package/esm2022/httpInterceptors/classes/sc-cache-settings.mjs +0 -16
- package/esm2022/httpInterceptors/index.mjs +0 -10
- package/esm2022/httpInterceptors/internal/classes/sc-cached-response.mjs +0 -17
- package/esm2022/httpInterceptors/sc-auth.interceptor.mjs +0 -31
- package/esm2022/httpInterceptors/sc-cache.interceptor.mjs +0 -40
- package/esm2022/httpInterceptors/sc-convert.interceptor.mjs +0 -64
- package/esm2022/httpInterceptors/sc-date-format.interceptor.mjs +0 -80
- package/esm2022/httpInterceptors/sc-errors.interceptor.mjs +0 -89
- package/esm2022/httpInterceptors/sc-guest.interceptor.mjs +0 -38
- package/esm2022/httpInterceptors/sc-options.interceptor.mjs +0 -42
- package/esm2022/httpInterceptors/tokens/index.mjs +0 -8
- package/esm2022/httpInterceptors/tokens/sc-auth-add-header-required.mjs +0 -10
- package/esm2022/httpInterceptors/tokens/sc-cache-settings.mjs +0 -7
- package/esm2022/httpInterceptors/tokens/sc-guest-endpoints.mjs +0 -8
- package/esm2022/httpInterceptors/tokens/sc-guest-parameter-name.mjs +0 -8
- package/esm2022/httpInterceptors/tokens/sc-is-header-required.mjs +0 -6
- package/esm2022/httpInterceptors/tokens/sc-is-logout-request.mjs +0 -6
- package/esm2022/httpInterceptors/tokens/sc-is-refresh-token-required.mjs +0 -6
- package/esm2022/locations/dto/index.mjs +0 -4
- package/esm2022/locations/dto/sc-i-city.mjs +0 -2
- package/esm2022/locations/dto/sc-i-country.mjs +0 -2
- package/esm2022/locations/dto/sc-i-region.mjs +0 -2
- package/esm2022/locations/index.mjs +0 -3
- package/esm2022/locations/services/sc-location.service.mjs +0 -116
- package/esm2022/news/classes/index.mjs +0 -2
- package/esm2022/news/classes/sc-news.mjs +0 -22
- package/esm2022/news/index.mjs +0 -5
- package/esm2022/news/interfaces/index.mjs +0 -3
- package/esm2022/news/interfaces/sc-i-news-tile.mjs +0 -2
- package/esm2022/news/interfaces/sc-i-news.mjs +0 -2
- package/esm2022/news/services/index.mjs +0 -2
- package/esm2022/news/services/sc-news.service.mjs +0 -68
- package/esm2022/news/tokens/index.mjs +0 -2
- package/esm2022/news/tokens/sc-count-last-news.mjs +0 -9
- package/esm2022/notifications/dto/index.mjs +0 -3
- package/esm2022/notifications/dto/sc-i-notifications-count.mjs +0 -2
- package/esm2022/notifications/dto/sc-i-user-notification.mjs +0 -2
- package/esm2022/notifications/enums/index.mjs +0 -3
- package/esm2022/notifications/enums/sc-notification-action-types.mjs +0 -28
- package/esm2022/notifications/enums/sc-notification-level-names.mjs +0 -20
- package/esm2022/notifications/index.mjs +0 -4
- package/esm2022/notifications/services/sc-notifications.service.mjs +0 -168
- package/esm2022/order/classes/index.mjs +0 -12
- package/esm2022/order/classes/sc-delivery-cost.mjs +0 -19
- package/esm2022/order/classes/sc-i-order-history.mjs +0 -2
- package/esm2022/order/classes/sc-order-base.mjs +0 -28
- package/esm2022/order/classes/sc-order-delivery.mjs +0 -2
- package/esm2022/order/classes/sc-order-draft-short.mjs +0 -17
- package/esm2022/order/classes/sc-order-draft.mjs +0 -59
- package/esm2022/order/classes/sc-order-history-user.mjs +0 -2
- package/esm2022/order/classes/sc-order-item.mjs +0 -60
- package/esm2022/order/classes/sc-order-payment.mjs +0 -2
- package/esm2022/order/classes/sc-order-short.mjs +0 -31
- package/esm2022/order/classes/sc-order.mjs +0 -102
- package/esm2022/order/enums/index.mjs +0 -4
- package/esm2022/order/enums/sc-delivery-type.mjs +0 -16
- package/esm2022/order/enums/sc-order-draft-type.mjs +0 -16
- package/esm2022/order/enums/sc-payment-type.mjs +0 -32
- package/esm2022/order/index.mjs +0 -6
- package/esm2022/order/internal/index.mjs +0 -15
- package/esm2022/order/internal/sc-i-delivery-cost-dto.mjs +0 -2
- package/esm2022/order/internal/sc-i-new-order-draft-request.mjs +0 -2
- package/esm2022/order/internal/sc-i-new-order-item-base.mjs +0 -2
- package/esm2022/order/internal/sc-i-new-order-item-measured.mjs +0 -2
- package/esm2022/order/internal/sc-i-new-order.mjs +0 -2
- package/esm2022/order/internal/sc-i-order-base.mjs +0 -2
- package/esm2022/order/internal/sc-i-order-draft-list-params.mjs +0 -2
- package/esm2022/order/internal/sc-i-order-draft-short.mjs +0 -2
- package/esm2022/order/internal/sc-i-order-draft.mjs +0 -2
- package/esm2022/order/internal/sc-i-order-item.mjs +0 -2
- package/esm2022/order/internal/sc-i-order-loader.mjs +0 -2
- package/esm2022/order/internal/sc-i-order-short.mjs +0 -2
- package/esm2022/order/internal/sc-i-order.mjs +0 -2
- package/esm2022/order/internal/sc-i-update-order-order-request.mjs +0 -2
- package/esm2022/order/services/index.mjs +0 -3
- package/esm2022/order/services/sc-order-drafts.service.mjs +0 -202
- package/esm2022/order/services/sc-orders.service.mjs +0 -219
- package/esm2022/order/tokens/index.mjs +0 -2
- package/esm2022/order/tokens/sc-order-loader.token.mjs +0 -25
- package/esm2022/pagination/dto/index.mjs +0 -7
- package/esm2022/pagination/dto/sc-i-paginate.mjs +0 -2
- package/esm2022/pagination/dto/sc-i-pagination-links.mjs +0 -2
- package/esm2022/pagination/dto/sc-i-pagination-meta.mjs +0 -2
- package/esm2022/pagination/dto/sc-i-pagination-params.mjs +0 -2
- package/esm2022/pagination/dto/sc-i-range-filter.mjs +0 -2
- package/esm2022/pagination/dto/sc-i-sort-order.mjs +0 -2
- package/esm2022/pagination/index.mjs +0 -3
- package/esm2022/pagination/services/sc-pagination.service.mjs +0 -157
- package/esm2022/pipes/index.mjs +0 -3
- package/esm2022/pipes/sc-id-or-slug.pipe.mjs +0 -41
- package/esm2022/pipes/sc-media-image-transformer.pipe.mjs +0 -34
- package/esm2022/providers/index.mjs +0 -8
- package/esm2022/providers/interfaces/index.mjs +0 -4
- package/esm2022/providers/interfaces/sc-i-terminal-provider.mjs +0 -2
- package/esm2022/providers/interfaces/sc-i-typed-class-provider.mjs +0 -2
- package/esm2022/providers/interfaces/sc-i-typed-value-provider.mjs +0 -2
- package/esm2022/providers/sc-category.providers.mjs +0 -37
- package/esm2022/providers/search-term.providers.mjs +0 -38
- package/esm2022/providers/ssr.providers.mjs +0 -19
- package/esm2022/providers/terminal.providers.mjs +0 -43
- package/esm2022/providers/types/sc-provider.mjs +0 -2
- package/esm2022/providers/virtual-category.providers.mjs +0 -33
- package/esm2022/public-api.mjs +0 -40
- package/esm2022/questionnaire/dto/index.mjs +0 -5
- package/esm2022/questionnaire/dto/sc-i-question-answer.mjs +0 -2
- package/esm2022/questionnaire/dto/sc-i-questionnaire.mjs +0 -2
- package/esm2022/questionnaire/dto/sc-question-possible-answer.mjs +0 -2
- package/esm2022/questionnaire/dto/sc-questionnaire-question.mjs +0 -2
- package/esm2022/questionnaire/enums/sc-questionnaire-status-enum.mjs +0 -24
- package/esm2022/questionnaire/index.mjs +0 -4
- package/esm2022/questionnaire/services/sc-questionnaire.service.mjs +0 -81
- package/esm2022/reclamation/dto/index.mjs +0 -6
- package/esm2022/reclamation/dto/sc-i-reclamation-on-data-create-item.mjs +0 -2
- package/esm2022/reclamation/dto/sc-i-reclamation-on-data-create.mjs +0 -2
- package/esm2022/reclamation/dto/sc-i-reclamation.mjs +0 -2
- package/esm2022/reclamation/dto/sc-reclamation-item.mjs +0 -2
- package/esm2022/reclamation/dto/sc-reclamation-short.mjs +0 -2
- package/esm2022/reclamation/index.mjs +0 -4
- package/esm2022/reclamation/interfaces/sc-i-pagination-params.mjs +0 -2
- package/esm2022/reclamation/services/sc-reclamation.service.mjs +0 -83
- package/esm2022/references/dto/index.mjs +0 -5
- package/esm2022/references/dto/sc-i-currency.mjs +0 -2
- package/esm2022/references/dto/sc-i-product-unit.mjs +0 -2
- package/esm2022/references/dto/sc-i-references-types.mjs +0 -2
- package/esm2022/references/dto/sc-i-sales-direction.mjs +0 -2
- package/esm2022/references/enums/index.mjs +0 -6
- package/esm2022/references/enums/sc-opf-list.mjs +0 -24
- package/esm2022/references/enums/sc-order-state-status.mjs +0 -45
- package/esm2022/references/enums/sc-payment-status.mjs +0 -65
- package/esm2022/references/enums/sc-reclamation-status.mjs +0 -25
- package/esm2022/references/enums/sc-reference-name.mjs +0 -76
- package/esm2022/references/index.mjs +0 -4
- package/esm2022/references/services/index.mjs +0 -2
- package/esm2022/references/services/sc-references.service.mjs +0 -188
- package/esm2022/search/dto/sc-i-simple-search.mjs +0 -2
- package/esm2022/search/index.mjs +0 -3
- package/esm2022/search/services/sc-search.service.mjs +0 -122
- package/esm2022/seo/classes/index.mjs +0 -2
- package/esm2022/seo/classes/schema-org-factory.mjs +0 -308
- package/esm2022/seo/index.mjs +0 -5
- package/esm2022/seo/interfaces/index.mjs +0 -5
- package/esm2022/seo/interfaces/sc-i-breadcrumb-item.mjs +0 -12
- package/esm2022/seo/interfaces/sc-i-default-page-meta.mjs +0 -2
- package/esm2022/seo/interfaces/sc-i-seo-resource.mjs +0 -2
- package/esm2022/seo/interfaces/sc-i-seo.mjs +0 -2
- package/esm2022/seo/services/index.mjs +0 -2
- package/esm2022/seo/services/sc-seo.service.mjs +0 -230
- package/esm2022/seo/types/index.mjs +0 -2
- package/esm2022/seo/types/robots-tag-type.mjs +0 -2
- package/esm2022/snabcentr-client-core.mjs +0 -5
- package/esm2022/suggestion/dto/index.mjs +0 -7
- package/esm2022/suggestion/dto/sc-i-suggestion-address.mjs +0 -2
- package/esm2022/suggestion/dto/sc-i-suggestion-bank.mjs +0 -2
- package/esm2022/suggestion/dto/sc-i-suggestion-email.mjs +0 -2
- package/esm2022/suggestion/dto/sc-i-suggestion-fio.mjs +0 -2
- package/esm2022/suggestion/dto/sc-i-suggestion-organization.mjs +0 -2
- package/esm2022/suggestion/dto/sc-suggestion.mjs +0 -2
- package/esm2022/suggestion/enums/sc-i-suggestion-type.mjs +0 -28
- package/esm2022/suggestion/index.mjs +0 -4
- package/esm2022/suggestion/services/sc-suggestion.service.mjs +0 -42
- package/esm2022/tokens/index.mjs +0 -19
- package/esm2022/tokens/notification-options.mjs +0 -15
- package/esm2022/tokens/sc-api-keys.mjs +0 -6
- package/esm2022/tokens/sc-cache-lifetime.mjs +0 -6
- package/esm2022/tokens/sc-company-info.mjs +0 -6
- package/esm2022/tokens/sc-company-name.mjs +0 -6
- package/esm2022/tokens/sc-configurator-components.mjs +0 -6
- package/esm2022/tokens/sc-configurator-settings.mjs +0 -6
- package/esm2022/tokens/sc-date-format.mjs +0 -6
- package/esm2022/tokens/sc-default-page-meta.mjs +0 -14
- package/esm2022/tokens/sc-feedback-api.mjs +0 -6
- package/esm2022/tokens/sc-id-or-slug-in-route.mjs +0 -8
- package/esm2022/tokens/sc-is-hidden-error-alert.mjs +0 -10
- package/esm2022/tokens/sc-linear-values-token.mjs +0 -12
- package/esm2022/tokens/sc-path-image-not-found.mjs +0 -6
- package/esm2022/tokens/sc-product-pagination-options.mjs +0 -22
- package/esm2022/tokens/sc-release.mjs +0 -6
- package/esm2022/tokens/sc-update-interval.mjs +0 -6
- package/esm2022/tokens/sc-urls.mjs +0 -6
- package/esm2022/ui/index.mjs +0 -3
- package/esm2022/ui/services/sc-ui.service.mjs +0 -195
- package/esm2022/ui/utils/filter-changed-by-key.mjs +0 -12
- package/esm2022/user/dto/index.mjs +0 -18
- package/esm2022/user/dto/sc-approved-data.mjs +0 -2
- package/esm2022/user/dto/sc-i-bank.mjs +0 -2
- package/esm2022/user/dto/sc-i-change-password.mjs +0 -2
- package/esm2022/user/dto/sc-i-contact-base.mjs +0 -2
- package/esm2022/user/dto/sc-i-contact-on-data-create.mjs +0 -2
- package/esm2022/user/dto/sc-i-contact-relation-on-data-create.mjs +0 -2
- package/esm2022/user/dto/sc-i-contact-relation.mjs +0 -2
- package/esm2022/user/dto/sc-i-contact-with-relations.mjs +0 -2
- package/esm2022/user/dto/sc-i-contact.mjs +0 -2
- package/esm2022/user/dto/sc-i-manager.mjs +0 -2
- package/esm2022/user/dto/sc-i-password-on-data-create.mjs +0 -2
- package/esm2022/user/dto/sc-i-phone-on-data-approve.mjs +0 -2
- package/esm2022/user/dto/sc-i-simple-user-on-data-create.mjs +0 -2
- package/esm2022/user/dto/sc-i-user-on-data-create.mjs +0 -2
- package/esm2022/user/dto/sc-i-user-on-data-update.mjs +0 -2
- package/esm2022/user/dto/sc-user-metadata.mjs +0 -32
- package/esm2022/user/dto/sc-user.mjs +0 -58
- package/esm2022/user/enums/index.mjs +0 -3
- package/esm2022/user/enums/sc-client-type.mjs +0 -20
- package/esm2022/user/enums/sc-user-type.mjs +0 -16
- package/esm2022/user/index.mjs +0 -6
- package/esm2022/user/internal/dto/index.mjs +0 -2
- package/esm2022/user/internal/dto/sc-i-user-dto.mjs +0 -2
- package/esm2022/user/services/sc-user.service.mjs +0 -184
- package/esm2022/user/tokens/index.mjs +0 -2
- package/esm2022/user/tokens/sc-user-providers.mjs +0 -13
- package/esm2022/user-metrika/dto/index.mjs +0 -2
- package/esm2022/user-metrika/dto/sc-i-user-metrika-event.mjs +0 -2
- package/esm2022/user-metrika/enums/index.mjs +0 -2
- package/esm2022/user-metrika/enums/sc-user-metrika-goals-enum.mjs +0 -337
- package/esm2022/user-metrika/index.mjs +0 -4
- package/esm2022/user-metrika/services/index.mjs +0 -2
- package/esm2022/user-metrika/services/sc-user-metrika.service.mjs +0 -72
- package/esm2022/utils/phone-fotmatter/index.mjs +0 -2
- package/esm2022/utils/phone-fotmatter/sc-phone.service.mjs +0 -63
- package/esm2022/utm/index.mjs +0 -3
- package/esm2022/utm/interfaces/index.mjs +0 -3
- package/esm2022/utm/interfaces/sc-utm-params.mjs +0 -2
- package/esm2022/utm/interfaces/sc-utm.mjs +0 -2
- package/esm2022/utm/services/index.mjs +0 -2
- package/esm2022/utm/services/sc-utm.service.mjs +0 -157
- package/esm2022/vCard/index.mjs +0 -2
- package/esm2022/vCard/sc-v-card.service.mjs +0 -103
- package/esm2022/vacancies/classes/index.mjs +0 -3
- package/esm2022/vacancies/classes/sc-vacancies-list.mjs +0 -18
- package/esm2022/vacancies/classes/sc-vacancy.mjs +0 -19
- package/esm2022/vacancies/index.mjs +0 -5
- package/esm2022/vacancies/interfaces/index.mjs +0 -5
- package/esm2022/vacancies/interfaces/sc-i-employment.mjs +0 -2
- package/esm2022/vacancies/interfaces/sc-i-experience.mjs +0 -2
- package/esm2022/vacancies/interfaces/sc-i-salary.mjs +0 -2
- package/esm2022/vacancies/interfaces/sc-i-vacancies-data-source.mjs +0 -2
- package/esm2022/vacancies/internal/dto/index.mjs +0 -3
- package/esm2022/vacancies/internal/dto/sc-i-vacancies-list.mjs +0 -2
- package/esm2022/vacancies/internal/dto/sc-i-vacancy.mjs +0 -2
- package/esm2022/vacancies/services/index.mjs +0 -2
- package/esm2022/vacancies/services/sc-vacancies.service.mjs +0 -55
- package/esm2022/vacancies/tokens/index.mjs +0 -2
- package/esm2022/vacancies/tokens/sc-vacancies-datasource.mjs +0 -6
- package/esm2022/verification/index.mjs +0 -3
- package/esm2022/verification/interfaces/sc-i-phone-check.mjs +0 -2
- package/esm2022/verification/services/sc-verification.service.mjs +0 -68
- package/esm2022/warehouse/dto/index.mjs +0 -3
- package/esm2022/warehouse/dto/sc-i-warehouse-stock-count.mjs +0 -2
- package/esm2022/warehouse/dto/sc-warehouse.mjs +0 -2
- package/esm2022/warehouse/index.mjs +0 -3
- package/esm2022/warehouse/services/sc-warehouse.service.mjs +0 -119
- package/files/classes/sc-document-info-node.d.ts +0 -24
- package/files/classes/sc-document-info.d.ts +0 -42
- package/files/enums/sc-document-info-types-enum.d.ts +0 -17
- package/files/enums/sc-icon-types-enum.d.ts +0 -33
- package/files/index.d.ts +0 -5
- package/files/services/sc-files.service.d.ts +0 -34
- package/frequently-asked-questions/index.d.ts +0 -2
- package/frequently-asked-questions/interfaces/index.d.ts +0 -3
- package/frequently-asked-questions/interfaces/sc-i-faq-group.d.ts +0 -13
- package/frequently-asked-questions/interfaces/sc-i-faq-item.d.ts +0 -22
- package/frequently-asked-questions/interfaces/sc-i-frequently-asked-questions-pagination-params.d.ts +0 -10
- package/frequently-asked-questions/services/index.d.ts +0 -1
- package/frequently-asked-questions/services/sc-frequently-asked-questions.service.d.ts +0 -33
- package/guards/index.d.ts +0 -2
- package/guards/sc-auth-as-client.guard.d.ts +0 -29
- package/guards/sc-id-or-slug.guard.d.ts +0 -7
- package/helpers/index.d.ts +0 -3
- package/helpers/sc-get-current-route.d.ts +0 -8
- package/helpers/sc-image-helper.d.ts +0 -52
- package/helpers/sc-units-helper.d.ts +0 -24
- package/httpInterceptors/classes/index.d.ts +0 -1
- package/httpInterceptors/classes/sc-cache-settings.d.ts +0 -20
- package/httpInterceptors/index.d.ts +0 -9
- package/httpInterceptors/internal/classes/sc-cached-response.d.ts +0 -22
- package/httpInterceptors/sc-auth.interceptor.d.ts +0 -20
- package/httpInterceptors/sc-cache.interceptor.d.ts +0 -16
- package/httpInterceptors/sc-convert.interceptor.d.ts +0 -21
- package/httpInterceptors/sc-date-format.interceptor.d.ts +0 -28
- package/httpInterceptors/sc-errors.interceptor.d.ts +0 -36
- package/httpInterceptors/sc-guest.interceptor.d.ts +0 -24
- package/httpInterceptors/sc-options.interceptor.d.ts +0 -24
- package/httpInterceptors/tokens/index.d.ts +0 -7
- package/httpInterceptors/tokens/sc-auth-add-header-required.d.ts +0 -8
- package/httpInterceptors/tokens/sc-cache-settings.d.ts +0 -6
- package/httpInterceptors/tokens/sc-guest-endpoints.d.ts +0 -5
- package/httpInterceptors/tokens/sc-guest-parameter-name.d.ts +0 -5
- package/httpInterceptors/tokens/sc-is-header-required.d.ts +0 -5
- package/httpInterceptors/tokens/sc-is-logout-request.d.ts +0 -5
- package/httpInterceptors/tokens/sc-is-refresh-token-required.d.ts +0 -5
- package/index.d.ts +0 -5
- package/locations/dto/index.d.ts +0 -3
- package/locations/dto/sc-i-city.d.ts +0 -32
- package/locations/dto/sc-i-country.d.ts +0 -13
- package/locations/dto/sc-i-region.d.ts +0 -33
- package/locations/index.d.ts +0 -2
- package/locations/services/sc-location.service.d.ts +0 -65
- package/news/classes/index.d.ts +0 -1
- package/news/classes/sc-news.d.ts +0 -38
- package/news/index.d.ts +0 -4
- package/news/interfaces/index.d.ts +0 -2
- package/news/interfaces/sc-i-news-tile.d.ts +0 -22
- package/news/interfaces/sc-i-news.d.ts +0 -11
- package/news/services/index.d.ts +0 -1
- package/news/services/sc-news.service.d.ts +0 -48
- package/news/tokens/index.d.ts +0 -1
- package/news/tokens/sc-count-last-news.d.ts +0 -5
- package/notifications/dto/index.d.ts +0 -2
- package/notifications/dto/sc-i-notifications-count.d.ts +0 -17
- package/notifications/dto/sc-i-user-notification.d.ts +0 -68
- package/notifications/enums/index.d.ts +0 -2
- package/notifications/enums/sc-notification-action-types.d.ts +0 -25
- package/notifications/enums/sc-notification-level-names.d.ts +0 -17
- package/notifications/index.d.ts +0 -3
- package/notifications/services/sc-notifications.service.d.ts +0 -104
- package/order/classes/index.d.ts +0 -11
- package/order/classes/sc-delivery-cost.d.ts +0 -34
- package/order/classes/sc-i-order-history.d.ts +0 -23
- package/order/classes/sc-order-base.d.ts +0 -32
- package/order/classes/sc-order-delivery.d.ts +0 -24
- package/order/classes/sc-order-draft-short.d.ts +0 -22
- package/order/classes/sc-order-draft.d.ts +0 -63
- package/order/classes/sc-order-history-user.d.ts +0 -21
- package/order/classes/sc-order-item.d.ts +0 -98
- package/order/classes/sc-order-payment.d.ts +0 -19
- package/order/classes/sc-order-short.d.ts +0 -48
- package/order/classes/sc-order.d.ts +0 -112
- package/order/enums/index.d.ts +0 -3
- package/order/enums/sc-delivery-type.d.ts +0 -13
- package/order/enums/sc-order-draft-type.d.ts +0 -13
- package/order/enums/sc-payment-type.d.ts +0 -29
- package/order/index.d.ts +0 -5
- package/order/internal/index.d.ts +0 -14
- package/order/internal/sc-i-delivery-cost-dto.d.ts +0 -20
- package/order/internal/sc-i-new-order-draft-request.d.ts +0 -13
- package/order/internal/sc-i-new-order-item-base.d.ts +0 -21
- package/order/internal/sc-i-new-order-item-measured.d.ts +0 -10
- package/order/internal/sc-i-new-order.d.ts +0 -48
- package/order/internal/sc-i-order-base.d.ts +0 -25
- package/order/internal/sc-i-order-draft-list-params.d.ts +0 -32
- package/order/internal/sc-i-order-draft-short.d.ts +0 -15
- package/order/internal/sc-i-order-draft.d.ts +0 -43
- package/order/internal/sc-i-order-item.d.ts +0 -91
- package/order/internal/sc-i-order-loader.d.ts +0 -51
- package/order/internal/sc-i-order-short.d.ts +0 -48
- package/order/internal/sc-i-order.d.ts +0 -112
- package/order/internal/sc-i-update-order-order-request.d.ts +0 -9
- package/order/services/index.d.ts +0 -2
- package/order/services/sc-order-drafts.service.d.ts +0 -118
- package/order/services/sc-orders.service.d.ts +0 -134
- package/order/tokens/index.d.ts +0 -1
- package/order/tokens/sc-order-loader.token.d.ts +0 -26
- package/pagination/dto/index.d.ts +0 -6
- package/pagination/dto/sc-i-paginate.d.ts +0 -19
- package/pagination/dto/sc-i-pagination-links.d.ts +0 -21
- package/pagination/dto/sc-i-pagination-meta.d.ts +0 -33
- package/pagination/dto/sc-i-pagination-params.d.ts +0 -17
- package/pagination/dto/sc-i-range-filter.d.ts +0 -15
- package/pagination/dto/sc-i-sort-order.d.ts +0 -15
- package/pagination/index.d.ts +0 -2
- package/pagination/services/sc-pagination.service.d.ts +0 -83
- package/pipes/index.d.ts +0 -2
- package/pipes/sc-id-or-slug.pipe.d.ts +0 -25
- package/pipes/sc-media-image-transformer.pipe.d.ts +0 -26
- package/providers/index.d.ts +0 -7
- package/providers/interfaces/index.d.ts +0 -3
- package/providers/interfaces/sc-i-terminal-provider.d.ts +0 -13
- package/providers/interfaces/sc-i-typed-class-provider.d.ts +0 -10
- package/providers/interfaces/sc-i-typed-value-provider.d.ts +0 -10
- package/providers/sc-category.providers.d.ts +0 -11
- package/providers/search-term.providers.d.ts +0 -27
- package/providers/ssr.providers.d.ts +0 -14
- package/providers/terminal.providers.d.ts +0 -23
- package/providers/types/sc-provider.d.ts +0 -8
- package/providers/virtual-category.providers.d.ts +0 -11
- package/public-api.d.ts +0 -39
- package/questionnaire/dto/index.d.ts +0 -4
- package/questionnaire/dto/sc-i-question-answer.d.ts +0 -13
- package/questionnaire/dto/sc-i-questionnaire.d.ts +0 -22
- package/questionnaire/dto/sc-question-possible-answer.d.ts +0 -17
- package/questionnaire/dto/sc-questionnaire-question.d.ts +0 -26
- package/questionnaire/enums/sc-questionnaire-status-enum.d.ts +0 -21
- package/questionnaire/index.d.ts +0 -3
- package/questionnaire/services/sc-questionnaire.service.d.ts +0 -51
- package/reclamation/dto/index.d.ts +0 -5
- package/reclamation/dto/sc-i-reclamation-on-data-create-item.d.ts +0 -17
- package/reclamation/dto/sc-i-reclamation-on-data-create.d.ts +0 -39
- package/reclamation/dto/sc-i-reclamation.d.ts +0 -34
- package/reclamation/dto/sc-reclamation-item.d.ts +0 -34
- package/reclamation/dto/sc-reclamation-short.d.ts +0 -29
- package/reclamation/index.d.ts +0 -3
- package/reclamation/interfaces/sc-i-pagination-params.d.ts +0 -23
- package/reclamation/services/sc-reclamation.service.d.ts +0 -59
- package/references/dto/index.d.ts +0 -4
- package/references/dto/sc-i-currency.d.ts +0 -29
- package/references/dto/sc-i-product-unit.d.ts +0 -29
- package/references/dto/sc-i-references-types.d.ts +0 -21
- package/references/dto/sc-i-sales-direction.d.ts +0 -21
- package/references/enums/index.d.ts +0 -5
- package/references/enums/sc-opf-list.d.ts +0 -21
- package/references/enums/sc-order-state-status.d.ts +0 -42
- package/references/enums/sc-payment-status.d.ts +0 -62
- package/references/enums/sc-reclamation-status.d.ts +0 -22
- package/references/enums/sc-reference-name.d.ts +0 -73
- package/references/index.d.ts +0 -3
- package/references/services/index.d.ts +0 -1
- package/references/services/sc-references.service.d.ts +0 -152
- package/search/dto/sc-i-simple-search.d.ts +0 -56
- package/search/index.d.ts +0 -2
- package/search/services/sc-search.service.d.ts +0 -61
- package/seo/classes/index.d.ts +0 -1
- package/seo/classes/schema-org-factory.d.ts +0 -95
- package/seo/index.d.ts +0 -4
- package/seo/interfaces/index.d.ts +0 -4
- package/seo/interfaces/sc-i-breadcrumb-item.d.ts +0 -25
- package/seo/interfaces/sc-i-default-page-meta.d.ts +0 -17
- package/seo/interfaces/sc-i-seo-resource.d.ts +0 -14
- package/seo/interfaces/sc-i-seo.d.ts +0 -40
- package/seo/services/index.d.ts +0 -1
- package/seo/services/sc-seo.service.d.ts +0 -129
- package/seo/types/index.d.ts +0 -1
- package/seo/types/robots-tag-type.d.ts +0 -4
- package/suggestion/dto/index.d.ts +0 -6
- package/suggestion/dto/sc-i-suggestion-address.d.ts +0 -98
- package/suggestion/dto/sc-i-suggestion-bank.d.ts +0 -33
- package/suggestion/dto/sc-i-suggestion-email.d.ts +0 -17
- package/suggestion/dto/sc-i-suggestion-fio.d.ts +0 -25
- package/suggestion/dto/sc-i-suggestion-organization.d.ts +0 -50
- package/suggestion/dto/sc-suggestion.d.ts +0 -9
- package/suggestion/enums/sc-i-suggestion-type.d.ts +0 -25
- package/suggestion/index.d.ts +0 -3
- package/suggestion/services/sc-suggestion.service.d.ts +0 -28
- package/tokens/index.d.ts +0 -18
- package/tokens/notification-options.d.ts +0 -22
- package/tokens/sc-api-keys.d.ts +0 -6
- package/tokens/sc-cache-lifetime.d.ts +0 -6
- package/tokens/sc-company-info.d.ts +0 -6
- package/tokens/sc-company-name.d.ts +0 -5
- package/tokens/sc-configurator-components.d.ts +0 -7
- package/tokens/sc-configurator-settings.d.ts +0 -7
- package/tokens/sc-date-format.d.ts +0 -6
- package/tokens/sc-default-page-meta.d.ts +0 -14
- package/tokens/sc-feedback-api.d.ts +0 -6
- package/tokens/sc-id-or-slug-in-route.d.ts +0 -5
- package/tokens/sc-is-hidden-error-alert.d.ts +0 -9
- package/tokens/sc-linear-values-token.d.ts +0 -9
- package/tokens/sc-path-image-not-found.d.ts +0 -5
- package/tokens/sc-product-pagination-options.d.ts +0 -14
- package/tokens/sc-release.d.ts +0 -6
- package/tokens/sc-update-interval.d.ts +0 -6
- package/tokens/sc-urls.d.ts +0 -6
- package/ui/index.d.ts +0 -2
- package/ui/services/sc-ui.service.d.ts +0 -122
- package/ui/utils/filter-changed-by-key.d.ts +0 -9
- package/user/dto/index.d.ts +0 -17
- package/user/dto/sc-approved-data.d.ts +0 -13
- package/user/dto/sc-i-bank.d.ts +0 -21
- package/user/dto/sc-i-change-password.d.ts +0 -13
- package/user/dto/sc-i-contact-base.d.ts +0 -21
- package/user/dto/sc-i-contact-on-data-create.d.ts +0 -19
- package/user/dto/sc-i-contact-relation-on-data-create.d.ts +0 -5
- package/user/dto/sc-i-contact-relation.d.ts +0 -13
- package/user/dto/sc-i-contact-with-relations.d.ts +0 -28
- package/user/dto/sc-i-contact.d.ts +0 -14
- package/user/dto/sc-i-manager.d.ts +0 -38
- package/user/dto/sc-i-password-on-data-create.d.ts +0 -17
- package/user/dto/sc-i-phone-on-data-approve.d.ts +0 -13
- package/user/dto/sc-i-simple-user-on-data-create.d.ts +0 -42
- package/user/dto/sc-i-user-on-data-create.d.ts +0 -46
- package/user/dto/sc-i-user-on-data-update.d.ts +0 -39
- package/user/dto/sc-user-metadata.d.ts +0 -46
- package/user/dto/sc-user.d.ts +0 -97
- package/user/enums/index.d.ts +0 -2
- package/user/enums/sc-client-type.d.ts +0 -17
- package/user/enums/sc-user-type.d.ts +0 -13
- package/user/index.d.ts +0 -5
- package/user/internal/dto/index.d.ts +0 -1
- package/user/internal/dto/sc-i-user-dto.d.ts +0 -80
- package/user/services/sc-user.service.d.ts +0 -118
- package/user/tokens/index.d.ts +0 -1
- package/user/tokens/sc-user-providers.d.ts +0 -7
- package/user-metrika/dto/index.d.ts +0 -1
- package/user-metrika/dto/sc-i-user-metrika-event.d.ts +0 -14
- package/user-metrika/enums/index.d.ts +0 -1
- package/user-metrika/enums/sc-user-metrika-goals-enum.d.ts +0 -334
- package/user-metrika/index.d.ts +0 -3
- package/user-metrika/services/index.d.ts +0 -1
- package/user-metrika/services/sc-user-metrika.service.d.ts +0 -43
- package/utils/phone-fotmatter/index.d.ts +0 -1
- package/utils/phone-fotmatter/sc-phone.service.d.ts +0 -36
- package/utm/index.d.ts +0 -2
- package/utm/interfaces/index.d.ts +0 -2
- package/utm/interfaces/sc-utm-params.d.ts +0 -25
- package/utm/interfaces/sc-utm.d.ts +0 -25
- package/utm/services/index.d.ts +0 -1
- package/utm/services/sc-utm.service.d.ts +0 -96
- package/vCard/index.d.ts +0 -1
- package/vCard/sc-v-card.service.d.ts +0 -51
- package/vacancies/classes/index.d.ts +0 -2
- package/vacancies/classes/sc-vacancies-list.d.ts +0 -29
- package/vacancies/classes/sc-vacancy.d.ts +0 -37
- package/vacancies/index.d.ts +0 -4
- package/vacancies/interfaces/index.d.ts +0 -4
- package/vacancies/interfaces/sc-i-employment.d.ts +0 -13
- package/vacancies/interfaces/sc-i-experience.d.ts +0 -13
- package/vacancies/interfaces/sc-i-salary.d.ts +0 -21
- package/vacancies/interfaces/sc-i-vacancies-data-source.d.ts +0 -13
- package/vacancies/internal/dto/index.d.ts +0 -2
- package/vacancies/internal/dto/sc-i-vacancies-list.d.ts +0 -24
- package/vacancies/internal/dto/sc-i-vacancy.d.ts +0 -32
- package/vacancies/services/index.d.ts +0 -1
- package/vacancies/services/sc-vacancies.service.d.ts +0 -31
- package/vacancies/tokens/index.d.ts +0 -1
- package/vacancies/tokens/sc-vacancies-datasource.d.ts +0 -6
- package/verification/index.d.ts +0 -2
- package/verification/interfaces/sc-i-phone-check.d.ts +0 -13
- package/verification/services/sc-verification.service.d.ts +0 -49
- package/warehouse/dto/index.d.ts +0 -2
- package/warehouse/dto/sc-i-warehouse-stock-count.d.ts +0 -17
- package/warehouse/dto/sc-warehouse.d.ts +0 -42
- package/warehouse/index.d.ts +0 -2
- package/warehouse/services/sc-warehouse.service.d.ts +0 -63
|
@@ -2,21 +2,20 @@ import * as i1 from 'rxjs';
|
|
|
2
2
|
import { of, startWith as startWith$1, Subject, ReplaySubject, partition, combineLatest, map as map$1, debounceTime, switchMap, tap, filter, shareReplay, distinctUntilChanged, BehaviorSubject, materialize, dematerialize, merge, distinctUntilKeyChanged, skip, first, catchError as catchError$1, throwError, expand, takeWhile, toArray, take, defaultIfEmpty, concatMap, finalize, takeUntil, interval, share, scan } from 'rxjs';
|
|
3
3
|
import { map, startWith, catchError } from 'rxjs/operators';
|
|
4
4
|
import { parseISO, parse, isValid, format } from 'date-fns';
|
|
5
|
-
import { isString, isNil, isMatch, isArray, get } from 'lodash-es';
|
|
5
|
+
import { isString, isNil, isObject, isDate, isMatch, isArray, get, isNumber, isBoolean } from 'lodash-es';
|
|
6
6
|
import * as i0 from '@angular/core';
|
|
7
|
-
import { InjectionToken, inject, PLATFORM_ID,
|
|
7
|
+
import { InjectionToken, inject, PLATFORM_ID, Inject, Optional, Injectable, EventEmitter, DestroyRef, LOCALE_ID, Pipe, RendererFactory2 } from '@angular/core';
|
|
8
8
|
import { WA_LOCAL_STORAGE, WA_USER_AGENT, WA_WINDOW } from '@ng-web-apis/common';
|
|
9
|
-
import { filterByKey, toValue, WA_STORAGE_EVENT,
|
|
9
|
+
import { filterByKey, toValue, WA_STORAGE_EVENT, WaStorageService } from '@ng-web-apis/storage';
|
|
10
10
|
import { isPlatformBrowser, isPlatformServer, DOCUMENT, formatDate } from '@angular/common';
|
|
11
11
|
import * as i1$1 from '@angular/common/http';
|
|
12
12
|
import { HttpContextToken, HttpContext, HttpHeaders, HttpClient, HttpParams, HttpErrorResponse, HttpResponse } from '@angular/common/http';
|
|
13
13
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
14
|
-
import { tuiIsPresent, TuiDay,
|
|
14
|
+
import { tuiIsPresent, TuiDay, TUI_TRUE_HANDLER } from '@taiga-ui/cdk';
|
|
15
15
|
import { tuiCleanObject } from '@taiga-ui/addon-doc/utils';
|
|
16
|
-
import { __decorate } from 'tslib';
|
|
17
16
|
import * as i2 from '@angular/router';
|
|
18
17
|
import { NavigationEnd, Router, ActivatedRoute } from '@angular/router';
|
|
19
|
-
import { objectToSnake, objectToCamel
|
|
18
|
+
import { toSnake, objectToSnake, objectToCamel } from 'ts-case-convert';
|
|
20
19
|
import { Meta, Title } from '@angular/platform-browser';
|
|
21
20
|
|
|
22
21
|
/**
|
|
@@ -388,10 +387,10 @@ class ScTokenService {
|
|
|
388
387
|
}
|
|
389
388
|
return request.clone();
|
|
390
389
|
}
|
|
391
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
392
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
390
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScTokenService, deps: [{ token: WA_STORAGE_EVENT }, { token: SC_API_KEYS, optional: true }, { token: WaStorageService }, { token: SC_GUEST_TOKEN_STORAGE_KEY }, { token: SC_ACCESS_AUTH_TOKEN_STORAGE_KEY }, { token: SC_REFRESH_AUTH_TOKEN_STORAGE_KEY }, { token: IS_BROWSER }, { token: WA_LOCAL_STORAGE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
391
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScTokenService, providedIn: 'root' }); }
|
|
393
392
|
}
|
|
394
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
393
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScTokenService, decorators: [{
|
|
395
394
|
type: Injectable,
|
|
396
395
|
args: [{
|
|
397
396
|
providedIn: 'root',
|
|
@@ -406,7 +405,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
406
405
|
args: [SC_API_KEYS]
|
|
407
406
|
}] }, { type: Storage, decorators: [{
|
|
408
407
|
type: Inject,
|
|
409
|
-
args: [
|
|
408
|
+
args: [WaStorageService]
|
|
410
409
|
}] }, { type: undefined, decorators: [{
|
|
411
410
|
type: Inject,
|
|
412
411
|
args: [SC_GUEST_TOKEN_STORAGE_KEY]
|
|
@@ -986,10 +985,10 @@ class ScUserMetrikaService {
|
|
|
986
985
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,security/detect-object-injection
|
|
987
986
|
this.additionalParams[name] = value;
|
|
988
987
|
}
|
|
989
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
990
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
988
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScUserMetrikaService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
989
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScUserMetrikaService, providedIn: 'root' }); }
|
|
991
990
|
}
|
|
992
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
991
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScUserMetrikaService, decorators: [{
|
|
993
992
|
type: Injectable,
|
|
994
993
|
args: [{
|
|
995
994
|
providedIn: 'root',
|
|
@@ -1126,10 +1125,10 @@ class ScAuthService {
|
|
|
1126
1125
|
this.tokenService.setGuestToken(token);
|
|
1127
1126
|
}));
|
|
1128
1127
|
}
|
|
1129
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1130
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1128
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScAuthService, deps: [{ token: i1$1.HttpClient }, { token: SC_URLS }, { token: SC_API_KEYS }, { token: ScTokenService }, { token: ScUserMetrikaService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1129
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScAuthService, providedIn: 'root' }); }
|
|
1131
1130
|
}
|
|
1132
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScAuthService, decorators: [{
|
|
1133
1132
|
type: Injectable,
|
|
1134
1133
|
args: [{
|
|
1135
1134
|
providedIn: 'root',
|
|
@@ -1265,7 +1264,7 @@ class ScUserService {
|
|
|
1265
1264
|
/**
|
|
1266
1265
|
* Сервис для работы с {@link Storage}.
|
|
1267
1266
|
*/
|
|
1268
|
-
this.storageService = inject(
|
|
1267
|
+
this.storageService = inject(WaStorageService);
|
|
1269
1268
|
/**
|
|
1270
1269
|
* {@link Storage}.
|
|
1271
1270
|
*/
|
|
@@ -1413,10 +1412,10 @@ class ScUserService {
|
|
|
1413
1412
|
getGuestInfo$() {
|
|
1414
1413
|
return this.http.get(`${this.urls.apiUrl}/guest`).pipe(map$1((user) => new ScUser(user)));
|
|
1415
1414
|
}
|
|
1416
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1417
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1415
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScUserService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1416
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScUserService, providedIn: 'root' }); }
|
|
1418
1417
|
}
|
|
1419
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1418
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScUserService, decorators: [{
|
|
1420
1419
|
type: Injectable,
|
|
1421
1420
|
args: [{
|
|
1422
1421
|
providedIn: 'root',
|
|
@@ -1450,10 +1449,10 @@ class ScBannerService {
|
|
|
1450
1449
|
*/
|
|
1451
1450
|
this.banners$ = inject(SC_USER_INFO).pipe(switchMap(() => this.http.get(`${this.urls.apiUrl}/banners`)), map$1((banners) => banners.map((banner) => new ScBanner(banner))), shareReplay(1));
|
|
1452
1451
|
}
|
|
1453
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1454
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1452
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScBannerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1453
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScBannerService, providedIn: 'root' }); }
|
|
1455
1454
|
}
|
|
1456
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1455
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScBannerService, decorators: [{
|
|
1457
1456
|
type: Injectable,
|
|
1458
1457
|
args: [{
|
|
1459
1458
|
providedIn: 'root',
|
|
@@ -1815,7 +1814,7 @@ class ScProduct extends ScCatalogItem {
|
|
|
1815
1814
|
return 'Раскупили';
|
|
1816
1815
|
}
|
|
1817
1816
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
|
|
1818
|
-
const daysDiff = TuiDay.lengthBetween(TuiDay.currentLocal(), TuiDay.normalizeParse(planingDate, '
|
|
1817
|
+
const daysDiff = TuiDay.lengthBetween(TuiDay.currentLocal(), TuiDay.normalizeParse(planingDate, 'dd/mm/yyyy'));
|
|
1819
1818
|
switch (daysDiff) {
|
|
1820
1819
|
case 0:
|
|
1821
1820
|
return 'Будет сегодня';
|
|
@@ -2238,10 +2237,10 @@ class ScUIService {
|
|
|
2238
2237
|
setSelectedWarehouseId(selectedWarehouseId) {
|
|
2239
2238
|
this.setMetadataByKey('selectedWarehouseId', selectedWarehouseId);
|
|
2240
2239
|
}
|
|
2241
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2242
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2240
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScUIService, deps: [{ token: ScUserService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2241
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScUIService, providedIn: 'root' }); }
|
|
2243
2242
|
}
|
|
2244
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2243
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScUIService, decorators: [{
|
|
2245
2244
|
type: Injectable,
|
|
2246
2245
|
args: [{
|
|
2247
2246
|
providedIn: 'root',
|
|
@@ -2425,9 +2424,8 @@ class ScConvertersService {
|
|
|
2425
2424
|
}
|
|
2426
2425
|
this.removeNullRecursive(object);
|
|
2427
2426
|
}
|
|
2428
|
-
else if (
|
|
2427
|
+
else if (isObject(object[k])) {
|
|
2429
2428
|
this.removeNullRecursive(object[k]);
|
|
2430
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2431
2429
|
if (Array.isArray(object) && Object.keys(object[k]).length === 0) {
|
|
2432
2430
|
object.splice(+k, 1);
|
|
2433
2431
|
}
|
|
@@ -2444,7 +2442,7 @@ class ScConvertersService {
|
|
|
2444
2442
|
// eslint-disable-next-line class-methods-use-this
|
|
2445
2443
|
removeByStrLength(object, minLength) {
|
|
2446
2444
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2447
|
-
return Object.fromEntries(Object.entries(object).filter(([_, v]) => (
|
|
2445
|
+
return Object.fromEntries(Object.entries(object).filter(([_, v]) => (isString(v) && v.length > minLength) || !isString(v)));
|
|
2448
2446
|
}
|
|
2449
2447
|
/**
|
|
2450
2448
|
* Конвертирует поля, имеющие тип {@link Date}, в {@link object}, и возвращает как новый объект.
|
|
@@ -2452,7 +2450,7 @@ class ScConvertersService {
|
|
|
2452
2450
|
* @param object Объект, в котором необходимо преобразовать поля Date в string.
|
|
2453
2451
|
*/
|
|
2454
2452
|
convertDateToString(object) {
|
|
2455
|
-
return Object.fromEntries(Object.entries(object).map(([_, v]) => (v
|
|
2453
|
+
return Object.fromEntries(Object.entries(object).map(([_, v]) => (isDate(v) ? [_, v.toLocaleDateString(this.locale)] : [_, v])));
|
|
2456
2454
|
}
|
|
2457
2455
|
// eslint-disable-next-line class-methods-use-this
|
|
2458
2456
|
createParamKeyString(keys) {
|
|
@@ -2474,7 +2472,7 @@ class ScConvertersService {
|
|
|
2474
2472
|
// eslint-disable-next-line no-restricted-syntax
|
|
2475
2473
|
for (const key in object) {
|
|
2476
2474
|
if (object.hasOwnProperty.call(object, key)) {
|
|
2477
|
-
if (
|
|
2475
|
+
if (isObject(object[key]) && !isDate(object[key])) {
|
|
2478
2476
|
this.toSimpleObjectRecursive(object[key], [...keys, key], resultObject);
|
|
2479
2477
|
}
|
|
2480
2478
|
else {
|
|
@@ -2484,10 +2482,10 @@ class ScConvertersService {
|
|
|
2484
2482
|
}
|
|
2485
2483
|
return resultObject;
|
|
2486
2484
|
}
|
|
2487
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2488
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2485
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScConvertersService, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2486
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScConvertersService, providedIn: 'root' }); }
|
|
2489
2487
|
}
|
|
2490
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2488
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScConvertersService, decorators: [{
|
|
2491
2489
|
type: Injectable,
|
|
2492
2490
|
args: [{
|
|
2493
2491
|
providedIn: 'root',
|
|
@@ -2667,10 +2665,10 @@ class ScReferencesService {
|
|
|
2667
2665
|
getCurrencyById$(currencyId) {
|
|
2668
2666
|
return this.currencies$.pipe(map$1((types) => types.find((type) => type.id === currencyId)));
|
|
2669
2667
|
}
|
|
2670
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2671
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2668
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScReferencesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2669
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScReferencesService, providedIn: 'root' }); }
|
|
2672
2670
|
}
|
|
2673
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2671
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScReferencesService, decorators: [{
|
|
2674
2672
|
type: Injectable,
|
|
2675
2673
|
args: [{
|
|
2676
2674
|
providedIn: 'root',
|
|
@@ -2778,10 +2776,10 @@ class ScWarehouseService {
|
|
|
2778
2776
|
getCurrentWarehouseIdSelect() {
|
|
2779
2777
|
return this.warehouseIdSelectSubject.getValue();
|
|
2780
2778
|
}
|
|
2781
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2782
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2779
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScWarehouseService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2780
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScWarehouseService, providedIn: 'root' }); }
|
|
2783
2781
|
}
|
|
2784
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2782
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScWarehouseService, decorators: [{
|
|
2785
2783
|
type: Injectable,
|
|
2786
2784
|
args: [{
|
|
2787
2785
|
providedIn: 'root',
|
|
@@ -2966,10 +2964,10 @@ class ScCartService {
|
|
|
2966
2964
|
});
|
|
2967
2965
|
}));
|
|
2968
2966
|
}
|
|
2969
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2970
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2967
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScCartService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2968
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScCartService, providedIn: 'root' }); }
|
|
2971
2969
|
}
|
|
2972
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2970
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScCartService, decorators: [{
|
|
2973
2971
|
type: Injectable,
|
|
2974
2972
|
args: [{
|
|
2975
2973
|
providedIn: 'root',
|
|
@@ -3168,10 +3166,10 @@ class ScCatalogFilterService {
|
|
|
3168
3166
|
}
|
|
3169
3167
|
return cachedItem.item$;
|
|
3170
3168
|
}
|
|
3171
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3172
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3169
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScCatalogFilterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3170
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScCatalogFilterService, providedIn: 'root' }); }
|
|
3173
3171
|
}
|
|
3174
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScCatalogFilterService, decorators: [{
|
|
3175
3173
|
type: Injectable,
|
|
3176
3174
|
args: [{
|
|
3177
3175
|
providedIn: 'root',
|
|
@@ -3199,11 +3197,11 @@ class ScIdOrSlugPipe {
|
|
|
3199
3197
|
transform(value) {
|
|
3200
3198
|
return this.idOrSlug === 'id' ? value.id : value.slug;
|
|
3201
3199
|
}
|
|
3202
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3203
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3204
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3200
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScIdOrSlugPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3201
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.16", ngImport: i0, type: ScIdOrSlugPipe, isStandalone: true, name: "scIdOrSlug" }); }
|
|
3202
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScIdOrSlugPipe, providedIn: 'root' }); }
|
|
3205
3203
|
}
|
|
3206
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3204
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScIdOrSlugPipe, decorators: [{
|
|
3207
3205
|
type: Pipe,
|
|
3208
3206
|
args: [{
|
|
3209
3207
|
name: 'scIdOrSlug',
|
|
@@ -3343,7 +3341,7 @@ class ScCatalogService {
|
|
|
3343
3341
|
getCategoryData$(categoryIdOrSlug) {
|
|
3344
3342
|
return this.http.get(`${this.urls.apiUrl}/catalog/categories/${categoryIdOrSlug ?? ''}`).pipe(map$1((category) => new ScCategory(category)), tap((category) => {
|
|
3345
3343
|
if (categoryIdOrSlug) {
|
|
3346
|
-
this.categoryIdOrSlugMap.set(
|
|
3344
|
+
this.categoryIdOrSlugMap.set(isString(categoryIdOrSlug) ? category.id : category.slug, categoryIdOrSlug);
|
|
3347
3345
|
}
|
|
3348
3346
|
}));
|
|
3349
3347
|
}
|
|
@@ -3485,7 +3483,7 @@ class ScCatalogService {
|
|
|
3485
3483
|
getProductData$(productIdOrSlug) {
|
|
3486
3484
|
return this.http.get(`${this.urls.apiUrl}/catalog/products/${productIdOrSlug}`).pipe(map$1((productDTO) => new ScProduct(productDTO)), tap((product) => {
|
|
3487
3485
|
if (productIdOrSlug) {
|
|
3488
|
-
this.productIdOrSlugMap.set(
|
|
3486
|
+
this.productIdOrSlugMap.set(isString(productIdOrSlug) ? product.id : product.slug, productIdOrSlug);
|
|
3489
3487
|
}
|
|
3490
3488
|
}));
|
|
3491
3489
|
}
|
|
@@ -3535,10 +3533,10 @@ class ScCatalogService {
|
|
|
3535
3533
|
getProductNotifyWhenInStock$(productIdOrSlug, data) {
|
|
3536
3534
|
return this.http.post(`${this.urls.apiUrl}/catalog/products/${productIdOrSlug}/stock-notify`, data);
|
|
3537
3535
|
}
|
|
3538
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3539
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3536
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScCatalogService, deps: [{ token: i1$1.HttpClient }, { token: SC_URLS }, { token: ScUIService }, { token: ScConvertersService }, { token: SC_CACHE_LIFETIME }, { token: ScUserMetrikaService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3537
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScCatalogService, providedIn: 'root' }); }
|
|
3540
3538
|
}
|
|
3541
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3539
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScCatalogService, decorators: [{
|
|
3542
3540
|
type: Injectable,
|
|
3543
3541
|
args: [{
|
|
3544
3542
|
providedIn: 'root',
|
|
@@ -3625,10 +3623,10 @@ class ScFavoriteService {
|
|
|
3625
3623
|
deleteProduct$(productId) {
|
|
3626
3624
|
return this.http.delete(`${this.urls.apiUrl}/favorites/products/${productId}`);
|
|
3627
3625
|
}
|
|
3628
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3629
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3626
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScFavoriteService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3627
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScFavoriteService, providedIn: 'root' }); }
|
|
3630
3628
|
}
|
|
3631
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3629
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScFavoriteService, decorators: [{
|
|
3632
3630
|
type: Injectable,
|
|
3633
3631
|
args: [{
|
|
3634
3632
|
providedIn: 'root',
|
|
@@ -3671,6 +3669,13 @@ class ScRecommendationService {
|
|
|
3671
3669
|
* Ссылка на жизненный цикл сервиса.
|
|
3672
3670
|
*/
|
|
3673
3671
|
this.destroyRef = inject(DestroyRef);
|
|
3672
|
+
/**
|
|
3673
|
+
* Кэшированный поток рекомендуемых товаров для корзины клиента.
|
|
3674
|
+
*/
|
|
3675
|
+
this.productsByCart$ = this.cartService.get$().pipe(map$1((cart) => (cart !== loadingPlaceholder && 'items' in cart ? cart.items.map((item) => item.product.id) : [])),
|
|
3676
|
+
// Отфильтровываем повторения. Они возникнут если было изменено количество товара без удаления\добавления новых товаров.
|
|
3677
|
+
// eslint-disable-next-line sonarjs/no-misleading-array-reverse
|
|
3678
|
+
distinctUntilChanged((previous, current) => JSON.stringify([...previous].sort((a, b) => a - b)) === JSON.stringify([...current].sort((a, b) => a - b))), switchMap((productIds) => this.getProductsByProductIds$(productIds).pipe(startWith$1(null))), shareReplay({ refCount: false, bufferSize: 1 }));
|
|
3674
3679
|
inject(SC_USER_INFO)
|
|
3675
3680
|
.pipe(skip(1), takeUntilDestroyed(this.destroyRef))
|
|
3676
3681
|
.subscribe(() => {
|
|
@@ -3763,27 +3768,15 @@ class ScRecommendationService {
|
|
|
3763
3768
|
})
|
|
3764
3769
|
.pipe(catchError$1(() => of([])), map$1((productsDTO) => productsDTO.map((product) => new ScProduct(product))));
|
|
3765
3770
|
}
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
*/
|
|
3769
|
-
getProductsByCart$() {
|
|
3770
|
-
return this.cartService.get$().pipe(map$1((cart) => (cart !== loadingPlaceholder && 'items' in cart ? cart.items.map((item) => item.product.id) : [])),
|
|
3771
|
-
// Отфильтровываем повторения. Они возникнут если было изменено количество товара без удаления\добавления новых товаров.
|
|
3772
|
-
// eslint-disable-next-line sonarjs/no-misleading-array-reverse
|
|
3773
|
-
distinctUntilChanged((previous, current) => JSON.stringify([...previous].sort((a, b) => a - b)) === JSON.stringify([...current].sort((a, b) => a - b))), switchMap((productIds) => this.getProductsByProductIds$(productIds).pipe(startWith$1(null))));
|
|
3774
|
-
}
|
|
3775
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScRecommendationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3776
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScRecommendationService, providedIn: 'root' }); }
|
|
3771
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScRecommendationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3772
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScRecommendationService, providedIn: 'root' }); }
|
|
3777
3773
|
}
|
|
3778
|
-
|
|
3779
|
-
tuiPure
|
|
3780
|
-
], ScRecommendationService.prototype, "getProductsByCart$", null);
|
|
3781
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScRecommendationService, decorators: [{
|
|
3774
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScRecommendationService, decorators: [{
|
|
3782
3775
|
type: Injectable,
|
|
3783
3776
|
args: [{
|
|
3784
3777
|
providedIn: 'root',
|
|
3785
3778
|
}]
|
|
3786
|
-
}], ctorParameters: () => []
|
|
3779
|
+
}], ctorParameters: () => [] });
|
|
3787
3780
|
|
|
3788
3781
|
/**
|
|
3789
3782
|
* Перечисление ключей маршрутов.
|
|
@@ -4042,10 +4035,10 @@ class ScConfiguratorService {
|
|
|
4042
4035
|
params: this.convertersService.toHttpParams({ ...params }, { nonNullable: true }),
|
|
4043
4036
|
});
|
|
4044
4037
|
}
|
|
4045
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4046
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4038
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScConfiguratorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4039
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScConfiguratorService, providedIn: 'root' }); }
|
|
4047
4040
|
}
|
|
4048
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4041
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScConfiguratorService, decorators: [{
|
|
4049
4042
|
type: Injectable,
|
|
4050
4043
|
args: [{
|
|
4051
4044
|
providedIn: 'root',
|
|
@@ -4216,10 +4209,10 @@ class ScContactsService {
|
|
|
4216
4209
|
params: params,
|
|
4217
4210
|
});
|
|
4218
4211
|
}
|
|
4219
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4220
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4212
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScContactsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4213
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScContactsService, providedIn: 'root' }); }
|
|
4221
4214
|
}
|
|
4222
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScContactsService, decorators: [{
|
|
4223
4216
|
type: Injectable,
|
|
4224
4217
|
args: [{
|
|
4225
4218
|
providedIn: 'root',
|
|
@@ -4251,10 +4244,10 @@ class ScMediaImageTransformerPipe {
|
|
|
4251
4244
|
}
|
|
4252
4245
|
return image.startsWith('/') ? `${this.urls.imgServerUrl}${image}` : `${this.urls.imgServerUrl}/${image}`;
|
|
4253
4246
|
}
|
|
4254
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4255
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
4247
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScMediaImageTransformerPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4248
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.16", ngImport: i0, type: ScMediaImageTransformerPipe, isStandalone: true, name: "scMediaImageTransformer" }); }
|
|
4256
4249
|
}
|
|
4257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4250
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScMediaImageTransformerPipe, decorators: [{
|
|
4258
4251
|
type: Pipe,
|
|
4259
4252
|
args: [{
|
|
4260
4253
|
name: 'scMediaImageTransformer',
|
|
@@ -4339,10 +4332,10 @@ class ScImageHelper {
|
|
|
4339
4332
|
isImg(format) {
|
|
4340
4333
|
return ['jpeg', 'jpg', 'png', 'gif', 'bmp', 'tiff', 'webp'].includes(format);
|
|
4341
4334
|
}
|
|
4342
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4343
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4335
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScImageHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4336
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScImageHelper, providedIn: 'root' }); }
|
|
4344
4337
|
}
|
|
4345
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4338
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScImageHelper, decorators: [{
|
|
4346
4339
|
type: Injectable,
|
|
4347
4340
|
args: [{
|
|
4348
4341
|
providedIn: 'root',
|
|
@@ -4528,10 +4521,10 @@ class ScSearchService {
|
|
|
4528
4521
|
getSearchTermChange$() {
|
|
4529
4522
|
return this.searchTerm$.asObservable();
|
|
4530
4523
|
}
|
|
4531
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4532
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4524
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScSearchService, deps: [{ token: i1$1.HttpClient }, { token: SC_URLS }, { token: ScUserMetrikaService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4525
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScSearchService, providedIn: 'root' }); }
|
|
4533
4526
|
}
|
|
4534
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4527
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScSearchService, decorators: [{
|
|
4535
4528
|
type: Injectable,
|
|
4536
4529
|
args: [{
|
|
4537
4530
|
providedIn: 'root',
|
|
@@ -4630,7 +4623,7 @@ class ScUTMService {
|
|
|
4630
4623
|
/**
|
|
4631
4624
|
* Сервис для работы с {@link Storage} и внедрению его через DI.
|
|
4632
4625
|
*/
|
|
4633
|
-
this.storageService = inject(
|
|
4626
|
+
this.storageService = inject(WaStorageService);
|
|
4634
4627
|
/**
|
|
4635
4628
|
* Признак, что скрипт выполняется в браузере.
|
|
4636
4629
|
*/
|
|
@@ -4739,10 +4732,10 @@ class ScUTMService {
|
|
|
4739
4732
|
this.storageService.setItem('utmTimestamp', JSON.stringify(Date.now()));
|
|
4740
4733
|
}
|
|
4741
4734
|
}
|
|
4742
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4743
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4735
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScUTMService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4736
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScUTMService, providedIn: 'root' }); }
|
|
4744
4737
|
}
|
|
4745
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4738
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScUTMService, decorators: [{
|
|
4746
4739
|
type: Injectable,
|
|
4747
4740
|
args: [{
|
|
4748
4741
|
providedIn: 'root',
|
|
@@ -4798,10 +4791,10 @@ class ScFeedbackService {
|
|
|
4798
4791
|
});
|
|
4799
4792
|
}));
|
|
4800
4793
|
}
|
|
4801
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4802
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4794
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScFeedbackService, deps: [{ token: i1$1.HttpClient }, { token: ScUserMetrikaService }, { token: SC_FEEDBACK_API }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4795
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScFeedbackService, providedIn: 'root' }); }
|
|
4803
4796
|
}
|
|
4804
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4797
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScFeedbackService, decorators: [{
|
|
4805
4798
|
type: Injectable,
|
|
4806
4799
|
args: [{
|
|
4807
4800
|
providedIn: 'root',
|
|
@@ -4932,10 +4925,10 @@ class ScRequisitesService {
|
|
|
4932
4925
|
getManagerById(managerId) {
|
|
4933
4926
|
return this.idManagerMap.get(managerId);
|
|
4934
4927
|
}
|
|
4935
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4936
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4928
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScRequisitesService, deps: [{ token: i1$1.HttpClient }, { token: SC_URLS }, { token: ScAuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4929
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScRequisitesService, providedIn: 'root' }); }
|
|
4937
4930
|
}
|
|
4938
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4931
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScRequisitesService, decorators: [{
|
|
4939
4932
|
type: Injectable,
|
|
4940
4933
|
args: [{
|
|
4941
4934
|
providedIn: 'root',
|
|
@@ -5091,10 +5084,10 @@ class ScContragentService {
|
|
|
5091
5084
|
.delete(`${this.urls.apiUrl}/user/contragents/${contragentId}/bank-accounts/${bankAccountId}`)
|
|
5092
5085
|
.pipe(tap(() => this.contragentBankAccountsMap.get(contragentId)?.update()));
|
|
5093
5086
|
}
|
|
5094
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5095
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5087
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScContragentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5088
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScContragentService, providedIn: 'root' }); }
|
|
5096
5089
|
}
|
|
5097
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5090
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScContragentService, decorators: [{
|
|
5098
5091
|
type: Injectable,
|
|
5099
5092
|
args: [{
|
|
5100
5093
|
providedIn: 'root',
|
|
@@ -5201,10 +5194,10 @@ class ScDeliveryAddressService {
|
|
|
5201
5194
|
deleteDeliveryAddressContact$(addressId, contactId) {
|
|
5202
5195
|
return this.contactsService.deleteContact$(contactId).pipe(tap(() => this.contactsService.deliveryAddressContactsMap.get(addressId)?.update()));
|
|
5203
5196
|
}
|
|
5204
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5205
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5197
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScDeliveryAddressService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5198
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScDeliveryAddressService, providedIn: 'root' }); }
|
|
5206
5199
|
}
|
|
5207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScDeliveryAddressService, decorators: [{
|
|
5208
5201
|
type: Injectable,
|
|
5209
5202
|
args: [{
|
|
5210
5203
|
providedIn: 'root',
|
|
@@ -5244,10 +5237,10 @@ class ScFrequentlyAskedQuestionsService {
|
|
|
5244
5237
|
context: SC_IS_HIDDEN_ERROR_ALERT_HTTP_CONTEXT,
|
|
5245
5238
|
});
|
|
5246
5239
|
}
|
|
5247
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5248
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5240
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScFrequentlyAskedQuestionsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5241
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScFrequentlyAskedQuestionsService, providedIn: 'root' }); }
|
|
5249
5242
|
}
|
|
5250
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5243
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScFrequentlyAskedQuestionsService, decorators: [{
|
|
5251
5244
|
type: Injectable,
|
|
5252
5245
|
args: [{
|
|
5253
5246
|
providedIn: 'root',
|
|
@@ -5399,10 +5392,10 @@ class ScFilesService {
|
|
|
5399
5392
|
break;
|
|
5400
5393
|
}
|
|
5401
5394
|
}
|
|
5402
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5403
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5395
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScFilesService, deps: [{ token: i1$1.HttpClient }, { token: SC_URLS }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5396
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScFilesService, providedIn: 'root' }); }
|
|
5404
5397
|
}
|
|
5405
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5398
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScFilesService, decorators: [{
|
|
5406
5399
|
type: Injectable,
|
|
5407
5400
|
args: [{
|
|
5408
5401
|
providedIn: 'root',
|
|
@@ -5452,10 +5445,10 @@ class ScAuthAsClientGuard {
|
|
|
5452
5445
|
},
|
|
5453
5446
|
})), take(1), defaultIfEmpty(null), map$1(() => this.router.createUrlTree(this.options.urlTree)));
|
|
5454
5447
|
}
|
|
5455
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5456
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5448
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScAuthAsClientGuard, deps: [{ token: ScAuthService }, { token: i2.Router }, { token: SC_AUTH_AS_CLIENT_OPTIONS }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5449
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScAuthAsClientGuard }); }
|
|
5457
5450
|
}
|
|
5458
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5451
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScAuthAsClientGuard, decorators: [{
|
|
5459
5452
|
type: Injectable
|
|
5460
5453
|
}], ctorParameters: () => [{ type: ScAuthService }, { type: i2.Router }, { type: undefined, decorators: [{
|
|
5461
5454
|
type: Inject,
|
|
@@ -5528,30 +5521,17 @@ const SC_GUEST_PARAMETER_NAME_TOKEN = new InjectionToken('SC_GUEST_PARAMETER_NAM
|
|
|
5528
5521
|
|
|
5529
5522
|
/**
|
|
5530
5523
|
* Перехватчик запросов для реализации аутентификации.
|
|
5524
|
+
*
|
|
5525
|
+
* @param request HTTP запрос.
|
|
5526
|
+
* @param next Следующий обработчик в цепочке.
|
|
5531
5527
|
*/
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
* @param tokenService Сервис ключей аутентификации.
|
|
5537
|
-
*/
|
|
5538
|
-
constructor(tokenService) {
|
|
5539
|
-
this.tokenService = tokenService;
|
|
5528
|
+
function ScAuthInterceptor(request, next) {
|
|
5529
|
+
const tokenService = inject(ScTokenService);
|
|
5530
|
+
if (request.context.get(SC_IS_HEADER_REQUIRED) && request.context.get(SC_AUTH_ADD_HEADER_REQUIRED)) {
|
|
5531
|
+
return next(request.clone(tokenService.addAuthHeader(request)));
|
|
5540
5532
|
}
|
|
5541
|
-
|
|
5542
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5543
|
-
intercept(request, next) {
|
|
5544
|
-
if (request.context.get(SC_IS_HEADER_REQUIRED) && request.context.get(SC_AUTH_ADD_HEADER_REQUIRED)) {
|
|
5545
|
-
return next.handle(request.clone(this.tokenService.addAuthHeader(request)));
|
|
5546
|
-
}
|
|
5547
|
-
return next.handle(request);
|
|
5548
|
-
}
|
|
5549
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScAuthInterceptor, deps: [{ token: ScTokenService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5550
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScAuthInterceptor }); }
|
|
5533
|
+
return next(request);
|
|
5551
5534
|
}
|
|
5552
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScAuthInterceptor, decorators: [{
|
|
5553
|
-
type: Injectable
|
|
5554
|
-
}], ctorParameters: () => [{ type: ScTokenService }] });
|
|
5555
5535
|
|
|
5556
5536
|
/**
|
|
5557
5537
|
* Модель данных закэшированного {@link HttpResponse}.
|
|
@@ -5571,324 +5551,263 @@ class ScCachedResponse {
|
|
|
5571
5551
|
}
|
|
5572
5552
|
|
|
5573
5553
|
/**
|
|
5574
|
-
*
|
|
5554
|
+
* Коллекция пар ключ-значение для результатов запросов по строке запроса.
|
|
5575
5555
|
*/
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
if (request.context.get(SC_CACHE_SETTINGS).
|
|
5588
|
-
|
|
5589
|
-
if (cachedResponse && cachedResponse.loadedAt.getTime() > Date.now() - request.context.get(SC_CACHE_SETTINGS).cacheLifeTime) {
|
|
5590
|
-
return of(cachedResponse.response);
|
|
5591
|
-
}
|
|
5592
|
-
return next.handle(request).pipe(tap((response) => {
|
|
5593
|
-
if (response instanceof HttpResponse) {
|
|
5594
|
-
this.cache.set(request.url, new ScCachedResponse(response));
|
|
5595
|
-
}
|
|
5596
|
-
}));
|
|
5556
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5557
|
+
const cache = new Map();
|
|
5558
|
+
/**
|
|
5559
|
+
* Перехватчик запросов для кэширования результатов.
|
|
5560
|
+
*
|
|
5561
|
+
* @param request HTTP запрос.
|
|
5562
|
+
* @param next Следующий обработчик в цепочке.
|
|
5563
|
+
*/
|
|
5564
|
+
function ScCacheInterceptor(request, next) {
|
|
5565
|
+
if (request.context.get(SC_CACHE_SETTINGS).isCached) {
|
|
5566
|
+
const cachedResponse = cache.get(request.url);
|
|
5567
|
+
if (cachedResponse && cachedResponse.loadedAt.getTime() > Date.now() - request.context.get(SC_CACHE_SETTINGS).cacheLifeTime) {
|
|
5568
|
+
return of(cachedResponse.response);
|
|
5597
5569
|
}
|
|
5598
|
-
return next
|
|
5570
|
+
return next(request).pipe(tap((response) => {
|
|
5571
|
+
if (response instanceof HttpResponse) {
|
|
5572
|
+
cache.set(request.url, new ScCachedResponse(response));
|
|
5573
|
+
}
|
|
5574
|
+
}));
|
|
5599
5575
|
}
|
|
5600
|
-
|
|
5601
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScCacheInterceptor }); }
|
|
5576
|
+
return next(request);
|
|
5602
5577
|
}
|
|
5603
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScCacheInterceptor, decorators: [{
|
|
5604
|
-
type: Injectable
|
|
5605
|
-
}] });
|
|
5606
5578
|
|
|
5607
5579
|
/* eslint-disable security/detect-object-injection */
|
|
5608
5580
|
/**
|
|
5609
|
-
*
|
|
5581
|
+
* Конвертирует параметры HTTP запроса в snake_case.
|
|
5582
|
+
*
|
|
5583
|
+
* @param params HTTP параметры для конвертации.
|
|
5610
5584
|
*/
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
this.urls = urls;
|
|
5619
|
-
}
|
|
5620
|
-
/** @inheritDoc */
|
|
5621
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5622
|
-
intercept(request, next) {
|
|
5623
|
-
if (request.responseType !== 'json' || !request.url.includes(this.urls.apiUrl)) {
|
|
5624
|
-
return next.handle(request);
|
|
5585
|
+
function httpParamsToSnake(params) {
|
|
5586
|
+
// eslint-disable-next-line unicorn/no-array-reduce
|
|
5587
|
+
const newObje = params.keys().reduce((object, key) => {
|
|
5588
|
+
const parameter = params.getAll(key);
|
|
5589
|
+
if (parameter) {
|
|
5590
|
+
// eslint-disable-next-line no-param-reassign
|
|
5591
|
+
object[toSnake(key)] = parameter;
|
|
5625
5592
|
}
|
|
5626
|
-
return
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5593
|
+
return object;
|
|
5594
|
+
}, {});
|
|
5595
|
+
return new HttpParams().appendAll(newObje);
|
|
5596
|
+
}
|
|
5597
|
+
/**
|
|
5598
|
+
* Перехватчик для конвертации данных.
|
|
5599
|
+
*
|
|
5600
|
+
* @param request HTTP запрос.
|
|
5601
|
+
* @param next Следующий обработчик в цепочке.
|
|
5602
|
+
*/
|
|
5603
|
+
function ScConvertInterceptor(request, next) {
|
|
5604
|
+
const urls = inject(SC_URLS);
|
|
5605
|
+
if (request.responseType !== 'json' || !request.url.includes(urls.apiUrl)) {
|
|
5606
|
+
return next(request);
|
|
5607
|
+
}
|
|
5608
|
+
return next(request.clone({
|
|
5609
|
+
params: httpParamsToSnake(request.params),
|
|
5610
|
+
body: isString(request.body) ? httpParamsToSnake(new HttpParams({ fromString: request.body })).toString() : objectToSnake(request.body),
|
|
5611
|
+
})).pipe(map$1((event) => {
|
|
5612
|
+
if (event instanceof HttpResponse) {
|
|
5613
|
+
return event.clone({
|
|
5614
|
+
body: objectToCamel(event.body),
|
|
5615
|
+
});
|
|
5616
|
+
}
|
|
5617
|
+
return event;
|
|
5618
|
+
}), catchError$1((error) => throwError(() => new HttpErrorResponse({
|
|
5619
|
+
error: objectToCamel(error.error),
|
|
5620
|
+
headers: error.headers,
|
|
5621
|
+
status: error.status,
|
|
5622
|
+
statusText: error.statusText,
|
|
5623
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
5624
|
+
url: error.url,
|
|
5625
|
+
}))));
|
|
5657
5626
|
}
|
|
5658
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScConvertInterceptor, decorators: [{
|
|
5659
|
-
type: Injectable
|
|
5660
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
5661
|
-
type: Inject,
|
|
5662
|
-
args: [SC_URLS]
|
|
5663
|
-
}] }] });
|
|
5664
5627
|
|
|
5665
5628
|
/**
|
|
5666
|
-
*
|
|
5629
|
+
* Наблюдаемый признак того, что токен в данный момент обновляется.
|
|
5667
5630
|
*/
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
}
|
|
5697
|
-
if (request.headers.has(this.apiKeys.guestKeyName)) {
|
|
5698
|
-
this.tokenService.removeGuestToken();
|
|
5699
|
-
return of();
|
|
5700
|
-
}
|
|
5701
|
-
if (request.context.get(SC_IS_HEADER_REQUIRED) &&
|
|
5702
|
-
request.headers.has(this.apiKeys.keyName) &&
|
|
5703
|
-
!request.context.get(SC_IS_REFRESH_REQUIRED)) {
|
|
5704
|
-
return this.handle401Error(request, next);
|
|
5705
|
-
}
|
|
5706
|
-
return throwError(() => error);
|
|
5707
|
-
default:
|
|
5708
|
-
return throwError(() => error);
|
|
5631
|
+
const isTokenRefreshing$ = new BehaviorSubject(false);
|
|
5632
|
+
/**
|
|
5633
|
+
* Проверяет, является ли причиной ошибки истекший токен.
|
|
5634
|
+
*
|
|
5635
|
+
* @param error Ошибка.
|
|
5636
|
+
*/
|
|
5637
|
+
function isExpiredToken(error) {
|
|
5638
|
+
const wwwAuthenticate = error.headers.get('www-authenticate');
|
|
5639
|
+
return !!wwwAuthenticate && wwwAuthenticate.includes('Bearer error="expired_token"');
|
|
5640
|
+
}
|
|
5641
|
+
/**
|
|
5642
|
+
* Обработчик 401 ошибки.
|
|
5643
|
+
*
|
|
5644
|
+
* @param request Запрос, который выдал ошибку.
|
|
5645
|
+
* @param next Следующий перехватчик в цепочке перехватчиков.
|
|
5646
|
+
* @param tokenService Сервис для работы с ключами аутентификации.
|
|
5647
|
+
* @param authService Сервис аутентификации.
|
|
5648
|
+
*/
|
|
5649
|
+
function handle401Error(request, next, tokenService, authService) {
|
|
5650
|
+
if (!isTokenRefreshing$.getValue()) {
|
|
5651
|
+
isTokenRefreshing$.next(true);
|
|
5652
|
+
return authService.getRefreshToken$().pipe(switchMap(() => {
|
|
5653
|
+
isTokenRefreshing$.next(false);
|
|
5654
|
+
return next(request.clone(tokenService.addAuthHeader(request)));
|
|
5655
|
+
}), catchError$1((error) => {
|
|
5656
|
+
if (error.status === 401) {
|
|
5657
|
+
tokenService.removeAuthToken();
|
|
5658
|
+
return of();
|
|
5709
5659
|
}
|
|
5660
|
+
return throwError(() => error);
|
|
5710
5661
|
}));
|
|
5711
5662
|
}
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5663
|
+
return isTokenRefreshing$.pipe(filter((isRefreshing) => !isRefreshing), first(), // Для запуска цепочки повторного вызова запросов нужен один сигнал.
|
|
5664
|
+
switchMap(() => next(tokenService.addAuthHeader(request))), finalize(() => {
|
|
5665
|
+
isTokenRefreshing$.next(false);
|
|
5666
|
+
}), takeUntil(authService.getAuthChange().pipe(filter((state) => !state))));
|
|
5667
|
+
}
|
|
5668
|
+
/**
|
|
5669
|
+
* Перехватчик обработки ошибок запросов.
|
|
5670
|
+
*
|
|
5671
|
+
* @param request HTTP запрос.
|
|
5672
|
+
* @param next Следующий обработчик в цепочке.
|
|
5673
|
+
*/
|
|
5674
|
+
function ScErrorsInterceptor(request, next) {
|
|
5675
|
+
const apiKeys = inject(SC_API_KEYS);
|
|
5676
|
+
const tokenService = inject(ScTokenService);
|
|
5677
|
+
const authService = inject(ScAuthService);
|
|
5678
|
+
return next(request).pipe(catchError$1((error) => {
|
|
5679
|
+
// eslint-disable-next-line sonarjs/no-small-switch
|
|
5680
|
+
switch (error.status) {
|
|
5681
|
+
case 401:
|
|
5682
|
+
if (request.context.get(SC_IS_LOGOUT_REQUEST)) {
|
|
5683
|
+
tokenService.removeAuthToken();
|
|
5684
|
+
return of();
|
|
5685
|
+
}
|
|
5686
|
+
if (request.headers.has(apiKeys.guestKeyName)) {
|
|
5687
|
+
tokenService.removeGuestToken();
|
|
5728
5688
|
return of();
|
|
5729
5689
|
}
|
|
5690
|
+
if (!isExpiredToken(error) && request.headers.has(apiKeys.keyName)) {
|
|
5691
|
+
tokenService.removeAuthToken();
|
|
5692
|
+
return of();
|
|
5693
|
+
}
|
|
5694
|
+
if (request.context.get(SC_IS_HEADER_REQUIRED) && request.headers.has(apiKeys.keyName) && !request.context.get(SC_IS_REFRESH_REQUIRED)) {
|
|
5695
|
+
return handle401Error(request, next, tokenService, authService);
|
|
5696
|
+
}
|
|
5697
|
+
return throwError(() => error);
|
|
5698
|
+
case 400:
|
|
5699
|
+
if (request.context.get(SC_IS_REFRESH_REQUIRED)) {
|
|
5700
|
+
tokenService.removeAuthToken();
|
|
5701
|
+
return of();
|
|
5702
|
+
}
|
|
5703
|
+
return throwError(() => error);
|
|
5704
|
+
default:
|
|
5730
5705
|
return throwError(() => error);
|
|
5731
|
-
}));
|
|
5732
5706
|
}
|
|
5733
|
-
|
|
5734
|
-
switchMap(() => next.handle(this.tokenService.addAuthHeader(request))), finalize(() => {
|
|
5735
|
-
this.isTokenRefreshing$.next(false);
|
|
5736
|
-
}), takeUntil(this.authService.getAuthChange().pipe(filter((state) => !state))));
|
|
5737
|
-
}
|
|
5738
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScErrorsInterceptor, deps: [{ token: SC_API_KEYS }, { token: ScTokenService }, { token: ScAuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5739
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScErrorsInterceptor }); }
|
|
5707
|
+
}));
|
|
5740
5708
|
}
|
|
5741
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScErrorsInterceptor, decorators: [{
|
|
5742
|
-
type: Injectable
|
|
5743
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
5744
|
-
type: Inject,
|
|
5745
|
-
args: [SC_API_KEYS]
|
|
5746
|
-
}] }, { type: ScTokenService }, { type: ScAuthService }] });
|
|
5747
5709
|
|
|
5748
5710
|
/**
|
|
5749
5711
|
* Перехватчик запросов для внедрения опций приложения в заголовок.
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
'APP-VERSION': `${this.release.name} (${this.release.version}, ${this.release.date})`,
|
|
5764
|
-
};
|
|
5765
|
-
}
|
|
5766
|
-
/** @inheritDoc */
|
|
5767
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5768
|
-
intercept(request, next) {
|
|
5769
|
-
if (request.context.get(SC_IS_HEADER_REQUIRED)) {
|
|
5770
|
-
return next.handle(request.clone({
|
|
5771
|
-
setHeaders: this.headers,
|
|
5772
|
-
}));
|
|
5773
|
-
}
|
|
5774
|
-
return next.handle(request);
|
|
5712
|
+
*
|
|
5713
|
+
* @param request HTTP запрос.
|
|
5714
|
+
* @param next Следующий обработчик в цепочке.
|
|
5715
|
+
*/
|
|
5716
|
+
function ScOptionsInterceptor(request, next) {
|
|
5717
|
+
const release = inject(SC_RELEASE);
|
|
5718
|
+
const headers = {
|
|
5719
|
+
'APP-VERSION': `${release.name} (${release.version}, ${release.date})`,
|
|
5720
|
+
};
|
|
5721
|
+
if (request.context.get(SC_IS_HEADER_REQUIRED)) {
|
|
5722
|
+
return next(request.clone({
|
|
5723
|
+
setHeaders: headers,
|
|
5724
|
+
}));
|
|
5775
5725
|
}
|
|
5776
|
-
|
|
5777
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScOptionsInterceptor }); }
|
|
5726
|
+
return next(request);
|
|
5778
5727
|
}
|
|
5779
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScOptionsInterceptor, decorators: [{
|
|
5780
|
-
type: Injectable
|
|
5781
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
5782
|
-
type: Inject,
|
|
5783
|
-
args: [SC_RELEASE]
|
|
5784
|
-
}] }] });
|
|
5785
5728
|
|
|
5786
5729
|
/**
|
|
5787
5730
|
* Перехватчик запросов API для добавления в них параметра при котором кешируются запросы у гостя.
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
*/
|
|
5802
|
-
this.user$ = inject(SC_USER_INFO);
|
|
5803
|
-
}
|
|
5804
|
-
/** @inheritDoc */
|
|
5805
|
-
intercept(request, next) {
|
|
5806
|
-
const isGuestEndpoint = this.guestEndpoints.some((endpoint) => request.url.includes(endpoint));
|
|
5807
|
-
if (!isGuestEndpoint) {
|
|
5808
|
-
return next.handle(request);
|
|
5809
|
-
}
|
|
5810
|
-
return this.user$.pipe(first(), switchMap((user) => (user.isGuest ? next.handle(request.clone({ params: request.params.append(this.guestParameterName, true) })) : next.handle(request))));
|
|
5811
|
-
}
|
|
5812
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScGuestInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5813
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScGuestInterceptor }); }
|
|
5731
|
+
*
|
|
5732
|
+
* @param request HTTP запрос.
|
|
5733
|
+
* @param next Следующий обработчик в цепочке.
|
|
5734
|
+
*/
|
|
5735
|
+
function ScGuestInterceptor(request, next) {
|
|
5736
|
+
const guestEndpoints = inject(SC_GUEST_ENDPOINTS_TOKEN);
|
|
5737
|
+
const guestParameterName = inject(SC_GUEST_PARAMETER_NAME_TOKEN);
|
|
5738
|
+
const user$ = inject(SC_USER_INFO);
|
|
5739
|
+
const isGuestEndpoint = guestEndpoints.some((endpoint) => request.url.includes(endpoint));
|
|
5740
|
+
if (!isGuestEndpoint) {
|
|
5741
|
+
return next(request);
|
|
5742
|
+
}
|
|
5743
|
+
return user$.pipe(first(), switchMap((user) => (user.isGuest ? next(request.clone({ params: request.params.append(guestParameterName, true) })) : next(request))));
|
|
5814
5744
|
}
|
|
5815
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScGuestInterceptor, decorators: [{
|
|
5816
|
-
type: Injectable
|
|
5817
|
-
}] });
|
|
5818
5745
|
|
|
5819
5746
|
/**
|
|
5820
|
-
*
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
this.formatDatesInErrors(errorData);
|
|
5834
|
-
return throwError(() => error);
|
|
5835
|
-
}));
|
|
5836
|
-
}
|
|
5837
|
-
/**
|
|
5838
|
-
* Форматирует даты в ошибках запросов к API.
|
|
5839
|
-
*
|
|
5840
|
-
* @param error Объект с ошибками API.
|
|
5841
|
-
*/
|
|
5842
|
-
formatDatesInErrors(error) {
|
|
5843
|
-
const { errors, message } = error;
|
|
5844
|
-
// Форматируем основное сообщение об ошибке
|
|
5845
|
-
if (message) {
|
|
5846
|
-
// eslint-disable-next-line no-param-reassign
|
|
5847
|
-
error.message = this.formatDateInString(message);
|
|
5848
|
-
}
|
|
5849
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
5850
|
-
for (const key in errors) {
|
|
5851
|
-
if (Object.prototype.hasOwnProperty.call(errors, key)) {
|
|
5852
|
-
// eslint-disable-next-line security/detect-object-injection
|
|
5853
|
-
const fieldErrors = errors[key];
|
|
5854
|
-
if (isArray(fieldErrors)) {
|
|
5855
|
-
fieldErrors.forEach((errorMessage, index) => {
|
|
5856
|
-
if (isString(errorMessage)) {
|
|
5857
|
-
// eslint-disable-next-line security/detect-object-injection
|
|
5858
|
-
fieldErrors[index] = this.formatDateInString(errorMessage);
|
|
5859
|
-
}
|
|
5860
|
-
});
|
|
5861
|
-
}
|
|
5747
|
+
* Форматирует даты в строке.
|
|
5748
|
+
*
|
|
5749
|
+
* @param text Исходная строка.
|
|
5750
|
+
* @param dateFormats Форматы дат.
|
|
5751
|
+
*/
|
|
5752
|
+
function formatDateInString(text, dateFormats) {
|
|
5753
|
+
// Ищем даты в формате yyyy-MM-dd HH:mm:ss.
|
|
5754
|
+
const dateRegex = /(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})/g;
|
|
5755
|
+
return text.replaceAll(dateRegex, (match) => {
|
|
5756
|
+
try {
|
|
5757
|
+
const parsedDate = parse(match, dateFormats.api, new Date());
|
|
5758
|
+
if (isValid(parsedDate)) {
|
|
5759
|
+
return format(parsedDate, dateFormats.uiDate);
|
|
5862
5760
|
}
|
|
5863
5761
|
}
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5762
|
+
catch {
|
|
5763
|
+
// Если не удалось распарсить дату, ничего не делаем.
|
|
5764
|
+
}
|
|
5765
|
+
return match;
|
|
5766
|
+
});
|
|
5767
|
+
}
|
|
5768
|
+
/**
|
|
5769
|
+
* Форматирует даты в ошибках запросов к API.
|
|
5770
|
+
*
|
|
5771
|
+
* @param error Объект с ошибками API.
|
|
5772
|
+
* @param dateFormats Форматы дат.
|
|
5773
|
+
*/
|
|
5774
|
+
function formatDatesInErrors(error, dateFormats) {
|
|
5775
|
+
const { errors, message } = error;
|
|
5776
|
+
// Форматируем основное сообщение об ошибке
|
|
5777
|
+
if (message) {
|
|
5778
|
+
// eslint-disable-next-line no-param-reassign
|
|
5779
|
+
error.message = formatDateInString(message, dateFormats);
|
|
5780
|
+
}
|
|
5781
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
5782
|
+
for (const key in errors) {
|
|
5783
|
+
if (Object.prototype.hasOwnProperty.call(errors, key)) {
|
|
5784
|
+
// eslint-disable-next-line security/detect-object-injection
|
|
5785
|
+
const fieldErrors = errors[key];
|
|
5786
|
+
if (isArray(fieldErrors)) {
|
|
5787
|
+
fieldErrors.forEach((errorMessage, index) => {
|
|
5788
|
+
if (isString(errorMessage)) {
|
|
5789
|
+
// eslint-disable-next-line security/detect-object-injection
|
|
5790
|
+
fieldErrors[index] = formatDateInString(errorMessage, dateFormats);
|
|
5791
|
+
}
|
|
5792
|
+
});
|
|
5882
5793
|
}
|
|
5883
|
-
|
|
5884
|
-
});
|
|
5794
|
+
}
|
|
5885
5795
|
}
|
|
5886
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScDateFormatInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5887
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScDateFormatInterceptor }); }
|
|
5888
5796
|
}
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5797
|
+
/**
|
|
5798
|
+
* Перехватчик для форматирования дат в ошибках запросов к API.
|
|
5799
|
+
*
|
|
5800
|
+
* @param request HTTP запрос.
|
|
5801
|
+
* @param next Следующий обработчик в цепочке.
|
|
5802
|
+
*/
|
|
5803
|
+
function ScDateFormatInterceptor(request, next) {
|
|
5804
|
+
const dateFormats = inject(SC_DATE_FORMAT);
|
|
5805
|
+
return next(request).pipe(catchError$1((error) => {
|
|
5806
|
+
const errorData = error.error;
|
|
5807
|
+
formatDatesInErrors(errorData, dateFormats);
|
|
5808
|
+
return throwError(() => error);
|
|
5809
|
+
}));
|
|
5810
|
+
}
|
|
5892
5811
|
|
|
5893
5812
|
/**
|
|
5894
5813
|
* Перечисление организационно-правовых форм.
|
|
@@ -6058,12 +5977,41 @@ class ScLocationsService {
|
|
|
6058
5977
|
* Сервис справочников.
|
|
6059
5978
|
*/
|
|
6060
5979
|
this.referencesService = inject(ScReferencesService);
|
|
5980
|
+
/**
|
|
5981
|
+
* Кэшированные списки регионов по идентификатору страны.
|
|
5982
|
+
*/
|
|
5983
|
+
this.regionsCachedItemMap = new Map();
|
|
5984
|
+
/**
|
|
5985
|
+
* Кэшированные списки регионов с информацией о стране по идентификатору страны.
|
|
5986
|
+
*/
|
|
5987
|
+
this.regionsWithCountryCachedItemMap = new Map();
|
|
5988
|
+
/**
|
|
5989
|
+
* Кэшированные списки городов по паре «страна-регион».
|
|
5990
|
+
*/
|
|
5991
|
+
this.citiesCachedItemMap = new Map();
|
|
5992
|
+
/**
|
|
5993
|
+
* Кэшированные списки городов с информацией о регионе по паре «страна-регион».
|
|
5994
|
+
*/
|
|
5995
|
+
this.citiesWithRegionCachedItemMap = new Map();
|
|
5996
|
+
/**
|
|
5997
|
+
* Кэшированные списки городов с информацией о регионе и стране по паре «страна-регион».
|
|
5998
|
+
*/
|
|
5999
|
+
this.citiesWithRegionAndCountryCachedItemMap = new Map();
|
|
6000
|
+
/**
|
|
6001
|
+
* Кэшированные списки городов по поисковому запросу.
|
|
6002
|
+
*/
|
|
6003
|
+
this.citiesByTermCachedItemMap = new Map();
|
|
6004
|
+
/**
|
|
6005
|
+
* Кэшированная информация о городе по идентификатору города.
|
|
6006
|
+
*/
|
|
6007
|
+
this.cityByIdCachedItemMap = new Map();
|
|
6061
6008
|
}
|
|
6062
6009
|
/**
|
|
6063
6010
|
* Создает запрос получения списка стран.
|
|
6064
6011
|
*/
|
|
6065
6012
|
getCountries$() {
|
|
6066
|
-
|
|
6013
|
+
this.countriesCachedItem ??= new ScCachedItem(Infinity, this.referencesService.getReference$(ScReferenceName.country));
|
|
6014
|
+
return this.countriesCachedItem.item$;
|
|
6067
6015
|
}
|
|
6068
6016
|
/**
|
|
6069
6017
|
* Создает запрос получения списка регионов указанной страны.
|
|
@@ -6071,7 +6019,12 @@ class ScLocationsService {
|
|
|
6071
6019
|
* @param countryId Идентификатор записи страны {@link number}.
|
|
6072
6020
|
*/
|
|
6073
6021
|
getRegions$(countryId) {
|
|
6074
|
-
|
|
6022
|
+
let cachedItem = this.regionsCachedItemMap.get(countryId);
|
|
6023
|
+
if (!cachedItem) {
|
|
6024
|
+
cachedItem = new ScCachedItem(Infinity, this.referencesService.getReference$(ScReferenceName.region, { countryId: countryId }));
|
|
6025
|
+
this.regionsCachedItemMap.set(countryId, cachedItem);
|
|
6026
|
+
}
|
|
6027
|
+
return cachedItem.item$;
|
|
6075
6028
|
}
|
|
6076
6029
|
/**
|
|
6077
6030
|
* Создает запрос получения списка регионов указанной страны с информацией о стране.
|
|
@@ -6079,7 +6032,12 @@ class ScLocationsService {
|
|
|
6079
6032
|
* @param countryId Идентификатор записи страны {@link number}.
|
|
6080
6033
|
*/
|
|
6081
6034
|
getRegionsWithCountry$(countryId) {
|
|
6082
|
-
|
|
6035
|
+
let cachedItem = this.regionsWithCountryCachedItemMap.get(countryId);
|
|
6036
|
+
if (!cachedItem) {
|
|
6037
|
+
cachedItem = new ScCachedItem(Infinity, this.referencesService.getReference$(ScReferenceName.regionWithCountry, { countryId: countryId }));
|
|
6038
|
+
this.regionsWithCountryCachedItemMap.set(countryId, cachedItem);
|
|
6039
|
+
}
|
|
6040
|
+
return cachedItem.item$;
|
|
6083
6041
|
}
|
|
6084
6042
|
/**
|
|
6085
6043
|
* Создает запрос получения списка городов указанного региона.
|
|
@@ -6088,7 +6046,13 @@ class ScLocationsService {
|
|
|
6088
6046
|
* @param regionId Идентификатор записи региона {@link regionId}.
|
|
6089
6047
|
*/
|
|
6090
6048
|
getCities$(countryId, regionId) {
|
|
6091
|
-
|
|
6049
|
+
const key = `${countryId}_${regionId}`;
|
|
6050
|
+
let cachedItem = this.citiesCachedItemMap.get(key);
|
|
6051
|
+
if (!cachedItem) {
|
|
6052
|
+
cachedItem = new ScCachedItem(Infinity, this.referencesService.getReference$(ScReferenceName.city, { countryId: countryId, regionId: regionId }));
|
|
6053
|
+
this.citiesCachedItemMap.set(key, cachedItem);
|
|
6054
|
+
}
|
|
6055
|
+
return cachedItem.item$;
|
|
6092
6056
|
}
|
|
6093
6057
|
/**
|
|
6094
6058
|
* Создает запрос получения списка городов указанного региона и страны с информацией о регионе.
|
|
@@ -6097,7 +6061,13 @@ class ScLocationsService {
|
|
|
6097
6061
|
* @param regionId Идентификатор записи региона {@link regionId}.
|
|
6098
6062
|
*/
|
|
6099
6063
|
getCitiesWithRegion$(countryId, regionId) {
|
|
6100
|
-
|
|
6064
|
+
const key = `${countryId}_${regionId}`;
|
|
6065
|
+
let cachedItem = this.citiesWithRegionCachedItemMap.get(key);
|
|
6066
|
+
if (!cachedItem) {
|
|
6067
|
+
cachedItem = new ScCachedItem(Infinity, this.referencesService.getReference$(ScReferenceName.cityWithRegion, { countryId: countryId, regionId: regionId }));
|
|
6068
|
+
this.citiesWithRegionCachedItemMap.set(key, cachedItem);
|
|
6069
|
+
}
|
|
6070
|
+
return cachedItem.item$;
|
|
6101
6071
|
}
|
|
6102
6072
|
/**
|
|
6103
6073
|
* Создает запрос получения списка городов указанного региона и страны с информацией о регионе и стране.
|
|
@@ -6106,7 +6076,13 @@ class ScLocationsService {
|
|
|
6106
6076
|
* @param regionId Идентификатор записи региона {@link regionId}.
|
|
6107
6077
|
*/
|
|
6108
6078
|
getCityesWithRegionAndCountry$(countryId, regionId) {
|
|
6109
|
-
|
|
6079
|
+
const key = `${countryId}_${regionId}`;
|
|
6080
|
+
let cachedItem = this.citiesWithRegionAndCountryCachedItemMap.get(key);
|
|
6081
|
+
if (!cachedItem) {
|
|
6082
|
+
cachedItem = new ScCachedItem(Infinity, this.referencesService.getReference$(ScReferenceName.cityWithRegionAndCountry, { countryId: countryId, regionId: regionId }));
|
|
6083
|
+
this.citiesWithRegionAndCountryCachedItemMap.set(key, cachedItem);
|
|
6084
|
+
}
|
|
6085
|
+
return cachedItem.item$;
|
|
6110
6086
|
}
|
|
6111
6087
|
/**
|
|
6112
6088
|
* Создает запрос получения списка городов указанного региона и страны по поисковому запросу.
|
|
@@ -6116,7 +6092,13 @@ class ScLocationsService {
|
|
|
6116
6092
|
* @param regionId Идентификатор записи региона.
|
|
6117
6093
|
*/
|
|
6118
6094
|
getCitiesByTerm$(term, countryId, regionId) {
|
|
6119
|
-
|
|
6095
|
+
const key = `${term}_${countryId}_${regionId}`;
|
|
6096
|
+
let cachedItem = this.citiesByTermCachedItemMap.get(key);
|
|
6097
|
+
if (!cachedItem) {
|
|
6098
|
+
cachedItem = new ScCachedItem(Infinity, this.referencesService.getReferenceByTerm$(ScReferenceName.cityWithRegion, term, { countryId: countryId, regionId: regionId }));
|
|
6099
|
+
this.citiesByTermCachedItemMap.set(key, cachedItem);
|
|
6100
|
+
}
|
|
6101
|
+
return cachedItem.item$;
|
|
6120
6102
|
}
|
|
6121
6103
|
/**
|
|
6122
6104
|
* Создает запрос получения информации о городе с информацией о регионе и стране.
|
|
@@ -6124,41 +6106,22 @@ class ScLocationsService {
|
|
|
6124
6106
|
* @param cityId Идентификатор записи города.
|
|
6125
6107
|
*/
|
|
6126
6108
|
getCityById$(cityId) {
|
|
6127
|
-
|
|
6109
|
+
let cachedItem = this.cityByIdCachedItemMap.get(cityId);
|
|
6110
|
+
if (!cachedItem) {
|
|
6111
|
+
cachedItem = new ScCachedItem(Infinity, this.referencesService.getReferenceById$(ScReferenceName.cityWithRegionAndCountry, cityId));
|
|
6112
|
+
this.cityByIdCachedItemMap.set(cityId, cachedItem);
|
|
6113
|
+
}
|
|
6114
|
+
return cachedItem.item$;
|
|
6128
6115
|
}
|
|
6129
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6130
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
6116
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScLocationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6117
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScLocationsService, providedIn: 'root' }); }
|
|
6131
6118
|
}
|
|
6132
|
-
|
|
6133
|
-
tuiPure
|
|
6134
|
-
], ScLocationsService.prototype, "getCountries$", null);
|
|
6135
|
-
__decorate([
|
|
6136
|
-
tuiPure
|
|
6137
|
-
], ScLocationsService.prototype, "getRegions$", null);
|
|
6138
|
-
__decorate([
|
|
6139
|
-
tuiPure
|
|
6140
|
-
], ScLocationsService.prototype, "getRegionsWithCountry$", null);
|
|
6141
|
-
__decorate([
|
|
6142
|
-
tuiPure
|
|
6143
|
-
], ScLocationsService.prototype, "getCities$", null);
|
|
6144
|
-
__decorate([
|
|
6145
|
-
tuiPure
|
|
6146
|
-
], ScLocationsService.prototype, "getCitiesWithRegion$", null);
|
|
6147
|
-
__decorate([
|
|
6148
|
-
tuiPure
|
|
6149
|
-
], ScLocationsService.prototype, "getCityesWithRegionAndCountry$", null);
|
|
6150
|
-
__decorate([
|
|
6151
|
-
tuiPure
|
|
6152
|
-
], ScLocationsService.prototype, "getCitiesByTerm$", null);
|
|
6153
|
-
__decorate([
|
|
6154
|
-
tuiPure
|
|
6155
|
-
], ScLocationsService.prototype, "getCityById$", null);
|
|
6156
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ScLocationsService, decorators: [{
|
|
6119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScLocationsService, decorators: [{
|
|
6157
6120
|
type: Injectable,
|
|
6158
6121
|
args: [{
|
|
6159
6122
|
providedIn: 'root',
|
|
6160
6123
|
}]
|
|
6161
|
-
}]
|
|
6124
|
+
}] });
|
|
6162
6125
|
|
|
6163
6126
|
/**
|
|
6164
6127
|
* Модель данных новости.
|
|
@@ -6239,10 +6202,10 @@ class ScNewsService {
|
|
|
6239
6202
|
getLastNewsList$() {
|
|
6240
6203
|
return this.lastNewsList$;
|
|
6241
6204
|
}
|
|
6242
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6243
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
6205
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScNewsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6206
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScNewsService, providedIn: 'root' }); }
|
|
6244
6207
|
}
|
|
6245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScNewsService, decorators: [{
|
|
6246
6209
|
type: Injectable,
|
|
6247
6210
|
args: [{
|
|
6248
6211
|
providedIn: 'root',
|
|
@@ -6448,10 +6411,10 @@ class ScNotificationsService {
|
|
|
6448
6411
|
setNotificationsChange(notifications) {
|
|
6449
6412
|
this.notifications$.next(notifications);
|
|
6450
6413
|
}
|
|
6451
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6452
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
6414
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScNotificationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6415
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScNotificationsService, providedIn: 'root' }); }
|
|
6453
6416
|
}
|
|
6454
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6417
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScNotificationsService, decorators: [{
|
|
6455
6418
|
type: Injectable,
|
|
6456
6419
|
args: [{
|
|
6457
6420
|
providedIn: 'root',
|
|
@@ -6951,10 +6914,10 @@ class ScOrderDraftsService {
|
|
|
6951
6914
|
}
|
|
6952
6915
|
}));
|
|
6953
6916
|
}
|
|
6954
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6955
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
6917
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScOrderDraftsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6918
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScOrderDraftsService, providedIn: 'root' }); }
|
|
6956
6919
|
}
|
|
6957
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6920
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScOrderDraftsService, decorators: [{
|
|
6958
6921
|
type: Injectable,
|
|
6959
6922
|
args: [{
|
|
6960
6923
|
providedIn: 'root',
|
|
@@ -7155,10 +7118,10 @@ class ScOrdersService {
|
|
|
7155
7118
|
cachedItem.setValue(order);
|
|
7156
7119
|
}
|
|
7157
7120
|
}
|
|
7158
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7159
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
7121
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScOrdersService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7122
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScOrdersService, providedIn: 'root' }); }
|
|
7160
7123
|
}
|
|
7161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScOrdersService, decorators: [{
|
|
7162
7125
|
type: Injectable,
|
|
7163
7126
|
args: [{
|
|
7164
7127
|
providedIn: 'root',
|
|
@@ -7307,10 +7270,10 @@ class ScPaginationService {
|
|
|
7307
7270
|
const { page, perPage, ...others } = value;
|
|
7308
7271
|
return others;
|
|
7309
7272
|
}
|
|
7310
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7311
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
7273
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScPaginationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7274
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScPaginationService }); }
|
|
7312
7275
|
}
|
|
7313
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScPaginationService, decorators: [{
|
|
7314
7277
|
type: Injectable
|
|
7315
7278
|
}], ctorParameters: () => [] });
|
|
7316
7279
|
|
|
@@ -7402,10 +7365,10 @@ class ScQuestionnaireService {
|
|
|
7402
7365
|
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
7403
7366
|
return this.http.get(`${this.urls.apiUrl}/questionnaires/${questionnaire.id}/statuses/${status}`);
|
|
7404
7367
|
}
|
|
7405
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7406
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
7368
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScQuestionnaireService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7369
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScQuestionnaireService, providedIn: 'root' }); }
|
|
7407
7370
|
}
|
|
7408
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7371
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScQuestionnaireService, decorators: [{
|
|
7409
7372
|
type: Injectable,
|
|
7410
7373
|
args: [{
|
|
7411
7374
|
providedIn: 'root',
|
|
@@ -7477,10 +7440,10 @@ class ScReclamationService {
|
|
|
7477
7440
|
deleteReclamation$(reclamationId) {
|
|
7478
7441
|
return this.http.delete(`${this.urls.apiUrl}/reclamations/${reclamationId}`);
|
|
7479
7442
|
}
|
|
7480
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7481
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
7443
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScReclamationService, deps: [{ token: i1$1.HttpClient }, { token: SC_URLS }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7444
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScReclamationService, providedIn: 'root' }); }
|
|
7482
7445
|
}
|
|
7483
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7446
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScReclamationService, decorators: [{
|
|
7484
7447
|
type: Injectable,
|
|
7485
7448
|
args: [{
|
|
7486
7449
|
providedIn: 'root',
|
|
@@ -7793,10 +7756,10 @@ class SchemaOrgFactory {
|
|
|
7793
7756
|
itemListElement: breadcrumbItems,
|
|
7794
7757
|
};
|
|
7795
7758
|
}
|
|
7796
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7797
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
7759
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: SchemaOrgFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7760
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: SchemaOrgFactory, providedIn: 'root' }); }
|
|
7798
7761
|
}
|
|
7799
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7762
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: SchemaOrgFactory, decorators: [{
|
|
7800
7763
|
type: Injectable,
|
|
7801
7764
|
args: [{
|
|
7802
7765
|
providedIn: 'root',
|
|
@@ -7936,8 +7899,13 @@ class ScSeoService {
|
|
|
7936
7899
|
.filter(Boolean)
|
|
7937
7900
|
.map((fieldPath) => get(instanceData, fieldPath))
|
|
7938
7901
|
.find((fieldValue) => !isNil(fieldValue));
|
|
7939
|
-
|
|
7940
|
-
|
|
7902
|
+
if (isString(value)) {
|
|
7903
|
+
return value;
|
|
7904
|
+
}
|
|
7905
|
+
if (isNumber(value) || isBoolean(value)) {
|
|
7906
|
+
return String(value);
|
|
7907
|
+
}
|
|
7908
|
+
return '';
|
|
7941
7909
|
});
|
|
7942
7910
|
}
|
|
7943
7911
|
/**
|
|
@@ -8012,10 +7980,10 @@ class ScSeoService {
|
|
|
8012
7980
|
this.renderer.appendChild(script, this.document.createTextNode(JSON.stringify(data)));
|
|
8013
7981
|
this.renderer.appendChild(this.document.head, script);
|
|
8014
7982
|
}
|
|
8015
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8016
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
7983
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScSeoService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7984
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScSeoService, providedIn: 'root' }); }
|
|
8017
7985
|
}
|
|
8018
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
7986
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScSeoService, decorators: [{
|
|
8019
7987
|
type: Injectable,
|
|
8020
7988
|
args: [{
|
|
8021
7989
|
providedIn: 'root',
|
|
@@ -8074,10 +8042,10 @@ class ScSuggestionService {
|
|
|
8074
8042
|
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
8075
8043
|
return this.http.get(`${this.urls.apiUrl}/suggestions/${[type]}`, { params: { query: query } });
|
|
8076
8044
|
}
|
|
8077
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8078
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
8045
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScSuggestionService, deps: [{ token: i1$1.HttpClient }, { token: SC_URLS }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8046
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScSuggestionService, providedIn: 'root' }); }
|
|
8079
8047
|
}
|
|
8080
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8048
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScSuggestionService, decorators: [{
|
|
8081
8049
|
type: Injectable,
|
|
8082
8050
|
args: [{
|
|
8083
8051
|
providedIn: 'root',
|
|
@@ -8138,10 +8106,10 @@ class ScPhoneService {
|
|
|
8138
8106
|
}
|
|
8139
8107
|
return value;
|
|
8140
8108
|
}
|
|
8141
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8142
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
8109
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScPhoneService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8110
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScPhoneService, providedIn: 'root' }); }
|
|
8143
8111
|
}
|
|
8144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8112
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScPhoneService, decorators: [{
|
|
8145
8113
|
type: Injectable,
|
|
8146
8114
|
args: [{
|
|
8147
8115
|
providedIn: 'root',
|
|
@@ -8219,10 +8187,10 @@ class ScVacanciesService {
|
|
|
8219
8187
|
})
|
|
8220
8188
|
.pipe(map$1((result) => new ScVacanciesList(result)));
|
|
8221
8189
|
}
|
|
8222
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8223
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
8190
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScVacanciesService, deps: [{ token: i1$1.HttpClient }, { token: SC_VACANCIES_DATA_SOURCE }, { token: SC_CACHE_LIFETIME }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8191
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScVacanciesService, providedIn: 'root' }); }
|
|
8224
8192
|
}
|
|
8225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScVacanciesService, decorators: [{
|
|
8226
8194
|
type: Injectable,
|
|
8227
8195
|
args: [{
|
|
8228
8196
|
providedIn: 'root',
|
|
@@ -8317,10 +8285,10 @@ class ScVCardService {
|
|
|
8317
8285
|
downloadVCard(data) {
|
|
8318
8286
|
this.windowReference.open(this.windowReference.URL.createObjectURL(this.getVCardBlob(data)));
|
|
8319
8287
|
}
|
|
8320
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8321
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
8288
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScVCardService, deps: [{ token: SC_URLS }, { token: WA_WINDOW }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8289
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScVCardService, providedIn: 'root' }); }
|
|
8322
8290
|
}
|
|
8323
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScVCardService, decorators: [{
|
|
8324
8292
|
type: Injectable,
|
|
8325
8293
|
args: [{
|
|
8326
8294
|
providedIn: 'root',
|
|
@@ -8384,10 +8352,10 @@ class ScVerificationService {
|
|
|
8384
8352
|
params: { phone: phone },
|
|
8385
8353
|
});
|
|
8386
8354
|
}
|
|
8387
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8388
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
8355
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScVerificationService, deps: [{ token: i1$1.HttpClient }, { token: SC_URLS }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8356
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScVerificationService, providedIn: 'root' }); }
|
|
8389
8357
|
}
|
|
8390
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8358
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: ScVerificationService, decorators: [{
|
|
8391
8359
|
type: Injectable,
|
|
8392
8360
|
args: [{
|
|
8393
8361
|
providedIn: 'root',
|
|
@@ -8401,5 +8369,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
8401
8369
|
* Generated bundle index. Do not edit.
|
|
8402
8370
|
*/
|
|
8403
8371
|
|
|
8404
|
-
export { CATEGORY_PROVIDERS, EMPTY_CART, IS_BROWSER, IS_RUNNING_ON_TERMINAL, IS_SERVER, RESPONSE, SC_ACCESS_AUTH_TOKEN_STORAGE_KEY, SC_API_KEYS, SC_AUTH_ADD_HEADER_REQUIRED, SC_AUTH_AS_CLIENT_DEFAULT_OPTIONS, SC_AUTH_AS_CLIENT_OPTIONS, SC_CACHE_LIFETIME, SC_CACHE_SETTINGS, SC_CATALOG_ITEM_PAGE_META, SC_CATALOG_ROOT_PAGE_META, SC_CATEGORY_INFO, SC_COMPANY_INFO, SC_COMPANY_NAME, SC_CONFIGURATOR_COMPONENTS, SC_CONFIGURATOR_SETTINGS, SC_COUNT_FIRST_DISCOUNTED_PRODUCTS, SC_COUNT_LAST_NEWS, SC_DATE_FORMAT, SC_DEFAULT_PAGE_META, SC_FEEDBACK_API, SC_GUEST_ENDPOINTS_TOKEN, SC_GUEST_PARAMETER_NAME_TOKEN, SC_GUEST_TOKEN_STORAGE_KEY, SC_ID_OR_SLUG_IN_ROUTE, SC_IS_HEADER_REQUIRED, SC_IS_HIDDEN_ERROR_ALERT, SC_IS_HIDDEN_ERROR_ALERT_HTTP_CONTEXT, SC_IS_LOGOUT_REQUEST, SC_IS_REFRESH_REQUIRED, SC_LINEAR_VALUES, SC_LINEAR_VALUES_TOKEN, SC_MAX_LENGTH_SEARCH_TERM, SC_MIN_LENGTH_SEARCH_TERM, SC_NEXT_PAGE_PAGINATION_CLICK, SC_ORDER_LOADER, SC_ORDER_LOADING, SC_PATH_IMAGE_NOT_FOUND, SC_PRODUCT_PAGINATION_DEFAULT_OPTIONS, SC_PRODUCT_PAGINATION_OPTIONS, SC_REFRESH_AUTH_TOKEN_STORAGE_KEY, SC_RELEASE, SC_UPDATE_INTERVAL, SC_URLS, SC_USER_INFO, SC_VACANCIES_DATA_SOURCE, SC_VIRTUAL_CATEGORY_INFO, SC_VIRTUAL_CATEGORY_PROVIDERS, SEARCH_TERM, SEARCH_TERM_PROVIDERS, ScAuthAsClientGuard, ScAuthInterceptor, ScAuthService, ScBanner, ScBannerService, ScCacheInterceptor, ScCacheSettings, ScCachedData, ScCachedItem, ScCart, ScCartService, ScCatalogFilterService, ScCatalogFormat, ScCatalogItem, ScCatalogService, ScCatalogableItem, ScCategory, ScClientType, ScCodedIdentity, ScConfiguratorService, ScContactsService, ScContragentService, ScConvertInterceptor, ScConvertersService, ScDateFormatInterceptor, ScDeletableNamedIdentity, ScDeliveryAddressService, ScDeliveryCost, ScDeliveryType, ScDocumentInfoNode, ScDocumentInfoTypesEnum, ScErrorRequestState, ScErrorsInterceptor, ScFavoriteService, ScFeedbackForms, ScFeedbackService, ScFilesService, ScFrequentlyAskedQuestionsService, ScGuestInterceptor, ScHiddenCatalogableItem, ScIBreadcrumbItem, ScISuggestionType, ScIconTypesEnum, ScIdOrSlugGuard, ScIdOrSlugPipe, ScIdentity, ScImage, ScImageHelper, ScLoadingRequestState, ScLocationsService, ScMediaImageTransformerPipe, ScMimeTypes, ScNamedIdentity, ScNews, ScNewsService, ScNotificationActionTypes, ScNotificationLevelNames, ScNotificationsService, ScOpfList, ScOptionsInterceptor, ScOrder, ScOrderBase, ScOrderDraft, ScOrderDraftShort, ScOrderDraftType, ScOrderDraftsService, ScOrderItem, ScOrderShort, ScOrderStateStatus, ScOrdersService, ScPaginationService, ScPaymentStatus, ScPaymentType, ScPhoneService, ScPrimaryCatalogableItem, ScProduct, ScProductTileType, ScQuestionnaireService, ScQuestionnaireStatusEnum, ScReclamationService, ScReclamationStatus, ScRecommendationService, ScReference, ScReferenceName, ScReferencesService, ScRequestStateStatusEnum, ScRequisitesService, ScRouteKeys, ScSearchService, ScSeoService, ScSocialType, ScSuccessRequestState, ScSuggestionService, ScSum, ScTokenService, ScUIService, ScUTMService, ScUnitsHelper, ScUpdatableNamedIdentity, ScUploadedFile, ScUser, ScUserMetadata, ScUserMetrikaGoalsEnum, ScUserMetrikaService, ScUserService, ScUserType, ScVCardService, ScVacanciesList, ScVacanciesService, ScVacancy, ScVerificationService, ScVirtualCategory, ScWarehouseService, SchemaOrgFactory, TERMINAL_PROVIDERS, USER_AGENT_TERMINAL, filterChangedByKey, loadingPlaceholder, mapRequestStateToDataOrNull, mapToRequestState, runningOnTerminalFactory, scGetCurrentRoute, scOrderIsLoaded, searchTermFactory };
|
|
8372
|
+
export { CATEGORY_PROVIDERS, EMPTY_CART, IS_BROWSER, IS_RUNNING_ON_TERMINAL, IS_SERVER, RESPONSE, SC_ACCESS_AUTH_TOKEN_STORAGE_KEY, SC_API_KEYS, SC_AUTH_ADD_HEADER_REQUIRED, SC_AUTH_AS_CLIENT_DEFAULT_OPTIONS, SC_AUTH_AS_CLIENT_OPTIONS, SC_CACHE_LIFETIME, SC_CACHE_SETTINGS, SC_CATALOG_ITEM_PAGE_META, SC_CATALOG_ROOT_PAGE_META, SC_CATEGORY_INFO, SC_COMPANY_INFO, SC_COMPANY_NAME, SC_CONFIGURATOR_COMPONENTS, SC_CONFIGURATOR_SETTINGS, SC_COUNT_FIRST_DISCOUNTED_PRODUCTS, SC_COUNT_LAST_NEWS, SC_DATE_FORMAT, SC_DEFAULT_PAGE_META, SC_FEEDBACK_API, SC_GUEST_ENDPOINTS_TOKEN, SC_GUEST_PARAMETER_NAME_TOKEN, SC_GUEST_TOKEN_STORAGE_KEY, SC_ID_OR_SLUG_IN_ROUTE, SC_IS_HEADER_REQUIRED, SC_IS_HIDDEN_ERROR_ALERT, SC_IS_HIDDEN_ERROR_ALERT_HTTP_CONTEXT, SC_IS_LOGOUT_REQUEST, SC_IS_REFRESH_REQUIRED, SC_LINEAR_VALUES, SC_LINEAR_VALUES_TOKEN, SC_MAX_LENGTH_SEARCH_TERM, SC_MIN_LENGTH_SEARCH_TERM, SC_NEXT_PAGE_PAGINATION_CLICK, SC_ORDER_LOADER, SC_ORDER_LOADING, SC_PATH_IMAGE_NOT_FOUND, SC_PRODUCT_PAGINATION_DEFAULT_OPTIONS, SC_PRODUCT_PAGINATION_OPTIONS, SC_REFRESH_AUTH_TOKEN_STORAGE_KEY, SC_RELEASE, SC_UPDATE_INTERVAL, SC_URLS, SC_USER_INFO, SC_VACANCIES_DATA_SOURCE, SC_VIRTUAL_CATEGORY_INFO, SC_VIRTUAL_CATEGORY_PROVIDERS, SEARCH_TERM, SEARCH_TERM_PROVIDERS, ScAuthAsClientGuard, ScAuthInterceptor, ScAuthService, ScBanner, ScBannerService, ScCacheInterceptor, ScCacheSettings, ScCachedData, ScCachedItem, ScCart, ScCartService, ScCatalogFilterService, ScCatalogFormat, ScCatalogItem, ScCatalogService, ScCatalogableItem, ScCategory, ScClientType, ScCodedIdentity, ScConfiguratorService, ScContactsService, ScContragentService, ScConvertInterceptor, ScConvertersService, ScDateFormatInterceptor, ScDeletableNamedIdentity, ScDeliveryAddressService, ScDeliveryCost, ScDeliveryType, ScDocumentInfoNode, ScDocumentInfoTypesEnum, ScErrorRequestState, ScErrorsInterceptor, ScFavoriteService, ScFeedbackForms, ScFeedbackService, ScFilesService, ScFrequentlyAskedQuestionsService, ScGuestInterceptor, ScHiddenCatalogableItem, ScIBreadcrumbItem, ScISuggestionType, ScIconTypesEnum, ScIdOrSlugGuard, ScIdOrSlugPipe, ScIdentity, ScImage, ScImageHelper, ScLoadingRequestState, ScLocationsService, ScMediaImageTransformerPipe, ScMimeTypes, ScNamedIdentity, ScNews, ScNewsService, ScNotificationActionTypes, ScNotificationLevelNames, ScNotificationsService, ScOpfList, ScOptionsInterceptor, ScOrder, ScOrderBase, ScOrderDraft, ScOrderDraftShort, ScOrderDraftType, ScOrderDraftsService, ScOrderItem, ScOrderShort, ScOrderStateStatus, ScOrdersService, ScPaginationService, ScPaymentStatus, ScPaymentType, ScPhoneService, ScPrimaryCatalogableItem, ScProduct, ScProductTileType, ScQuestionnaireService, ScQuestionnaireStatusEnum, ScReclamationService, ScReclamationStatus, ScRecommendationService, ScReference, ScReferenceName, ScReferencesService, ScRequestStateStatusEnum, ScRequisitesService, ScRouteKeys, ScSearchService, ScSeoService, ScSocialType, ScSuccessRequestState, ScSuggestionService, ScSum, ScTokenService, ScUIService, ScUTMService, ScUnitsHelper, ScUpdatableNamedIdentity, ScUploadedFile, ScUser, ScUserMetadata, ScUserMetrikaGoalsEnum, ScUserMetrikaService, ScUserService, ScUserType, ScVCardService, ScVacanciesList, ScVacanciesService, ScVacancy, ScVerificationService, ScVirtualCategory, ScWarehouseService, SchemaOrgFactory, TERMINAL_PROVIDERS, USER_AGENT_TERMINAL, filterChangedByKey, isExpiredToken, loadingPlaceholder, mapRequestStateToDataOrNull, mapToRequestState, runningOnTerminalFactory, scGetCurrentRoute, scOrderIsLoaded, searchTermFactory };
|
|
8405
8373
|
//# sourceMappingURL=snabcentr-client-core.mjs.map
|