@tolinax/ayoune-interfaces 2024.9.0 → 2024.9.2
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.
|
@@ -1,4 +1,87 @@
|
|
|
1
1
|
import { IDefaultFields } from "./IDefaultFields";
|
|
2
|
+
import { ICostRun } from "./IMarketResearch";
|
|
3
|
+
interface IFetchSettings {
|
|
4
|
+
provider: string;
|
|
5
|
+
withAds: boolean;
|
|
6
|
+
withCost: boolean;
|
|
7
|
+
costs: boolean;
|
|
8
|
+
costOnly: boolean;
|
|
9
|
+
synonyms: boolean;
|
|
10
|
+
questions: boolean;
|
|
11
|
+
prepositions: boolean;
|
|
12
|
+
comparisons: boolean;
|
|
13
|
+
alphabeticals: boolean;
|
|
14
|
+
monitorAdHijacking: boolean;
|
|
15
|
+
monitorBrandBidding: boolean;
|
|
16
|
+
manageBrandBidding: boolean;
|
|
17
|
+
monitorPla: boolean;
|
|
18
|
+
monitorKeywordInclusion: boolean;
|
|
19
|
+
keepResults: boolean;
|
|
20
|
+
takeScreenShot: boolean;
|
|
21
|
+
takeFullScreenShot: boolean;
|
|
22
|
+
checkForCampaign: boolean;
|
|
23
|
+
positionsToMonitor: number[];
|
|
24
|
+
}
|
|
25
|
+
interface IResearchConfig {
|
|
26
|
+
frequency: number;
|
|
27
|
+
active: boolean;
|
|
28
|
+
permanently: boolean;
|
|
29
|
+
crawlUntil?: Date;
|
|
30
|
+
crawlDuration: number;
|
|
31
|
+
advancedCrawling: boolean;
|
|
32
|
+
start: number;
|
|
33
|
+
evaluationDuration: number;
|
|
34
|
+
devices: string[];
|
|
35
|
+
matchType: string;
|
|
36
|
+
lastCheck?: Date;
|
|
37
|
+
nextCheck?: Date;
|
|
38
|
+
}
|
|
39
|
+
interface ICoreCrawlingConfig {
|
|
40
|
+
regions: string[];
|
|
41
|
+
timeFrames: {
|
|
42
|
+
dow: number;
|
|
43
|
+
from: number;
|
|
44
|
+
to: number;
|
|
45
|
+
frequency: number;
|
|
46
|
+
}[];
|
|
47
|
+
}
|
|
48
|
+
interface IResearchMeta {
|
|
49
|
+
callsPerDay: number;
|
|
50
|
+
callsPerMonth: number;
|
|
51
|
+
regionStats: {
|
|
52
|
+
region?: string;
|
|
53
|
+
crawls: number;
|
|
54
|
+
}[];
|
|
55
|
+
}
|
|
56
|
+
interface IAdHijackerConfig {
|
|
57
|
+
mode?: "tracker" | "chain";
|
|
58
|
+
trackerDomain?: string;
|
|
59
|
+
redirectChain: {
|
|
60
|
+
url?: string;
|
|
61
|
+
}[];
|
|
62
|
+
resolveOthers: boolean;
|
|
63
|
+
excludes: {
|
|
64
|
+
domain?: string;
|
|
65
|
+
note?: string;
|
|
66
|
+
}[];
|
|
67
|
+
}
|
|
68
|
+
interface IBrandBidderConfig {
|
|
69
|
+
brands: {
|
|
70
|
+
brand?: string;
|
|
71
|
+
}[];
|
|
72
|
+
blackList: {
|
|
73
|
+
domain?: string;
|
|
74
|
+
note?: string;
|
|
75
|
+
}[];
|
|
76
|
+
whiteList: {
|
|
77
|
+
domain?: string;
|
|
78
|
+
note?: string;
|
|
79
|
+
}[];
|
|
80
|
+
partnerList: {
|
|
81
|
+
domain?: string;
|
|
82
|
+
note?: string;
|
|
83
|
+
}[];
|
|
84
|
+
}
|
|
2
85
|
export interface IKeywordResearch extends IDefaultFields {
|
|
3
86
|
name: string;
|
|
4
87
|
_customerID: ObjectId;
|
|
@@ -18,113 +101,16 @@ export interface IKeywordResearch extends IDefaultFields {
|
|
|
18
101
|
fetchStatus: string;
|
|
19
102
|
keywords?: string[];
|
|
20
103
|
market: string;
|
|
21
|
-
config:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
crawlDuration: number;
|
|
27
|
-
advancedCrawling: boolean;
|
|
28
|
-
start: number;
|
|
29
|
-
evaluationDuration: number;
|
|
30
|
-
devices: string[];
|
|
31
|
-
matchType: string;
|
|
32
|
-
lastCheck?: Date;
|
|
33
|
-
nextCheck?: Date;
|
|
34
|
-
};
|
|
35
|
-
crawlingConfig: {
|
|
36
|
-
regions: string[];
|
|
37
|
-
timeFrames: {
|
|
38
|
-
dow: number;
|
|
39
|
-
from: number;
|
|
40
|
-
to: number;
|
|
41
|
-
frequency: number;
|
|
42
|
-
}[];
|
|
43
|
-
};
|
|
44
|
-
meta: {
|
|
45
|
-
callsPerDay: number;
|
|
46
|
-
callsPerMonth: number;
|
|
47
|
-
regionStats: {
|
|
48
|
-
region?: string;
|
|
49
|
-
crawls: number;
|
|
50
|
-
}[];
|
|
51
|
-
};
|
|
52
|
-
fetchSettings: {
|
|
53
|
-
provider: string;
|
|
54
|
-
withAds: boolean;
|
|
55
|
-
withCost: boolean;
|
|
56
|
-
costs: boolean;
|
|
57
|
-
costOnly: boolean;
|
|
58
|
-
synonyms: boolean;
|
|
59
|
-
questions: boolean;
|
|
60
|
-
prepositions: boolean;
|
|
61
|
-
comparisons: boolean;
|
|
62
|
-
alphabeticals: boolean;
|
|
63
|
-
monitorAdHijacking: boolean;
|
|
64
|
-
monitorBrandBidding: boolean;
|
|
65
|
-
manageBrandBidding: boolean;
|
|
66
|
-
monitorPla: boolean;
|
|
67
|
-
monitorKeywordInclusion: boolean;
|
|
68
|
-
keepResults: boolean;
|
|
69
|
-
checkForCampaign: boolean;
|
|
70
|
-
positionsToMonitor: number[];
|
|
71
|
-
};
|
|
72
|
-
brandBidderConfig: {
|
|
73
|
-
brands: {
|
|
74
|
-
brand?: string;
|
|
75
|
-
}[];
|
|
76
|
-
blackList: {
|
|
77
|
-
domain?: string;
|
|
78
|
-
note?: string;
|
|
79
|
-
}[];
|
|
80
|
-
whiteList: {
|
|
81
|
-
domain?: string;
|
|
82
|
-
note?: string;
|
|
83
|
-
}[];
|
|
84
|
-
partnerList: {
|
|
85
|
-
domain?: string;
|
|
86
|
-
note?: string;
|
|
87
|
-
}[];
|
|
88
|
-
};
|
|
104
|
+
config: IResearchConfig;
|
|
105
|
+
crawlingConfig: ICoreCrawlingConfig;
|
|
106
|
+
meta: IResearchMeta;
|
|
107
|
+
fetchSettings: IFetchSettings;
|
|
108
|
+
brandBidderConfig: IBrandBidderConfig;
|
|
89
109
|
ownDisplayUrls: {
|
|
90
110
|
domain?: string;
|
|
91
111
|
}[];
|
|
92
|
-
adHijackingConfig:
|
|
93
|
-
mode?: "tracker" | "chain";
|
|
94
|
-
trackerDomain?: string;
|
|
95
|
-
redirectChain: {
|
|
96
|
-
url?: string;
|
|
97
|
-
}[];
|
|
98
|
-
resolveOthers: boolean;
|
|
99
|
-
excludes: {
|
|
100
|
-
domain?: string;
|
|
101
|
-
note?: string;
|
|
102
|
-
}[];
|
|
103
|
-
};
|
|
112
|
+
adHijackingConfig: IAdHijackerConfig;
|
|
104
113
|
maxCPCs: number[];
|
|
105
|
-
costRuns:
|
|
106
|
-
createdAt: Date;
|
|
107
|
-
results: {
|
|
108
|
-
_keyword?: ObjectId;
|
|
109
|
-
keyword?: string;
|
|
110
|
-
maxCPC: number;
|
|
111
|
-
minCPC: number;
|
|
112
|
-
avgCPC: number;
|
|
113
|
-
maxCPD: number;
|
|
114
|
-
minCPD: number;
|
|
115
|
-
avgCPD: number;
|
|
116
|
-
maxClicks: number;
|
|
117
|
-
minClicks: number;
|
|
118
|
-
avgClicks: number;
|
|
119
|
-
maxCost: number;
|
|
120
|
-
minCost: number;
|
|
121
|
-
avgCost: number;
|
|
122
|
-
maxImpressions: number;
|
|
123
|
-
minImpressions: number;
|
|
124
|
-
avgImpressions: number;
|
|
125
|
-
breakPointMin: number;
|
|
126
|
-
breakPointMax: number;
|
|
127
|
-
breakPointAvg: number;
|
|
128
|
-
}[];
|
|
129
|
-
}[];
|
|
114
|
+
costRuns: ICostRun[];
|
|
130
115
|
}
|
|
116
|
+
export {};
|
package/interfaces/ISetting.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IDefaultFields } from "./IDefaultFields";
|
|
2
|
+
import { ISEOAttributes } from "./ISEOAttributes";
|
|
2
3
|
interface AiSettings {
|
|
3
4
|
useAI?: boolean;
|
|
4
5
|
primingMessage?: string;
|
|
@@ -81,6 +82,14 @@ interface ColorsSettings {
|
|
|
81
82
|
error?: string;
|
|
82
83
|
info?: string;
|
|
83
84
|
}
|
|
85
|
+
interface FontsSettings {
|
|
86
|
+
brand?: string;
|
|
87
|
+
primary?: string;
|
|
88
|
+
secondary?: string;
|
|
89
|
+
accent?: string;
|
|
90
|
+
error?: string;
|
|
91
|
+
info?: string;
|
|
92
|
+
}
|
|
84
93
|
interface RewardsSettings {
|
|
85
94
|
playSound?: boolean;
|
|
86
95
|
sound?: string;
|
|
@@ -640,6 +649,21 @@ interface ProductsSettings {
|
|
|
640
649
|
lockProductsAfterApprove?: boolean;
|
|
641
650
|
reCheckPriceOnAmountChange?: boolean;
|
|
642
651
|
}
|
|
652
|
+
interface SlidesSettings {
|
|
653
|
+
active: boolean;
|
|
654
|
+
title: string;
|
|
655
|
+
defaultLanguage: string;
|
|
656
|
+
description: string;
|
|
657
|
+
color1: string;
|
|
658
|
+
color2: string;
|
|
659
|
+
useIcon: boolean;
|
|
660
|
+
showChat: boolean;
|
|
661
|
+
chatBot: boolean;
|
|
662
|
+
tacLink: string;
|
|
663
|
+
imprintLink: string;
|
|
664
|
+
privacyLink: string;
|
|
665
|
+
seo: ISEOAttributes;
|
|
666
|
+
}
|
|
643
667
|
export interface ISetting extends IDefaultFields {
|
|
644
668
|
_customerID: ObjectId;
|
|
645
669
|
ai: AiSettings;
|
|
@@ -649,6 +673,7 @@ export interface ISetting extends IDefaultFields {
|
|
|
649
673
|
setup: SetupSettings;
|
|
650
674
|
formats: FormatsSettings;
|
|
651
675
|
colors: ColorsSettings;
|
|
676
|
+
fonts: FontsSettings;
|
|
652
677
|
useRewards?: boolean;
|
|
653
678
|
rewards: RewardsSettings;
|
|
654
679
|
attention: AttentionSettings;
|
|
@@ -684,6 +709,7 @@ export interface ISetting extends IDefaultFields {
|
|
|
684
709
|
pim: PimSettings;
|
|
685
710
|
marketplace: MarketplaceSettings;
|
|
686
711
|
products: ProductsSettings;
|
|
712
|
+
slides: SlidesSettings;
|
|
687
713
|
[x: string]: any;
|
|
688
714
|
}
|
|
689
715
|
export {};
|