@useinsider/guido 1.0.3-beta.63e6005 → 1.0.3-beta.671eb65
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/dist/@types/generic.d.ts +6 -1
- package/dist/components/Guido.vue.js +7 -7
- package/dist/components/Guido.vue2.js +69 -67
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue.d.ts +19 -0
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue.js +28 -0
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +38 -0
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.d.ts +2 -0
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.js +17 -0
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +37 -0
- package/dist/components/organisms/extensions/recommendation/Filters.vue.d.ts +2 -0
- package/dist/components/organisms/extensions/recommendation/Filters.vue.js +20 -0
- package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +44 -0
- package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue.d.ts +16 -0
- package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue.js +17 -0
- package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue2.js +27 -0
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +1 -1
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +12 -13
- package/dist/composables/useStripo.js +25 -21
- package/dist/config/compiler/unsubscribeCompilerRules.js +39 -26
- package/dist/config/migrator/couponBlockMigrator.d.ts +1 -0
- package/dist/config/migrator/couponBlockMigrator.js +67 -0
- package/dist/config/migrator/index.js +7 -6
- package/dist/config/migrator/unsubscribeMigrator.js +61 -49
- package/dist/enums/extensions/recommendationBlock.d.ts +16 -0
- package/dist/enums/extensions/recommendationBlock.js +80 -0
- package/dist/enums/unsubscribe.d.ts +4 -0
- package/dist/enums/unsubscribe.js +15 -11
- package/dist/extensions/Blocks/Checkbox/block.d.ts +1 -0
- package/dist/extensions/Blocks/Checkbox/block.js +15 -24
- package/dist/extensions/Blocks/Checkbox/control.js +55 -67
- package/dist/extensions/Blocks/Checkbox/extension.js +5 -16
- package/dist/extensions/Blocks/Checkbox/iconsRegistry.d.ts +4 -0
- package/dist/extensions/Blocks/Checkbox/iconsRegistry.js +18 -0
- package/dist/extensions/Blocks/Checkbox/settingsPanel.js +12 -25
- package/dist/extensions/Blocks/Checkbox/template.js +5 -16
- package/dist/extensions/Blocks/CouponBlock/block.d.ts +12 -0
- package/dist/extensions/Blocks/CouponBlock/block.js +33 -0
- package/dist/extensions/Blocks/CouponBlock/extension.d.ts +2 -0
- package/dist/extensions/Blocks/CouponBlock/extension.js +8 -0
- package/dist/extensions/Blocks/CouponBlock/iconsRegistry.d.ts +4 -0
- package/dist/extensions/Blocks/CouponBlock/iconsRegistry.js +33 -0
- package/dist/extensions/Blocks/CouponBlock/settingsPanel.d.ts +4 -0
- package/dist/extensions/Blocks/CouponBlock/settingsPanel.js +24 -0
- package/dist/extensions/Blocks/CouponBlock/template.d.ts +3 -0
- package/dist/extensions/Blocks/CouponBlock/template.js +18 -0
- package/dist/extensions/Blocks/RadioButton/block.d.ts +1 -0
- package/dist/extensions/Blocks/RadioButton/block.js +13 -22
- package/dist/extensions/Blocks/RadioButton/control.js +40 -52
- package/dist/extensions/Blocks/RadioButton/extension.js +4 -15
- package/dist/extensions/Blocks/RadioButton/iconsRegistry.d.ts +4 -0
- package/dist/extensions/Blocks/RadioButton/iconsRegistry.js +14 -0
- package/dist/extensions/Blocks/RadioButton/settingsPanel.js +13 -26
- package/dist/extensions/Blocks/RadioButton/template.js +13 -24
- package/dist/extensions/Blocks/Recommendation/block.d.ts +10 -0
- package/dist/extensions/Blocks/Recommendation/block.js +27 -0
- package/dist/extensions/Blocks/Recommendation/control.d.ts +29 -0
- package/dist/extensions/Blocks/Recommendation/control.js +277 -0
- package/dist/extensions/Blocks/Recommendation/extension.d.ts +2 -0
- package/dist/extensions/Blocks/Recommendation/extension.js +10 -0
- package/dist/extensions/Blocks/Recommendation/iconsRegistry.d.ts +4 -0
- package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +51 -0
- package/dist/extensions/Blocks/Recommendation/recommendation.css.js +19 -0
- package/dist/extensions/Blocks/Recommendation/settingsPanel.d.ts +4 -0
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +32 -0
- package/dist/extensions/Blocks/Recommendation/store/recommendation.d.ts +555 -0
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +266 -0
- package/dist/extensions/Blocks/Recommendation/template.d.ts +6 -0
- package/dist/extensions/Blocks/Recommendation/template.js +200 -0
- package/dist/extensions/Blocks/Recommendation/utils/filterUtil.d.ts +7 -0
- package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +28 -0
- package/dist/extensions/Blocks/Unsubscribe/block.d.ts +1 -0
- package/dist/extensions/Blocks/Unsubscribe/block.js +28 -41
- package/dist/extensions/Blocks/Unsubscribe/control.js +43 -56
- package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +12 -24
- package/dist/extensions/Blocks/Unsubscribe/extension.js +10 -21
- package/dist/extensions/Blocks/Unsubscribe/iconsRegistry.d.ts +4 -0
- package/dist/extensions/Blocks/Unsubscribe/iconsRegistry.js +21 -0
- package/dist/extensions/Blocks/Unsubscribe/settingsPanel.js +27 -24
- package/dist/extensions/Blocks/Unsubscribe/tagRegistry.js +6 -18
- package/dist/extensions/Blocks/Unsubscribe/template.js +9 -20
- package/dist/extensions/Blocks/_Boilerplate/block.d.ts +1 -0
- package/dist/extensions/Blocks/_Boilerplate/iconsRegistry.d.ts +4 -0
- package/dist/extensions/Blocks/common-control.d.ts +66 -0
- package/dist/extensions/Blocks/common-control.js +102 -0
- package/dist/extensions/DynamicContent/dynamic-content.js +31 -45
- package/dist/extensions/DynamicContent/extension.js +6 -18
- package/dist/guido.css +1 -1
- package/dist/mock/api/recommendation.d.ts +2 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +659 -0
- package/dist/services/recommendationApi.d.ts +6 -0
- package/dist/services/recommendationApi.js +43 -0
- package/dist/stores/config.d.ts +96 -0
- package/dist/stores/config.js +17 -0
- package/dist/stores/editor.d.ts +21 -0
- package/dist/stores/editor.js +2 -1
- package/dist/stores/unsubscribe.d.ts +72 -2
- package/dist/stores/unsubscribe.js +43 -42
- package/dist/utils/genericUtil.d.ts +1 -0
- package/dist/utils/genericUtil.js +8 -7
- package/dist/utils/templatePreparation.js +17 -16
- package/package.json +3 -3
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +0 -75
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +0 -77
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +0 -123
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +0 -7
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +0 -7
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockName.js +0 -12
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +0 -7
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +0 -119
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +0 -7
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +0 -7
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +0 -7
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js +0 -12
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +0 -7
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +0 -7
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +0 -7
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +0 -25
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +0 -24
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +0 -11
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +0 -33
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +0 -22
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +0 -40
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +0 -5
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ExtensionBuilder as o } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { RecommendationBlock as t } from "./block.js";
|
|
3
|
+
import { RecommendationBlockControl as e } from "./control.js";
|
|
4
|
+
import { RecommendationIconsRegistry as n } from "./iconsRegistry.js";
|
|
5
|
+
import i from "./recommendation.css.js";
|
|
6
|
+
import { SettingsPanel as m } from "./settingsPanel.js";
|
|
7
|
+
const f = new o().addBlock(t).withSettingsPanelRegistry(m).addControl(e).addStyles(i).withIconsRegistry(n).build();
|
|
8
|
+
export {
|
|
9
|
+
f as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { IconsRegistry as e } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
class t extends e {
|
|
3
|
+
registerIconsSvg(C) {
|
|
4
|
+
C["recommendation-icon"] = `
|
|
5
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6
|
+
<path d="M12 6.4C12 6.73137 11.7301 6.99622 11.4011 7.0355C8.92202 7.33143 7 9.44126 7 12C7 14.5587
|
|
7
|
+
8.92202 16.6686 11.4011 16.9645C11.7301 17.0038 12 17.2686 12 17.6V20.4C12 20.7314 11.7314 21 11.4
|
|
8
|
+
21H11C10.4477 21 10 20.5523 10 20V19.2422C9.99988 18.3514 8.92291 17.9053 8.29297 18.5352L7.75684
|
|
9
|
+
19.0713C7.36633 19.4617 6.73328 19.4617 6.34277 19.0713L4.92871 17.6572C4.53829 17.2667 4.53829 16.6337
|
|
10
|
+
4.92871 16.2432L5.46484 15.707C6.09466 15.0771 5.64858 14.0001 4.75781 14H4C3.44772 14 3 13.5523 3 13L3
|
|
11
|
+
11C3 10.4477 3.44772 10 4 10H4.75684C5.6476 9.99988 6.09369 8.92291 5.46387 8.29297L4.92871
|
|
12
|
+
7.75781C4.53829 7.36731 4.53829 6.73426 4.92871 6.34375L6.34375 4.92871C6.73426 4.53829
|
|
13
|
+
7.36731 4.53829 7.75781 4.92871L8.29297
|
|
14
|
+
5.46387C8.92291 6.09368 9.99988 5.6476 10 4.75684V4C10 3.44772 10.4477 3 11 3L11.4 3C11.7314 3 12
|
|
15
|
+
3.26863 12 3.6V6.4ZM13 4C13 3.44786 13.4543 2.98773 13.9893 3.12402C14.1732 3.17098 14.3541 3.23174
|
|
16
|
+
14.5303 3.30469C15.0156 3.50571 15.4567 3.80044 15.8281 4.17187C16.1996 4.54331 16.4943 4.98442 16.6953
|
|
17
|
+
5.46973C16.7058 5.49498 16.716 5.52033 16.7259 5.54577C16.8279 5.80746 17.0733 5.9917 17.3531
|
|
18
|
+
6.01625C17.5539 6.03386 17.7542 6.06671 17.9521 6.11523C18.8954 6.34649 19.723 6.91284 20.2793
|
|
19
|
+
7.70898C20.8354 8.505 21.0827 9.47631 20.9756 10.4414C20.927 10.8782 20.8065 11.3001 20.6231
|
|
20
|
+
11.6919C20.5322 11.8861 20.5322 12.112 20.6231 12.3062C20.7962 12.6759 20.9122 13.0708 20.9658
|
|
21
|
+
13.4775C21.0425 14.0595 20.9901 14.6515 20.8125 15.2109C20.6348 15.7703 20.3358 16.2838 19.9375
|
|
22
|
+
16.7148C19.5393 17.1457 19.0513 17.4839 18.5078 17.7051C18.1381 17.8555 17.7488 17.9484 17.3532
|
|
23
|
+
17.9829C17.0734 18.0073 16.8281 18.1917 16.7262 18.4535C16.7162 18.4792 16.7059 18.5048 16.6953
|
|
24
|
+
18.5303C16.4943 19.0156 16.1996 19.4567 15.8281 19.8281C15.4567 20.1996 15.0156 20.4943 14.5303
|
|
25
|
+
20.6953C14.3541 20.7683 14.1732 20.829 13.9893 20.876C13.4543 21.0123 13 20.5521 13 20V19.7852C13.0001
|
|
26
|
+
19.3515 13.365 19.0136 13.7656 18.8477C14.0082 18.7471 14.2284 18.5997 14.4141 18.4141C14.5997 18.2284
|
|
27
|
+
14.7471 18.0082 14.8477 17.7656C14.9482 17.523 15 17.2626 15 17C15 16.7374 14.9482 16.477 14.8477
|
|
28
|
+
16.2344C14.7471 15.9918 14.5997 15.7716 14.4141 15.5859C14.2284 15.4003 14.0082 15.2529 13.7656
|
|
29
|
+
15.1523C13.365 14.9864 13.0001 14.6485 13 14.2148V14C13 13.4479 13.4543 12.9877 13.9893 13.124C14.1732
|
|
30
|
+
13.171 14.3541 13.2317 14.5303 13.3047C15.0156 13.5057 15.4567 13.8004 15.8281 14.1719C16.1996 14.5433
|
|
31
|
+
16.4943 14.9844 16.6953 15.4697C16.7632 15.6337 16.8195 15.8017 16.8649 15.9725C16.8686 15.9865 16.881
|
|
32
|
+
15.9963 16.8955 15.9971C17.1886 16.0123 17.4821 15.9631 17.7539 15.8525C18.0256 15.742 18.2696 15.5729
|
|
33
|
+
18.4688 15.3574C18.6679 15.1419 18.8174 14.8851 18.9063 14.6055C18.995 14.3259 19.0207 14.0301 18.9824
|
|
34
|
+
13.7393C18.9441 13.4484 18.8427 13.169 18.6846 12.9219C18.5264 12.6747 18.3156 12.4652 18.0674
|
|
35
|
+
12.3086C17.6579 12.0502 17.2974 11.626 17.3574 11.1455L17.3721 11.0234C17.4406 10.4755 17.949 10.0755
|
|
36
|
+
18.4629 10.2773C18.5364 10.3062 18.609 10.3373 18.6807 10.3706C18.811 10.4311 18.9714 10.3635 18.9873
|
|
37
|
+
10.2207C19.0409 9.73814 18.9177 9.25251 18.6396 8.85449C18.3616 8.45652 17.9481 8.1733 17.4766
|
|
38
|
+
8.05762C17.3327 8.02235 17.1861 8.00292 17.04 8C16.9439 7.99809 16.8572 8.05928 16.8296 8.15143C16.7913
|
|
39
|
+
8.27967 16.7467 8.40615 16.6953 8.53027C16.4943 9.01558 16.1996 9.45669 15.8281 9.82812C15.4567 10.1996
|
|
40
|
+
15.0156 10.4943 14.5303 10.6953C14.3541 10.7683 14.1732 10.829 13.9893 10.876C13.4543 11.0123 13 10.5521
|
|
41
|
+
13 10V9.78516C13.0001 9.35151 13.365 9.01362 13.7656 8.84766C14.0082 8.74715 14.2284 8.59971 14.4141
|
|
42
|
+
8.41406C14.5997 8.22841 14.7471 8.00817 14.8477 7.76562C14.9482 7.52297 15 7.26264 15 7C15 6.73736
|
|
43
|
+
14.9482 6.47703 14.8477 6.23437C14.7471 5.99182 14.5997 5.77159 14.4141 5.58594C14.2284 5.40029 14.0082
|
|
44
|
+
5.25285 13.7656 5.15234C13.365 4.98638 13.0001 4.64849 13 4.21484V4Z" fill="#666666"/>
|
|
45
|
+
</svg>
|
|
46
|
+
`;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
t as RecommendationIconsRegistry
|
|
51
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const n = `/* Utils */
|
|
2
|
+
.es-180w { width: 180px; }
|
|
3
|
+
|
|
4
|
+
/* Recommendation Controls */
|
|
5
|
+
.recommendation-controls-container > .container {
|
|
6
|
+
padding: 16px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.recommendation-controls-container > .container:first-child {
|
|
10
|
+
padding-top: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.container:has(.recommendation-controls-container) {
|
|
14
|
+
padding: 0
|
|
15
|
+
}
|
|
16
|
+
`;
|
|
17
|
+
export {
|
|
18
|
+
n as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SettingsPanelRegistry as o, SettingsPanelTab as t, SettingsTab as e, ContainerControls as r, TextControls as s } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { BLOCK_ID as T } from "./block.js";
|
|
3
|
+
import { CONTROL_BLOCK_ID as i } from "./control.js";
|
|
4
|
+
class a extends o {
|
|
5
|
+
registerBlockControls(n) {
|
|
6
|
+
n[T] = [
|
|
7
|
+
new t(
|
|
8
|
+
e.SETTINGS,
|
|
9
|
+
[
|
|
10
|
+
i,
|
|
11
|
+
r.EXTERNAL_INDENTS
|
|
12
|
+
]
|
|
13
|
+
),
|
|
14
|
+
new t(
|
|
15
|
+
e.STYLES,
|
|
16
|
+
[
|
|
17
|
+
s.TEXT_BLOCK_BACKGROUND_COLOR
|
|
18
|
+
]
|
|
19
|
+
)
|
|
20
|
+
// TODO: It'll be opened after the card composition is implemented by Stripo team.
|
|
21
|
+
// new SettingsPanelTab(
|
|
22
|
+
// 'Card Composition',
|
|
23
|
+
// [
|
|
24
|
+
// COMPOSITION_CONTROL_BLOCK_ID,
|
|
25
|
+
// ]
|
|
26
|
+
// ).withLabel('Card Composition'),
|
|
27
|
+
];
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
a as SettingsPanel
|
|
32
|
+
};
|
|
@@ -0,0 +1,555 @@
|
|
|
1
|
+
import type { Orientation, Languages, Currency, NumericSeparator, FiltersResponse, Filter, RecommendationProduct } from '@@/Types/recommendation';
|
|
2
|
+
interface StoreState {
|
|
3
|
+
recommendationCampaignUrls: Record<string, string>;
|
|
4
|
+
recommendationConfigs: {
|
|
5
|
+
cardsInRow: number;
|
|
6
|
+
currencySettings: {
|
|
7
|
+
name: string;
|
|
8
|
+
value: string;
|
|
9
|
+
symbol: string;
|
|
10
|
+
alignment: string;
|
|
11
|
+
decimalCount: string;
|
|
12
|
+
decimalSeparator: NumericSeparator;
|
|
13
|
+
thousandSeparator: NumericSeparator;
|
|
14
|
+
};
|
|
15
|
+
filters: Filter[];
|
|
16
|
+
id: number;
|
|
17
|
+
language: string;
|
|
18
|
+
orientation: Orientation;
|
|
19
|
+
productIds: string[];
|
|
20
|
+
recommendedProducts: [];
|
|
21
|
+
sendProductRequestFlag: false;
|
|
22
|
+
shuffleProducts: false;
|
|
23
|
+
strategy: string;
|
|
24
|
+
textTrimming: boolean;
|
|
25
|
+
unresponsive: boolean;
|
|
26
|
+
size: string;
|
|
27
|
+
};
|
|
28
|
+
recommendationProducts: RecommendationProduct[];
|
|
29
|
+
activePredictiveAlgorithms: number[];
|
|
30
|
+
languages: Languages;
|
|
31
|
+
currencyList: Currency[];
|
|
32
|
+
filterStatus: boolean;
|
|
33
|
+
filterSelectionDrawerStatus: boolean;
|
|
34
|
+
filterList: FiltersResponse;
|
|
35
|
+
filterGroup: number;
|
|
36
|
+
}
|
|
37
|
+
export declare const useRecommendationExtensionStore: import("pinia").StoreDefinition<"recommendationExtension", StoreState, {
|
|
38
|
+
hasFilters: (state: {
|
|
39
|
+
recommendationCampaignUrls: Record<string, string>;
|
|
40
|
+
recommendationConfigs: {
|
|
41
|
+
cardsInRow: number;
|
|
42
|
+
currencySettings: {
|
|
43
|
+
name: string;
|
|
44
|
+
value: string;
|
|
45
|
+
symbol: string;
|
|
46
|
+
alignment: string;
|
|
47
|
+
decimalCount: string;
|
|
48
|
+
decimalSeparator: NumericSeparator;
|
|
49
|
+
thousandSeparator: NumericSeparator;
|
|
50
|
+
};
|
|
51
|
+
filters: {
|
|
52
|
+
type: string;
|
|
53
|
+
attribute: string;
|
|
54
|
+
operatorReplace: string;
|
|
55
|
+
operator: string;
|
|
56
|
+
innerGroupOperator: string;
|
|
57
|
+
outerGroupOperator: string;
|
|
58
|
+
value: string;
|
|
59
|
+
filterGroup: number;
|
|
60
|
+
filterNumber: number;
|
|
61
|
+
isValid: boolean;
|
|
62
|
+
}[];
|
|
63
|
+
id: number;
|
|
64
|
+
language: string;
|
|
65
|
+
orientation: Orientation;
|
|
66
|
+
productIds: string[];
|
|
67
|
+
recommendedProducts: [];
|
|
68
|
+
sendProductRequestFlag: false;
|
|
69
|
+
shuffleProducts: false;
|
|
70
|
+
strategy: string;
|
|
71
|
+
textTrimming: boolean;
|
|
72
|
+
unresponsive: boolean;
|
|
73
|
+
size: string;
|
|
74
|
+
};
|
|
75
|
+
recommendationProducts: {
|
|
76
|
+
image_url: string;
|
|
77
|
+
name: string;
|
|
78
|
+
item_id: string;
|
|
79
|
+
url: string;
|
|
80
|
+
in_stock: number;
|
|
81
|
+
price: {
|
|
82
|
+
[key: string]: number;
|
|
83
|
+
};
|
|
84
|
+
locale: string;
|
|
85
|
+
product_attributes: {
|
|
86
|
+
[key: string]: string;
|
|
87
|
+
};
|
|
88
|
+
category: string[];
|
|
89
|
+
discount: {
|
|
90
|
+
[key: string]: number;
|
|
91
|
+
};
|
|
92
|
+
original_price: {
|
|
93
|
+
[key: string]: number;
|
|
94
|
+
};
|
|
95
|
+
}[];
|
|
96
|
+
activePredictiveAlgorithms: number[];
|
|
97
|
+
languages: Languages;
|
|
98
|
+
currencyList: {
|
|
99
|
+
text: string;
|
|
100
|
+
value: string;
|
|
101
|
+
}[];
|
|
102
|
+
filterStatus: boolean;
|
|
103
|
+
filterSelectionDrawerStatus: boolean;
|
|
104
|
+
filterList: FiltersResponse;
|
|
105
|
+
filterGroup: number;
|
|
106
|
+
} & import("pinia").PiniaCustomStateProperties<StoreState>) => boolean;
|
|
107
|
+
getFilterGroupCount: (state: {
|
|
108
|
+
recommendationCampaignUrls: Record<string, string>;
|
|
109
|
+
recommendationConfigs: {
|
|
110
|
+
cardsInRow: number;
|
|
111
|
+
currencySettings: {
|
|
112
|
+
name: string;
|
|
113
|
+
value: string;
|
|
114
|
+
symbol: string;
|
|
115
|
+
alignment: string;
|
|
116
|
+
decimalCount: string;
|
|
117
|
+
decimalSeparator: NumericSeparator;
|
|
118
|
+
thousandSeparator: NumericSeparator;
|
|
119
|
+
};
|
|
120
|
+
filters: {
|
|
121
|
+
type: string;
|
|
122
|
+
attribute: string;
|
|
123
|
+
operatorReplace: string;
|
|
124
|
+
operator: string;
|
|
125
|
+
innerGroupOperator: string;
|
|
126
|
+
outerGroupOperator: string;
|
|
127
|
+
value: string;
|
|
128
|
+
filterGroup: number;
|
|
129
|
+
filterNumber: number;
|
|
130
|
+
isValid: boolean;
|
|
131
|
+
}[];
|
|
132
|
+
id: number;
|
|
133
|
+
language: string;
|
|
134
|
+
orientation: Orientation;
|
|
135
|
+
productIds: string[];
|
|
136
|
+
recommendedProducts: [];
|
|
137
|
+
sendProductRequestFlag: false;
|
|
138
|
+
shuffleProducts: false;
|
|
139
|
+
strategy: string;
|
|
140
|
+
textTrimming: boolean;
|
|
141
|
+
unresponsive: boolean;
|
|
142
|
+
size: string;
|
|
143
|
+
};
|
|
144
|
+
recommendationProducts: {
|
|
145
|
+
image_url: string;
|
|
146
|
+
name: string;
|
|
147
|
+
item_id: string;
|
|
148
|
+
url: string;
|
|
149
|
+
in_stock: number;
|
|
150
|
+
price: {
|
|
151
|
+
[key: string]: number;
|
|
152
|
+
};
|
|
153
|
+
locale: string;
|
|
154
|
+
product_attributes: {
|
|
155
|
+
[key: string]: string;
|
|
156
|
+
};
|
|
157
|
+
category: string[];
|
|
158
|
+
discount: {
|
|
159
|
+
[key: string]: number;
|
|
160
|
+
};
|
|
161
|
+
original_price: {
|
|
162
|
+
[key: string]: number;
|
|
163
|
+
};
|
|
164
|
+
}[];
|
|
165
|
+
activePredictiveAlgorithms: number[];
|
|
166
|
+
languages: Languages;
|
|
167
|
+
currencyList: {
|
|
168
|
+
text: string;
|
|
169
|
+
value: string;
|
|
170
|
+
}[];
|
|
171
|
+
filterStatus: boolean;
|
|
172
|
+
filterSelectionDrawerStatus: boolean;
|
|
173
|
+
filterList: FiltersResponse;
|
|
174
|
+
filterGroup: number;
|
|
175
|
+
} & import("pinia").PiniaCustomStateProperties<StoreState>) => number;
|
|
176
|
+
getActivePredictiveAlgorithms: (state: {
|
|
177
|
+
recommendationCampaignUrls: Record<string, string>;
|
|
178
|
+
recommendationConfigs: {
|
|
179
|
+
cardsInRow: number;
|
|
180
|
+
currencySettings: {
|
|
181
|
+
name: string;
|
|
182
|
+
value: string;
|
|
183
|
+
symbol: string;
|
|
184
|
+
alignment: string;
|
|
185
|
+
decimalCount: string;
|
|
186
|
+
decimalSeparator: NumericSeparator;
|
|
187
|
+
thousandSeparator: NumericSeparator;
|
|
188
|
+
};
|
|
189
|
+
filters: {
|
|
190
|
+
type: string;
|
|
191
|
+
attribute: string;
|
|
192
|
+
operatorReplace: string;
|
|
193
|
+
operator: string;
|
|
194
|
+
innerGroupOperator: string;
|
|
195
|
+
outerGroupOperator: string;
|
|
196
|
+
value: string;
|
|
197
|
+
filterGroup: number;
|
|
198
|
+
filterNumber: number;
|
|
199
|
+
isValid: boolean;
|
|
200
|
+
}[];
|
|
201
|
+
id: number;
|
|
202
|
+
language: string;
|
|
203
|
+
orientation: Orientation;
|
|
204
|
+
productIds: string[];
|
|
205
|
+
recommendedProducts: [];
|
|
206
|
+
sendProductRequestFlag: false;
|
|
207
|
+
shuffleProducts: false;
|
|
208
|
+
strategy: string;
|
|
209
|
+
textTrimming: boolean;
|
|
210
|
+
unresponsive: boolean;
|
|
211
|
+
size: string;
|
|
212
|
+
};
|
|
213
|
+
recommendationProducts: {
|
|
214
|
+
image_url: string;
|
|
215
|
+
name: string;
|
|
216
|
+
item_id: string;
|
|
217
|
+
url: string;
|
|
218
|
+
in_stock: number;
|
|
219
|
+
price: {
|
|
220
|
+
[key: string]: number;
|
|
221
|
+
};
|
|
222
|
+
locale: string;
|
|
223
|
+
product_attributes: {
|
|
224
|
+
[key: string]: string;
|
|
225
|
+
};
|
|
226
|
+
category: string[];
|
|
227
|
+
discount: {
|
|
228
|
+
[key: string]: number;
|
|
229
|
+
};
|
|
230
|
+
original_price: {
|
|
231
|
+
[key: string]: number;
|
|
232
|
+
};
|
|
233
|
+
}[];
|
|
234
|
+
activePredictiveAlgorithms: number[];
|
|
235
|
+
languages: Languages;
|
|
236
|
+
currencyList: {
|
|
237
|
+
text: string;
|
|
238
|
+
value: string;
|
|
239
|
+
}[];
|
|
240
|
+
filterStatus: boolean;
|
|
241
|
+
filterSelectionDrawerStatus: boolean;
|
|
242
|
+
filterList: FiltersResponse;
|
|
243
|
+
filterGroup: number;
|
|
244
|
+
} & import("pinia").PiniaCustomStateProperties<StoreState>) => {
|
|
245
|
+
text: string;
|
|
246
|
+
value: string;
|
|
247
|
+
}[];
|
|
248
|
+
getLanguages: (state: {
|
|
249
|
+
recommendationCampaignUrls: Record<string, string>;
|
|
250
|
+
recommendationConfigs: {
|
|
251
|
+
cardsInRow: number;
|
|
252
|
+
currencySettings: {
|
|
253
|
+
name: string;
|
|
254
|
+
value: string;
|
|
255
|
+
symbol: string;
|
|
256
|
+
alignment: string;
|
|
257
|
+
decimalCount: string;
|
|
258
|
+
decimalSeparator: NumericSeparator;
|
|
259
|
+
thousandSeparator: NumericSeparator;
|
|
260
|
+
};
|
|
261
|
+
filters: {
|
|
262
|
+
type: string;
|
|
263
|
+
attribute: string;
|
|
264
|
+
operatorReplace: string;
|
|
265
|
+
operator: string;
|
|
266
|
+
innerGroupOperator: string;
|
|
267
|
+
outerGroupOperator: string;
|
|
268
|
+
value: string;
|
|
269
|
+
filterGroup: number;
|
|
270
|
+
filterNumber: number;
|
|
271
|
+
isValid: boolean;
|
|
272
|
+
}[];
|
|
273
|
+
id: number;
|
|
274
|
+
language: string;
|
|
275
|
+
orientation: Orientation;
|
|
276
|
+
productIds: string[];
|
|
277
|
+
recommendedProducts: [];
|
|
278
|
+
sendProductRequestFlag: false;
|
|
279
|
+
shuffleProducts: false;
|
|
280
|
+
strategy: string;
|
|
281
|
+
textTrimming: boolean;
|
|
282
|
+
unresponsive: boolean;
|
|
283
|
+
size: string;
|
|
284
|
+
};
|
|
285
|
+
recommendationProducts: {
|
|
286
|
+
image_url: string;
|
|
287
|
+
name: string;
|
|
288
|
+
item_id: string;
|
|
289
|
+
url: string;
|
|
290
|
+
in_stock: number;
|
|
291
|
+
price: {
|
|
292
|
+
[key: string]: number;
|
|
293
|
+
};
|
|
294
|
+
locale: string;
|
|
295
|
+
product_attributes: {
|
|
296
|
+
[key: string]: string;
|
|
297
|
+
};
|
|
298
|
+
category: string[];
|
|
299
|
+
discount: {
|
|
300
|
+
[key: string]: number;
|
|
301
|
+
};
|
|
302
|
+
original_price: {
|
|
303
|
+
[key: string]: number;
|
|
304
|
+
};
|
|
305
|
+
}[];
|
|
306
|
+
activePredictiveAlgorithms: number[];
|
|
307
|
+
languages: Languages;
|
|
308
|
+
currencyList: {
|
|
309
|
+
text: string;
|
|
310
|
+
value: string;
|
|
311
|
+
}[];
|
|
312
|
+
filterStatus: boolean;
|
|
313
|
+
filterSelectionDrawerStatus: boolean;
|
|
314
|
+
filterList: FiltersResponse;
|
|
315
|
+
filterGroup: number;
|
|
316
|
+
} & import("pinia").PiniaCustomStateProperties<StoreState>) => {
|
|
317
|
+
text: string;
|
|
318
|
+
value: string;
|
|
319
|
+
}[];
|
|
320
|
+
getCurrencySymbolList: (state: {
|
|
321
|
+
recommendationCampaignUrls: Record<string, string>;
|
|
322
|
+
recommendationConfigs: {
|
|
323
|
+
cardsInRow: number;
|
|
324
|
+
currencySettings: {
|
|
325
|
+
name: string;
|
|
326
|
+
value: string;
|
|
327
|
+
symbol: string;
|
|
328
|
+
alignment: string;
|
|
329
|
+
decimalCount: string;
|
|
330
|
+
decimalSeparator: NumericSeparator;
|
|
331
|
+
thousandSeparator: NumericSeparator;
|
|
332
|
+
};
|
|
333
|
+
filters: {
|
|
334
|
+
type: string;
|
|
335
|
+
attribute: string;
|
|
336
|
+
operatorReplace: string;
|
|
337
|
+
operator: string;
|
|
338
|
+
innerGroupOperator: string;
|
|
339
|
+
outerGroupOperator: string;
|
|
340
|
+
value: string;
|
|
341
|
+
filterGroup: number;
|
|
342
|
+
filterNumber: number;
|
|
343
|
+
isValid: boolean;
|
|
344
|
+
}[];
|
|
345
|
+
id: number;
|
|
346
|
+
language: string;
|
|
347
|
+
orientation: Orientation;
|
|
348
|
+
productIds: string[];
|
|
349
|
+
recommendedProducts: [];
|
|
350
|
+
sendProductRequestFlag: false;
|
|
351
|
+
shuffleProducts: false;
|
|
352
|
+
strategy: string;
|
|
353
|
+
textTrimming: boolean;
|
|
354
|
+
unresponsive: boolean;
|
|
355
|
+
size: string;
|
|
356
|
+
};
|
|
357
|
+
recommendationProducts: {
|
|
358
|
+
image_url: string;
|
|
359
|
+
name: string;
|
|
360
|
+
item_id: string;
|
|
361
|
+
url: string;
|
|
362
|
+
in_stock: number;
|
|
363
|
+
price: {
|
|
364
|
+
[key: string]: number;
|
|
365
|
+
};
|
|
366
|
+
locale: string;
|
|
367
|
+
product_attributes: {
|
|
368
|
+
[key: string]: string;
|
|
369
|
+
};
|
|
370
|
+
category: string[];
|
|
371
|
+
discount: {
|
|
372
|
+
[key: string]: number;
|
|
373
|
+
};
|
|
374
|
+
original_price: {
|
|
375
|
+
[key: string]: number;
|
|
376
|
+
};
|
|
377
|
+
}[];
|
|
378
|
+
activePredictiveAlgorithms: number[];
|
|
379
|
+
languages: Languages;
|
|
380
|
+
currencyList: {
|
|
381
|
+
text: string;
|
|
382
|
+
value: string;
|
|
383
|
+
}[];
|
|
384
|
+
filterStatus: boolean;
|
|
385
|
+
filterSelectionDrawerStatus: boolean;
|
|
386
|
+
filterList: FiltersResponse;
|
|
387
|
+
filterGroup: number;
|
|
388
|
+
} & import("pinia").PiniaCustomStateProperties<StoreState>) => {
|
|
389
|
+
text: string;
|
|
390
|
+
value: string;
|
|
391
|
+
}[];
|
|
392
|
+
getFilterList: (state: {
|
|
393
|
+
recommendationCampaignUrls: Record<string, string>;
|
|
394
|
+
recommendationConfigs: {
|
|
395
|
+
cardsInRow: number;
|
|
396
|
+
currencySettings: {
|
|
397
|
+
name: string;
|
|
398
|
+
value: string;
|
|
399
|
+
symbol: string;
|
|
400
|
+
alignment: string;
|
|
401
|
+
decimalCount: string;
|
|
402
|
+
decimalSeparator: NumericSeparator;
|
|
403
|
+
thousandSeparator: NumericSeparator;
|
|
404
|
+
};
|
|
405
|
+
filters: {
|
|
406
|
+
type: string;
|
|
407
|
+
attribute: string;
|
|
408
|
+
operatorReplace: string;
|
|
409
|
+
operator: string;
|
|
410
|
+
innerGroupOperator: string;
|
|
411
|
+
outerGroupOperator: string;
|
|
412
|
+
value: string;
|
|
413
|
+
filterGroup: number;
|
|
414
|
+
filterNumber: number;
|
|
415
|
+
isValid: boolean;
|
|
416
|
+
}[];
|
|
417
|
+
id: number;
|
|
418
|
+
language: string;
|
|
419
|
+
orientation: Orientation;
|
|
420
|
+
productIds: string[];
|
|
421
|
+
recommendedProducts: [];
|
|
422
|
+
sendProductRequestFlag: false;
|
|
423
|
+
shuffleProducts: false;
|
|
424
|
+
strategy: string;
|
|
425
|
+
textTrimming: boolean;
|
|
426
|
+
unresponsive: boolean;
|
|
427
|
+
size: string;
|
|
428
|
+
};
|
|
429
|
+
recommendationProducts: {
|
|
430
|
+
image_url: string;
|
|
431
|
+
name: string;
|
|
432
|
+
item_id: string;
|
|
433
|
+
url: string;
|
|
434
|
+
in_stock: number;
|
|
435
|
+
price: {
|
|
436
|
+
[key: string]: number;
|
|
437
|
+
};
|
|
438
|
+
locale: string;
|
|
439
|
+
product_attributes: {
|
|
440
|
+
[key: string]: string;
|
|
441
|
+
};
|
|
442
|
+
category: string[];
|
|
443
|
+
discount: {
|
|
444
|
+
[key: string]: number;
|
|
445
|
+
};
|
|
446
|
+
original_price: {
|
|
447
|
+
[key: string]: number;
|
|
448
|
+
};
|
|
449
|
+
}[];
|
|
450
|
+
activePredictiveAlgorithms: number[];
|
|
451
|
+
languages: Languages;
|
|
452
|
+
currencyList: {
|
|
453
|
+
text: string;
|
|
454
|
+
value: string;
|
|
455
|
+
}[];
|
|
456
|
+
filterStatus: boolean;
|
|
457
|
+
filterSelectionDrawerStatus: boolean;
|
|
458
|
+
filterList: FiltersResponse;
|
|
459
|
+
filterGroup: number;
|
|
460
|
+
} & import("pinia").PiniaCustomStateProperties<StoreState>) => {
|
|
461
|
+
text: string;
|
|
462
|
+
value: string;
|
|
463
|
+
type: string;
|
|
464
|
+
}[];
|
|
465
|
+
getSelectedFilterGroup: (state: {
|
|
466
|
+
recommendationCampaignUrls: Record<string, string>;
|
|
467
|
+
recommendationConfigs: {
|
|
468
|
+
cardsInRow: number;
|
|
469
|
+
currencySettings: {
|
|
470
|
+
name: string;
|
|
471
|
+
value: string;
|
|
472
|
+
symbol: string;
|
|
473
|
+
alignment: string;
|
|
474
|
+
decimalCount: string;
|
|
475
|
+
decimalSeparator: NumericSeparator;
|
|
476
|
+
thousandSeparator: NumericSeparator;
|
|
477
|
+
};
|
|
478
|
+
filters: {
|
|
479
|
+
type: string;
|
|
480
|
+
attribute: string;
|
|
481
|
+
operatorReplace: string;
|
|
482
|
+
operator: string;
|
|
483
|
+
innerGroupOperator: string;
|
|
484
|
+
outerGroupOperator: string;
|
|
485
|
+
value: string;
|
|
486
|
+
filterGroup: number;
|
|
487
|
+
filterNumber: number;
|
|
488
|
+
isValid: boolean;
|
|
489
|
+
}[];
|
|
490
|
+
id: number;
|
|
491
|
+
language: string;
|
|
492
|
+
orientation: Orientation;
|
|
493
|
+
productIds: string[];
|
|
494
|
+
recommendedProducts: [];
|
|
495
|
+
sendProductRequestFlag: false;
|
|
496
|
+
shuffleProducts: false;
|
|
497
|
+
strategy: string;
|
|
498
|
+
textTrimming: boolean;
|
|
499
|
+
unresponsive: boolean;
|
|
500
|
+
size: string;
|
|
501
|
+
};
|
|
502
|
+
recommendationProducts: {
|
|
503
|
+
image_url: string;
|
|
504
|
+
name: string;
|
|
505
|
+
item_id: string;
|
|
506
|
+
url: string;
|
|
507
|
+
in_stock: number;
|
|
508
|
+
price: {
|
|
509
|
+
[key: string]: number;
|
|
510
|
+
};
|
|
511
|
+
locale: string;
|
|
512
|
+
product_attributes: {
|
|
513
|
+
[key: string]: string;
|
|
514
|
+
};
|
|
515
|
+
category: string[];
|
|
516
|
+
discount: {
|
|
517
|
+
[key: string]: number;
|
|
518
|
+
};
|
|
519
|
+
original_price: {
|
|
520
|
+
[key: string]: number;
|
|
521
|
+
};
|
|
522
|
+
}[];
|
|
523
|
+
activePredictiveAlgorithms: number[];
|
|
524
|
+
languages: Languages;
|
|
525
|
+
currencyList: {
|
|
526
|
+
text: string;
|
|
527
|
+
value: string;
|
|
528
|
+
}[];
|
|
529
|
+
filterStatus: boolean;
|
|
530
|
+
filterSelectionDrawerStatus: boolean;
|
|
531
|
+
filterList: FiltersResponse;
|
|
532
|
+
filterGroup: number;
|
|
533
|
+
} & import("pinia").PiniaCustomStateProperties<StoreState>) => (groupId: number) => {
|
|
534
|
+
type: string;
|
|
535
|
+
attribute: string;
|
|
536
|
+
operatorReplace: string;
|
|
537
|
+
operator: string;
|
|
538
|
+
innerGroupOperator: string;
|
|
539
|
+
outerGroupOperator: string;
|
|
540
|
+
value: string;
|
|
541
|
+
filterGroup: number;
|
|
542
|
+
filterNumber: number;
|
|
543
|
+
isValid: boolean;
|
|
544
|
+
}[];
|
|
545
|
+
}, {
|
|
546
|
+
fetchRecommendationCreateData(): Promise<void>;
|
|
547
|
+
fetchRecommendationFilters(): Promise<void>;
|
|
548
|
+
addFilterGroup(filterGroup: number): void;
|
|
549
|
+
updateFilter(updatedFilter: Filter): void;
|
|
550
|
+
deleteFilter(filter: Filter): void;
|
|
551
|
+
addFilter(filter: Filter): void;
|
|
552
|
+
generateFilterQuery(): string;
|
|
553
|
+
fetchRecommendationProducts(): Promise<void>;
|
|
554
|
+
}>;
|
|
555
|
+
export {};
|