@useinsider/guido 3.18.1-beta.fefef3c → 3.18.2-beta.199ee77
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/README.md +3 -21
- package/dist/@types/config/schemas.js +51 -59
- package/dist/components/Guido.vue.js +4 -4
- package/dist/components/Guido.vue2.js +53 -55
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.js +7 -7
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue2.js +57 -82
- package/dist/components/organisms/extensions/recommendation/RemoveStrategyModal.vue2.js +22 -24
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +24 -28
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +34 -34
- package/dist/composables/useCustomInterfaceAppearance.js +42 -46
- package/dist/composables/useHttp.js +24 -22
- package/dist/enums/extensions/recommendationBlock.js +14 -17
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +85 -80
- package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +28 -72
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +44 -45
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +48 -93
- package/dist/extensions/Blocks/Recommendation/utils/nodeConfigWriter.js +7 -7
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +29 -28
- package/dist/package.json.js +1 -1
- package/dist/services/recommendationApi.js +84 -93
- package/dist/services/templateLibraryApi.js +17 -14
- package/dist/src/@types/config/schemas.d.ts +0 -16
- package/dist/src/composables/useConfig.d.ts +0 -4
- package/dist/src/enums/extensions/recommendationBlock.d.ts +0 -3
- package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +5 -1
- package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +0 -2
- package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +0 -4
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +13 -54
- package/dist/src/services/recommendationApi.d.ts +1 -2
- package/dist/src/stores/config.d.ts +0 -322
- package/dist/src/stores/onboarding.d.ts +10 -808
- package/dist/src/utils/genericUtil.d.ts +6 -0
- package/dist/src/utils/liquidDynamicContent.d.ts +20 -0
- package/dist/static/styles/components/recommendation-strategy.css.js +5 -70
- package/dist/stores/config.js +60 -74
- package/dist/stores/onboarding.js +36 -46
- package/dist/utils/genericUtil.js +63 -54
- package/dist/utils/liquidDynamicContent.js +15 -0
- package/dist/utils/templatePreparation.js +54 -52
- package/package.json +3 -3
- package/dist/components/organisms/extensions/recommendation/LegacyStrategyUpdatedModal.vue.js +0 -18
- package/dist/components/organisms/extensions/recommendation/LegacyStrategyUpdatedModal.vue2.js +0 -25
- package/dist/components/organisms/onboarding/RecommendationLegacyStrategyOnboarding.vue.js +0 -21
- package/dist/components/organisms/onboarding/RecommendationLegacyStrategyOnboarding.vue2.js +0 -46
- package/dist/components/organisms/onboarding/RecommendationStrategyOnboarding.vue.js +0 -21
- package/dist/components/organisms/onboarding/RecommendationStrategyOnboarding.vue2.js +0 -46
- package/dist/composables/useLegacyStrategyConversion.js +0 -61
- package/dist/extensions/Blocks/Recommendation/utils/legacyStrategyMigration.js +0 -72
- package/dist/src/components/organisms/extensions/recommendation/LegacyStrategyUpdatedModal.vue.d.ts +0 -2
- package/dist/src/components/organisms/onboarding/RecommendationLegacyStrategyOnboarding.vue.d.ts +0 -2
- package/dist/src/components/organisms/onboarding/RecommendationStrategyOnboarding.vue.d.ts +0 -2
- package/dist/src/composables/useLegacyStrategyConversion.d.ts +0 -3
- package/dist/src/extensions/Blocks/Recommendation/utils/legacyStrategyMigration.d.ts +0 -44
- package/dist/static/assets/icons/filled-arrow-rising.svg.js +0 -5
- package/dist/static/assets/icons/line-info.svg.js +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Orientation, Languages, Currency, NumericSeparator, FiltersResponse, Filter, RecommendationCampaignUrlValue, RecommendationProduct,
|
|
1
|
+
import type { Orientation, Languages, Currency, NumericSeparator, FiltersResponse, Filter, RecommendationCampaignUrlValue, RecommendationProduct, RrsStrategy } from '@@/Types/recommendation';
|
|
2
2
|
export interface PerBlockConfigs {
|
|
3
3
|
cardsInRow: number;
|
|
4
4
|
currencySettings: {
|
|
@@ -22,7 +22,6 @@ export interface PerBlockConfigs {
|
|
|
22
22
|
shuffleProducts: boolean;
|
|
23
23
|
strategy: string;
|
|
24
24
|
strategyId: string;
|
|
25
|
-
nodeConfigVersion: number;
|
|
26
25
|
textTrimming: boolean;
|
|
27
26
|
unresponsive: boolean;
|
|
28
27
|
size: string;
|
|
@@ -37,13 +36,21 @@ interface PerBlockState {
|
|
|
37
36
|
filterSelectionDrawerStatus: boolean;
|
|
38
37
|
assignStrategyDrawerStatus: boolean;
|
|
39
38
|
removeStrategyModalStatus: boolean;
|
|
40
|
-
legacyStrategyUpdatedModalStatus: boolean;
|
|
41
39
|
filterGroup: number;
|
|
42
40
|
/** Whether initial API data (filters, algorithms, products) has been fetched for this block */
|
|
43
41
|
isInitialized: boolean;
|
|
44
42
|
/** Snapshot of filters taken when the drawer opens, used to revert on cancel */
|
|
45
43
|
filterSnapshot: Filter[] | null;
|
|
46
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Fingerprint of the node config as this block's state last adopted it.
|
|
46
|
+
*
|
|
47
|
+
* Lives here, not on the control, because it is a claim ABOUT this state —
|
|
48
|
+
* "the store already holds that node config". Held on the control it
|
|
49
|
+
* outlived the state it described: `removeBlockState` tore the state down
|
|
50
|
+
* while the fingerprint survived, so re-dropping a saved module under the
|
|
51
|
+
* same id skipped the re-sync and kept the defaults (SD-150347).
|
|
52
|
+
*/
|
|
53
|
+
syncedConfigFingerprint: string | null;
|
|
47
54
|
}
|
|
48
55
|
/**
|
|
49
56
|
* Persisted-config subset used by `seedBlockUrlConfig` to reconstruct
|
|
@@ -60,6 +67,8 @@ export interface PerBlockUrlConfig {
|
|
|
60
67
|
filters: Filter[];
|
|
61
68
|
shuffleProducts: boolean;
|
|
62
69
|
currencyCode: string;
|
|
70
|
+
/** The displayed symbol, which is not the code — a TRY block shows `₺`. */
|
|
71
|
+
currencySymbol: string;
|
|
63
72
|
currencyAlignment: 'before' | 'after';
|
|
64
73
|
currencyDecimalCount: number;
|
|
65
74
|
currencyDecimalSeparator: string;
|
|
@@ -204,53 +213,6 @@ export declare const useRecommendationExtensionStore: import("pinia").StoreDefin
|
|
|
204
213
|
currentRecommendationId: number | null;
|
|
205
214
|
configVersion: number;
|
|
206
215
|
} & import("pinia").PiniaCustomStateProperties<StoreState>): boolean;
|
|
207
|
-
isLegacyStrategyBlock(): boolean;
|
|
208
|
-
legacyConversionLoading(state: {
|
|
209
|
-
recommendationCampaignUrls: Record<string, RecommendationCampaignUrlValue>;
|
|
210
|
-
activePredictiveAlgorithms: number[];
|
|
211
|
-
languages: Languages;
|
|
212
|
-
currencyList: {
|
|
213
|
-
text: string;
|
|
214
|
-
value: string;
|
|
215
|
-
}[];
|
|
216
|
-
filterList: FiltersResponse;
|
|
217
|
-
strategies: {
|
|
218
|
-
[x: string]: unknown;
|
|
219
|
-
strategy_id: number;
|
|
220
|
-
name: string;
|
|
221
|
-
status: string;
|
|
222
|
-
suitable_channels: string;
|
|
223
|
-
size?: (number | string) | undefined;
|
|
224
|
-
}[];
|
|
225
|
-
strategiesLoading: boolean;
|
|
226
|
-
strategyUrlTemplates: Record<string, string>;
|
|
227
|
-
blockStates: Record<number, PerBlockState>;
|
|
228
|
-
currentRecommendationId: number | null;
|
|
229
|
-
configVersion: number;
|
|
230
|
-
} & import("pinia").PiniaCustomStateProperties<StoreState>): boolean;
|
|
231
|
-
legacyStrategyUpdatedModalStatus(state: {
|
|
232
|
-
recommendationCampaignUrls: Record<string, RecommendationCampaignUrlValue>;
|
|
233
|
-
activePredictiveAlgorithms: number[];
|
|
234
|
-
languages: Languages;
|
|
235
|
-
currencyList: {
|
|
236
|
-
text: string;
|
|
237
|
-
value: string;
|
|
238
|
-
}[];
|
|
239
|
-
filterList: FiltersResponse;
|
|
240
|
-
strategies: {
|
|
241
|
-
[x: string]: unknown;
|
|
242
|
-
strategy_id: number;
|
|
243
|
-
name: string;
|
|
244
|
-
status: string;
|
|
245
|
-
suitable_channels: string;
|
|
246
|
-
size?: (number | string) | undefined;
|
|
247
|
-
}[];
|
|
248
|
-
strategiesLoading: boolean;
|
|
249
|
-
strategyUrlTemplates: Record<string, string>;
|
|
250
|
-
blockStates: Record<number, PerBlockState>;
|
|
251
|
-
currentRecommendationId: number | null;
|
|
252
|
-
configVersion: number;
|
|
253
|
-
} & import("pinia").PiniaCustomStateProperties<StoreState>): boolean;
|
|
254
216
|
assignedStrategy(state: {
|
|
255
217
|
recommendationCampaignUrls: Record<string, RecommendationCampaignUrlValue>;
|
|
256
218
|
activePredictiveAlgorithms: number[];
|
|
@@ -480,14 +442,11 @@ export declare const useRecommendationExtensionStore: import("pinia").StoreDefin
|
|
|
480
442
|
cancelFilterDrawer(): void;
|
|
481
443
|
openAssignStrategyDrawer(): void;
|
|
482
444
|
closeAssignStrategyDrawer(): void;
|
|
483
|
-
openLegacyStrategyUpdatedModal(): void;
|
|
484
|
-
closeLegacyStrategyUpdatedModal(): void;
|
|
485
445
|
openRemoveStrategyModal(): void;
|
|
486
446
|
closeRemoveStrategyModal(): void;
|
|
487
447
|
fetchStrategies(): Promise<void>;
|
|
488
448
|
resolveStrategyUrlTemplate(strategy: RrsStrategy, currency: string): Promise<string>;
|
|
489
449
|
assignStrategy(strategy: RrsStrategy): void;
|
|
490
|
-
convertLegacyStrategy(payload: RrsMigrationPayload, target?: RrsMigrationTarget): Promise<string>;
|
|
491
450
|
removeStrategy(): void;
|
|
492
451
|
fetchRecommendationCreateData(): Promise<void>;
|
|
493
452
|
fetchRecommendationFilters(): Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { InitialResponse, FiltersResponse, RecommendationProduct, RecommendationProductsParams, RrsEndpointGenerateResponse,
|
|
1
|
+
import type { InitialResponse, FiltersResponse, RecommendationProduct, RecommendationProductsParams, RrsEndpointGenerateResponse, RrsStrategy } from '@@/Types/recommendation';
|
|
2
2
|
export declare const useRecommendationApi: () => {
|
|
3
3
|
fetchRecommendationCreateData: () => Promise<InitialResponse>;
|
|
4
4
|
fetchRecommendationFilters: () => Promise<FiltersResponse>;
|
|
@@ -6,5 +6,4 @@ export declare const useRecommendationApi: () => {
|
|
|
6
6
|
fetchRecommendationProductsByUrl: (url: string) => Promise<RecommendationProduct[]>;
|
|
7
7
|
fetchRecommendationStrategies: () => Promise<RrsStrategy[]>;
|
|
8
8
|
generateStrategyEndpoint: (strategy: RrsStrategy, currency: string) => Promise<RrsEndpointGenerateResponse | null>;
|
|
9
|
-
migrateLegacyStrategy: (payload: RrsMigrationPayload, target?: RrsMigrationTarget) => Promise<string>;
|
|
10
9
|
};
|
|
@@ -16,8 +16,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
16
16
|
templateId: string;
|
|
17
17
|
userId: string;
|
|
18
18
|
variationId?: string | undefined;
|
|
19
|
-
campaignId?: string | undefined;
|
|
20
|
-
templateLibraryId?: string | undefined;
|
|
21
19
|
};
|
|
22
20
|
partner: {
|
|
23
21
|
name: string;
|
|
@@ -159,8 +157,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
159
157
|
templateId: string;
|
|
160
158
|
userId: string;
|
|
161
159
|
variationId?: string | undefined;
|
|
162
|
-
campaignId?: string | undefined;
|
|
163
|
-
templateLibraryId?: string | undefined;
|
|
164
160
|
};
|
|
165
161
|
partner: {
|
|
166
162
|
name: string;
|
|
@@ -302,8 +298,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
302
298
|
templateId: string;
|
|
303
299
|
userId: string;
|
|
304
300
|
variationId?: string | undefined;
|
|
305
|
-
campaignId?: string | undefined;
|
|
306
|
-
templateLibraryId?: string | undefined;
|
|
307
301
|
};
|
|
308
302
|
partner: {
|
|
309
303
|
name: string;
|
|
@@ -445,8 +439,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
445
439
|
templateId: string;
|
|
446
440
|
userId: string;
|
|
447
441
|
variationId?: string | undefined;
|
|
448
|
-
campaignId?: string | undefined;
|
|
449
|
-
templateLibraryId?: string | undefined;
|
|
450
442
|
};
|
|
451
443
|
partner: {
|
|
452
444
|
name: string;
|
|
@@ -588,8 +580,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
588
580
|
templateId: string;
|
|
589
581
|
userId: string;
|
|
590
582
|
variationId?: string | undefined;
|
|
591
|
-
campaignId?: string | undefined;
|
|
592
|
-
templateLibraryId?: string | undefined;
|
|
593
583
|
};
|
|
594
584
|
partner: {
|
|
595
585
|
name: string;
|
|
@@ -731,8 +721,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
731
721
|
templateId: string;
|
|
732
722
|
userId: string;
|
|
733
723
|
variationId?: string | undefined;
|
|
734
|
-
campaignId?: string | undefined;
|
|
735
|
-
templateLibraryId?: string | undefined;
|
|
736
724
|
};
|
|
737
725
|
partner: {
|
|
738
726
|
name: string;
|
|
@@ -874,8 +862,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
874
862
|
templateId: string;
|
|
875
863
|
userId: string;
|
|
876
864
|
variationId?: string | undefined;
|
|
877
|
-
campaignId?: string | undefined;
|
|
878
|
-
templateLibraryId?: string | undefined;
|
|
879
865
|
};
|
|
880
866
|
partner: {
|
|
881
867
|
name: string;
|
|
@@ -1017,8 +1003,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1017
1003
|
templateId: string;
|
|
1018
1004
|
userId: string;
|
|
1019
1005
|
variationId?: string | undefined;
|
|
1020
|
-
campaignId?: string | undefined;
|
|
1021
|
-
templateLibraryId?: string | undefined;
|
|
1022
1006
|
};
|
|
1023
1007
|
partner: {
|
|
1024
1008
|
name: string;
|
|
@@ -1160,8 +1144,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1160
1144
|
templateId: string;
|
|
1161
1145
|
userId: string;
|
|
1162
1146
|
variationId?: string | undefined;
|
|
1163
|
-
campaignId?: string | undefined;
|
|
1164
|
-
templateLibraryId?: string | undefined;
|
|
1165
1147
|
};
|
|
1166
1148
|
partner: {
|
|
1167
1149
|
name: string;
|
|
@@ -1303,8 +1285,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1303
1285
|
templateId: string;
|
|
1304
1286
|
userId: string;
|
|
1305
1287
|
variationId?: string | undefined;
|
|
1306
|
-
campaignId?: string | undefined;
|
|
1307
|
-
templateLibraryId?: string | undefined;
|
|
1308
1288
|
};
|
|
1309
1289
|
partner: {
|
|
1310
1290
|
name: string;
|
|
@@ -1446,8 +1426,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1446
1426
|
templateId: string;
|
|
1447
1427
|
userId: string;
|
|
1448
1428
|
variationId?: string | undefined;
|
|
1449
|
-
campaignId?: string | undefined;
|
|
1450
|
-
templateLibraryId?: string | undefined;
|
|
1451
1429
|
};
|
|
1452
1430
|
partner: {
|
|
1453
1431
|
name: string;
|
|
@@ -1589,294 +1567,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1589
1567
|
templateId: string;
|
|
1590
1568
|
userId: string;
|
|
1591
1569
|
variationId?: string | undefined;
|
|
1592
|
-
campaignId?: string | undefined;
|
|
1593
|
-
templateLibraryId?: string | undefined;
|
|
1594
|
-
};
|
|
1595
|
-
partner: {
|
|
1596
|
-
name: string;
|
|
1597
|
-
productType: 60 | 49 | 97;
|
|
1598
|
-
messageType: 1 | 2;
|
|
1599
|
-
username: string;
|
|
1600
|
-
fallbackFont?: {
|
|
1601
|
-
name: string;
|
|
1602
|
-
family: string;
|
|
1603
|
-
} | undefined;
|
|
1604
|
-
};
|
|
1605
|
-
template: {
|
|
1606
|
-
html: string;
|
|
1607
|
-
css: string;
|
|
1608
|
-
preselectedDynamicContent: {
|
|
1609
|
-
text: string;
|
|
1610
|
-
value: string;
|
|
1611
|
-
fallback?: string | undefined;
|
|
1612
|
-
format?: {
|
|
1613
|
-
key: string;
|
|
1614
|
-
value: string;
|
|
1615
|
-
} | undefined;
|
|
1616
|
-
}[];
|
|
1617
|
-
dynamicContentList: {
|
|
1618
|
-
[x: string]: import("../library").DynamicContentNode[];
|
|
1619
|
-
};
|
|
1620
|
-
customFieldAttributes: string[];
|
|
1621
|
-
selectedUnsubscribePages: number[];
|
|
1622
|
-
forceRecreate: boolean;
|
|
1623
|
-
trackIdCounter: number;
|
|
1624
|
-
migration: {
|
|
1625
|
-
recommendationConfigs: {
|
|
1626
|
-
[x: string]: {
|
|
1627
|
-
id?: number | undefined;
|
|
1628
|
-
decimalCount?: string | number | undefined;
|
|
1629
|
-
productIds?: unknown[] | undefined;
|
|
1630
|
-
sendProductRequestFlag?: boolean | undefined;
|
|
1631
|
-
shuffleProducts?: boolean | undefined;
|
|
1632
|
-
filters?: unknown[] | undefined;
|
|
1633
|
-
currency?: string | undefined;
|
|
1634
|
-
currencySettings?: unknown;
|
|
1635
|
-
language?: string | undefined;
|
|
1636
|
-
strategy?: string | undefined;
|
|
1637
|
-
recommendedProducts?: unknown[] | undefined;
|
|
1638
|
-
cardsInRow?: number | undefined;
|
|
1639
|
-
mobileRightPadding?: number | undefined;
|
|
1640
|
-
mobileLeftPadding?: number | undefined;
|
|
1641
|
-
unresponsive?: boolean | undefined;
|
|
1642
|
-
orientation?: string | undefined;
|
|
1643
|
-
textTrimming?: boolean | undefined;
|
|
1644
|
-
blockType?: string | undefined;
|
|
1645
|
-
size?: string | number | undefined;
|
|
1646
|
-
verticalResponsiveness?: boolean | undefined;
|
|
1647
|
-
isPriceMovedToNextLine?: boolean | undefined;
|
|
1648
|
-
isPriceDeletedForZeroSale?: boolean | undefined;
|
|
1649
|
-
} & {
|
|
1650
|
-
[key: string]: unknown;
|
|
1651
|
-
};
|
|
1652
|
-
};
|
|
1653
|
-
};
|
|
1654
|
-
};
|
|
1655
|
-
editor: {
|
|
1656
|
-
locale: string;
|
|
1657
|
-
translationsPath: string;
|
|
1658
|
-
migrationDate: number;
|
|
1659
|
-
emailHeader: {
|
|
1660
|
-
senderName: string;
|
|
1661
|
-
subject: string;
|
|
1662
|
-
};
|
|
1663
|
-
savedModulesFolderName: string;
|
|
1664
|
-
defaultModulesFolderName: string;
|
|
1665
|
-
};
|
|
1666
|
-
ui: {
|
|
1667
|
-
showHeader: boolean;
|
|
1668
|
-
backButtonLabel?: string | undefined;
|
|
1669
|
-
};
|
|
1670
|
-
features: {
|
|
1671
|
-
dynamicContent: boolean;
|
|
1672
|
-
saveAsTemplate: boolean;
|
|
1673
|
-
versionHistory: boolean;
|
|
1674
|
-
testMessage: boolean;
|
|
1675
|
-
displayConditions: boolean;
|
|
1676
|
-
unsubscribe: boolean;
|
|
1677
|
-
modulesDisabled: boolean;
|
|
1678
|
-
liquidSyntax: boolean;
|
|
1679
|
-
autosave: boolean;
|
|
1680
|
-
allowlistEnabled: boolean;
|
|
1681
|
-
linkTrackingIds: boolean;
|
|
1682
|
-
reusableRecommendationStrategy: boolean;
|
|
1683
|
-
};
|
|
1684
|
-
blocks: {
|
|
1685
|
-
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
1686
|
-
includeCustoms: ("dynamic-content" | "checkbox-block" | "radio-button-block" | "recommendation-block" | "unsubscribe-block" | "coupon-block" | "items-block")[];
|
|
1687
|
-
};
|
|
1688
|
-
compiler: {
|
|
1689
|
-
customRules: ({
|
|
1690
|
-
type: "replace";
|
|
1691
|
-
search: string;
|
|
1692
|
-
replacement: string;
|
|
1693
|
-
replaceAll?: boolean | undefined;
|
|
1694
|
-
id: string;
|
|
1695
|
-
description?: string | undefined;
|
|
1696
|
-
priority: number;
|
|
1697
|
-
} | {
|
|
1698
|
-
type: "regex";
|
|
1699
|
-
pattern: string;
|
|
1700
|
-
replacement: string;
|
|
1701
|
-
flags?: string | undefined;
|
|
1702
|
-
id: string;
|
|
1703
|
-
description?: string | undefined;
|
|
1704
|
-
priority: number;
|
|
1705
|
-
} | {
|
|
1706
|
-
type: "remove";
|
|
1707
|
-
targets: string[];
|
|
1708
|
-
id: string;
|
|
1709
|
-
description?: string | undefined;
|
|
1710
|
-
priority: number;
|
|
1711
|
-
} | {
|
|
1712
|
-
type: "custom";
|
|
1713
|
-
processor: (html: string) => string;
|
|
1714
|
-
id: string;
|
|
1715
|
-
description?: string | undefined;
|
|
1716
|
-
priority: number;
|
|
1717
|
-
})[];
|
|
1718
|
-
ignoreDefaultRules: boolean;
|
|
1719
|
-
};
|
|
1720
|
-
callbacks: {
|
|
1721
|
-
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
1722
|
-
};
|
|
1723
|
-
} | null;
|
|
1724
|
-
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => string;
|
|
1725
|
-
/**
|
|
1726
|
-
* Get the campaign ID
|
|
1727
|
-
*/
|
|
1728
|
-
campaignId: (state: {
|
|
1729
|
-
initialized: boolean;
|
|
1730
|
-
config: {
|
|
1731
|
-
identity: {
|
|
1732
|
-
templateId: string;
|
|
1733
|
-
userId: string;
|
|
1734
|
-
variationId?: string | undefined;
|
|
1735
|
-
campaignId?: string | undefined;
|
|
1736
|
-
templateLibraryId?: string | undefined;
|
|
1737
|
-
};
|
|
1738
|
-
partner: {
|
|
1739
|
-
name: string;
|
|
1740
|
-
productType: 60 | 49 | 97;
|
|
1741
|
-
messageType: 1 | 2;
|
|
1742
|
-
username: string;
|
|
1743
|
-
fallbackFont?: {
|
|
1744
|
-
name: string;
|
|
1745
|
-
family: string;
|
|
1746
|
-
} | undefined;
|
|
1747
|
-
};
|
|
1748
|
-
template: {
|
|
1749
|
-
html: string;
|
|
1750
|
-
css: string;
|
|
1751
|
-
preselectedDynamicContent: {
|
|
1752
|
-
text: string;
|
|
1753
|
-
value: string;
|
|
1754
|
-
fallback?: string | undefined;
|
|
1755
|
-
format?: {
|
|
1756
|
-
key: string;
|
|
1757
|
-
value: string;
|
|
1758
|
-
} | undefined;
|
|
1759
|
-
}[];
|
|
1760
|
-
dynamicContentList: {
|
|
1761
|
-
[x: string]: import("../library").DynamicContentNode[];
|
|
1762
|
-
};
|
|
1763
|
-
customFieldAttributes: string[];
|
|
1764
|
-
selectedUnsubscribePages: number[];
|
|
1765
|
-
forceRecreate: boolean;
|
|
1766
|
-
trackIdCounter: number;
|
|
1767
|
-
migration: {
|
|
1768
|
-
recommendationConfigs: {
|
|
1769
|
-
[x: string]: {
|
|
1770
|
-
id?: number | undefined;
|
|
1771
|
-
decimalCount?: string | number | undefined;
|
|
1772
|
-
productIds?: unknown[] | undefined;
|
|
1773
|
-
sendProductRequestFlag?: boolean | undefined;
|
|
1774
|
-
shuffleProducts?: boolean | undefined;
|
|
1775
|
-
filters?: unknown[] | undefined;
|
|
1776
|
-
currency?: string | undefined;
|
|
1777
|
-
currencySettings?: unknown;
|
|
1778
|
-
language?: string | undefined;
|
|
1779
|
-
strategy?: string | undefined;
|
|
1780
|
-
recommendedProducts?: unknown[] | undefined;
|
|
1781
|
-
cardsInRow?: number | undefined;
|
|
1782
|
-
mobileRightPadding?: number | undefined;
|
|
1783
|
-
mobileLeftPadding?: number | undefined;
|
|
1784
|
-
unresponsive?: boolean | undefined;
|
|
1785
|
-
orientation?: string | undefined;
|
|
1786
|
-
textTrimming?: boolean | undefined;
|
|
1787
|
-
blockType?: string | undefined;
|
|
1788
|
-
size?: string | number | undefined;
|
|
1789
|
-
verticalResponsiveness?: boolean | undefined;
|
|
1790
|
-
isPriceMovedToNextLine?: boolean | undefined;
|
|
1791
|
-
isPriceDeletedForZeroSale?: boolean | undefined;
|
|
1792
|
-
} & {
|
|
1793
|
-
[key: string]: unknown;
|
|
1794
|
-
};
|
|
1795
|
-
};
|
|
1796
|
-
};
|
|
1797
|
-
};
|
|
1798
|
-
editor: {
|
|
1799
|
-
locale: string;
|
|
1800
|
-
translationsPath: string;
|
|
1801
|
-
migrationDate: number;
|
|
1802
|
-
emailHeader: {
|
|
1803
|
-
senderName: string;
|
|
1804
|
-
subject: string;
|
|
1805
|
-
};
|
|
1806
|
-
savedModulesFolderName: string;
|
|
1807
|
-
defaultModulesFolderName: string;
|
|
1808
|
-
};
|
|
1809
|
-
ui: {
|
|
1810
|
-
showHeader: boolean;
|
|
1811
|
-
backButtonLabel?: string | undefined;
|
|
1812
|
-
};
|
|
1813
|
-
features: {
|
|
1814
|
-
dynamicContent: boolean;
|
|
1815
|
-
saveAsTemplate: boolean;
|
|
1816
|
-
versionHistory: boolean;
|
|
1817
|
-
testMessage: boolean;
|
|
1818
|
-
displayConditions: boolean;
|
|
1819
|
-
unsubscribe: boolean;
|
|
1820
|
-
modulesDisabled: boolean;
|
|
1821
|
-
liquidSyntax: boolean;
|
|
1822
|
-
autosave: boolean;
|
|
1823
|
-
allowlistEnabled: boolean;
|
|
1824
|
-
linkTrackingIds: boolean;
|
|
1825
|
-
reusableRecommendationStrategy: boolean;
|
|
1826
|
-
};
|
|
1827
|
-
blocks: {
|
|
1828
|
-
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
1829
|
-
includeCustoms: ("dynamic-content" | "checkbox-block" | "radio-button-block" | "recommendation-block" | "unsubscribe-block" | "coupon-block" | "items-block")[];
|
|
1830
|
-
};
|
|
1831
|
-
compiler: {
|
|
1832
|
-
customRules: ({
|
|
1833
|
-
type: "replace";
|
|
1834
|
-
search: string;
|
|
1835
|
-
replacement: string;
|
|
1836
|
-
replaceAll?: boolean | undefined;
|
|
1837
|
-
id: string;
|
|
1838
|
-
description?: string | undefined;
|
|
1839
|
-
priority: number;
|
|
1840
|
-
} | {
|
|
1841
|
-
type: "regex";
|
|
1842
|
-
pattern: string;
|
|
1843
|
-
replacement: string;
|
|
1844
|
-
flags?: string | undefined;
|
|
1845
|
-
id: string;
|
|
1846
|
-
description?: string | undefined;
|
|
1847
|
-
priority: number;
|
|
1848
|
-
} | {
|
|
1849
|
-
type: "remove";
|
|
1850
|
-
targets: string[];
|
|
1851
|
-
id: string;
|
|
1852
|
-
description?: string | undefined;
|
|
1853
|
-
priority: number;
|
|
1854
|
-
} | {
|
|
1855
|
-
type: "custom";
|
|
1856
|
-
processor: (html: string) => string;
|
|
1857
|
-
id: string;
|
|
1858
|
-
description?: string | undefined;
|
|
1859
|
-
priority: number;
|
|
1860
|
-
})[];
|
|
1861
|
-
ignoreDefaultRules: boolean;
|
|
1862
|
-
};
|
|
1863
|
-
callbacks: {
|
|
1864
|
-
externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
|
|
1865
|
-
};
|
|
1866
|
-
} | null;
|
|
1867
|
-
} & import("pinia").PiniaCustomStateProperties<ConfigStoreState>) => string;
|
|
1868
|
-
/**
|
|
1869
|
-
* Get the template-library ID of the host template
|
|
1870
|
-
*/
|
|
1871
|
-
templateLibraryId: (state: {
|
|
1872
|
-
initialized: boolean;
|
|
1873
|
-
config: {
|
|
1874
|
-
identity: {
|
|
1875
|
-
templateId: string;
|
|
1876
|
-
userId: string;
|
|
1877
|
-
variationId?: string | undefined;
|
|
1878
|
-
campaignId?: string | undefined;
|
|
1879
|
-
templateLibraryId?: string | undefined;
|
|
1880
1570
|
};
|
|
1881
1571
|
partner: {
|
|
1882
1572
|
name: string;
|
|
@@ -2018,8 +1708,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2018
1708
|
templateId: string;
|
|
2019
1709
|
userId: string;
|
|
2020
1710
|
variationId?: string | undefined;
|
|
2021
|
-
campaignId?: string | undefined;
|
|
2022
|
-
templateLibraryId?: string | undefined;
|
|
2023
1711
|
};
|
|
2024
1712
|
partner: {
|
|
2025
1713
|
name: string;
|
|
@@ -2161,8 +1849,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2161
1849
|
templateId: string;
|
|
2162
1850
|
userId: string;
|
|
2163
1851
|
variationId?: string | undefined;
|
|
2164
|
-
campaignId?: string | undefined;
|
|
2165
|
-
templateLibraryId?: string | undefined;
|
|
2166
1852
|
};
|
|
2167
1853
|
partner: {
|
|
2168
1854
|
name: string;
|
|
@@ -2304,8 +1990,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2304
1990
|
templateId: string;
|
|
2305
1991
|
userId: string;
|
|
2306
1992
|
variationId?: string | undefined;
|
|
2307
|
-
campaignId?: string | undefined;
|
|
2308
|
-
templateLibraryId?: string | undefined;
|
|
2309
1993
|
};
|
|
2310
1994
|
partner: {
|
|
2311
1995
|
name: string;
|
|
@@ -2447,8 +2131,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2447
2131
|
templateId: string;
|
|
2448
2132
|
userId: string;
|
|
2449
2133
|
variationId?: string | undefined;
|
|
2450
|
-
campaignId?: string | undefined;
|
|
2451
|
-
templateLibraryId?: string | undefined;
|
|
2452
2134
|
};
|
|
2453
2135
|
partner: {
|
|
2454
2136
|
name: string;
|
|
@@ -2590,8 +2272,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2590
2272
|
templateId: string;
|
|
2591
2273
|
userId: string;
|
|
2592
2274
|
variationId?: string | undefined;
|
|
2593
|
-
campaignId?: string | undefined;
|
|
2594
|
-
templateLibraryId?: string | undefined;
|
|
2595
2275
|
};
|
|
2596
2276
|
partner: {
|
|
2597
2277
|
name: string;
|
|
@@ -2735,8 +2415,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2735
2415
|
templateId: string;
|
|
2736
2416
|
userId: string;
|
|
2737
2417
|
variationId?: string | undefined;
|
|
2738
|
-
campaignId?: string | undefined;
|
|
2739
|
-
templateLibraryId?: string | undefined;
|
|
2740
2418
|
};
|
|
2741
2419
|
partner: {
|
|
2742
2420
|
name: string;
|