@coveo/platform-client 37.4.0 → 37.5.0
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.
|
@@ -2,29 +2,116 @@ import { UpdateStatusCategory } from '../Enums';
|
|
|
2
2
|
export interface MaestroVersionOptions {
|
|
3
3
|
crawlingModuleVersion: string;
|
|
4
4
|
}
|
|
5
|
+
export interface CrawlingModuleStatus {
|
|
6
|
+
/**
|
|
7
|
+
* Whether the Crawling Module is using a proxy or not.
|
|
8
|
+
*/
|
|
9
|
+
usingProxy: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Whether auto-updates are enabled or not on this setup.
|
|
12
|
+
*/
|
|
13
|
+
autoUpdateEnable: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Whether remote log requests are enabled or not.
|
|
16
|
+
* This enables the client to query logs directly from the platform.
|
|
17
|
+
*/
|
|
18
|
+
logRequestEnable: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Frequency at which the setup polls for updates.
|
|
21
|
+
*/
|
|
22
|
+
autoUpdateFrequency: number;
|
|
23
|
+
/**
|
|
24
|
+
* The number of crawler workers set in the configuration of the Crawling Module.
|
|
25
|
+
*/
|
|
26
|
+
numberOfCrawlerWorkers: number;
|
|
27
|
+
/**
|
|
28
|
+
* The number of security provider set in the configuration of the Crawling Module.
|
|
29
|
+
*/
|
|
30
|
+
numberOfSecurityWorkers: number;
|
|
31
|
+
}
|
|
5
32
|
export interface CrawlingModuleEntity {
|
|
33
|
+
/**
|
|
34
|
+
* Creation date.
|
|
35
|
+
*/
|
|
6
36
|
createdDate: number;
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated Should not be used.
|
|
39
|
+
*/
|
|
7
40
|
databaseVersion?: string;
|
|
41
|
+
/**
|
|
42
|
+
* After a given period, a Crawling Module that doesn't report to the
|
|
43
|
+
* platform is going be disabled. It is considered unable to process job.
|
|
44
|
+
*/
|
|
8
45
|
disabled: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Id of the Crawling Module.
|
|
48
|
+
*/
|
|
9
49
|
id: string;
|
|
50
|
+
/**
|
|
51
|
+
* The last time the Crawling Module sent its status to the platform.
|
|
52
|
+
*/
|
|
10
53
|
lastHeartbeat: number;
|
|
54
|
+
/**
|
|
55
|
+
* The latest date at which the Crawling Module update itself.
|
|
56
|
+
*/
|
|
11
57
|
lastVersionUpgrade: number;
|
|
58
|
+
/**
|
|
59
|
+
* The version of the Crawling Module.
|
|
60
|
+
*/
|
|
12
61
|
maestroVersion: string;
|
|
62
|
+
/**
|
|
63
|
+
* The name of the Crawling Module.
|
|
64
|
+
*/
|
|
13
65
|
name: string;
|
|
66
|
+
/**
|
|
67
|
+
* Organization id with which the Crawling Module is linked.
|
|
68
|
+
*/
|
|
14
69
|
organizationId: string;
|
|
70
|
+
/**
|
|
71
|
+
* @deprecated Should not be used.
|
|
72
|
+
*/
|
|
15
73
|
securityWorkerVersion?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Latest updated date.
|
|
76
|
+
*/
|
|
16
77
|
updatedDate: number;
|
|
78
|
+
/**
|
|
79
|
+
* @deprecated Should not be used.
|
|
80
|
+
*/
|
|
17
81
|
workerVersion?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Advanced information about a crawling module, see @type {CrawlingModuleStatus}.
|
|
84
|
+
*/
|
|
85
|
+
status?: CrawlingModuleStatus;
|
|
18
86
|
}
|
|
19
87
|
export interface ComponentVersion {
|
|
88
|
+
/**
|
|
89
|
+
* @deprecated Should not be used.
|
|
90
|
+
*/
|
|
20
91
|
databaseVersion: string;
|
|
92
|
+
/**
|
|
93
|
+
* The version of the Crawling Module.
|
|
94
|
+
*/
|
|
21
95
|
maestroVersion: string;
|
|
96
|
+
/**
|
|
97
|
+
* @deprecated Should not be used.
|
|
98
|
+
*/
|
|
22
99
|
securityWorkerVersion: string;
|
|
100
|
+
/**
|
|
101
|
+
* @deprecated Should not be used.
|
|
102
|
+
*/
|
|
23
103
|
workerVersion: string;
|
|
24
104
|
}
|
|
25
105
|
export interface UpdateStatus {
|
|
106
|
+
/**
|
|
107
|
+
* Whether an update is available.
|
|
108
|
+
*/
|
|
26
109
|
updateAvailable: boolean;
|
|
27
|
-
|
|
110
|
+
/**
|
|
111
|
+
* If an update is available, the category of update.
|
|
112
|
+
* See @type {UpdateStatusCategory}.
|
|
113
|
+
*/
|
|
114
|
+
updateCategory?: UpdateStatusCategory;
|
|
28
115
|
}
|
|
29
116
|
export declare enum CrawlingModuleLogRequestLogType {
|
|
30
117
|
MAESTRO = "MAESTRO",
|
|
@@ -38,20 +125,56 @@ export declare enum CrawlingModuleLogRequestState {
|
|
|
38
125
|
TIMEOUT = "TIMEOUT"
|
|
39
126
|
}
|
|
40
127
|
export interface CrawlingModuleLogRequestModel {
|
|
128
|
+
/**
|
|
129
|
+
* Creation date for the log request.
|
|
130
|
+
*/
|
|
41
131
|
createdDate: number;
|
|
132
|
+
/**
|
|
133
|
+
* Id of the log request.
|
|
134
|
+
*/
|
|
42
135
|
id: string;
|
|
136
|
+
/**
|
|
137
|
+
* InstanceId for the log request.
|
|
138
|
+
*/
|
|
43
139
|
instanceId: string;
|
|
140
|
+
/**
|
|
141
|
+
* The type of log requested, see @type {CrawlingModuleLogRequestLogType}
|
|
142
|
+
*/
|
|
44
143
|
logType: CrawlingModuleLogRequestLogType;
|
|
144
|
+
/**
|
|
145
|
+
* Operation for which we want to get the logs.
|
|
146
|
+
*/
|
|
45
147
|
operationId: string;
|
|
148
|
+
/**
|
|
149
|
+
* The state of the request, see @enum {CrawlingModuleLogRequestState}
|
|
150
|
+
*/
|
|
46
151
|
state: CrawlingModuleLogRequestState;
|
|
47
152
|
}
|
|
48
153
|
export interface CreateCrawlingModuleLogRequestModel {
|
|
154
|
+
/**
|
|
155
|
+
* InstanceId for the log request.
|
|
156
|
+
*/
|
|
49
157
|
instanceId: string;
|
|
158
|
+
/**
|
|
159
|
+
* The type of log requested, see @type {CrawlingModuleLogRequestLogType}
|
|
160
|
+
*/
|
|
50
161
|
logType: CrawlingModuleLogRequestLogType;
|
|
162
|
+
/**
|
|
163
|
+
* Operation for which we want to get the logs.
|
|
164
|
+
*/
|
|
51
165
|
operationId: string;
|
|
52
166
|
}
|
|
53
167
|
export interface CrawlingModuleLogRequestDownloadModel {
|
|
168
|
+
/**
|
|
169
|
+
* Information about the request. Typically contains error messages.
|
|
170
|
+
*/
|
|
54
171
|
info: string;
|
|
172
|
+
/**
|
|
173
|
+
* The state of the request, see @enum {CrawlingModuleLogRequestState}
|
|
174
|
+
*/
|
|
55
175
|
state: CrawlingModuleLogRequestState;
|
|
176
|
+
/**
|
|
177
|
+
* Url to download the log.
|
|
178
|
+
*/
|
|
56
179
|
url: string;
|
|
57
180
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CrawlingModuleInterfaces.js","sourceRoot":"","sources":["../../../src/resources/CrawlingModule/CrawlingModuleInterfaces.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CrawlingModuleInterfaces.js","sourceRoot":"","sources":["../../../src/resources/CrawlingModule/CrawlingModuleInterfaces.ts"],"names":[],"mappings":";;;AAyHA,IAAY,+BAGX;AAHD,WAAY,+BAA+B;IACvC,sDAAmB,CAAA;IACnB,oDAAiB,CAAA;AACrB,CAAC,EAHW,+BAA+B,GAA/B,uCAA+B,KAA/B,uCAA+B,QAG1C;AAED,IAAY,6BAMX;AAND,WAAY,6BAA6B;IACrC,oDAAmB,CAAA;IACnB,gDAAe,CAAA;IACf,oDAAmB,CAAA;IACnB,0DAAyB,CAAA;IACzB,oDAAmB,CAAA;AACvB,CAAC,EANW,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAMxC"}
|