@tolinax/ayoune-interfaces 2024.4.25 → 2024.4.27
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/interfaces/IAd.d.ts +43 -39
- package/interfaces/IDataSource.d.ts +31 -18
- package/package.json +1 -1
package/interfaces/IAd.d.ts
CHANGED
|
@@ -1,37 +1,41 @@
|
|
|
1
1
|
import { IDefaultFields } from "./IDefaultFields";
|
|
2
2
|
export interface IAd extends IDefaultFields {
|
|
3
3
|
_id: string;
|
|
4
|
-
archived:
|
|
4
|
+
archived: boolean;
|
|
5
5
|
lab: boolean;
|
|
6
6
|
environment: "production" | "lab" | "all";
|
|
7
|
-
_customerID
|
|
8
|
-
_clientID
|
|
9
|
-
_subID
|
|
10
|
-
_type
|
|
11
|
-
_campaign
|
|
12
|
-
_serps
|
|
7
|
+
_customerID?: ObjectId;
|
|
8
|
+
_clientID?: ObjectId[];
|
|
9
|
+
_subID?: ObjectId[];
|
|
10
|
+
_type?: ObjectId;
|
|
11
|
+
_campaign?: ObjectId;
|
|
12
|
+
_serps?: ObjectId[];
|
|
13
13
|
createdAt: Date;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
totalResults?: number;
|
|
15
|
+
totalDesktopResults?: number;
|
|
16
|
+
totalMobileResults?: number;
|
|
17
|
+
avgPosition?: number;
|
|
18
|
+
terms?: {
|
|
19
|
+
_id: false;
|
|
20
|
+
_keyword: ObjectId;
|
|
21
|
+
term: string;
|
|
22
|
+
avgPosition: number;
|
|
23
|
+
}[];
|
|
20
24
|
locale: string;
|
|
21
|
-
advertiser
|
|
25
|
+
advertiser?: string;
|
|
22
26
|
title: string;
|
|
23
|
-
phone
|
|
27
|
+
phone?: string;
|
|
24
28
|
abstract: string;
|
|
25
29
|
displayUrl: string;
|
|
26
|
-
trackingUrl
|
|
30
|
+
trackingUrl?: string;
|
|
27
31
|
linkUrl: string;
|
|
28
32
|
websiteUrl: string;
|
|
29
|
-
image
|
|
30
|
-
app
|
|
31
|
-
keywordInclusion
|
|
32
|
-
keywordInclusionInTitle
|
|
33
|
-
keywordInclusionInAbstract
|
|
34
|
-
brandBidding
|
|
33
|
+
image?: string;
|
|
34
|
+
app?: boolean;
|
|
35
|
+
keywordInclusion?: boolean;
|
|
36
|
+
keywordInclusionInTitle?: boolean;
|
|
37
|
+
keywordInclusionInAbstract?: boolean;
|
|
38
|
+
brandBidding?: {
|
|
35
39
|
isTrademarkViolation: boolean;
|
|
36
40
|
isOwn: boolean;
|
|
37
41
|
isBrandBidder: boolean;
|
|
@@ -41,7 +45,7 @@ export interface IAd extends IDefaultFields {
|
|
|
41
45
|
brandInText: boolean;
|
|
42
46
|
brandTerm: string;
|
|
43
47
|
};
|
|
44
|
-
adHijacking
|
|
48
|
+
adHijacking?: {
|
|
45
49
|
destination: string;
|
|
46
50
|
destinationDomain: string;
|
|
47
51
|
isAffiliate: boolean;
|
|
@@ -58,37 +62,37 @@ export interface IAd extends IDefaultFields {
|
|
|
58
62
|
isAffiliate: boolean;
|
|
59
63
|
}[];
|
|
60
64
|
};
|
|
61
|
-
siteLinks
|
|
65
|
+
siteLinks?: {
|
|
62
66
|
title: string;
|
|
63
67
|
link: string;
|
|
64
68
|
snippets: any;
|
|
65
69
|
}[];
|
|
66
|
-
extensions
|
|
70
|
+
extensions?: {
|
|
67
71
|
title: string;
|
|
68
72
|
link: string;
|
|
69
73
|
snippets: any;
|
|
70
74
|
}[];
|
|
71
|
-
protocol
|
|
72
|
-
address
|
|
73
|
-
port
|
|
74
|
-
ip
|
|
75
|
-
hostname
|
|
76
|
-
subdomain
|
|
77
|
-
domain
|
|
78
|
-
path
|
|
79
|
-
parameters
|
|
75
|
+
protocol?: string;
|
|
76
|
+
address?: string;
|
|
77
|
+
port?: string;
|
|
78
|
+
ip?: string;
|
|
79
|
+
hostname?: string;
|
|
80
|
+
subdomain?: string;
|
|
81
|
+
domain?: string;
|
|
82
|
+
path?: string;
|
|
83
|
+
parameters?: {
|
|
80
84
|
key: string;
|
|
81
85
|
value: string;
|
|
82
86
|
}[];
|
|
83
|
-
IABCategories
|
|
87
|
+
IABCategories?: {
|
|
84
88
|
_id: ObjectId;
|
|
85
89
|
label: string;
|
|
86
90
|
parent: string;
|
|
87
91
|
score: number;
|
|
88
92
|
confident: boolean;
|
|
89
93
|
}[];
|
|
90
|
-
mainCategory
|
|
91
|
-
mainCategoryLabel
|
|
92
|
-
subCategory
|
|
93
|
-
subCategoryLabel
|
|
94
|
+
mainCategory?: string;
|
|
95
|
+
mainCategoryLabel?: string;
|
|
96
|
+
subCategory?: string;
|
|
97
|
+
subCategoryLabel?: string;
|
|
94
98
|
}
|
|
@@ -1,33 +1,46 @@
|
|
|
1
1
|
import { IDefaultFields } from "./IDefaultFields";
|
|
2
2
|
export interface IDataSource extends IDefaultFields {
|
|
3
|
-
source: "rest" | "graph" | "aggregation";
|
|
4
|
-
storeOutput
|
|
5
|
-
storeOnModel
|
|
6
|
-
restEndpoint
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
source: "url" | "rest" | "graph" | "aggregation";
|
|
4
|
+
storeOutput?: boolean;
|
|
5
|
+
storeOnModel?: "faqs" | "glossar" | "wikipages" | "products" | "productgroups" | "productdivisions" | "posts" | "quotes" | "";
|
|
6
|
+
restEndpoint?: {
|
|
7
|
+
endpoint: string;
|
|
8
|
+
host: string;
|
|
9
|
+
method: string;
|
|
10
|
+
modelName: string;
|
|
11
|
+
nameSpace: string;
|
|
12
|
+
operationId: string;
|
|
13
|
+
url?: string;
|
|
14
|
+
};
|
|
15
|
+
restBaseEndpoint?: string;
|
|
16
|
+
restFullEndpoint?: string;
|
|
17
|
+
url?: string;
|
|
18
|
+
params?: {
|
|
10
19
|
key: string;
|
|
11
20
|
value: string;
|
|
12
21
|
}[];
|
|
13
|
-
|
|
22
|
+
headers?: {
|
|
14
23
|
key: string;
|
|
15
24
|
value: string;
|
|
16
25
|
}[];
|
|
17
|
-
|
|
26
|
+
queryParams?: {
|
|
27
|
+
key: string;
|
|
28
|
+
value: string;
|
|
29
|
+
}[];
|
|
30
|
+
inputParams?: {
|
|
18
31
|
key: string;
|
|
19
32
|
value: any;
|
|
20
33
|
type: "string" | "integer" | "date";
|
|
21
34
|
defaultValue: any;
|
|
22
35
|
selector: string;
|
|
23
36
|
}[];
|
|
24
|
-
graphQlQuery
|
|
25
|
-
aggregationModel
|
|
26
|
-
aggregationPipeline
|
|
27
|
-
resultAsObject
|
|
28
|
-
replace
|
|
29
|
-
random
|
|
30
|
-
fetchData
|
|
31
|
-
lastResult
|
|
32
|
-
lastResultJSON
|
|
37
|
+
graphQlQuery?: string;
|
|
38
|
+
aggregationModel?: string;
|
|
39
|
+
aggregationPipeline?: string;
|
|
40
|
+
resultAsObject?: boolean;
|
|
41
|
+
replace?: boolean;
|
|
42
|
+
random?: boolean;
|
|
43
|
+
fetchData?: boolean;
|
|
44
|
+
lastResult?: any;
|
|
45
|
+
lastResultJSON?: string;
|
|
33
46
|
}
|