@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.
Files changed (197) hide show
  1. package/Models/AnalyticsModels/ExceptionInstance.ts +488 -0
  2. package/Models/AnalyticsModels/Index.ts +2 -0
  3. package/Models/AnalyticsModels/Span.ts +2 -2
  4. package/Models/DatabaseModels/Index.ts +4 -0
  5. package/Models/DatabaseModels/TelemetryException.ts +978 -0
  6. package/Server/API/StatusAPI.ts +63 -51
  7. package/Server/EnvironmentConfig.ts +3 -0
  8. package/Server/Infrastructure/Postgres/SchemaMigrations/1724610006927-MigrationName.ts +93 -0
  9. package/Server/Infrastructure/Postgres/SchemaMigrations/1724613666632-MigrationName.ts +60 -0
  10. package/Server/Infrastructure/Postgres/SchemaMigrations/1724659071843-MigrationName.ts +17 -0
  11. package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +6 -0
  12. package/Server/Infrastructure/Queue.ts +36 -1
  13. package/Server/Infrastructure/QueueWorker.ts +2 -2
  14. package/Server/Services/DatabaseService.ts +4 -5
  15. package/Server/Services/ExceptionInstanceService.ts +11 -0
  16. package/Server/Services/Index.ts +5 -0
  17. package/Server/Services/StatusPageDomainService.ts +118 -59
  18. package/Server/Services/TelemetryExceptionService.ts +10 -0
  19. package/Server/Types/Database/Permissions/Index.ts +1 -1
  20. package/Server/Types/Database/UpdateByID.ts +1 -1
  21. package/Server/Utils/Greenlock/Greenlock.ts +331 -204
  22. package/Server/Utils/Logger.ts +8 -2
  23. package/Server/Utils/Telemetry.ts +109 -25
  24. package/Types/Code/CodeType.ts +1 -0
  25. package/Types/Database/PartialEntity.ts +14 -1
  26. package/Types/Date.ts +9 -1
  27. package/Types/Icon/IconProp.ts +2 -0
  28. package/Types/Permission.ts +39 -0
  29. package/UI/Components/ActionCard/ActionCard.tsx +66 -0
  30. package/UI/Components/Alerts/Alert.tsx +69 -60
  31. package/UI/Components/Card/Card.tsx +1 -0
  32. package/UI/Components/Charts/ChartGroup/ChartGroup.tsx +4 -17
  33. package/UI/Components/Charts/ChartLibrary/LineChart/LineChart.tsx +1005 -0
  34. package/UI/Components/Charts/ChartLibrary/Types/ChartDataPoint.ts +3 -0
  35. package/UI/Components/Charts/ChartLibrary/Utils/ChartColors.ts +117 -0
  36. package/UI/Components/Charts/ChartLibrary/Utils/Cx.ts +8 -0
  37. package/UI/Components/Charts/ChartLibrary/Utils/GetYAxisDomain.ts +15 -0
  38. package/UI/Components/Charts/ChartLibrary/Utils/HasOnlyOneValueForKey.ts +19 -0
  39. package/UI/Components/Charts/ChartLibrary/Utils/UseWindowOnResize.ts +17 -0
  40. package/UI/Components/Charts/Line/LineChart.tsx +58 -225
  41. package/UI/Components/Charts/Types/ChartCurve.ts +7 -0
  42. package/UI/Components/Charts/Types/DataPoint.ts +7 -0
  43. package/UI/Components/Charts/Types/SeriesPoint.ts +7 -0
  44. package/UI/Components/Charts/Types/SeriesPoints.ts +6 -0
  45. package/UI/Components/Charts/Types/XAxis/XAxis.ts +21 -0
  46. package/UI/Components/Charts/Types/XAxis/XAxisMaxMin.ts +3 -0
  47. package/UI/Components/Charts/Types/XAxis/XAxisPrecision.ts +26 -0
  48. package/UI/Components/Charts/Types/XAxis/XAxisType.ts +6 -0
  49. package/UI/Components/Charts/Types/XValue.ts +3 -0
  50. package/UI/Components/Charts/Types/YAxis/YAxis.ts +22 -0
  51. package/UI/Components/Charts/Types/YAxis/YAxisMaxMin.ts +3 -0
  52. package/UI/Components/Charts/Types/YAxis/YAxisType.ts +5 -0
  53. package/UI/Components/Charts/Types/YValue.ts +3 -0
  54. package/UI/Components/Charts/Utils/DataPoint.ts +188 -0
  55. package/UI/Components/Charts/Utils/XAxis.ts +267 -0
  56. package/UI/Components/Detail/Detail.tsx +6 -1
  57. package/UI/Components/GanttChart/Row/Row.tsx +4 -2
  58. package/UI/Components/GanttChart/Row/RowLabel.tsx +7 -3
  59. package/UI/Components/Icon/Icon.tsx +16 -0
  60. package/UI/Components/LogsViewer/LogsViewer.tsx +1 -1
  61. package/UI/Components/Types/FieldType.ts +1 -0
  62. package/UI/Config.ts +2 -0
  63. package/UI/Utils/Telemetry.ts +7 -2
  64. package/Utils/Crypto.ts +11 -0
  65. package/build/dist/Models/AnalyticsModels/ExceptionInstance.js +445 -0
  66. package/build/dist/Models/AnalyticsModels/ExceptionInstance.js.map +1 -0
  67. package/build/dist/Models/AnalyticsModels/Index.js +2 -0
  68. package/build/dist/Models/AnalyticsModels/Index.js.map +1 -1
  69. package/build/dist/Models/AnalyticsModels/Span.js +2 -2
  70. package/build/dist/Models/DatabaseModels/Index.js +2 -0
  71. package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
  72. package/build/dist/Models/DatabaseModels/TelemetryException.js +1010 -0
  73. package/build/dist/Models/DatabaseModels/TelemetryException.js.map +1 -0
  74. package/build/dist/Server/API/StatusAPI.js +52 -44
  75. package/build/dist/Server/API/StatusAPI.js.map +1 -1
  76. package/build/dist/Server/EnvironmentConfig.js +1 -0
  77. package/build/dist/Server/EnvironmentConfig.js.map +1 -1
  78. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724610006927-MigrationName.js +38 -0
  79. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724610006927-MigrationName.js.map +1 -0
  80. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724613666632-MigrationName.js +26 -0
  81. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724613666632-MigrationName.js.map +1 -0
  82. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724659071843-MigrationName.js +12 -0
  83. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724659071843-MigrationName.js.map +1 -0
  84. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +6 -0
  85. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
  86. package/build/dist/Server/Infrastructure/Queue.js +20 -1
  87. package/build/dist/Server/Infrastructure/Queue.js.map +1 -1
  88. package/build/dist/Server/Infrastructure/QueueWorker.js +2 -2
  89. package/build/dist/Server/Infrastructure/QueueWorker.js.map +1 -1
  90. package/build/dist/Server/Services/DatabaseService.js.map +1 -1
  91. package/build/dist/Server/Services/ExceptionInstanceService.js +9 -0
  92. package/build/dist/Server/Services/ExceptionInstanceService.js.map +1 -0
  93. package/build/dist/Server/Services/Index.js +4 -0
  94. package/build/dist/Server/Services/Index.js.map +1 -1
  95. package/build/dist/Server/Services/StatusPageDomainService.js +101 -53
  96. package/build/dist/Server/Services/StatusPageDomainService.js.map +1 -1
  97. package/build/dist/Server/Services/TelemetryExceptionService.js +9 -0
  98. package/build/dist/Server/Services/TelemetryExceptionService.js.map +1 -0
  99. package/build/dist/Server/Types/Database/Permissions/Index.js.map +1 -1
  100. package/build/dist/Server/Utils/Greenlock/Greenlock.js +234 -157
  101. package/build/dist/Server/Utils/Greenlock/Greenlock.js.map +1 -1
  102. package/build/dist/Server/Utils/Logger.js +5 -1
  103. package/build/dist/Server/Utils/Logger.js.map +1 -1
  104. package/build/dist/Server/Utils/Telemetry.js +63 -22
  105. package/build/dist/Server/Utils/Telemetry.js.map +1 -1
  106. package/build/dist/Types/Code/CodeType.js +1 -0
  107. package/build/dist/Types/Code/CodeType.js.map +1 -1
  108. package/build/dist/Types/Database/PartialEntity.js +3 -0
  109. package/build/dist/Types/Database/PartialEntity.js.map +1 -1
  110. package/build/dist/Types/Date.js +7 -1
  111. package/build/dist/Types/Date.js.map +1 -1
  112. package/build/dist/Types/Icon/IconProp.js +2 -0
  113. package/build/dist/Types/Icon/IconProp.js.map +1 -1
  114. package/build/dist/Types/Permission.js +33 -0
  115. package/build/dist/Types/Permission.js.map +1 -1
  116. package/build/dist/UI/Components/ActionCard/ActionCard.js +27 -0
  117. package/build/dist/UI/Components/ActionCard/ActionCard.js.map +1 -0
  118. package/build/dist/UI/Components/Alerts/Alert.js +36 -45
  119. package/build/dist/UI/Components/Alerts/Alert.js.map +1 -1
  120. package/build/dist/UI/Components/Card/Card.js +1 -1
  121. package/build/dist/UI/Components/Card/Card.js.map +1 -1
  122. package/build/dist/UI/Components/Charts/ChartGroup/ChartGroup.js +4 -9
  123. package/build/dist/UI/Components/Charts/ChartGroup/ChartGroup.js.map +1 -1
  124. package/build/dist/UI/Components/Charts/ChartLibrary/LineChart/LineChart.js +388 -0
  125. package/build/dist/UI/Components/Charts/ChartLibrary/LineChart/LineChart.js.map +1 -0
  126. package/build/dist/UI/Components/Charts/ChartLibrary/Types/ChartDataPoint.js +2 -0
  127. package/build/dist/UI/Components/Charts/ChartLibrary/Types/ChartDataPoint.js.map +1 -0
  128. package/build/dist/UI/Components/Charts/ChartLibrary/Utils/ChartColors.js +88 -0
  129. package/build/dist/UI/Components/Charts/ChartLibrary/Utils/ChartColors.js.map +1 -0
  130. package/build/dist/UI/Components/Charts/ChartLibrary/Utils/Cx.js +7 -0
  131. package/build/dist/UI/Components/Charts/ChartLibrary/Utils/Cx.js.map +1 -0
  132. package/build/dist/UI/Components/Charts/ChartLibrary/Utils/GetYAxisDomain.js +7 -0
  133. package/build/dist/UI/Components/Charts/ChartLibrary/Utils/GetYAxisDomain.js.map +1 -0
  134. package/build/dist/UI/Components/Charts/ChartLibrary/Utils/HasOnlyOneValueForKey.js +14 -0
  135. package/build/dist/UI/Components/Charts/ChartLibrary/Utils/HasOnlyOneValueForKey.js.map +1 -0
  136. package/build/dist/UI/Components/Charts/ChartLibrary/Utils/UseWindowOnResize.js +14 -0
  137. package/build/dist/UI/Components/Charts/ChartLibrary/Utils/UseWindowOnResize.js.map +1 -0
  138. package/build/dist/UI/Components/Charts/Line/LineChart.js +30 -136
  139. package/build/dist/UI/Components/Charts/Line/LineChart.js.map +1 -1
  140. package/build/dist/UI/Components/Charts/Types/ChartCurve.js +8 -0
  141. package/build/dist/UI/Components/Charts/Types/ChartCurve.js.map +1 -0
  142. package/build/dist/UI/Components/Charts/Types/DataPoint.js +2 -0
  143. package/build/dist/UI/Components/Charts/Types/DataPoint.js.map +1 -0
  144. package/build/dist/UI/Components/Charts/Types/SeriesPoint.js +2 -0
  145. package/build/dist/UI/Components/Charts/Types/SeriesPoint.js.map +1 -0
  146. package/build/dist/UI/Components/Charts/Types/SeriesPoints.js +2 -0
  147. package/build/dist/UI/Components/Charts/Types/SeriesPoints.js.map +1 -0
  148. package/build/dist/UI/Components/Charts/Types/XAxis/XAxis.js +8 -0
  149. package/build/dist/UI/Components/Charts/Types/XAxis/XAxis.js.map +1 -0
  150. package/build/dist/UI/Components/Charts/Types/XAxis/XAxisMaxMin.js +2 -0
  151. package/build/dist/UI/Components/Charts/Types/XAxis/XAxisMaxMin.js.map +1 -0
  152. package/build/dist/UI/Components/Charts/Types/XAxis/XAxisPrecision.js +27 -0
  153. package/build/dist/UI/Components/Charts/Types/XAxis/XAxisPrecision.js.map +1 -0
  154. package/build/dist/UI/Components/Charts/Types/XAxis/XAxisType.js +7 -0
  155. package/build/dist/UI/Components/Charts/Types/XAxis/XAxisType.js.map +1 -0
  156. package/build/dist/UI/Components/Charts/Types/XValue.js +2 -0
  157. package/build/dist/UI/Components/Charts/Types/XValue.js.map +1 -0
  158. package/build/dist/UI/Components/Charts/Types/YAxis/YAxis.js +8 -0
  159. package/build/dist/UI/Components/Charts/Types/YAxis/YAxis.js.map +1 -0
  160. package/build/dist/UI/Components/Charts/Types/YAxis/YAxisMaxMin.js +2 -0
  161. package/build/dist/UI/Components/Charts/Types/YAxis/YAxisMaxMin.js.map +1 -0
  162. package/build/dist/UI/Components/Charts/Types/YAxis/YAxisType.js +6 -0
  163. package/build/dist/UI/Components/Charts/Types/YAxis/YAxisType.js.map +1 -0
  164. package/build/dist/UI/Components/Charts/Types/YValue.js +2 -0
  165. package/build/dist/UI/Components/Charts/Types/YValue.js.map +1 -0
  166. package/build/dist/UI/Components/Charts/Utils/DataPoint.js +109 -0
  167. package/build/dist/UI/Components/Charts/Utils/DataPoint.js.map +1 -0
  168. package/build/dist/UI/Components/Charts/Utils/XAxis.js +241 -0
  169. package/build/dist/UI/Components/Charts/Utils/XAxis.js.map +1 -0
  170. package/build/dist/UI/Components/Detail/Detail.js +5 -1
  171. package/build/dist/UI/Components/Detail/Detail.js.map +1 -1
  172. package/build/dist/UI/Components/GanttChart/Row/Row.js +2 -2
  173. package/build/dist/UI/Components/GanttChart/Row/Row.js.map +1 -1
  174. package/build/dist/UI/Components/GanttChart/Row/RowLabel.js +3 -3
  175. package/build/dist/UI/Components/GanttChart/Row/RowLabel.js.map +1 -1
  176. package/build/dist/UI/Components/Icon/Icon.js +6 -0
  177. package/build/dist/UI/Components/Icon/Icon.js.map +1 -1
  178. package/build/dist/UI/Components/LogsViewer/LogsViewer.js +1 -1
  179. package/build/dist/UI/Components/LogsViewer/LogsViewer.js.map +1 -1
  180. package/build/dist/UI/Components/Types/FieldType.js +1 -0
  181. package/build/dist/UI/Components/Types/FieldType.js.map +1 -1
  182. package/build/dist/UI/Config.js +1 -0
  183. package/build/dist/UI/Config.js.map +1 -1
  184. package/build/dist/UI/Utils/Telemetry.js +6 -3
  185. package/build/dist/UI/Utils/Telemetry.js.map +1 -1
  186. package/build/dist/Utils/Crypto.js +10 -0
  187. package/build/dist/Utils/Crypto.js.map +1 -0
  188. package/package.json +15 -13
  189. package/UI/Components/Charts/Bar/Bar.tsx +0 -0
  190. package/UI/Components/Charts/Base/BaseChart.tsx +0 -0
  191. package/UI/Components/Charts/Tooltip/Tooltip.tsx +0 -84
  192. package/build/dist/UI/Components/Charts/Bar/Bar.js +0 -2
  193. package/build/dist/UI/Components/Charts/Bar/Bar.js.map +0 -1
  194. package/build/dist/UI/Components/Charts/Base/BaseChart.js +0 -2
  195. package/build/dist/UI/Components/Charts/Base/BaseChart.js.map +0 -1
  196. package/build/dist/UI/Components/Charts/Tooltip/Tooltip.js +0 -34
  197. 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
