@oneuptime/common 7.0.2990 → 7.0.3010
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/Models/AnalyticsModels/ExceptionInstance.ts +488 -0
- package/Models/AnalyticsModels/Index.ts +2 -0
- package/Models/AnalyticsModels/Span.ts +2 -2
- package/Models/DatabaseModels/Index.ts +4 -0
- package/Models/DatabaseModels/TelemetryException.ts +978 -0
- package/Server/API/StatusAPI.ts +63 -51
- package/Server/EnvironmentConfig.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1724610006927-MigrationName.ts +93 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1724613666632-MigrationName.ts +60 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1724659071843-MigrationName.ts +17 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +6 -0
- package/Server/Infrastructure/Queue.ts +36 -1
- package/Server/Infrastructure/QueueWorker.ts +2 -2
- package/Server/Services/DatabaseService.ts +4 -5
- package/Server/Services/ExceptionInstanceService.ts +11 -0
- package/Server/Services/Index.ts +5 -0
- package/Server/Services/StatusPageDomainService.ts +118 -59
- package/Server/Services/TelemetryExceptionService.ts +10 -0
- package/Server/Types/Database/Permissions/Index.ts +1 -1
- package/Server/Types/Database/UpdateByID.ts +1 -1
- package/Server/Utils/Greenlock/Greenlock.ts +331 -204
- package/Server/Utils/Logger.ts +8 -2
- package/Server/Utils/Telemetry.ts +109 -25
- package/Types/Code/CodeType.ts +1 -0
- package/Types/Database/PartialEntity.ts +14 -1
- package/Types/Date.ts +9 -1
- package/Types/Icon/IconProp.ts +2 -0
- package/Types/Permission.ts +39 -0
- package/UI/Components/ActionCard/ActionCard.tsx +66 -0
- package/UI/Components/Alerts/Alert.tsx +69 -60
- package/UI/Components/Card/Card.tsx +1 -0
- package/UI/Components/Charts/ChartGroup/ChartGroup.tsx +4 -17
- package/UI/Components/Charts/ChartLibrary/LineChart/LineChart.tsx +1005 -0
- package/UI/Components/Charts/ChartLibrary/Types/ChartDataPoint.ts +3 -0
- package/UI/Components/Charts/ChartLibrary/Utils/ChartColors.ts +117 -0
- package/UI/Components/Charts/ChartLibrary/Utils/Cx.ts +8 -0
- package/UI/Components/Charts/ChartLibrary/Utils/GetYAxisDomain.ts +15 -0
- package/UI/Components/Charts/ChartLibrary/Utils/HasOnlyOneValueForKey.ts +19 -0
- package/UI/Components/Charts/ChartLibrary/Utils/UseWindowOnResize.ts +17 -0
- package/UI/Components/Charts/Line/LineChart.tsx +58 -225
- package/UI/Components/Charts/Types/ChartCurve.ts +7 -0
- package/UI/Components/Charts/Types/DataPoint.ts +7 -0
- package/UI/Components/Charts/Types/SeriesPoint.ts +7 -0
- package/UI/Components/Charts/Types/SeriesPoints.ts +6 -0
- package/UI/Components/Charts/Types/XAxis/XAxis.ts +21 -0
- package/UI/Components/Charts/Types/XAxis/XAxisMaxMin.ts +3 -0
- package/UI/Components/Charts/Types/XAxis/XAxisPrecision.ts +26 -0
- package/UI/Components/Charts/Types/XAxis/XAxisType.ts +6 -0
- package/UI/Components/Charts/Types/XValue.ts +3 -0
- package/UI/Components/Charts/Types/YAxis/YAxis.ts +22 -0
- package/UI/Components/Charts/Types/YAxis/YAxisMaxMin.ts +3 -0
- package/UI/Components/Charts/Types/YAxis/YAxisType.ts +5 -0
- package/UI/Components/Charts/Types/YValue.ts +3 -0
- package/UI/Components/Charts/Utils/DataPoint.ts +188 -0
- package/UI/Components/Charts/Utils/XAxis.ts +267 -0
- package/UI/Components/Detail/Detail.tsx +6 -1
- package/UI/Components/GanttChart/Row/Row.tsx +4 -2
- package/UI/Components/GanttChart/Row/RowLabel.tsx +7 -3
- package/UI/Components/Icon/Icon.tsx +16 -0
- package/UI/Components/LogsViewer/LogsViewer.tsx +1 -1
- package/UI/Components/Types/FieldType.ts +1 -0
- package/UI/Config.ts +2 -0
- package/UI/Utils/Telemetry.ts +7 -2
- package/Utils/Crypto.ts +11 -0
- package/build/dist/Models/AnalyticsModels/ExceptionInstance.js +445 -0
- package/build/dist/Models/AnalyticsModels/ExceptionInstance.js.map +1 -0
- package/build/dist/Models/AnalyticsModels/Index.js +2 -0
- package/build/dist/Models/AnalyticsModels/Index.js.map +1 -1
- package/build/dist/Models/AnalyticsModels/Span.js +2 -2
- package/build/dist/Models/DatabaseModels/Index.js +2 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- package/build/dist/Models/DatabaseModels/TelemetryException.js +1010 -0
- package/build/dist/Models/DatabaseModels/TelemetryException.js.map +1 -0
- package/build/dist/Server/API/StatusAPI.js +52 -44
- package/build/dist/Server/API/StatusAPI.js.map +1 -1
- package/build/dist/Server/EnvironmentConfig.js +1 -0
- package/build/dist/Server/EnvironmentConfig.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724610006927-MigrationName.js +38 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724610006927-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724613666632-MigrationName.js +26 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724613666632-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724659071843-MigrationName.js +12 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724659071843-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +6 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Infrastructure/Queue.js +20 -1
- package/build/dist/Server/Infrastructure/Queue.js.map +1 -1
- package/build/dist/Server/Infrastructure/QueueWorker.js +2 -2
- package/build/dist/Server/Infrastructure/QueueWorker.js.map +1 -1
- package/build/dist/Server/Services/DatabaseService.js.map +1 -1
- package/build/dist/Server/Services/ExceptionInstanceService.js +9 -0
- package/build/dist/Server/Services/ExceptionInstanceService.js.map +1 -0
- package/build/dist/Server/Services/Index.js +4 -0
- package/build/dist/Server/Services/Index.js.map +1 -1
- package/build/dist/Server/Services/StatusPageDomainService.js +101 -53
- package/build/dist/Server/Services/StatusPageDomainService.js.map +1 -1
- package/build/dist/Server/Services/TelemetryExceptionService.js +9 -0
- package/build/dist/Server/Services/TelemetryExceptionService.js.map +1 -0
- package/build/dist/Server/Types/Database/Permissions/Index.js.map +1 -1
- package/build/dist/Server/Utils/Greenlock/Greenlock.js +234 -157
- package/build/dist/Server/Utils/Greenlock/Greenlock.js.map +1 -1
- package/build/dist/Server/Utils/Logger.js +5 -1
- package/build/dist/Server/Utils/Logger.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry.js +63 -22
- package/build/dist/Server/Utils/Telemetry.js.map +1 -1
- package/build/dist/Types/Code/CodeType.js +1 -0
- package/build/dist/Types/Code/CodeType.js.map +1 -1
- package/build/dist/Types/Database/PartialEntity.js +3 -0
- package/build/dist/Types/Database/PartialEntity.js.map +1 -1
- package/build/dist/Types/Date.js +7 -1
- package/build/dist/Types/Date.js.map +1 -1
- package/build/dist/Types/Icon/IconProp.js +2 -0
- package/build/dist/Types/Icon/IconProp.js.map +1 -1
- package/build/dist/Types/Permission.js +33 -0
- package/build/dist/Types/Permission.js.map +1 -1
- package/build/dist/UI/Components/ActionCard/ActionCard.js +27 -0
- package/build/dist/UI/Components/ActionCard/ActionCard.js.map +1 -0
- package/build/dist/UI/Components/Alerts/Alert.js +36 -45
- package/build/dist/UI/Components/Alerts/Alert.js.map +1 -1
- package/build/dist/UI/Components/Card/Card.js +1 -1
- package/build/dist/UI/Components/Card/Card.js.map +1 -1
- package/build/dist/UI/Components/Charts/ChartGroup/ChartGroup.js +4 -9
- package/build/dist/UI/Components/Charts/ChartGroup/ChartGroup.js.map +1 -1
- package/build/dist/UI/Components/Charts/ChartLibrary/LineChart/LineChart.js +388 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/LineChart/LineChart.js.map +1 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Types/ChartDataPoint.js +2 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Types/ChartDataPoint.js.map +1 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/ChartColors.js +88 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/ChartColors.js.map +1 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/Cx.js +7 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/Cx.js.map +1 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/GetYAxisDomain.js +7 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/GetYAxisDomain.js.map +1 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/HasOnlyOneValueForKey.js +14 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/HasOnlyOneValueForKey.js.map +1 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/UseWindowOnResize.js +14 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/UseWindowOnResize.js.map +1 -0
- package/build/dist/UI/Components/Charts/Line/LineChart.js +30 -136
- package/build/dist/UI/Components/Charts/Line/LineChart.js.map +1 -1
- package/build/dist/UI/Components/Charts/Types/ChartCurve.js +8 -0
- package/build/dist/UI/Components/Charts/Types/ChartCurve.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/DataPoint.js +2 -0
- package/build/dist/UI/Components/Charts/Types/DataPoint.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/SeriesPoint.js +2 -0
- package/build/dist/UI/Components/Charts/Types/SeriesPoint.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/SeriesPoints.js +2 -0
- package/build/dist/UI/Components/Charts/Types/SeriesPoints.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxis.js +8 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxis.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxisMaxMin.js +2 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxisMaxMin.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxisPrecision.js +27 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxisPrecision.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxisType.js +7 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxisType.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/XValue.js +2 -0
- package/build/dist/UI/Components/Charts/Types/XValue.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/YAxis/YAxis.js +8 -0
- package/build/dist/UI/Components/Charts/Types/YAxis/YAxis.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/YAxis/YAxisMaxMin.js +2 -0
- package/build/dist/UI/Components/Charts/Types/YAxis/YAxisMaxMin.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/YAxis/YAxisType.js +6 -0
- package/build/dist/UI/Components/Charts/Types/YAxis/YAxisType.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/YValue.js +2 -0
- package/build/dist/UI/Components/Charts/Types/YValue.js.map +1 -0
- package/build/dist/UI/Components/Charts/Utils/DataPoint.js +109 -0
- package/build/dist/UI/Components/Charts/Utils/DataPoint.js.map +1 -0
- package/build/dist/UI/Components/Charts/Utils/XAxis.js +241 -0
- package/build/dist/UI/Components/Charts/Utils/XAxis.js.map +1 -0
- package/build/dist/UI/Components/Detail/Detail.js +5 -1
- package/build/dist/UI/Components/Detail/Detail.js.map +1 -1
- package/build/dist/UI/Components/GanttChart/Row/Row.js +2 -2
- package/build/dist/UI/Components/GanttChart/Row/Row.js.map +1 -1
- package/build/dist/UI/Components/GanttChart/Row/RowLabel.js +3 -3
- package/build/dist/UI/Components/GanttChart/Row/RowLabel.js.map +1 -1
- package/build/dist/UI/Components/Icon/Icon.js +6 -0
- package/build/dist/UI/Components/Icon/Icon.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/LogsViewer.js +1 -1
- package/build/dist/UI/Components/LogsViewer/LogsViewer.js.map +1 -1
- package/build/dist/UI/Components/Types/FieldType.js +1 -0
- package/build/dist/UI/Components/Types/FieldType.js.map +1 -1
- package/build/dist/UI/Config.js +1 -0
- package/build/dist/UI/Config.js.map +1 -1
- package/build/dist/UI/Utils/Telemetry.js +6 -3
- package/build/dist/UI/Utils/Telemetry.js.map +1 -1
- package/build/dist/Utils/Crypto.js +10 -0
- package/build/dist/Utils/Crypto.js.map +1 -0
- package/package.json +15 -13
- package/UI/Components/Charts/Bar/Bar.tsx +0 -0
- package/UI/Components/Charts/Base/BaseChart.tsx +0 -0
- package/UI/Components/Charts/Tooltip/Tooltip.tsx +0 -84
- package/build/dist/UI/Components/Charts/Bar/Bar.js +0 -2
- package/build/dist/UI/Components/Charts/Bar/Bar.js.map +0 -1
- package/build/dist/UI/Components/Charts/Base/BaseChart.js +0 -2
- package/build/dist/UI/Components/Charts/Base/BaseChart.js.map +0 -1
- package/build/dist/UI/Components/Charts/Tooltip/Tooltip.js +0 -34
- package/build/dist/UI/Components/Charts/Tooltip/Tooltip.js.map +0 -1
|
@@ -17,6 +17,7 @@ import AcmeCertificate from "Common/Models/DatabaseModels/AcmeCertificate";
|
|
|
17
17
|
import Domain from "Common/Models/DatabaseModels/Domain";
|
|
18
18
|
import StatusPageDomain from "Common/Models/DatabaseModels/StatusPageDomain";
|
|
19
19
|
import AcmeCertificateService from "./AcmeCertificateService";
|
|
20
|
+
import Telemetry, { Span } from "../Utils/Telemetry";
|
|
20
21
|
|
|
21
22
|
export class Service extends DatabaseService<StatusPageDomain> {
|
|
22
23
|
public constructor() {
|
|
@@ -86,49 +87,79 @@ export class Service extends DatabaseService<StatusPageDomain> {
|
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
public async orderCert(statusPageDomain: StatusPageDomain): Promise<void> {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
90
|
+
return Telemetry.startActiveSpan<Promise<void>>({
|
|
91
|
+
name: "StatusPageDomainService.orderCert",
|
|
92
|
+
options: {
|
|
93
|
+
attributes: {
|
|
94
|
+
fullDomain: statusPageDomain.fullDomain,
|
|
95
|
+
_id: statusPageDomain.id?.toString(),
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
fn: async (span: Span): Promise<void> => {
|
|
99
|
+
try {
|
|
100
|
+
if (!statusPageDomain.fullDomain) {
|
|
101
|
+
const fetchedStatusPageDomain: StatusPageDomain | null =
|
|
102
|
+
await this.findOneBy({
|
|
103
|
+
query: {
|
|
104
|
+
_id: statusPageDomain.id!.toString(),
|
|
105
|
+
},
|
|
106
|
+
select: {
|
|
107
|
+
_id: true,
|
|
108
|
+
fullDomain: true,
|
|
109
|
+
},
|
|
110
|
+
props: {
|
|
111
|
+
isRoot: true,
|
|
112
|
+
},
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
if (!fetchedStatusPageDomain) {
|
|
116
|
+
throw new BadDataException("Domain not found");
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
statusPageDomain = fetchedStatusPageDomain;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (!statusPageDomain.fullDomain) {
|
|
123
|
+
throw new BadDataException(
|
|
124
|
+
"Unable to order certificate because domain is null",
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
logger.debug(
|
|
129
|
+
"Ordering SSL for domain: " + statusPageDomain.fullDomain,
|
|
130
|
+
);
|
|
107
131
|
|
|
108
|
-
|
|
109
|
-
|
|
132
|
+
await GreenlockUtil.orderCert({
|
|
133
|
+
domain: statusPageDomain.fullDomain as string,
|
|
134
|
+
validateCname: async (fullDomain: string) => {
|
|
135
|
+
return await this.isCnameValid(fullDomain);
|
|
136
|
+
},
|
|
137
|
+
});
|
|
110
138
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
);
|
|
115
|
-
}
|
|
139
|
+
logger.debug(
|
|
140
|
+
"SSL ordered for domain: " + statusPageDomain.fullDomain,
|
|
141
|
+
);
|
|
116
142
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
143
|
+
// update the order.
|
|
144
|
+
await this.updateOneById({
|
|
145
|
+
id: statusPageDomain.id!,
|
|
146
|
+
data: {
|
|
147
|
+
isSslOrdered: true,
|
|
148
|
+
},
|
|
149
|
+
props: {
|
|
150
|
+
isRoot: true,
|
|
151
|
+
},
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
Telemetry.endSpan(span);
|
|
155
|
+
} catch (err) {
|
|
156
|
+
Telemetry.recordExceptionMarkSpanAsErrorAndEndSpan({
|
|
157
|
+
span,
|
|
158
|
+
exception: err,
|
|
159
|
+
});
|
|
123
160
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
id: statusPageDomain.id!,
|
|
127
|
-
data: {
|
|
128
|
-
isSslOrdered: true,
|
|
129
|
-
},
|
|
130
|
-
props: {
|
|
131
|
-
isRoot: true,
|
|
161
|
+
throw err;
|
|
162
|
+
}
|
|
132
163
|
},
|
|
133
164
|
});
|
|
134
165
|
}
|
|
@@ -215,6 +246,8 @@ export class Service extends DatabaseService<StatusPageDomain> {
|
|
|
215
246
|
try {
|
|
216
247
|
// get the token from the domain.
|
|
217
248
|
|
|
249
|
+
logger.debug("Checking for CNAME " + fullDomain);
|
|
250
|
+
|
|
218
251
|
const statusPageDomain: StatusPageDomain | null = await this.findOneBy({
|
|
219
252
|
query: {
|
|
220
253
|
fullDomain: fullDomain,
|
|
@@ -234,6 +267,8 @@ export class Service extends DatabaseService<StatusPageDomain> {
|
|
|
234
267
|
|
|
235
268
|
const token: string = statusPageDomain.cnameVerificationToken!;
|
|
236
269
|
|
|
270
|
+
logger.debug("Checking for CNAME " + fullDomain + " with token " + token);
|
|
271
|
+
|
|
237
272
|
const result: HTTPErrorResponse | HTTPResponse<JSONObject> =
|
|
238
273
|
await API.get(
|
|
239
274
|
URL.fromString(
|
|
@@ -244,6 +279,9 @@ export class Service extends DatabaseService<StatusPageDomain> {
|
|
|
244
279
|
),
|
|
245
280
|
);
|
|
246
281
|
|
|
282
|
+
logger.debug("CNAME verification result");
|
|
283
|
+
logger.debug(result);
|
|
284
|
+
|
|
247
285
|
if (result.isSuccess()) {
|
|
248
286
|
await this.updateCnameStatusForStatusPageDomain({
|
|
249
287
|
domain: fullDomain,
|
|
@@ -265,6 +303,9 @@ export class Service extends DatabaseService<StatusPageDomain> {
|
|
|
265
303
|
),
|
|
266
304
|
);
|
|
267
305
|
|
|
306
|
+
logger.debug("CNAME verification result for https");
|
|
307
|
+
logger.debug(resultHttps);
|
|
308
|
+
|
|
268
309
|
if (resultHttps.isSuccess()) {
|
|
269
310
|
await this.updateCnameStatusForStatusPageDomain({
|
|
270
311
|
domain: fullDomain,
|
|
@@ -370,28 +411,46 @@ export class Service extends DatabaseService<StatusPageDomain> {
|
|
|
370
411
|
}
|
|
371
412
|
|
|
372
413
|
public async orderSSLForDomainsWhichAreNotOrderedYet(): Promise<void> {
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
414
|
+
return Telemetry.startActiveSpan<Promise<void>>({
|
|
415
|
+
name: "StatusPageDomainService.orderSSLForDomainsWhichAreNotOrderedYet",
|
|
416
|
+
options: { attributes: {} },
|
|
417
|
+
fn: async (span: Span): Promise<void> => {
|
|
418
|
+
try {
|
|
419
|
+
const domains: Array<StatusPageDomain> = await this.findBy({
|
|
420
|
+
query: {
|
|
421
|
+
isSslOrdered: false,
|
|
422
|
+
},
|
|
423
|
+
select: {
|
|
424
|
+
_id: true,
|
|
425
|
+
fullDomain: true,
|
|
426
|
+
},
|
|
427
|
+
limit: LIMIT_MAX,
|
|
428
|
+
skip: 0,
|
|
429
|
+
props: {
|
|
430
|
+
isRoot: true,
|
|
431
|
+
},
|
|
432
|
+
});
|
|
433
|
+
|
|
434
|
+
for (const domain of domains) {
|
|
435
|
+
try {
|
|
436
|
+
logger.debug("Ordering SSL for domain: " + domain.fullDomain);
|
|
437
|
+
await this.orderCert(domain);
|
|
438
|
+
} catch (e) {
|
|
439
|
+
logger.error(e);
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
Telemetry.endSpan(span);
|
|
444
|
+
} catch (err) {
|
|
445
|
+
Telemetry.recordExceptionMarkSpanAsErrorAndEndSpan({
|
|
446
|
+
span,
|
|
447
|
+
exception: err,
|
|
448
|
+
});
|
|
449
|
+
|
|
450
|
+
throw err;
|
|
451
|
+
}
|
|
385
452
|
},
|
|
386
453
|
});
|
|
387
|
-
|
|
388
|
-
for (const domain of domains) {
|
|
389
|
-
try {
|
|
390
|
-
await this.orderCert(domain);
|
|
391
|
-
} catch (e) {
|
|
392
|
-
logger.error(e);
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
454
|
}
|
|
396
455
|
|
|
397
456
|
public async verifyCnameWhoseCnameisNotVerified(): Promise<void> {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import DatabaseService from "./DatabaseService";
|
|
2
|
+
import Model from "Common/Models/DatabaseModels/TelemetryException";
|
|
3
|
+
|
|
4
|
+
export class Service extends DatabaseService<Model> {
|
|
5
|
+
public constructor() {
|
|
6
|
+
super(Model);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default new Service();
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import QueryDeepPartialEntity from "../../../../Types/Database/PartialEntity";
|
|
1
2
|
import Query from "../Query";
|
|
2
3
|
import Select from "../Select";
|
|
3
4
|
import CreatePermission from "./CreatePermission";
|
|
@@ -6,7 +7,6 @@ import ReadPermission, { CheckReadPermissionType } from "./ReadPermission";
|
|
|
6
7
|
import UpdatePermission from "./UpdatePermission";
|
|
7
8
|
import BaseModel from "Common/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel";
|
|
8
9
|
import DatabaseCommonInteractionProps from "Common/Types/BaseDatabase/DatabaseCommonInteractionProps";
|
|
9
|
-
import { QueryDeepPartialEntity } from "typeorm/query-builder/QueryPartialEntity";
|
|
10
10
|
|
|
11
11
|
export default class ModelPermission {
|
|
12
12
|
public static async checkDeletePermissionByModel<
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import BaseModel from "Common/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel";
|
|
2
2
|
import DatabaseCommonInteractionProps from "Common/Types/BaseDatabase/DatabaseCommonInteractionProps";
|
|
3
3
|
import ObjectID from "Common/Types/ObjectID";
|
|
4
|
-
import
|
|
4
|
+
import QueryDeepPartialEntity from "../../../Types/Database/PartialEntity";
|
|
5
5
|
|
|
6
6
|
export default interface UpdateBy<TBaseModel extends BaseModel> {
|
|
7
7
|
id: ObjectID;
|