@veloceapps/sdk 12.0.0-13 → 12.0.0-14
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/cms/index.d.ts +921 -15
- package/core/index.d.ts +525 -8
- package/fesm2022/veloceapps-sdk-cms.mjs +2617 -0
- package/fesm2022/veloceapps-sdk-cms.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/veloceapps-sdk-core.mjs +117 -112
- package/fesm2022/veloceapps-sdk-core.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/veloceapps-sdk.mjs +170 -170
- package/fesm2022/veloceapps-sdk.mjs.map +1 -0
- package/index.d.ts +330 -1
- package/package.json +17 -34
- package/cms/cms.actions.d.ts +0 -154
- package/cms/cms.default.d.ts +0 -5
- package/cms/cms.elements.d.ts +0 -4
- package/cms/cms.layouts.d.ts +0 -4
- package/cms/components/element-children/element-children.component.d.ts +0 -22
- package/cms/components/element-children/element-children.module.d.ts +0 -11
- package/cms/components/element-drop-handle/element-drop-handle.component.d.ts +0 -12
- package/cms/components/element-drop-handle/element-drop-handle.module.d.ts +0 -9
- package/cms/components/element-renderer/element-renderer.component.d.ts +0 -29
- package/cms/components/element-renderer/element-renderer.module.d.ts +0 -7
- package/cms/components/element-tools-panel/element-tools-panel.component.d.ts +0 -14
- package/cms/components/element.component.d.ts +0 -17
- package/cms/components/index.d.ts +0 -1
- package/cms/components/plugin.component.d.ts +0 -15
- package/cms/components/preview/index.d.ts +0 -3
- package/cms/components/preview/preview.component.d.ts +0 -32
- package/cms/components/preview/preview.module.d.ts +0 -13
- package/cms/components/preview/preview.types.d.ts +0 -20
- package/cms/decorators/element.decorator.d.ts +0 -2
- package/cms/decorators/index.d.ts +0 -1
- package/cms/definitions/index.d.ts +0 -1
- package/cms/definitions/ui-builder.definitions.d.ts +0 -6
- package/cms/directives/custom-template.directive.d.ts +0 -17
- package/cms/engine/models/entity.d.ts +0 -11
- package/cms/engine/models/plugin.d.ts +0 -5
- package/cms/injection-tokens.d.ts +0 -9
- package/cms/launcher.module.d.ts +0 -12
- package/cms/modules/federated/default-options.d.ts +0 -4
- package/cms/modules/federated/export.d.ts +0 -1
- package/cms/modules/federated/federated-host.directive.d.ts +0 -8
- package/cms/modules/federated/federated.component.d.ts +0 -25
- package/cms/modules/federated/federated.module.d.ts +0 -10
- package/cms/modules/federated/federated.types.d.ts +0 -26
- package/cms/modules/migrations/index.d.ts +0 -2
- package/cms/modules/migrations/migrations.d.ts +0 -2
- package/cms/modules/migrations/migrations.module.d.ts +0 -6
- package/cms/modules/migrations/services/migrations.service.d.ts +0 -10
- package/cms/modules/migrations/types/migrations.types.d.ts +0 -2
- package/cms/modules/runtime/index.d.ts +0 -3
- package/cms/modules/runtime/runtime.module.d.ts +0 -8
- package/cms/modules/runtime/services/compilation.service.d.ts +0 -19
- package/cms/modules/runtime/services/runtime-editor.service.d.ts +0 -20
- package/cms/modules/runtime/services/runtime.service.d.ts +0 -33
- package/cms/modules/runtime/tokens.d.ts +0 -3
- package/cms/modules/runtime/types/compilation.types.d.ts +0 -8
- package/cms/modules/runtime/types/runtime.actions.d.ts +0 -12
- package/cms/plugins/element-hover.plugin.d.ts +0 -33
- package/cms/plugins/io.plugin.d.ts +0 -9
- package/cms/plugins/page.plugin.d.ts +0 -15
- package/cms/plugins/region.plugin.d.ts +0 -17
- package/cms/plugins/script.plugin.d.ts +0 -10
- package/cms/services/element-context.service.d.ts +0 -7
- package/cms/services/index.d.ts +0 -2
- package/cms/services/io-provider.service.d.ts +0 -15
- package/cms/services/resources.service.d.ts +0 -21
- package/cms/services/templates.service.d.ts +0 -14
- package/cms/types/common.types.d.ts +0 -130
- package/cms/types/elements.types.d.ts +0 -2
- package/cms/types/index.d.ts +0 -6
- package/cms/types/layouts.types.d.ts +0 -102
- package/cms/types/pages.types.d.ts +0 -1
- package/cms/types/path.types.d.ts +0 -11
- package/cms/utils/element-metadata-worker.d.ts +0 -11
- package/cms/utils/element.utils.d.ts +0 -20
- package/cms/utils/elements-resolver.d.ts +0 -28
- package/cms/utils/encoding.utils.d.ts +0 -2
- package/cms/utils/index.d.ts +0 -9
- package/cms/utils/inject.d.ts +0 -1
- package/cms/utils/path.utils.d.ts +0 -3
- package/cms/utils/script.utils.d.ts +0 -2
- package/cms/utils/transpilation-worker.d.ts +0 -13
- package/cms/utils/ui-builder-layout.utils.d.ts +0 -4
- package/cms/utils/ui-definition.utils.d.ts +0 -6
- package/cms/vendor-map.d.ts +0 -86
- package/core/core.module.d.ts +0 -10
- package/core/directives/directives.module.d.ts +0 -7
- package/core/directives/index.d.ts +0 -2
- package/core/directives/primeng-calendar.directive.d.ts +0 -14
- package/core/modules/configuration/configuration.module.d.ts +0 -8
- package/core/modules/configuration/index.d.ts +0 -6
- package/core/modules/configuration/services/configuration-runtime.service.d.ts +0 -19
- package/core/modules/configuration/services/configuration-state.service.d.ts +0 -60
- package/core/modules/configuration/services/configuration.service.d.ts +0 -38
- package/core/modules/configuration/services/guided-selling.service.d.ts +0 -15
- package/core/modules/configuration/services/test-mode-configuration.service.d.ts +0 -26
- package/core/modules/configuration/types/configuration-runtime.types.d.ts +0 -3
- package/core/modules/configuration/types/configuration.types.d.ts +0 -20
- package/core/modules/configuration/types/index.d.ts +0 -2
- package/core/modules/flow-configuration/flow-configuration.module.d.ts +0 -7
- package/core/modules/flow-configuration/index.d.ts +0 -1
- package/core/modules/flow-configuration/services/flow-configuration.service.d.ts +0 -23
- package/core/modules/index.d.ts +0 -2
- package/core/operators/filter-successful-execute.operator.d.ts +0 -3
- package/core/operators/index.d.ts +0 -1
- package/core/pipes/action-code.pipe.d.ts +0 -8
- package/core/pipes/date.pipe.d.ts +0 -13
- package/core/pipes/index.d.ts +0 -5
- package/core/pipes/number.pipe.d.ts +0 -10
- package/core/pipes/pipes.module.d.ts +0 -10
- package/core/pipes/price.pipe.d.ts +0 -10
- package/core/services/catalog-products.service.d.ts +0 -11
- package/core/services/flow-info.service.d.ts +0 -44
- package/core/services/flow-state-configuration.service.d.ts +0 -25
- package/core/services/flow-state.service.d.ts +0 -70
- package/core/services/index.d.ts +0 -8
- package/core/services/integration.state.d.ts +0 -16
- package/core/services/product-images.service.d.ts +0 -12
- package/core/services/runtime-settings.service.d.ts +0 -24
- package/core/services/sales-transaction.service.d.ts +0 -27
- package/core/types/flow-customization.types.d.ts +0 -10
- package/core/types/flow-state.types.d.ts +0 -12
- package/core/types/formatting-settings.types.d.ts +0 -13
- package/core/types/index.d.ts +0 -5
- package/core/types/integration.types.d.ts +0 -10
- package/core/types/pipe.types.d.ts +0 -1
- package/core/types/ui-definition.types.d.ts +0 -1
- package/core/utils/index.d.ts +0 -4
- package/core/utils/pcm.utils.d.ts +0 -5
- package/core/utils/transaction-item.utils.d.ts +0 -10
- package/core/utils/transaction-item.worker.d.ts +0 -8
- package/core/utils/ui-definition.utils.d.ts +0 -2
- package/esm2020/cms/cms.actions.mjs +0 -151
- package/esm2020/cms/cms.default.mjs +0 -5
- package/esm2020/cms/cms.elements.mjs +0 -52
- package/esm2020/cms/cms.layouts.mjs +0 -239
- package/esm2020/cms/components/element-children/element-children.component.mjs +0 -41
- package/esm2020/cms/components/element-children/element-children.module.mjs +0 -21
- package/esm2020/cms/components/element-drop-handle/element-drop-handle.component.mjs +0 -28
- package/esm2020/cms/components/element-drop-handle/element-drop-handle.module.mjs +0 -19
- package/esm2020/cms/components/element-renderer/element-renderer.component.mjs +0 -117
- package/esm2020/cms/components/element-renderer/element-renderer.module.mjs +0 -16
- package/esm2020/cms/components/element-tools-panel/element-tools-panel.component.mjs +0 -35
- package/esm2020/cms/components/element.component.mjs +0 -45
- package/esm2020/cms/components/index.mjs +0 -2
- package/esm2020/cms/components/plugin.component.mjs +0 -17
- package/esm2020/cms/components/preview/index.mjs +0 -4
- package/esm2020/cms/components/preview/preview.component.mjs +0 -75
- package/esm2020/cms/components/preview/preview.module.mjs +0 -42
- package/esm2020/cms/components/preview/preview.types.mjs +0 -2
- package/esm2020/cms/decorators/element.decorator.mjs +0 -6
- package/esm2020/cms/decorators/index.mjs +0 -2
- package/esm2020/cms/definitions/index.mjs +0 -2
- package/esm2020/cms/definitions/ui-builder.definitions.mjs +0 -18
- package/esm2020/cms/directives/custom-template.directive.mjs +0 -38
- package/esm2020/cms/engine/models/entity.mjs +0 -17
- package/esm2020/cms/engine/models/plugin.mjs +0 -6
- package/esm2020/cms/index.mjs +0 -16
- package/esm2020/cms/injection-tokens.mjs +0 -7
- package/esm2020/cms/launcher.module.mjs +0 -24
- package/esm2020/cms/modules/federated/default-options.mjs +0 -5
- package/esm2020/cms/modules/federated/export.mjs +0 -2
- package/esm2020/cms/modules/federated/federated-host.directive.mjs +0 -16
- package/esm2020/cms/modules/federated/federated.component.mjs +0 -74
- package/esm2020/cms/modules/federated/federated.module.mjs +0 -20
- package/esm2020/cms/modules/federated/federated.types.mjs +0 -2
- package/esm2020/cms/modules/migrations/index.mjs +0 -3
- package/esm2020/cms/modules/migrations/migrations.mjs +0 -22
- package/esm2020/cms/modules/migrations/migrations.module.mjs +0 -15
- package/esm2020/cms/modules/migrations/services/migrations.service.mjs +0 -47
- package/esm2020/cms/modules/migrations/types/migrations.types.mjs +0 -2
- package/esm2020/cms/modules/runtime/index.mjs +0 -4
- package/esm2020/cms/modules/runtime/runtime.module.mjs +0 -32
- package/esm2020/cms/modules/runtime/services/compilation.service.mjs +0 -93
- package/esm2020/cms/modules/runtime/services/runtime-editor.service.mjs +0 -30
- package/esm2020/cms/modules/runtime/services/runtime.service.mjs +0 -117
- package/esm2020/cms/modules/runtime/tokens.mjs +0 -3
- package/esm2020/cms/modules/runtime/types/compilation.types.mjs +0 -2
- package/esm2020/cms/modules/runtime/types/runtime.actions.mjs +0 -2
- package/esm2020/cms/plugins/element-hover.plugin.mjs +0 -121
- package/esm2020/cms/plugins/io.plugin.mjs +0 -45
- package/esm2020/cms/plugins/page.plugin.mjs +0 -37
- package/esm2020/cms/plugins/region.plugin.mjs +0 -59
- package/esm2020/cms/plugins/script.plugin.mjs +0 -31
- package/esm2020/cms/services/element-context.service.mjs +0 -10
- package/esm2020/cms/services/index.mjs +0 -3
- package/esm2020/cms/services/io-provider.service.mjs +0 -53
- package/esm2020/cms/services/resources.service.mjs +0 -71
- package/esm2020/cms/services/templates.service.mjs +0 -32
- package/esm2020/cms/types/common.types.mjs +0 -2
- package/esm2020/cms/types/elements.types.mjs +0 -2
- package/esm2020/cms/types/index.mjs +0 -7
- package/esm2020/cms/types/layouts.types.mjs +0 -71
- package/esm2020/cms/types/pages.types.mjs +0 -2
- package/esm2020/cms/types/path.types.mjs +0 -2
- package/esm2020/cms/utils/element-metadata-worker.mjs +0 -31
- package/esm2020/cms/utils/element.utils.mjs +0 -182
- package/esm2020/cms/utils/elements-resolver.mjs +0 -206
- package/esm2020/cms/utils/encoding.utils.mjs +0 -29
- package/esm2020/cms/utils/index.mjs +0 -10
- package/esm2020/cms/utils/inject.mjs +0 -27
- package/esm2020/cms/utils/path.utils.mjs +0 -44
- package/esm2020/cms/utils/script.utils.mjs +0 -46
- package/esm2020/cms/utils/transpilation-worker.mjs +0 -52
- package/esm2020/cms/utils/ui-builder-layout.utils.mjs +0 -46
- package/esm2020/cms/utils/ui-definition.utils.mjs +0 -85
- package/esm2020/cms/veloceapps-sdk-cms.mjs +0 -5
- package/esm2020/cms/vendor-map.mjs +0 -83
- package/esm2020/core/core.module.mjs +0 -54
- package/esm2020/core/directives/directives.module.mjs +0 -16
- package/esm2020/core/directives/index.mjs +0 -3
- package/esm2020/core/directives/primeng-calendar.directive.mjs +0 -41
- package/esm2020/core/index.mjs +0 -9
- package/esm2020/core/modules/configuration/configuration.module.mjs +0 -34
- package/esm2020/core/modules/configuration/index.mjs +0 -7
- package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +0 -38
- package/esm2020/core/modules/configuration/services/configuration-state.service.mjs +0 -381
- package/esm2020/core/modules/configuration/services/configuration.service.mjs +0 -172
- package/esm2020/core/modules/configuration/services/guided-selling.service.mjs +0 -62
- package/esm2020/core/modules/configuration/services/test-mode-configuration.service.mjs +0 -97
- package/esm2020/core/modules/configuration/types/configuration-runtime.types.mjs +0 -2
- package/esm2020/core/modules/configuration/types/configuration.types.mjs +0 -2
- package/esm2020/core/modules/configuration/types/index.mjs +0 -3
- package/esm2020/core/modules/flow-configuration/flow-configuration.module.mjs +0 -17
- package/esm2020/core/modules/flow-configuration/index.mjs +0 -2
- package/esm2020/core/modules/flow-configuration/services/flow-configuration.service.mjs +0 -80
- package/esm2020/core/modules/index.mjs +0 -3
- package/esm2020/core/operators/filter-successful-execute.operator.mjs +0 -5
- package/esm2020/core/operators/index.mjs +0 -2
- package/esm2020/core/pipes/action-code.pipe.mjs +0 -20
- package/esm2020/core/pipes/date.pipe.mjs +0 -44
- package/esm2020/core/pipes/index.mjs +0 -6
- package/esm2020/core/pipes/number.pipe.mjs +0 -27
- package/esm2020/core/pipes/pipes.module.mjs +0 -19
- package/esm2020/core/pipes/price.pipe.mjs +0 -30
- package/esm2020/core/services/catalog-products.service.mjs +0 -25
- package/esm2020/core/services/flow-info.service.mjs +0 -146
- package/esm2020/core/services/flow-state-configuration.service.mjs +0 -120
- package/esm2020/core/services/flow-state.service.mjs +0 -417
- package/esm2020/core/services/index.mjs +0 -9
- package/esm2020/core/services/integration.state.mjs +0 -36
- package/esm2020/core/services/product-images.service.mjs +0 -30
- package/esm2020/core/services/runtime-settings.service.mjs +0 -112
- package/esm2020/core/services/sales-transaction.service.mjs +0 -67
- package/esm2020/core/types/flow-customization.types.mjs +0 -3
- package/esm2020/core/types/flow-state.types.mjs +0 -2
- package/esm2020/core/types/formatting-settings.types.mjs +0 -3
- package/esm2020/core/types/index.mjs +0 -6
- package/esm2020/core/types/integration.types.mjs +0 -2
- package/esm2020/core/types/pipe.types.mjs +0 -2
- package/esm2020/core/types/ui-definition.types.mjs +0 -2
- package/esm2020/core/utils/index.mjs +0 -5
- package/esm2020/core/utils/pcm.utils.mjs +0 -15
- package/esm2020/core/utils/transaction-item.utils.mjs +0 -144
- package/esm2020/core/utils/transaction-item.worker.mjs +0 -16
- package/esm2020/core/utils/ui-definition.utils.mjs +0 -9
- package/esm2020/core/veloceapps-sdk-core.mjs +0 -5
- package/esm2020/index.mjs +0 -2
- package/esm2020/src/components/dialog/dialog.component.mjs +0 -36
- package/esm2020/src/components/dialog/dialog.module.mjs +0 -19
- package/esm2020/src/components/dialog/dialog.types.mjs +0 -2
- package/esm2020/src/components/flow-header/flow-header.component.mjs +0 -107
- package/esm2020/src/components/flow-header/flow-header.module.mjs +0 -19
- package/esm2020/src/components/flow-header/index.mjs +0 -2
- package/esm2020/src/components/guided-selling/guided-selling.component.mjs +0 -107
- package/esm2020/src/components/guided-selling/guided-selling.module.mjs +0 -19
- package/esm2020/src/configure-primeng.mjs +0 -33
- package/esm2020/src/constants.mjs +0 -2
- package/esm2020/src/flow-routing.module.mjs +0 -97
- package/esm2020/src/flow.component.mjs +0 -39
- package/esm2020/src/flow.module.mjs +0 -60
- package/esm2020/src/guards/flow.guard.mjs +0 -35
- package/esm2020/src/guards/product-unload.guard.mjs +0 -49
- package/esm2020/src/guards/root.guard.mjs +0 -46
- package/esm2020/src/index.mjs +0 -5
- package/esm2020/src/pages/assets/assets.component.mjs +0 -106
- package/esm2020/src/pages/assets/assets.module.mjs +0 -20
- package/esm2020/src/pages/catalog/catalog.component.mjs +0 -106
- package/esm2020/src/pages/catalog/catalog.module.mjs +0 -20
- package/esm2020/src/pages/debug/debug.component.mjs +0 -49
- package/esm2020/src/pages/debug/debug.module.mjs +0 -46
- package/esm2020/src/pages/product/product.component.mjs +0 -55
- package/esm2020/src/pages/product/product.module.mjs +0 -20
- package/esm2020/src/pages/record-not-found/record-not-found.component.mjs +0 -27
- package/esm2020/src/pages/record-not-found/record-not-found.module.mjs +0 -20
- package/esm2020/src/pages/shopping-cart/shopping-cart.component.mjs +0 -106
- package/esm2020/src/pages/shopping-cart/shopping-cart.module.mjs +0 -20
- package/esm2020/src/resolvers/flow.resolver.mjs +0 -50
- package/esm2020/src/resolvers/pcm-model.resolver.mjs +0 -12
- package/esm2020/src/resolvers/sales-transaction.resolver.mjs +0 -64
- package/esm2020/src/resolvers/ui-definition.resolver.mjs +0 -44
- package/esm2020/src/services/flow-dialog.service.mjs +0 -91
- package/esm2020/src/services/flow-router.service.mjs +0 -173
- package/esm2020/src/services/flow.service.mjs +0 -102
- package/esm2020/src/services/guided-selling.service.mjs +0 -34
- package/esm2020/src/services/index.mjs +0 -4
- package/esm2020/src/types/index.mjs +0 -2
- package/esm2020/src/types/route.types.mjs +0 -2
- package/esm2020/veloceapps-sdk.mjs +0 -5
- package/fesm2015/veloceapps-sdk-cms.mjs +0 -2514
- package/fesm2015/veloceapps-sdk-cms.mjs.map +0 -1
- package/fesm2015/veloceapps-sdk-core.mjs +0 -2104
- package/fesm2015/veloceapps-sdk-core.mjs.map +0 -1
- package/fesm2015/veloceapps-sdk.mjs +0 -1598
- package/fesm2015/veloceapps-sdk.mjs.map +0 -1
- package/fesm2020/veloceapps-sdk-cms.mjs +0 -2613
- package/fesm2020/veloceapps-sdk-cms.mjs.map +0 -1
- package/fesm2020/veloceapps-sdk-core.mjs.map +0 -1
- package/fesm2020/veloceapps-sdk.mjs.map +0 -1
- package/src/components/dialog/dialog.component.d.ts +0 -13
- package/src/components/dialog/dialog.module.d.ts +0 -9
- package/src/components/dialog/dialog.types.d.ts +0 -7
- package/src/components/flow-header/flow-header.component.d.ts +0 -25
- package/src/components/flow-header/flow-header.module.d.ts +0 -9
- package/src/components/flow-header/index.d.ts +0 -1
- package/src/components/guided-selling/guided-selling.component.d.ts +0 -25
- package/src/components/guided-selling/guided-selling.module.d.ts +0 -9
- package/src/configure-primeng.d.ts +0 -1
- package/src/constants.d.ts +0 -1
- package/src/flow-routing.module.d.ts +0 -11
- package/src/flow.component.d.ts +0 -21
- package/src/flow.module.d.ts +0 -16
- package/src/guards/flow.guard.d.ts +0 -2
- package/src/guards/product-unload.guard.d.ts +0 -16
- package/src/guards/root.guard.d.ts +0 -14
- package/src/index.d.ts +0 -4
- package/src/pages/assets/assets.component.d.ts +0 -31
- package/src/pages/assets/assets.module.d.ts +0 -10
- package/src/pages/catalog/catalog.component.d.ts +0 -31
- package/src/pages/catalog/catalog.module.d.ts +0 -10
- package/src/pages/debug/debug.component.d.ts +0 -21
- package/src/pages/debug/debug.module.d.ts +0 -14
- package/src/pages/product/product.component.d.ts +0 -24
- package/src/pages/product/product.module.d.ts +0 -10
- package/src/pages/record-not-found/record-not-found.component.d.ts +0 -12
- package/src/pages/record-not-found/record-not-found.module.d.ts +0 -9
- package/src/pages/shopping-cart/shopping-cart.component.d.ts +0 -31
- package/src/pages/shopping-cart/shopping-cart.module.d.ts +0 -10
- package/src/resolvers/flow.resolver.d.ts +0 -14
- package/src/resolvers/pcm-model.resolver.d.ts +0 -3
- package/src/resolvers/sales-transaction.resolver.d.ts +0 -18
- package/src/resolvers/ui-definition.resolver.d.ts +0 -3
- package/src/services/flow-dialog.service.d.ts +0 -23
- package/src/services/flow-router.service.d.ts +0 -42
- package/src/services/flow.service.d.ts +0 -21
- package/src/services/guided-selling.service.d.ts +0 -13
- package/src/services/index.d.ts +0 -3
- package/src/types/index.d.ts +0 -1
- package/src/types/route.types.d.ts +0 -4
package/core/index.d.ts
CHANGED
@@ -1,8 +1,525 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
import * as i0 from '@angular/core';
|
2
|
+
import { InjectionToken, OnInit, OnDestroy, PipeTransform } from '@angular/core';
|
3
|
+
import { FlowContext, UIDefinitionContainer, UITemplate, TemplateComponentWithAttachments, ConfigurationProcessor, Prettify, VlDateSettings, PCMModel, UIDefinitionProps, RuntimeConfigurationSettings, ShoppingCartSetting, RuntimeCurrencySettings, Flow, UITemplateType, Product, TransactionContext, SalesTransactionItem, FlowStateExecutionRequest, FlowStateExecutionResult, FlowStateSelectorResponse, FlowStateExecutionRequestDTO, CatalogProducts, PCMProduct, UIDefinition, UIDefinitionMetadata } from '@veloceapps/core';
|
4
|
+
import { Dictionary } from 'lodash';
|
5
|
+
import * as i1 from '@veloceapps/components';
|
6
|
+
import { ToastService } from '@veloceapps/components';
|
7
|
+
import * as i2 from '@veloceapps/api';
|
8
|
+
import { FlowStateApiService } from '@veloceapps/api';
|
9
|
+
import { Calendar } from 'primeng/calendar';
|
10
|
+
import { PCMApiService, ConfigurationSettingsApiService, UITemplatesAdminApiService, OrchestrationsApiService, SalesTransactionApiService, ConfigurationProcessorsApiService, ProductsAdminApiService, SalesTransactionUpsertResponse, SalesforceApiService } from '@veloceapps/api/v2';
|
11
|
+
import * as rxjs from 'rxjs';
|
12
|
+
import { Observable, BehaviorSubject, Subject } from 'rxjs';
|
13
|
+
import { Params } from '@angular/router';
|
14
|
+
import { MessageService } from 'primeng/api';
|
15
|
+
|
16
|
+
declare const FLOW_CUSTOMIZATION: InjectionToken<FlowCustomization>;
|
17
|
+
interface FlowCustomization {
|
18
|
+
getUiDefinition?(flowContext: FlowContext): Observable<UIDefinitionContainer | null>;
|
19
|
+
getTemplates?(): Observable<UITemplate[]>;
|
20
|
+
getTemplateComponents?(templateName: string): Observable<TemplateComponentWithAttachments[] | null>;
|
21
|
+
getTemplateConfigurationProcessors?(templateName: string): Observable<ConfigurationProcessor[] | null>;
|
22
|
+
}
|
23
|
+
|
24
|
+
declare const FORMATTING_SETTINGS_TOKEN: InjectionToken<{
|
25
|
+
getFormattingSettings: (...args: unknown[]) => FormattingSettings;
|
26
|
+
}>;
|
27
|
+
type FormattingSettings = Prettify<{
|
28
|
+
currencySymbol: string;
|
29
|
+
thousandsSeparator: string;
|
30
|
+
decimalSeparator: string;
|
31
|
+
decimalsCount: number;
|
32
|
+
actionCodeLabels: Dictionary<string>;
|
33
|
+
} & VlDateSettings>;
|
34
|
+
|
35
|
+
interface IntegrationAction<T = any> {
|
36
|
+
type: string;
|
37
|
+
payload?: T;
|
38
|
+
}
|
39
|
+
type IntegrationStateModel = {
|
40
|
+
guidedSelling?: Dictionary<any>;
|
41
|
+
flowPath: string;
|
42
|
+
dialogResult?: boolean;
|
43
|
+
} & Dictionary<any>;
|
44
|
+
|
45
|
+
type DateType = 'date' | 'datetime' | 'time';
|
46
|
+
|
47
|
+
declare const UI_DEFINITION_VERSION = 3;
|
48
|
+
|
49
|
+
declare class ConfigurationModule {
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationModule, never>;
|
51
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ConfigurationModule, never, [typeof i1.ConfirmationDialogModule, typeof i2.ApiModule], never>;
|
52
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ConfigurationModule>;
|
53
|
+
}
|
54
|
+
|
55
|
+
declare class FlowConfigurationModule {
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlowConfigurationModule, never>;
|
57
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FlowConfigurationModule, never, [typeof i2.ApiModule], never>;
|
58
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FlowConfigurationModule>;
|
59
|
+
}
|
60
|
+
|
61
|
+
declare const DEFAULT_FORMATTING_SETTINGS: FormattingSettings;
|
62
|
+
declare class SdkCoreModule {
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdkCoreModule, never>;
|
64
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SdkCoreModule, never, [typeof ConfigurationModule, typeof FlowConfigurationModule], never>;
|
65
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SdkCoreModule>;
|
66
|
+
}
|
67
|
+
|
68
|
+
declare class CalendarDirective implements OnInit, OnDestroy {
|
69
|
+
set vlCalendar(calendar: Calendar);
|
70
|
+
private calendar;
|
71
|
+
private ngControl;
|
72
|
+
private formattingSettings;
|
73
|
+
private destroy$;
|
74
|
+
ngOnDestroy(): void;
|
75
|
+
ngOnInit(): void;
|
76
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarDirective, never>;
|
77
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CalendarDirective, "[vlCalendar]", never, { "vlCalendar": { "alias": "vlCalendar"; "required": false; }; }, {}, never, never, false, never>;
|
78
|
+
}
|
79
|
+
|
80
|
+
declare class SdkDirectivesModule {
|
81
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdkDirectivesModule, never>;
|
82
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SdkDirectivesModule, [typeof CalendarDirective], never, [typeof CalendarDirective]>;
|
83
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SdkDirectivesModule>;
|
84
|
+
}
|
85
|
+
|
86
|
+
interface RuntimeInitializationProps {
|
87
|
+
productId: string;
|
88
|
+
}
|
89
|
+
|
90
|
+
declare class ConfigurationRuntimeService {
|
91
|
+
private pcmApiService;
|
92
|
+
uiDefinitionContainer: UIDefinitionContainer | null;
|
93
|
+
initializationProps?: RuntimeInitializationProps;
|
94
|
+
pcmModelSubj$: BehaviorSubject<PCMModel | null>;
|
95
|
+
constructor(pcmApiService: PCMApiService);
|
96
|
+
get uiDefinitionProps(): UIDefinitionProps;
|
97
|
+
get pcmModel(): PCMModel | null;
|
98
|
+
get pcmModel$(): Observable<PCMModel | null>;
|
99
|
+
reset(): void;
|
100
|
+
init$(props: RuntimeInitializationProps): Observable<PCMModel>;
|
101
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationRuntimeService, never>;
|
102
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationRuntimeService>;
|
103
|
+
}
|
104
|
+
|
105
|
+
declare class RuntimeSettingsService {
|
106
|
+
private configurationSettingsApiService;
|
107
|
+
private configurationSettings$;
|
108
|
+
private currencySettings$;
|
109
|
+
private formattingSettings;
|
110
|
+
private shoppingCartSettings$;
|
111
|
+
constructor(configurationSettingsApiService: ConfigurationSettingsApiService);
|
112
|
+
create(): Observable<void>;
|
113
|
+
initCurrency(iso?: string): void;
|
114
|
+
getFormattingSettings(): FormattingSettings;
|
115
|
+
getConfigurationSettings(): RuntimeConfigurationSettings;
|
116
|
+
getShoppingCartSettings(): ShoppingCartSetting[];
|
117
|
+
getCurrencySettings(): RuntimeCurrencySettings;
|
118
|
+
private parseConfigurationSettings;
|
119
|
+
private getCurrencySymbol;
|
120
|
+
addShoppingCartSettings(settings: ShoppingCartSetting[]): void;
|
121
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeSettingsService, never>;
|
122
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeSettingsService>;
|
123
|
+
}
|
124
|
+
|
125
|
+
declare class FlowInfoService {
|
126
|
+
private runtimeSettingsService;
|
127
|
+
private templatesAdminApiService;
|
128
|
+
private customizationService?;
|
129
|
+
flow$: Observable<Flow | null>;
|
130
|
+
templates$: Observable<{
|
131
|
+
[key in UITemplateType]?: UITemplate;
|
132
|
+
}>;
|
133
|
+
private readonly defaultTemplates;
|
134
|
+
private flowSubj$;
|
135
|
+
private templatesSubj$;
|
136
|
+
private contextSubj$;
|
137
|
+
constructor(runtimeSettingsService: RuntimeSettingsService, templatesAdminApiService: UITemplatesAdminApiService, customizationService?: FlowCustomization | undefined);
|
138
|
+
get flow(): Flow;
|
139
|
+
get isFlowInitialized(): boolean;
|
140
|
+
get context(): FlowContext;
|
141
|
+
get context$(): Observable<FlowContext>;
|
142
|
+
get templates(): {
|
143
|
+
SHOPPING_CART?: UITemplate | undefined;
|
144
|
+
CONFIGURATION_UI?: UITemplate | undefined;
|
145
|
+
CATALOG?: UITemplate | undefined;
|
146
|
+
GUIDED_SELLING?: UITemplate | undefined;
|
147
|
+
FLOW_ENGINE?: UITemplate | undefined;
|
148
|
+
FLOW_HEADER?: UITemplate | undefined;
|
149
|
+
};
|
150
|
+
get isFlowEngineInitialized$(): Observable<boolean>;
|
151
|
+
get isStateful(): boolean;
|
152
|
+
reset(): void;
|
153
|
+
init$(flowId: string, routeQueryParams: Params): Observable<void>;
|
154
|
+
updateContext(update: Partial<FlowContext>): void;
|
155
|
+
private initFlow$;
|
156
|
+
private initFlowTemplates$;
|
157
|
+
private remapTemplateName;
|
158
|
+
private getFlowContextMode;
|
159
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlowInfoService, [null, null, { optional: true; }]>;
|
160
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FlowInfoService>;
|
161
|
+
}
|
162
|
+
|
163
|
+
interface GuidedSellingSubmitData {
|
164
|
+
orchestrationName: string;
|
165
|
+
attributesMap: Record<string, any>;
|
166
|
+
}
|
167
|
+
interface ExternalConfigurationProps {
|
168
|
+
productId: string;
|
169
|
+
qty?: number;
|
170
|
+
attributesMap?: Record<string, any>;
|
171
|
+
}
|
172
|
+
interface NewConfigurationProps extends ExternalConfigurationProps {
|
173
|
+
product: Product;
|
174
|
+
}
|
175
|
+
interface TestModeConfigurationOptions {
|
176
|
+
customizationMode?: boolean;
|
177
|
+
}
|
178
|
+
interface QuantityChangeProps {
|
179
|
+
id: string;
|
180
|
+
qty: number;
|
181
|
+
}
|
182
|
+
|
183
|
+
declare class GuidedSellingService {
|
184
|
+
private orchestrationsApiService;
|
185
|
+
private guidedSellingResult$;
|
186
|
+
constructor(orchestrationsApiService: OrchestrationsApiService);
|
187
|
+
get guidedSellingResult(): Record<string, any>;
|
188
|
+
configureGuidedSelling$(data: GuidedSellingSubmitData): Observable<Record<string, any>>;
|
189
|
+
clearGuidedSelling$(): void;
|
190
|
+
private getTransactionContext;
|
191
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GuidedSellingService, never>;
|
192
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GuidedSellingService>;
|
193
|
+
}
|
194
|
+
|
195
|
+
declare class ConfigurationService {
|
196
|
+
private flowInfoService;
|
197
|
+
private messageService;
|
198
|
+
private configurationRuntimeService;
|
199
|
+
private salesTransactionService;
|
200
|
+
private orchestrationsApiService;
|
201
|
+
private guidedSellingService;
|
202
|
+
isLoading$: Observable<boolean>;
|
203
|
+
hasUnsavedChanges: boolean;
|
204
|
+
private configurationStateSubj$;
|
205
|
+
private previousConfigurationStateSubj$;
|
206
|
+
private isLoadingSubj$;
|
207
|
+
constructor(flowInfoService: FlowInfoService, messageService: MessageService, configurationRuntimeService: ConfigurationRuntimeService, salesTransactionService: SalesTransactionService, orchestrationsApiService: OrchestrationsApiService, guidedSellingService: GuidedSellingService);
|
208
|
+
get state$(): Observable<TransactionContext>;
|
209
|
+
get state(): TransactionContext | null;
|
210
|
+
get previousState(): TransactionContext | null;
|
211
|
+
get root$(): Observable<SalesTransactionItem>;
|
212
|
+
get root(): SalesTransactionItem | null;
|
213
|
+
reset(): void;
|
214
|
+
init$(): Observable<void>;
|
215
|
+
patch$(transactionItem: SalesTransactionItem): Observable<void>;
|
216
|
+
patch(transactionItem: SalesTransactionItem): void;
|
217
|
+
configure$(transactionContext: TransactionContext): Observable<TransactionContext>;
|
218
|
+
justConfigureRequest$(transactionContext: TransactionContext): Observable<TransactionContext>;
|
219
|
+
getPCMModel(): PCMModel;
|
220
|
+
getPCMModel$(): Observable<PCMModel | null>;
|
221
|
+
swapProduct$(productId: string): Observable<void>;
|
222
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationService, never>;
|
223
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationService>;
|
224
|
+
}
|
225
|
+
|
226
|
+
declare class SalesTransactionService {
|
227
|
+
private salesTransactionApiService;
|
228
|
+
private stateSubj$;
|
229
|
+
private isInitializedSubj$;
|
230
|
+
private hasUnsavedChangesSubj$;
|
231
|
+
private initialState;
|
232
|
+
hasUnsavedChanges$: Observable<boolean>;
|
233
|
+
state$: Observable<TransactionContext>;
|
234
|
+
get isInitialized$(): Observable<boolean>;
|
235
|
+
get isInitialized(): boolean;
|
236
|
+
set hasUnsavedChanges(value: boolean);
|
237
|
+
get hasUnsavedChanges(): boolean;
|
238
|
+
get state(): TransactionContext | null;
|
239
|
+
get hasProducts(): boolean;
|
240
|
+
constructor(salesTransactionApiService: SalesTransactionApiService);
|
241
|
+
init(headerId: string, params: Record<string, string>): Observable<TransactionContext>;
|
242
|
+
finalizeInit(): void;
|
243
|
+
reset(): void;
|
244
|
+
getInitialState(): SalesTransactionItem[];
|
245
|
+
setState(state: TransactionContext): void;
|
246
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SalesTransactionService, never>;
|
247
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SalesTransactionService>;
|
248
|
+
}
|
249
|
+
|
250
|
+
declare class FlowConfigurationService {
|
251
|
+
private orchestrationsApiService;
|
252
|
+
private salesTransactionService;
|
253
|
+
private flowInfoService;
|
254
|
+
updated$: Observable<void>;
|
255
|
+
private updatedSubj$;
|
256
|
+
constructor(orchestrationsApiService: OrchestrationsApiService, salesTransactionService: SalesTransactionService, flowInfoService: FlowInfoService);
|
257
|
+
calculate$(state: TransactionContext): Observable<void>;
|
258
|
+
calculate(state: TransactionContext): void;
|
259
|
+
revert$(transactionItemId: string): Observable<TransactionContext | null>;
|
260
|
+
revert(transactionItemId: string): void;
|
261
|
+
delete$(ids: string[]): Observable<TransactionContext | null>;
|
262
|
+
delete(ids: string[]): void;
|
263
|
+
private handleErrorAndBounceBack;
|
264
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlowConfigurationService, never>;
|
265
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FlowConfigurationService>;
|
266
|
+
}
|
267
|
+
|
268
|
+
interface FlowStateSubscriptionOptions {
|
269
|
+
/**
|
270
|
+
* When 'true', don't execute action to retrieve current value
|
271
|
+
*/
|
272
|
+
cold?: boolean;
|
273
|
+
trackedChanges?: boolean;
|
274
|
+
}
|
275
|
+
|
276
|
+
declare class FlowStateService {
|
277
|
+
private flowConfiguration;
|
278
|
+
private flowInfoService;
|
279
|
+
private flowStateApiService;
|
280
|
+
private processorsApiService;
|
281
|
+
private salesTransactionApiService;
|
282
|
+
private salesTransactionService;
|
283
|
+
private toastService;
|
284
|
+
private customizationService?;
|
285
|
+
private readonly NOT_INITIALIZED;
|
286
|
+
private readonly EXECUTION_BUFFER_TIME;
|
287
|
+
private executedFunctions;
|
288
|
+
private stateId$;
|
289
|
+
private initialStatefulData;
|
290
|
+
private trackedStatefulChangesMap;
|
291
|
+
private processors;
|
292
|
+
private subscriptions;
|
293
|
+
private flowStore;
|
294
|
+
private executionInProgress$;
|
295
|
+
private statefulRequestStream$;
|
296
|
+
private statefulExecutionRequest$;
|
297
|
+
private cleanup$;
|
298
|
+
constructor(flowConfiguration: FlowConfigurationService, flowInfoService: FlowInfoService, flowStateApiService: FlowStateApiService, processorsApiService: ConfigurationProcessorsApiService, salesTransactionApiService: SalesTransactionApiService, salesTransactionService: SalesTransactionService, toastService: ToastService, customizationService?: FlowCustomization | undefined);
|
299
|
+
init$(): Observable<void>;
|
300
|
+
reset(): void;
|
301
|
+
get hasUnsavedChanges(): boolean;
|
302
|
+
get stateId(): string | null;
|
303
|
+
get isExecutionInProgress$(): Observable<boolean>;
|
304
|
+
isInitialized$(): Observable<boolean>;
|
305
|
+
isInitialized(): boolean;
|
306
|
+
execute$(scope: UITemplateType, exec: FlowStateExecutionRequest): Observable<FlowStateExecutionResult['selectors']>;
|
307
|
+
dispatch$(scope: UITemplateType, action: string, inputData?: unknown): Observable<void>;
|
308
|
+
select$<Response = unknown>(scope: UITemplateType, selectorName: string, inputData?: unknown): Observable<FlowStateSelectorResponse<Response>>;
|
309
|
+
subscribe$<Response = unknown>(scope: UITemplateType, selectorName: string, inputData?: unknown, options?: FlowStateSubscriptionOptions): Observable<FlowStateSelectorResponse<Response>>;
|
310
|
+
save$(): Observable<{
|
311
|
+
id: string;
|
312
|
+
}>;
|
313
|
+
getFlowStore(): Record<string, unknown>;
|
314
|
+
private getOwnerIdByScope;
|
315
|
+
private getScopeByOwnerId;
|
316
|
+
private execToRequest;
|
317
|
+
executeRequest$(request: FlowStateExecutionRequestDTO, forceSubscriptions?: boolean): Observable<FlowStateExecutionResult>;
|
318
|
+
private handleSelectorsResponse;
|
319
|
+
private initStateful$;
|
320
|
+
private initBufferedRequest$;
|
321
|
+
private executeStateful$;
|
322
|
+
private initStateless$;
|
323
|
+
private executeStateless$;
|
324
|
+
private executeStatelessActions;
|
325
|
+
private executeStatelessSelectors;
|
326
|
+
private initProcessors$;
|
327
|
+
private executeActionScript;
|
328
|
+
private executeSelectorScript;
|
329
|
+
private executeProcessorScript;
|
330
|
+
private generateRequestId;
|
331
|
+
private checkStatefulChanges;
|
332
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlowStateService, [null, null, null, null, null, null, null, { optional: true; }]>;
|
333
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FlowStateService>;
|
334
|
+
}
|
335
|
+
|
336
|
+
declare class FlowStateConfigurationService {
|
337
|
+
private flowInfoService;
|
338
|
+
private flowStateService;
|
339
|
+
private configurationService;
|
340
|
+
private salesTransactionService;
|
341
|
+
private flowConfigurationService;
|
342
|
+
private pcmApiService;
|
343
|
+
private pcmCache;
|
344
|
+
constructor(flowInfoService: FlowInfoService, flowStateService: FlowStateService, configurationService: ConfigurationService, salesTransactionService: SalesTransactionService, flowConfigurationService: FlowConfigurationService, pcmApiService: PCMApiService);
|
345
|
+
updateQuantity$(props: QuantityChangeProps): Observable<void>;
|
346
|
+
addToCart$(props: NewConfigurationProps): Observable<void>;
|
347
|
+
private configureExternal$;
|
348
|
+
private getPCMProduct$;
|
349
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlowStateConfigurationService, never>;
|
350
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FlowStateConfigurationService>;
|
351
|
+
}
|
352
|
+
|
353
|
+
declare class IntegrationState<S = IntegrationStateModel> {
|
354
|
+
private readonly stateSubj$;
|
355
|
+
private readonly action$;
|
356
|
+
get state$(): Observable<S>;
|
357
|
+
get state(): S;
|
358
|
+
patchState(update: Partial<S>): void;
|
359
|
+
dispatch(action: IntegrationAction): void;
|
360
|
+
listen$<P = any>(actionType: string): Observable<P>;
|
361
|
+
listenAll$<T extends IntegrationAction>(): Observable<T>;
|
362
|
+
reset(): void;
|
363
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IntegrationState<any>, never>;
|
364
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IntegrationState<any>>;
|
365
|
+
}
|
366
|
+
|
367
|
+
declare class ProductImagesService {
|
368
|
+
private productsAdminApiService;
|
369
|
+
private imagesMap$;
|
370
|
+
constructor(productsAdminApiService: ProductsAdminApiService);
|
371
|
+
getImageUrl$(productId: string): Observable<string | null>;
|
372
|
+
private fetchProductImage;
|
373
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductImagesService, never>;
|
374
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProductImagesService>;
|
375
|
+
}
|
376
|
+
|
377
|
+
declare class CatalogProductsService {
|
378
|
+
private stateSubj$;
|
379
|
+
state$: rxjs.Observable<CatalogProducts>;
|
380
|
+
get state(): CatalogProducts | null;
|
381
|
+
reset(): void;
|
382
|
+
setState(state: CatalogProducts): void;
|
383
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogProductsService, never>;
|
384
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogProductsService>;
|
385
|
+
}
|
386
|
+
|
387
|
+
declare class ConfigurationStateService {
|
388
|
+
private configurationRuntimeService;
|
389
|
+
private configurationService;
|
390
|
+
private flowStateService;
|
391
|
+
private flowInfoService;
|
392
|
+
private flowConfigurationService;
|
393
|
+
private flowStateApiService;
|
394
|
+
private salesTransactionService;
|
395
|
+
private salesTransactionApiService;
|
396
|
+
private toastService;
|
397
|
+
private pcmApiService;
|
398
|
+
isInitialized$: BehaviorSubject<boolean>;
|
399
|
+
canceledConfiguration$: Subject<void>;
|
400
|
+
private readonly NOT_INITIALIZED;
|
401
|
+
private readonly EXECUTION_BUFFER_TIME;
|
402
|
+
private executedFunctions;
|
403
|
+
private stateId;
|
404
|
+
private ownerId;
|
405
|
+
private subscriptions;
|
406
|
+
private configurationStore;
|
407
|
+
private executionInProgress$;
|
408
|
+
private statefulRequestStream$;
|
409
|
+
private statefulExecutionRequest$;
|
410
|
+
private statelessExecutionRequest$;
|
411
|
+
constructor(configurationRuntimeService: ConfigurationRuntimeService, configurationService: ConfigurationService, flowStateService: FlowStateService, flowInfoService: FlowInfoService, flowConfigurationService: FlowConfigurationService, flowStateApiService: FlowStateApiService, salesTransactionService: SalesTransactionService, salesTransactionApiService: SalesTransactionApiService, toastService: ToastService, pcmApiService: PCMApiService);
|
412
|
+
get isExecutionInProgress$(): Observable<boolean>;
|
413
|
+
init$(): Observable<void>;
|
414
|
+
cleanup(): void;
|
415
|
+
execute$(exec: FlowStateExecutionRequest): Observable<FlowStateExecutionResult['selectors']>;
|
416
|
+
dispatch$(actionName: string, inputData?: unknown): Observable<FlowStateExecutionResult>;
|
417
|
+
select$<Response = unknown>(selectorName: string, inputData?: unknown): Observable<FlowStateSelectorResponse<Response>>;
|
418
|
+
subscribe$<Response = unknown>(selectorName: string, inputData?: unknown, options?: FlowStateSubscriptionOptions): Observable<FlowStateSelectorResponse<Response>>;
|
419
|
+
saveConfiguration(): Observable<SalesTransactionUpsertResponse>;
|
420
|
+
cancelConfiguration(): Observable<void>;
|
421
|
+
private get isStatefulConfiguration();
|
422
|
+
private initStateful$;
|
423
|
+
private execToRequest;
|
424
|
+
private handleSelectorsResponse;
|
425
|
+
private executeRequest$;
|
426
|
+
private executeStateless$;
|
427
|
+
private initBufferedRequest$;
|
428
|
+
private executeStateful$;
|
429
|
+
private executeActionScript;
|
430
|
+
private executeSelectorScript;
|
431
|
+
private executeProcessorScript;
|
432
|
+
private runStatelessSelectors;
|
433
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationStateService, never>;
|
434
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationStateService>;
|
435
|
+
}
|
436
|
+
|
437
|
+
declare class TestModeConfigurationService {
|
438
|
+
private flowInfoService;
|
439
|
+
private configurationService;
|
440
|
+
private configurationRuntimeService;
|
441
|
+
private salesTransactionService;
|
442
|
+
private runtimeSettingsService;
|
443
|
+
private sfApiService;
|
444
|
+
private isInitialized;
|
445
|
+
private pcmModel?;
|
446
|
+
constructor(flowInfoService: FlowInfoService, configurationService: ConfigurationService, configurationRuntimeService: ConfigurationRuntimeService, salesTransactionService: SalesTransactionService, runtimeSettingsService: RuntimeSettingsService, sfApiService: SalesforceApiService);
|
447
|
+
initTestMode$(uiDefinitionContainer: UIDefinitionContainer, options?: TestModeConfigurationOptions): Observable<void>;
|
448
|
+
private initConfiguration$;
|
449
|
+
private getPriceBookId;
|
450
|
+
private getTestTransactionContext;
|
451
|
+
private checkInitialized;
|
452
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TestModeConfigurationService, never>;
|
453
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TestModeConfigurationService>;
|
454
|
+
}
|
455
|
+
|
456
|
+
declare function filterSuccessfulExecute<T>(): (source: Observable<FlowStateSelectorResponse<T>>) => Observable<T>;
|
457
|
+
|
458
|
+
declare class DatePipe implements PipeTransform, OnDestroy {
|
459
|
+
private locale;
|
460
|
+
private defaultOptions;
|
461
|
+
private formattingSettings;
|
462
|
+
private destroy$;
|
463
|
+
ngOnDestroy(): void;
|
464
|
+
transform(date: string | number | Date | undefined | null, type?: DateType): string;
|
465
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatePipe, never>;
|
466
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DatePipe, "vlDate", false>;
|
467
|
+
}
|
468
|
+
|
469
|
+
declare class NumberPipe implements PipeTransform, OnDestroy {
|
470
|
+
private formattingSettings;
|
471
|
+
private destroy$;
|
472
|
+
ngOnDestroy(): void;
|
473
|
+
transform(price: string | number): string;
|
474
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumberPipe, never>;
|
475
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NumberPipe, "vlNumber", false>;
|
476
|
+
}
|
477
|
+
|
478
|
+
declare class PricePipe implements PipeTransform, OnDestroy {
|
479
|
+
private formattingSettings;
|
480
|
+
private destroy$;
|
481
|
+
ngOnDestroy(): void;
|
482
|
+
transform(price: string | number): string;
|
483
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PricePipe, never>;
|
484
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<PricePipe, "vlPrice", false>;
|
485
|
+
}
|
486
|
+
|
487
|
+
declare class ActionCodePipe implements PipeTransform {
|
488
|
+
private formattingSettings;
|
489
|
+
transform(actionCode: string): string;
|
490
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionCodePipe, never>;
|
491
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ActionCodePipe, "vlActionCode", false>;
|
492
|
+
}
|
493
|
+
|
494
|
+
declare class SdkPipesModule {
|
495
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SdkPipesModule, never>;
|
496
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SdkPipesModule, [typeof NumberPipe, typeof PricePipe, typeof DatePipe, typeof ActionCodePipe], never, [typeof NumberPipe, typeof PricePipe, typeof DatePipe, typeof ActionCodePipe]>;
|
497
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SdkPipesModule>;
|
498
|
+
}
|
499
|
+
|
500
|
+
declare class PCMUtils {
|
501
|
+
static mapByPrcId(pcm: PCMProduct): Dictionary<PCMProduct>;
|
502
|
+
}
|
503
|
+
|
504
|
+
declare const findTransactionItem: (id: string, items: SalesTransactionItem[]) => SalesTransactionItem | undefined;
|
505
|
+
declare const findTransactionItemWithComparator: (items: SalesTransactionItem[], comparator: (ti: SalesTransactionItem) => boolean) => SalesTransactionItem | undefined;
|
506
|
+
declare const insertTransactionItem: (item: SalesTransactionItem, parentId: string, toInsert: SalesTransactionItem) => SalesTransactionItem;
|
507
|
+
declare const removeTransactionItem: (item: SalesTransactionItem, idToRemove: string) => SalesTransactionItem;
|
508
|
+
declare const replaceTransactionItem: (item: SalesTransactionItem, replaceTo: SalesTransactionItem) => SalesTransactionItem;
|
509
|
+
declare const generateTransactionItem: (option: PCMModel, salesTransactionId?: string, qty?: number, parentTi?: SalesTransactionItem) => SalesTransactionItem;
|
510
|
+
declare const generateTransactionItemFromPCM: (option: PCMModel, salesTransactionId?: string, parentTi?: SalesTransactionItem) => SalesTransactionItem;
|
511
|
+
declare const flattenTransactionItem: (ti: SalesTransactionItem) => SalesTransactionItem[];
|
512
|
+
declare const updateQuantity: (ti: SalesTransactionItem, qty: number, pcm: PCMProduct, parentQty?: number) => SalesTransactionItem;
|
513
|
+
|
514
|
+
declare class TransactionItemWorker {
|
515
|
+
ti: SalesTransactionItem;
|
516
|
+
constructor(src: SalesTransactionItem);
|
517
|
+
insert(parentId: string, toInsert: SalesTransactionItem): TransactionItemWorker;
|
518
|
+
remove(id: string): TransactionItemWorker;
|
519
|
+
replace(toReplace: SalesTransactionItem): TransactionItemWorker;
|
520
|
+
}
|
521
|
+
|
522
|
+
declare function extractMetadata(uiDefinition: UIDefinition): UIDefinitionMetadata;
|
523
|
+
|
524
|
+
export { ActionCodePipe, CalendarDirective, CatalogProductsService, ConfigurationRuntimeService, ConfigurationService, ConfigurationStateService, DEFAULT_FORMATTING_SETTINGS, DatePipe, FLOW_CUSTOMIZATION, FORMATTING_SETTINGS_TOKEN, FlowConfigurationService, FlowInfoService, FlowStateConfigurationService, FlowStateService, GuidedSellingService, IntegrationState, NumberPipe, PCMUtils, PricePipe, ProductImagesService, RuntimeSettingsService, SalesTransactionService, SdkCoreModule, SdkDirectivesModule, SdkPipesModule, TestModeConfigurationService, TransactionItemWorker, UI_DEFINITION_VERSION, extractMetadata, filterSuccessfulExecute, findTransactionItem, findTransactionItemWithComparator, flattenTransactionItem, generateTransactionItem, generateTransactionItemFromPCM, insertTransactionItem, removeTransactionItem, replaceTransactionItem, updateQuantity };
|
525
|
+
export type { DateType, ExternalConfigurationProps, FlowCustomization, FormattingSettings, GuidedSellingSubmitData, IntegrationAction, IntegrationStateModel, NewConfigurationProps, QuantityChangeProps, RuntimeInitializationProps, TestModeConfigurationOptions };
|