- if (!statusPageDomain.fullDomain) {
90
- const fetchedStatusPageDomain: StatusPageDomain | null =
91
- await this.findOneBy({
92
- query: {
93
- _id: statusPageDomain.id!.toString(),
94
- },
95
- select: {
96
- _id: true,
97
- fullDomain: true,
98
- },
99
- props: {
100
- isRoot: true,
101
- },
102
- });
103
-
104
- if (!fetchedStatusPageDomain) {
105
- throw new BadDataException("Domain not found");
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
- statusPageDomain = fetchedStatusPageDomain;
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
- if (!statusPageDomain.fullDomain) {
112
- throw new BadDataException(
113
- "Unable to order certificate because domain is null",
114
- );
115
- }
139
+ logger.debug(
140
+ "SSL ordered for domain: " + statusPageDomain.fullDomain,
141
+ );
116
142
 
117
- await GreenlockUtil.orderCert({
118
- domain: statusPageDomain.fullDomain as string,
119
- validateCname: async (fullDomain: string) => {
120
- return await this.isCnameValid(fullDomain);
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
- // update the order.
125
- await this.updateOneById({
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
- const domains: Array<StatusPageDomain> = await this.findBy({
374
- query: {
375
- isSslOrdered: false,
376
- },
377
- select: {
378
- _id: true,
379
- fullDomain: true,
380
- },
381
- limit: LIMIT_MAX,
382
- skip: 0,
383
- props: {
384
- isRoot: true,
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 { QueryDeepPartialEntity } from "typeorm/query-builder/QueryPartialEntity";
4
+ import QueryDeepPartialEntity from "../../../Types/Database/PartialEntity";
5
5
 
6
6
  export default interface UpdateBy<TBaseModel extends BaseModel> {
7
7
  id: ObjectID;