@oneuptime/common 7.0.2936 → 7.0.2976

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 (2505) hide show
  1. package/Models/DatabaseModels/StatusPage.ts +71 -0
  2. package/Models/DatabaseModels/StatusPageResource.ts +1 -7
  3. package/Server/API/BaseAPI.ts +419 -0
  4. package/Server/API/BaseAnalyticsAPI.ts +479 -0
  5. package/Server/API/BillingInvoiceAPI.ts +170 -0
  6. package/Server/API/BillingPaymentMethodAPI.ts +95 -0
  7. package/Server/API/CommonAPI.ts +65 -0
  8. package/Server/API/CopilotActionAPI.ts +171 -0
  9. package/Server/API/CopilotCodeRepositoryAPI.ts +127 -0
  10. package/Server/API/CopilotPullRequestAPI.ts +243 -0
  11. package/Server/API/FileAPI.ts +50 -0
  12. package/Server/API/GlobalConfigAPI.ts +47 -0
  13. package/Server/API/Index.ts +19 -0
  14. package/Server/API/MonitorGroupAPI.ts +95 -0
  15. package/Server/API/NotificationAPI.ts +117 -0
  16. package/Server/API/ProbeAPI.ts +56 -0
  17. package/Server/API/ProjectAPI.ts +166 -0
  18. package/Server/API/ProjectSSO.ts +65 -0
  19. package/Server/API/ResellerPlanAPI.ts +246 -0
  20. package/Server/API/ShortLinkAPI.ts +52 -0
  21. package/Server/API/StatusAPI.ts +118 -0
  22. package/Server/API/StatusPageAPI.ts +2199 -0
  23. package/Server/API/StatusPageDomainAPI.ts +240 -0
  24. package/Server/API/StatusPageSubscriberAPI.ts +48 -0
  25. package/Server/API/TelemetryAPI.ts +90 -0
  26. package/Server/API/UserCallAPI.ts +120 -0
  27. package/Server/API/UserEmailAPI.ts +121 -0
  28. package/Server/API/UserOnCallLogTimelineAPI.ts +164 -0
  29. package/Server/API/UserSmsAPI.ts +116 -0
  30. package/Server/API/UserTwoFactorAuthAPI.ts +107 -0
  31. package/Server/API/VersionAPI.ts +14 -0
  32. package/Server/BillingConfig.ts +9 -0
  33. package/Server/DatabaseConfig.ts +62 -0
  34. package/Server/Docs/CodeRepository.md +43 -0
  35. package/Server/EnvironmentConfig.ts +257 -0
  36. package/Server/Infrastructure/CacheDatabase.ts +0 -0
  37. package/Server/Infrastructure/ClickhouseConfig.ts +49 -0
  38. package/Server/Infrastructure/ClickhouseDatabase.ts +128 -0
  39. package/Server/Infrastructure/GlobalCache.ts +157 -0
  40. package/Server/Infrastructure/LocalCache.ts +66 -0
  41. package/Server/Infrastructure/Postgres/DataSourceOptions.ts +42 -0
  42. package/Server/Infrastructure/Postgres/LocalMigrationGenerationDataSource.ts +14 -0
  43. package/Server/Infrastructure/Postgres/SchemaMigrations/1717605043663-InitialMigration.ts +5302 -0
  44. package/Server/Infrastructure/Postgres/SchemaMigrations/1717678334852-MigrationName.ts +52 -0
  45. package/Server/Infrastructure/Postgres/SchemaMigrations/1717839110671-MigrationName.ts +67 -0
  46. package/Server/Infrastructure/Postgres/SchemaMigrations/1717849921874-MigrationName.ts +115 -0
  47. package/Server/Infrastructure/Postgres/SchemaMigrations/1717955235341-MigrationName.ts +73 -0
  48. package/Server/Infrastructure/Postgres/SchemaMigrations/1718037833516-MigrationName.ts +51 -0
  49. package/Server/Infrastructure/Postgres/SchemaMigrations/1718100824584-MigrationName.ts +17 -0
  50. package/Server/Infrastructure/Postgres/SchemaMigrations/1718101665865-MigrationName.ts +17 -0
  51. package/Server/Infrastructure/Postgres/SchemaMigrations/1718119926223-MigrationName.ts +17 -0
  52. package/Server/Infrastructure/Postgres/SchemaMigrations/1718124277321-MigrationName.ts +99 -0
  53. package/Server/Infrastructure/Postgres/SchemaMigrations/1718126316684-MigrationName.ts +17 -0
  54. package/Server/Infrastructure/Postgres/SchemaMigrations/1718188920011-MigrationName.ts +23 -0
  55. package/Server/Infrastructure/Postgres/SchemaMigrations/1718203144945-MigrationName.ts +23 -0
  56. package/Server/Infrastructure/Postgres/SchemaMigrations/1718285877004-MigrationName.ts +23 -0
  57. package/Server/Infrastructure/Postgres/SchemaMigrations/1718618155447-MigrationName.ts +17 -0
  58. package/Server/Infrastructure/Postgres/SchemaMigrations/1718711669847-MigrationName.ts +17 -0
  59. package/Server/Infrastructure/Postgres/SchemaMigrations/1718879960254-MigrationName.ts +75 -0
  60. package/Server/Infrastructure/Postgres/SchemaMigrations/1719227548476-MigrationName.ts +17 -0
  61. package/Server/Infrastructure/Postgres/SchemaMigrations/1719228104620-MigrationName.ts +16 -0
  62. package/Server/Infrastructure/Postgres/SchemaMigrations/1719247426296-MigrationName.ts +23 -0
  63. package/Server/Infrastructure/Postgres/SchemaMigrations/1719348009053-MigrationName.ts +17 -0
  64. package/Server/Infrastructure/Postgres/SchemaMigrations/1719827175832-MigrationName.ts +17 -0
  65. package/Server/Infrastructure/Postgres/SchemaMigrations/1719831213463-MigrationName.ts +17 -0
  66. package/Server/Infrastructure/Postgres/SchemaMigrations/1719838746775-MigrationName.ts +155 -0
  67. package/Server/Infrastructure/Postgres/SchemaMigrations/1719915433542-MigrationName.ts +17 -0
  68. package/Server/Infrastructure/Postgres/SchemaMigrations/1720024126646-MigrationName.ts +18 -0
  69. package/Server/Infrastructure/Postgres/SchemaMigrations/1720532068612-MigrationName.ts +154 -0
  70. package/Server/Infrastructure/Postgres/SchemaMigrations/1720538999941-MigrationName.ts +35 -0
  71. package/Server/Infrastructure/Postgres/SchemaMigrations/1720785305192-MigrationName.ts +114 -0
  72. package/Server/Infrastructure/Postgres/SchemaMigrations/1720805596648-MigrationName.ts +17 -0
  73. package/Server/Infrastructure/Postgres/SchemaMigrations/1720806196274-MigrationName.ts +47 -0
  74. package/Server/Infrastructure/Postgres/SchemaMigrations/1720812937067-MigrationName.ts +29 -0
  75. package/Server/Infrastructure/Postgres/SchemaMigrations/1721075917289-MigrationName.ts +63 -0
  76. package/Server/Infrastructure/Postgres/SchemaMigrations/1721152139648-MigrationName.ts +115 -0
  77. package/Server/Infrastructure/Postgres/SchemaMigrations/1721159743714-MigrationName.ts +17 -0
  78. package/Server/Infrastructure/Postgres/SchemaMigrations/1721754545771-MigrationName.ts +35 -0
  79. package/Server/Infrastructure/Postgres/SchemaMigrations/1721779190475-MigrationName.ts +17 -0
  80. package/Server/Infrastructure/Postgres/SchemaMigrations/1722031205897-MigrationName.ts +33 -0
  81. package/Server/Infrastructure/Postgres/SchemaMigrations/1722543640526-MigrationName.ts +51 -0
  82. package/Server/Infrastructure/Postgres/SchemaMigrations/1722892318363-MigrationName.ts +41 -0
  83. package/Server/Infrastructure/Postgres/SchemaMigrations/1723825511054-MigrationName.ts +17 -0
  84. package/Server/Infrastructure/Postgres/SchemaMigrations/1723828588502-MigrationName.ts +17 -0
  85. package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +87 -0
  86. package/Server/Infrastructure/Postgres/SchemaMigrations/Readme.md +11 -0
  87. package/Server/Infrastructure/PostgresDatabase.ts +124 -0
  88. package/Server/Infrastructure/Queue.ts +95 -0
  89. package/Server/Infrastructure/QueueWorker.ts +51 -0
  90. package/Server/Infrastructure/Redis.ts +151 -0
  91. package/Server/Infrastructure/Semaphore.ts +36 -0
  92. package/Server/Infrastructure/SocketIO.ts +40 -0
  93. package/Server/Infrastructure/Status.ts +31 -0
  94. package/Server/Middleware/BearerTokenAuthorization.ts +40 -0
  95. package/Server/Middleware/ClusterKeyAuthorization.ts +56 -0
  96. package/Server/Middleware/CodeRepositoryAuthorization.ts +48 -0
  97. package/Server/Middleware/NotificationMiddleware.ts +70 -0
  98. package/Server/Middleware/ProjectAuthorization.ts +182 -0
  99. package/Server/Middleware/UserAuthorization.ts +363 -0
  100. package/Server/Services/AccessTokenService.ts +363 -0
  101. package/Server/Services/AcmeCertificateService.ts +10 -0
  102. package/Server/Services/AcmeChallengeService.ts +10 -0
  103. package/Server/Services/AnalyticsDatabaseService.ts +1112 -0
  104. package/Server/Services/ApiKeyPermissionService.ts +156 -0
  105. package/Server/Services/ApiKeyService.ts +20 -0
  106. package/Server/Services/BaseService.ts +3 -0
  107. package/Server/Services/BillingInvoiceService.ts +93 -0
  108. package/Server/Services/BillingPaymentMethodService.ts +117 -0
  109. package/Server/Services/BillingService.ts +815 -0
  110. package/Server/Services/CallLogService.ts +11 -0
  111. package/Server/Services/CallService.ts +57 -0
  112. package/Server/Services/CopilotActionService.ts +10 -0
  113. package/Server/Services/CopilotCodeRepositoryService.ts +24 -0
  114. package/Server/Services/CopilotPullRequestService.ts +10 -0
  115. package/Server/Services/DataMigrationService.ts +9 -0
  116. package/Server/Services/DatabaseService.ts +1484 -0
  117. package/Server/Services/DomainService.ts +93 -0
  118. package/Server/Services/EmailLogService.ts +11 -0
  119. package/Server/Services/EmailVerificationTokenService.ts +9 -0
  120. package/Server/Services/FileService.ts +47 -0
  121. package/Server/Services/GlobalConfigService.ts +10 -0
  122. package/Server/Services/GreenlockCertificateService.ts +10 -0
  123. package/Server/Services/GreenlockChallengeService.ts +10 -0
  124. package/Server/Services/IncidentCustomFieldService.ts +9 -0
  125. package/Server/Services/IncidentInternalNoteService.ts +10 -0
  126. package/Server/Services/IncidentNoteTemplateService.ts +9 -0
  127. package/Server/Services/IncidentOwnerTeamService.ts +10 -0
  128. package/Server/Services/IncidentOwnerUserService.ts +10 -0
  129. package/Server/Services/IncidentPublicNoteService.ts +26 -0
  130. package/Server/Services/IncidentService.ts +693 -0
  131. package/Server/Services/IncidentSeverityService.ts +158 -0
  132. package/Server/Services/IncidentStateService.ts +188 -0
  133. package/Server/Services/IncidentStateTimelineService.ts +387 -0
  134. package/Server/Services/IncidentTemplateOwnerTeamService.ts +10 -0
  135. package/Server/Services/IncidentTemplateOwnerUserService.ts +10 -0
  136. package/Server/Services/IncidentTemplateService.ts +88 -0
  137. package/Server/Services/Index.ts +286 -0
  138. package/Server/Services/LabelService.ts +40 -0
  139. package/Server/Services/LogService.ts +11 -0
  140. package/Server/Services/MailService.ts +63 -0
  141. package/Server/Services/MetricService.ts +11 -0
  142. package/Server/Services/MonitorCustomFieldService.ts +9 -0
  143. package/Server/Services/MonitorGroupOwnerTeamService.ts +9 -0
  144. package/Server/Services/MonitorGroupOwnerUserService.ts +9 -0
  145. package/Server/Services/MonitorGroupResourceService.ts +10 -0
  146. package/Server/Services/MonitorGroupService.ts +184 -0
  147. package/Server/Services/MonitorMetricsByMinuteService.ts +14 -0
  148. package/Server/Services/MonitorOwnerTeamService.ts +10 -0
  149. package/Server/Services/MonitorOwnerUserService.ts +10 -0
  150. package/Server/Services/MonitorProbeService.ts +99 -0
  151. package/Server/Services/MonitorSecretService.ts +10 -0
  152. package/Server/Services/MonitorService.ts +907 -0
  153. package/Server/Services/MonitorStatusService.ts +154 -0
  154. package/Server/Services/MonitorStatusTimelineService.ts +308 -0
  155. package/Server/Services/NotificationService.ts +196 -0
  156. package/Server/Services/OnCallDutyPolicyCustomFieldService.ts +9 -0
  157. package/Server/Services/OnCallDutyPolicyEscalationRuleScheduleService.ts +10 -0
  158. package/Server/Services/OnCallDutyPolicyEscalationRuleService.ts +725 -0
  159. package/Server/Services/OnCallDutyPolicyEscalationRuleTeamService.ts +9 -0
  160. package/Server/Services/OnCallDutyPolicyEscalationRuleUserService.ts +9 -0
  161. package/Server/Services/OnCallDutyPolicyExecutionLogService.ts +98 -0
  162. package/Server/Services/OnCallDutyPolicyExecutionLogTimelineService.ts +9 -0
  163. package/Server/Services/OnCallDutyPolicyScheduleLayerService.ts +124 -0
  164. package/Server/Services/OnCallDutyPolicyScheduleLayerUserService.ts +252 -0
  165. package/Server/Services/OnCallDutyPolicyScheduleService.ts +122 -0
  166. package/Server/Services/OnCallDutyPolicyService.ts +73 -0
  167. package/Server/Services/ProbeOwnerTeamService.ts +10 -0
  168. package/Server/Services/ProbeOwnerUserService.ts +10 -0
  169. package/Server/Services/ProbeService.ts +297 -0
  170. package/Server/Services/ProjectCallSMSConfigService.ts +47 -0
  171. package/Server/Services/ProjectService.ts +1137 -0
  172. package/Server/Services/ProjectSmtpConfigService.ts +58 -0
  173. package/Server/Services/ProjectSsoService.ts +10 -0
  174. package/Server/Services/PromoCodeService.ts +9 -0
  175. package/Server/Services/ResellerPlanService.ts +9 -0
  176. package/Server/Services/ResellerService.ts +9 -0
  177. package/Server/Services/ScheduledMaintenanceCustomFieldService.ts +9 -0
  178. package/Server/Services/ScheduledMaintenanceInternalNoteService.ts +10 -0
  179. package/Server/Services/ScheduledMaintenanceNoteTemplateService.ts +9 -0
  180. package/Server/Services/ScheduledMaintenanceOwnerTeamService.ts +10 -0
  181. package/Server/Services/ScheduledMaintenanceOwnerUserService.ts +10 -0
  182. package/Server/Services/ScheduledMaintenancePublicNoteService.ts +26 -0
  183. package/Server/Services/ScheduledMaintenanceService.ts +435 -0
  184. package/Server/Services/ScheduledMaintenanceStateService.ts +158 -0
  185. package/Server/Services/ScheduledMaintenanceStateTimelineService.ts +496 -0
  186. package/Server/Services/ServiceCatalogDependencyService.ts +49 -0
  187. package/Server/Services/ServiceCatalogMonitorService.ts +55 -0
  188. package/Server/Services/ServiceCatalogOwnerTeamService.ts +10 -0
  189. package/Server/Services/ServiceCatalogOwnerUserService.ts +10 -0
  190. package/Server/Services/ServiceCatalogService.ts +26 -0
  191. package/Server/Services/ServiceCatalogTelemetryServiceService.ts +57 -0
  192. package/Server/Services/ServiceCopilotCodeRepositoryService.ts +10 -0
  193. package/Server/Services/ShortLinkService.ts +61 -0
  194. package/Server/Services/SmsLogService.ts +11 -0
  195. package/Server/Services/SmsService.ts +58 -0
  196. package/Server/Services/SpanService.ts +11 -0
  197. package/Server/Services/StatusPageAnnouncementService.ts +10 -0
  198. package/Server/Services/StatusPageCertificateService.ts +59 -0
  199. package/Server/Services/StatusPageCustomFieldService.ts +9 -0
  200. package/Server/Services/StatusPageDomainService.ts +495 -0
  201. package/Server/Services/StatusPageFooterLinkService.ts +236 -0
  202. package/Server/Services/StatusPageGroupService.ts +232 -0
  203. package/Server/Services/StatusPageHeaderLinkService.ts +235 -0
  204. package/Server/Services/StatusPageHistoryChartBarColorRuleService.ts +238 -0
  205. package/Server/Services/StatusPageOwnerTeamService.ts +10 -0
  206. package/Server/Services/StatusPageOwnerUserService.ts +10 -0
  207. package/Server/Services/StatusPagePrivateUserService.ts +137 -0
  208. package/Server/Services/StatusPageResourceService.ts +260 -0
  209. package/Server/Services/StatusPageService.ts +1029 -0
  210. package/Server/Services/StatusPageSsoService.ts +10 -0
  211. package/Server/Services/StatusPageSubscriberService.ts +401 -0
  212. package/Server/Services/TeamMemberService.ts +454 -0
  213. package/Server/Services/TeamPermissionService.ts +366 -0
  214. package/Server/Services/TeamService.ts +72 -0
  215. package/Server/Services/TelemetryAttributeService.ts +83 -0
  216. package/Server/Services/TelemetryIngestionKeyService.ts +23 -0
  217. package/Server/Services/TelemetryServiceService.ts +50 -0
  218. package/Server/Services/TelemetryUsageBillingService.ts +150 -0
  219. package/Server/Services/UserCallService.ts +189 -0
  220. package/Server/Services/UserEmailService.ts +140 -0
  221. package/Server/Services/UserNotificationRuleService.ts +759 -0
  222. package/Server/Services/UserNotificationSettingService.ts +455 -0
  223. package/Server/Services/UserOnCallLogService.ts +251 -0
  224. package/Server/Services/UserOnCallLogTimelineService.ts +127 -0
  225. package/Server/Services/UserService.ts +321 -0
  226. package/Server/Services/UserSmsService.ts +169 -0
  227. package/Server/Services/UserTwoFactorAuthService.ts +122 -0
  228. package/Server/Services/WorkflowLogService.ts +10 -0
  229. package/Server/Services/WorkflowService.ts +81 -0
  230. package/Server/Services/WorkflowVariableService.ts +9 -0
  231. package/Server/Types/AnalyticsDatabase/AggregateBy.ts +36 -0
  232. package/Server/Types/AnalyticsDatabase/CountBy.ts +13 -0
  233. package/Server/Types/AnalyticsDatabase/CreateBy.ts +7 -0
  234. package/Server/Types/AnalyticsDatabase/CreateManyBy.ts +7 -0
  235. package/Server/Types/AnalyticsDatabase/DeleteBy.ts +8 -0
  236. package/Server/Types/AnalyticsDatabase/FindBy.ts +9 -0
  237. package/Server/Types/AnalyticsDatabase/FindOneBy.ts +14 -0
  238. package/Server/Types/AnalyticsDatabase/FindOneByID.ts +10 -0
  239. package/Server/Types/AnalyticsDatabase/GroupBy.ts +8 -0
  240. package/Server/Types/AnalyticsDatabase/Hooks.ts +27 -0
  241. package/Server/Types/AnalyticsDatabase/ModelPermission.ts +732 -0
  242. package/Server/Types/AnalyticsDatabase/Query.ts +6 -0
  243. package/Server/Types/AnalyticsDatabase/QueryHelper.ts +26 -0
  244. package/Server/Types/AnalyticsDatabase/Select.ts +15 -0
  245. package/Server/Types/AnalyticsDatabase/Sort.ts +6 -0
  246. package/Server/Types/AnalyticsDatabase/UpdateBy.ts +9 -0
  247. package/Server/Types/AnalyticsDatabase/UpdateByID.ts +7 -0
  248. package/Server/Types/BaseDatabase/DatabaseRequestType.ts +8 -0
  249. package/Server/Types/Billing/MeteredPlan/ActiveMonitoringMeteredPlan.ts +70 -0
  250. package/Server/Types/Billing/MeteredPlan/AllMeteredPlans.ts +53 -0
  251. package/Server/Types/Billing/MeteredPlan/ServerMeteredPlan.ts +31 -0
  252. package/Server/Types/Billing/MeteredPlan/TelemetryMeteredPlan.ts +134 -0
  253. package/Server/Types/Database/CountBy.ts +14 -0
  254. package/Server/Types/Database/CreateBy.ts +9 -0
  255. package/Server/Types/Database/DeleteBy.ts +11 -0
  256. package/Server/Types/Database/DeleteById.ts +9 -0
  257. package/Server/Types/Database/DeleteOneBy.ts +10 -0
  258. package/Server/Types/Database/FindBy.ts +9 -0
  259. package/Server/Types/Database/FindOneBy.ts +14 -0
  260. package/Server/Types/Database/FindOneByID.ts +10 -0
  261. package/Server/Types/Database/GroupBy.ts +8 -0
  262. package/Server/Types/Database/HardDeleteBy.ts +8 -0
  263. package/Server/Types/Database/Hooks.ts +27 -0
  264. package/Server/Types/Database/Permissions/AccessControlPermission.ts +364 -0
  265. package/Server/Types/Database/Permissions/BasePermission.ts +129 -0
  266. package/Server/Types/Database/Permissions/BillingPermission.ts +98 -0
  267. package/Server/Types/Database/Permissions/ColumnPermission.ts +220 -0
  268. package/Server/Types/Database/Permissions/CreatePermission.ts +50 -0
  269. package/Server/Types/Database/Permissions/DeletePermission.ts +71 -0
  270. package/Server/Types/Database/Permissions/Index.ts +70 -0
  271. package/Server/Types/Database/Permissions/PermissionsUtil.ts +22 -0
  272. package/Server/Types/Database/Permissions/PublicPermission.ts +43 -0
  273. package/Server/Types/Database/Permissions/QueryPermission.ts +173 -0
  274. package/Server/Types/Database/Permissions/ReadPermission.ts +126 -0
  275. package/Server/Types/Database/Permissions/SelectPermission.ts +69 -0
  276. package/Server/Types/Database/Permissions/TablePermission.ts +132 -0
  277. package/Server/Types/Database/Permissions/TenantPermission.ts +103 -0
  278. package/Server/Types/Database/Permissions/UpdatePermission.ts +66 -0
  279. package/Server/Types/Database/Permissions/UserPermission.ts +27 -0
  280. package/Server/Types/Database/Query.ts +25 -0
  281. package/Server/Types/Database/QueryHelper.ts +421 -0
  282. package/Server/Types/Database/QueryUtil.ts +210 -0
  283. package/Server/Types/Database/RelationSelect.ts +9 -0
  284. package/Server/Types/Database/SearchBy.ts +13 -0
  285. package/Server/Types/Database/SearchResult.ts +7 -0
  286. package/Server/Types/Database/Select.ts +14 -0
  287. package/Server/Types/Database/SelectUtil.ts +41 -0
  288. package/Server/Types/Database/Sort.ts +21 -0
  289. package/Server/Types/Database/UpdateBy.ts +11 -0
  290. package/Server/Types/Database/UpdateByID.ts +10 -0
  291. package/Server/Types/Database/UpdateByIDAndFetch.ts +8 -0
  292. package/Server/Types/Database/UpdateOneBy.ts +10 -0
  293. package/Server/Types/Domain.ts +47 -0
  294. package/Server/Types/FeatureSet.ts +3 -0
  295. package/Server/Types/FunctionTypes.ts +0 -0
  296. package/Server/Types/Markdown.ts +138 -0
  297. package/Server/Types/Workflow/ComponentCode.ts +48 -0
  298. package/Server/Types/Workflow/Components/API/Delete.ts +70 -0
  299. package/Server/Types/Workflow/Components/API/Get.ts +70 -0
  300. package/Server/Types/Workflow/Components/API/Patch.ts +70 -0
  301. package/Server/Types/Workflow/Components/API/Post.ts +70 -0
  302. package/Server/Types/Workflow/Components/API/Put.ts +70 -0
  303. package/Server/Types/Workflow/Components/API/Utils.ts +79 -0
  304. package/Server/Types/Workflow/Components/BaseModel/CreateManyBaseModel.ts +126 -0
  305. package/Server/Types/Workflow/Components/BaseModel/CreateOneBaseModel.ts +127 -0
  306. package/Server/Types/Workflow/Components/BaseModel/DeleteManyBaseModel.ts +152 -0
  307. package/Server/Types/Workflow/Components/BaseModel/DeleteOneBaseModel.ts +123 -0
  308. package/Server/Types/Workflow/Components/BaseModel/FindManyBaseModel.ts +180 -0
  309. package/Server/Types/Workflow/Components/BaseModel/FindOneBaseModel.ts +155 -0
  310. package/Server/Types/Workflow/Components/BaseModel/OnCreateBaseModel.ts +11 -0
  311. package/Server/Types/Workflow/Components/BaseModel/OnDeleteBaseModel.ts +11 -0
  312. package/Server/Types/Workflow/Components/BaseModel/OnTriggerBaseModel.ts +232 -0
  313. package/Server/Types/Workflow/Components/BaseModel/OnUpdateBaseModel.ts +11 -0
  314. package/Server/Types/Workflow/Components/BaseModel/UpdateManyBaseModel.ts +174 -0
  315. package/Server/Types/Workflow/Components/BaseModel/UpdateOneBaseModel.ts +145 -0
  316. package/Server/Types/Workflow/Components/Conditions/IfElse.ts +134 -0
  317. package/Server/Types/Workflow/Components/Email.ts +142 -0
  318. package/Server/Types/Workflow/Components/Index.ts +117 -0
  319. package/Server/Types/Workflow/Components/JSON/JsonToText.ts +80 -0
  320. package/Server/Types/Workflow/Components/JSON/MergeJson.ts +88 -0
  321. package/Server/Types/Workflow/Components/JSON/TextToJson.ts +78 -0
  322. package/Server/Types/Workflow/Components/JavaScript.ts +97 -0
  323. package/Server/Types/Workflow/Components/Log.ts +47 -0
  324. package/Server/Types/Workflow/Components/Manual.ts +21 -0
  325. package/Server/Types/Workflow/Components/MicrosoftTeams/SendMessageToChannel.ts +123 -0
  326. package/Server/Types/Workflow/Components/Schedule.ts +146 -0
  327. package/Server/Types/Workflow/Components/Slack/SendMessageToChannel.ts +102 -0
  328. package/Server/Types/Workflow/Components/Webhook.ts +86 -0
  329. package/Server/Types/Workflow/TriggerCode.ts +85 -0
  330. package/Server/Types/Workflow/Workflow.ts +9 -0
  331. package/Server/Utils/Airtable.ts +43 -0
  332. package/Server/Utils/AnalyticsDatabase/Statement.ts +203 -0
  333. package/Server/Utils/AnalyticsDatabase/StatementGenerator.ts +748 -0
  334. package/Server/Utils/BasicCron.ts +38 -0
  335. package/Server/Utils/CodeRepository/CodeRepository.ts +432 -0
  336. package/Server/Utils/CodeRepository/CodeRepositoryFile.ts +10 -0
  337. package/Server/Utils/CodeRepository/GitHub/GitHub.ts +240 -0
  338. package/Server/Utils/CodeRepository/HostedCodeRepository/HostedCodeRepository.ts +59 -0
  339. package/Server/Utils/Cookie.ts +188 -0
  340. package/Server/Utils/CronTab.ts +14 -0
  341. package/Server/Utils/Encryption.ts +32 -0
  342. package/Server/Utils/Environment.ts +20 -0
  343. package/Server/Utils/Errors.ts +24 -0
  344. package/Server/Utils/Execute.ts +25 -0
  345. package/Server/Utils/Express.ts +96 -0
  346. package/Server/Utils/Greenlock/Greenlock.ts +258 -0
  347. package/Server/Utils/JsonToCsv.ts +14 -0
  348. package/Server/Utils/JsonWebToken.ts +121 -0
  349. package/Server/Utils/LocalFile.ts +208 -0
  350. package/Server/Utils/Logger.ts +101 -0
  351. package/Server/Utils/Monitor/Criteria/APIRequestCriteria.ts +188 -0
  352. package/Server/Utils/Monitor/Criteria/CompareCriteria.ts +569 -0
  353. package/Server/Utils/Monitor/Criteria/CustomCodeMonitorCriteria.ts +109 -0
  354. package/Server/Utils/Monitor/Criteria/EvaluateOverTime.ts +120 -0
  355. package/Server/Utils/Monitor/Criteria/IncomingRequestCriteria.ts +239 -0
  356. package/Server/Utils/Monitor/Criteria/LogMonitorCriteria.ts +31 -0
  357. package/Server/Utils/Monitor/Criteria/SSLMonitorCriteria.ts +213 -0
  358. package/Server/Utils/Monitor/Criteria/ServerMonitorCriteria.ts +288 -0
  359. package/Server/Utils/Monitor/Criteria/SyntheticMonitor.ts +47 -0
  360. package/Server/Utils/Monitor/Criteria/TraceMonitorCriteria.ts +31 -0
  361. package/Server/Utils/Monitor/DataToProcess.ts +14 -0
  362. package/Server/Utils/Monitor/MonitorResource.ts +1266 -0
  363. package/Server/Utils/Process.ts +20 -0
  364. package/Server/Utils/Realtime.ts +146 -0
  365. package/Server/Utils/Response.ts +299 -0
  366. package/Server/Utils/Slack.ts +29 -0
  367. package/Server/Utils/StartServer.ts +289 -0
  368. package/Server/Utils/Stream.ts +30 -0
  369. package/Server/Utils/Telemetry.ts +279 -0
  370. package/Server/Utils/TwoFactorAuth.ts +75 -0
  371. package/Server/Utils/VM/VMAPI.ts +178 -0
  372. package/Server/Utils/VM/VMRunner.ts +58 -0
  373. package/Tests/Server/API/BaseAPI.test.ts +807 -0
  374. package/Tests/Server/API/Helpers.ts +67 -0
  375. package/Tests/Server/API/ProbeAPI.test.ts +107 -0
  376. package/Tests/Server/API/ProjectAPI.test.ts +219 -0
  377. package/Tests/Server/API/UserSmsApi.test.ts +242 -0
  378. package/Tests/Server/Middleware/BearerTokenAuthorization.test.ts +74 -0
  379. package/Tests/Server/Middleware/ClusterKeyAuthorization.test.ts +102 -0
  380. package/Tests/Server/Middleware/NotificationMiddleware.test.ts +182 -0
  381. package/Tests/Server/Middleware/ProjectAuthorization.test.ts +289 -0
  382. package/Tests/Server/Middleware/UserAuthorization.test.ts +831 -0
  383. package/Tests/Server/Services/AnalyticsDatabaseService.test.ts +258 -0
  384. package/Tests/Server/Services/BillingService.test.ts +1441 -0
  385. package/Tests/Server/Services/ProbeService.test.ts +838 -0
  386. package/Tests/Server/Services/ScheduledMaintenanceService.test.ts +119 -0
  387. package/Tests/Server/Services/TeamMemberService.test.ts +1252 -0
  388. package/Tests/Server/TestingUtils/Init.ts +5 -0
  389. package/Tests/Server/TestingUtils/Postgres/TestDataSourceOptions.ts +21 -0
  390. package/Tests/Server/TestingUtils/Redis/TestRedisOptions.ts +27 -0
  391. package/Tests/Server/TestingUtils/Services/BillingServiceHelper.ts +202 -0
  392. package/Tests/Server/TestingUtils/Services/ProjectServiceHelper.ts +56 -0
  393. package/Tests/Server/TestingUtils/Services/ScheduledMaintenanceServiceHelper.ts +29 -0
  394. package/Tests/Server/TestingUtils/Services/ScheduledMaintenanceStateServiceHelper.ts +43 -0
  395. package/Tests/Server/TestingUtils/Services/TeamMemberServiceHelper.ts +22 -0
  396. package/Tests/Server/TestingUtils/Services/TeamServiceHelper.ts +34 -0
  397. package/Tests/Server/TestingUtils/Services/Types.ts +57 -0
  398. package/Tests/Server/TestingUtils/Services/UserServiceHelper.ts +50 -0
  399. package/Tests/Server/TestingUtils/__mocks__/Stripe.mock.ts +16 -0
  400. package/Tests/Server/TestingUtils/__mocks__/TestDatabase.mock.ts +30 -0
  401. package/Tests/Server/Utils/AnalyticsDatabase/Statement.test.ts +105 -0
  402. package/Tests/Server/Utils/AnalyticsDatabase/StatementGenerator.test.ts +359 -0
  403. package/Tests/Server/Utils/Cookie.test.ts +121 -0
  404. package/Tests/Server/Utils/CronTab.test.ts +44 -0
  405. package/Tests/Server/Utils/JsonToCsv.test.ts +147 -0
  406. package/Tests/Types/API/Headers.test.ts +1 -1
  407. package/Tests/Types/Database/Date.test.ts +12 -17
  408. package/Tests/Types/Sleep.test.ts +4 -8
  409. package/Tests/UI/Components/404.test.tsx +73 -0
  410. package/Tests/UI/Components/Alert.test.tsx +102 -0
  411. package/Tests/UI/Components/Badge.test.tsx +60 -0
  412. package/Tests/UI/Components/BasicForm.test.tsx +135 -0
  413. package/Tests/UI/Components/Breadcrumbs.test.tsx +79 -0
  414. package/Tests/UI/Components/Button.test.tsx +202 -0
  415. package/Tests/UI/Components/Card.test.tsx +111 -0
  416. package/Tests/UI/Components/ColorViewer.test.tsx +63 -0
  417. package/Tests/UI/Components/ComponentsModal.test.tsx +423 -0
  418. package/Tests/UI/Components/ConfirmModal.test.tsx +91 -0
  419. package/Tests/UI/Components/DictionaryOfStrings.test.tsx +119 -0
  420. package/Tests/UI/Components/Dropdown.test.tsx +247 -0
  421. package/Tests/UI/Components/DuplicateModel.test.tsx +306 -0
  422. package/Tests/UI/Components/EmptyState/EmptyState.test.tsx +44 -0
  423. package/Tests/UI/Components/ErrorBoundary.test.tsx +50 -0
  424. package/Tests/UI/Components/FilePicker.test.tsx +393 -0
  425. package/Tests/UI/Components/HiddenText.test.tsx +63 -0
  426. package/Tests/UI/Components/Input.test.tsx +286 -0
  427. package/Tests/UI/Components/Item.test.tsx +72 -0
  428. package/Tests/UI/Components/List.test.tsx +99 -0
  429. package/Tests/UI/Components/Loader.test.tsx +31 -0
  430. package/Tests/UI/Components/MasterPage.test.tsx +62 -0
  431. package/Tests/UI/Components/Modal.test.tsx +276 -0
  432. package/Tests/UI/Components/NavBar.test.tsx +44 -0
  433. package/Tests/UI/Components/OrderedStatesList.test.tsx +131 -0
  434. package/Tests/UI/Components/Pagination.test.tsx +166 -0
  435. package/Tests/UI/Components/Pill.test.tsx +49 -0
  436. package/Tests/UI/Components/Probe.test.tsx +64 -0
  437. package/Tests/UI/Components/ProgressBar.test.tsx +52 -0
  438. package/Tests/UI/Components/RadioButtons.test.tsx +106 -0
  439. package/Tests/UI/Components/SideMenuItem.test.tsx +153 -0
  440. package/Tests/UI/Components/SideOver.test.tsx +112 -0
  441. package/Tests/UI/Components/Tabs.test.tsx +88 -0
  442. package/Tests/UI/Components/Template/Template.test.tsx +17 -0
  443. package/Tests/UI/Components/TextArea.test.tsx +153 -0
  444. package/Tests/UI/Components/Toast.test.tsx +74 -0
  445. package/Tests/UI/Components/Toggle.test.tsx +170 -0
  446. package/Tests/UI/Components/TopSection.test.tsx +45 -0
  447. package/Tests/UI/Index.tsx +1 -0
  448. package/Tests/UI/Mocks/FileMock.ts +1 -0
  449. package/Tests/Utils/Faker.test.ts +1 -1
  450. package/Types/API/HTTPMethod.ts +1 -0
  451. package/Types/BaseDatabase/InBetween.ts +2 -18
  452. package/Types/BaseDatabase/Includes.ts +1 -1
  453. package/Types/Domain.ts +1 -1
  454. package/Types/JSONFunctions.ts +7 -0
  455. package/Types/Monitor/CriteriaFilter.ts +3 -0
  456. package/Types/Monitor/LogMonitor/LogMonitorResponse.ts +3 -2
  457. package/Types/Monitor/MonitorCriteriaInstance.ts +54 -0
  458. package/Types/Monitor/MonitorStep.ts +26 -0
  459. package/Types/Monitor/MonitorStepTraceMonitor.ts +96 -0
  460. package/Types/Monitor/MonitorSteps.ts +7 -1
  461. package/Types/Monitor/MonitorType.ts +6 -6
  462. package/Types/Monitor/TraceMonitor/TraceMonitorResponse.ts +9 -0
  463. package/Types/SerializableObjectDictionary.ts +2 -0
  464. package/Types/StatusPage/UptimePrecision.ts +8 -0
  465. package/Types/Workflow/ComponentID.ts +1 -0
  466. package/Types/Workflow/Components/API.ts +86 -0
  467. package/UI/Components/404.tsx +59 -0
  468. package/UI/Components/Accordion/Accordion.tsx +119 -0
  469. package/UI/Components/Accordion/AccordionGroup.tsx +13 -0
  470. package/UI/Components/ActionButton/ActionButtonSchema.ts +19 -0
  471. package/UI/Components/Alerts/Alert.tsx +135 -0
  472. package/UI/Components/AuthContainer/AuthContainer.tsx +13 -0
  473. package/UI/Components/Badge/Badge.tsx +48 -0
  474. package/UI/Components/Banner/Banner.tsx +48 -0
  475. package/UI/Components/Breadcrumbs/Breadcrumbs.tsx +67 -0
  476. package/UI/Components/BulkUpdate/BulkUpdateForm.tsx +301 -0
  477. package/UI/Components/Button/Button.tsx +249 -0
  478. package/UI/Components/Button/ButtonTypes.ts +7 -0
  479. package/UI/Components/Calendar/Calendar.tsx +93 -0
  480. package/UI/Components/Card/Card.tsx +105 -0
  481. package/UI/Components/Card/CardButtons/Refresh.ts +15 -0
  482. package/UI/Components/CategoryCheckbox/Category.tsx +138 -0
  483. package/UI/Components/CategoryCheckbox/CategoryCheckboxTypes.ts +14 -0
  484. package/UI/Components/CategoryCheckbox/CheckboxList.tsx +103 -0
  485. package/UI/Components/CategoryCheckbox/Index.tsx +173 -0
  486. package/UI/Components/Charts/Bar/Bar.tsx +0 -0
  487. package/UI/Components/Charts/Base/BaseChart.tsx +0 -0
  488. package/UI/Components/Charts/ChartGroup/ChartGroup.tsx +74 -0
  489. package/UI/Components/Charts/Line/LineChart.tsx +240 -0
  490. package/UI/Components/Charts/Tooltip/Tooltip.tsx +84 -0
  491. package/UI/Components/Checkbox/Checkbox.tsx +94 -0
  492. package/UI/Components/Checkbox/CheckboxViewer.tsx +36 -0
  493. package/UI/Components/CodeBlock/CodeBlock.tsx +20 -0
  494. package/UI/Components/CodeEditor/CodeEditor.tsx +192 -0
  495. package/UI/Components/ColorCircle/ColorCircle.tsx +25 -0
  496. package/UI/Components/ColorSquareCube/ColorSquareCube.tsx +25 -0
  497. package/UI/Components/ColorViewer/ColorViewer.tsx +46 -0
  498. package/UI/Components/ComingSoon/ComingSoon.tsx +16 -0
  499. package/UI/Components/ComponentLoader/CompactLoader.tsx +13 -0
  500. package/UI/Components/ComponentLoader/ComponentLoader.tsx +12 -0
  501. package/UI/Components/CopyTextButton/CopyTextButton.tsx +37 -0
  502. package/UI/Components/CopyableButton/CopyableButton.tsx +51 -0
  503. package/UI/Components/CustomFields/CustomFieldsDetail.tsx +176 -0
  504. package/UI/Components/Date/StartAndEndDate.tsx +369 -0
  505. package/UI/Components/Detail/Detail.tsx +410 -0
  506. package/UI/Components/Detail/Field.ts +44 -0
  507. package/UI/Components/Detail/FieldLabel.tsx +47 -0
  508. package/UI/Components/Detail/PlaceholderText.tsx +13 -0
  509. package/UI/Components/Dictionary/Dictionary.tsx +326 -0
  510. package/UI/Components/Dictionary/DictionaryOfStingsViewer.tsx +63 -0
  511. package/UI/Components/Dictionary/DictionaryOfStrings.tsx +40 -0
  512. package/UI/Components/Divider/Divider.tsx +12 -0
  513. package/UI/Components/Dropdown/Dropdown.tsx +218 -0
  514. package/UI/Components/DuplicateModel/DuplicateModel.tsx +159 -0
  515. package/UI/Components/EmptyState/EmptyState.tsx +47 -0
  516. package/UI/Components/Error/PageError.tsx +38 -0
  517. package/UI/Components/ErrorBoundary.tsx +42 -0
  518. package/UI/Components/ErrorMessage/ErrorMessage.tsx +33 -0
  519. package/UI/Components/EventHistoryList/EventHistoryDayList.tsx +46 -0
  520. package/UI/Components/EventHistoryList/EventHistoryList.tsx +28 -0
  521. package/UI/Components/EventHistoryList/NoEventDay.tsx +27 -0
  522. package/UI/Components/EventItem/EventItem.tsx +320 -0
  523. package/UI/Components/Events/RecurringFieldElement.tsx +88 -0
  524. package/UI/Components/Events/RecurringViewElement.tsx +27 -0
  525. package/UI/Components/FilePicker/FilePicker.tsx +269 -0
  526. package/UI/Components/Filters/BooleanFilter.tsx +60 -0
  527. package/UI/Components/Filters/DateFilter.tsx +52 -0
  528. package/UI/Components/Filters/DropdownFilter.tsx +71 -0
  529. package/UI/Components/Filters/EntityFilter.tsx +70 -0
  530. package/UI/Components/Filters/FilterModal.tsx +0 -0
  531. package/UI/Components/Filters/FilterViewer.tsx +446 -0
  532. package/UI/Components/Filters/FilterViewerItem.tsx +27 -0
  533. package/UI/Components/Filters/FiltersForm.tsx +146 -0
  534. package/UI/Components/Filters/JSONFilter.tsx +55 -0
  535. package/UI/Components/Filters/TextFilter.tsx +99 -0
  536. package/UI/Components/Filters/Types/Filter.ts +12 -0
  537. package/UI/Components/Filters/Types/FilterData.ts +6 -0
  538. package/UI/Components/Footer/Footer.tsx +60 -0
  539. package/UI/Components/FormModal/BasicFormModal.tsx +68 -0
  540. package/UI/Components/Forms/BasicForm.tsx +658 -0
  541. package/UI/Components/Forms/BasicModelForm.tsx +128 -0
  542. package/UI/Components/Forms/Fields/ColorPicker.tsx +135 -0
  543. package/UI/Components/Forms/Fields/FieldLabel.tsx +50 -0
  544. package/UI/Components/Forms/Fields/FormField.tsx +651 -0
  545. package/UI/Components/Forms/ModelForm.tsx +760 -0
  546. package/UI/Components/Forms/Steps/Step.tsx +85 -0
  547. package/UI/Components/Forms/Steps/Steps.tsx +65 -0
  548. package/UI/Components/Forms/Types/Field.ts +105 -0
  549. package/UI/Components/Forms/Types/Fields.ts +5 -0
  550. package/UI/Components/Forms/Types/FormFieldSchemaType.ts +40 -0
  551. package/UI/Components/Forms/Types/FormFieldsSchema.ts +13 -0
  552. package/UI/Components/Forms/Types/FormStep.ts +13 -0
  553. package/UI/Components/Forms/Types/FormValues.ts +11 -0
  554. package/UI/Components/Forms/Validation.ts +337 -0
  555. package/UI/Components/Forms/WizardForm.tsx +0 -0
  556. package/UI/Components/FullPageModal/FullPageModal.tsx +32 -0
  557. package/UI/Components/GanttChart/Bar/BarLabel.tsx +17 -0
  558. package/UI/Components/GanttChart/Bar/Index.tsx +118 -0
  559. package/UI/Components/GanttChart/ChartContainer.tsx +42 -0
  560. package/UI/Components/GanttChart/Index.tsx +84 -0
  561. package/UI/Components/GanttChart/Row/Index.tsx +21 -0
  562. package/UI/Components/GanttChart/Row/Row.tsx +138 -0
  563. package/UI/Components/GanttChart/Row/RowLabel.tsx +21 -0
  564. package/UI/Components/GanttChart/Rows.tsx +53 -0
  565. package/UI/Components/GanttChart/Timeline/Index.tsx +46 -0
  566. package/UI/Components/GanttChart/Timeline/TimelineInterval.tsx +33 -0
  567. package/UI/Components/GanttChart/Timeline/TimelineIntervalMarks.tsx +43 -0
  568. package/UI/Components/Graphs/DayUptimeGraph.tsx +239 -0
  569. package/UI/Components/Header/Header.tsx +38 -0
  570. package/UI/Components/Header/HeaderIconDropdown/HeaderIconDropdown.tsx +0 -0
  571. package/UI/Components/Header/HeaderIconDropdownButton.tsx +84 -0
  572. package/UI/Components/Header/IconDropdown/IconDropdownItem.tsx +34 -0
  573. package/UI/Components/Header/IconDropdown/IconDropdownMenu.tsx +22 -0
  574. package/UI/Components/Header/IconDropdown/IconDropdownRow.tsx +13 -0
  575. package/UI/Components/Header/Notifications/NotificationItem.tsx +48 -0
  576. package/UI/Components/Header/Notifications/Notifications.tsx +98 -0
  577. package/UI/Components/Header/ProjectPicker/CreateNewProjectButton.tsx +34 -0
  578. package/UI/Components/Header/ProjectPicker/ProjectPicker.tsx +118 -0
  579. package/UI/Components/Header/ProjectPicker/ProjectPickerFilterBox.tsx +27 -0
  580. package/UI/Components/Header/ProjectPicker/ProjectPickerMenu.tsx +30 -0
  581. package/UI/Components/Header/ProjectPicker/ProjectPickerMenuItem.tsx +43 -0
  582. package/UI/Components/Header/SearchBox.tsx +30 -0
  583. package/UI/Components/Header/UserProfile/UserProfile.tsx +46 -0
  584. package/UI/Components/Header/UserProfile/UserProfileDropdownDivider.tsx +7 -0
  585. package/UI/Components/Header/UserProfile/UserProfileMenu.tsx +29 -0
  586. package/UI/Components/Header/UserProfile/UserProfileMenuItem.tsx +48 -0
  587. package/UI/Components/HeaderAlert/HeaderAlert.tsx +34 -0
  588. package/UI/Components/HeaderAlert/HeaderModelAlert.tsx +91 -0
  589. package/UI/Components/HiddenText/HiddenText.tsx +57 -0
  590. package/UI/Components/HorizontalRule/HorizontalRule.tsx +17 -0
  591. package/UI/Components/Icon/CircularIconImage.tsx +35 -0
  592. package/UI/Components/Icon/Icon.tsx +1124 -0
  593. package/UI/Components/Image/Image.tsx +65 -0
  594. package/UI/Components/ImageTiles/ImageTiles.tsx +58 -0
  595. package/UI/Components/InfoCard/InfoCard.tsx +26 -0
  596. package/UI/Components/InlineCode/InlineCode.tsx +17 -0
  597. package/UI/Components/Input/Input.tsx +230 -0
  598. package/UI/Components/Link/Link.tsx +89 -0
  599. package/UI/Components/List/List.tsx +154 -0
  600. package/UI/Components/List/ListBody.tsx +72 -0
  601. package/UI/Components/List/ListRow.tsx +161 -0
  602. package/UI/Components/Loader/Loader.tsx +50 -0
  603. package/UI/Components/Loader/PageLoader.tsx +22 -0
  604. package/UI/Components/LogsViewer/LogItem.tsx +266 -0
  605. package/UI/Components/LogsViewer/LogsViewer.tsx +252 -0
  606. package/UI/Components/Markdown.tsx/LazyMarkdownViewer.tsx +24 -0
  607. package/UI/Components/Markdown.tsx/MarkdownEditor.tsx +32 -0
  608. package/UI/Components/Markdown.tsx/MarkdownViewer.tsx +148 -0
  609. package/UI/Components/MasterPage/MasterPage.tsx +58 -0
  610. package/UI/Components/Modal/ConfirmModal.tsx +53 -0
  611. package/UI/Components/Modal/Modal.tsx +181 -0
  612. package/UI/Components/Modal/ModalBody.tsx +20 -0
  613. package/UI/Components/Modal/ModalFooter.tsx +66 -0
  614. package/UI/Components/ModelDelete/ModelDelete.tsx +99 -0
  615. package/UI/Components/ModelDetail/CardModelDetail.tsx +139 -0
  616. package/UI/Components/ModelDetail/Field.ts +8 -0
  617. package/UI/Components/ModelDetail/ModelDetail.tsx +267 -0
  618. package/UI/Components/ModelFilter/Filter.ts +29 -0
  619. package/UI/Components/ModelFormModal/ModelFormModal.tsx +120 -0
  620. package/UI/Components/ModelList/ModelList.tsx +303 -0
  621. package/UI/Components/ModelList/StaticModelList.tsx +190 -0
  622. package/UI/Components/ModelListModal/ModelListModal.tsx +56 -0
  623. package/UI/Components/ModelProgress/ModelProgress.tsx +74 -0
  624. package/UI/Components/ModelTable/AnalyticsModelTable.tsx +112 -0
  625. package/UI/Components/ModelTable/BaseModelTable.tsx +1798 -0
  626. package/UI/Components/ModelTable/Column.ts +34 -0
  627. package/UI/Components/ModelTable/Columns.ts +7 -0
  628. package/UI/Components/ModelTable/ModelTable.tsx +187 -0
  629. package/UI/Components/MonitorGraphs/Uptime.tsx +90 -0
  630. package/UI/Components/MonitorGraphs/UptimeUtil.ts +3 -0
  631. package/UI/Components/Navbar/NavBar.tsx +27 -0
  632. package/UI/Components/Navbar/NavBarItem.tsx +78 -0
  633. package/UI/Components/Navbar/NavBarMenu.tsx +52 -0
  634. package/UI/Components/Navbar/NavBarMenuItem.tsx +37 -0
  635. package/UI/Components/Navbar/NavBarMenuSubItem.tsx +20 -0
  636. package/UI/Components/ObjectID/IDGenerator.tsx +85 -0
  637. package/UI/Components/OrderedStatesList/Item.tsx +114 -0
  638. package/UI/Components/OrderedStatesList/OrderedStatesList.tsx +155 -0
  639. package/UI/Components/Page/ModelPage.tsx +79 -0
  640. package/UI/Components/Page/Page.tsx +91 -0
  641. package/UI/Components/Pagination/Pagination.tsx +243 -0
  642. package/UI/Components/Pill/Pill.tsx +67 -0
  643. package/UI/Components/Probe/Probe.tsx +69 -0
  644. package/UI/Components/ProgressBar/ProgressBar.tsx +69 -0
  645. package/UI/Components/QR/QR.tsx +41 -0
  646. package/UI/Components/Radio/Radio.tsx +66 -0
  647. package/UI/Components/RadioButtons/BasicRadioButtons.tsx +93 -0
  648. package/UI/Components/RadioButtons/GroupRadioButtons.tsx +125 -0
  649. package/UI/Components/ResetObjectID/ResetObjectID.tsx +139 -0
  650. package/UI/Components/ShortcutKey/Shortcut.tsx +20 -0
  651. package/UI/Components/ShortcutKey/ShortcutKey.ts +8 -0
  652. package/UI/Components/SideMenu/CountModelSideMenuItem.tsx +81 -0
  653. package/UI/Components/SideMenu/SideMenu.tsx +26 -0
  654. package/UI/Components/SideMenu/SideMenuItem.tsx +194 -0
  655. package/UI/Components/SideMenu/SideMenuSection.tsx +19 -0
  656. package/UI/Components/SideOver/SideOver.tsx +118 -0
  657. package/UI/Components/SimpleLogViewer/SimpleLogViewer.tsx +17 -0
  658. package/UI/Components/StatusBubble/StatusBubble.tsx +51 -0
  659. package/UI/Components/Table/Table.tsx +301 -0
  660. package/UI/Components/Table/TableBody.tsx +90 -0
  661. package/UI/Components/Table/TableCard.tsx +31 -0
  662. package/UI/Components/Table/TableHeader.tsx +129 -0
  663. package/UI/Components/Table/TableRow.tsx +276 -0
  664. package/UI/Components/Table/Types/Column.ts +20 -0
  665. package/UI/Components/Table/Types/Columns.ts +6 -0
  666. package/UI/Components/TableColumnList/TableColumnListComponent.tsx +83 -0
  667. package/UI/Components/Tabs/Tab.tsx +68 -0
  668. package/UI/Components/Tabs/Tabs.tsx +52 -0
  669. package/UI/Components/Template/Template.tsx +13 -0
  670. package/UI/Components/TextArea/TextArea.tsx +101 -0
  671. package/UI/Components/Toast/Toast.tsx +122 -0
  672. package/UI/Components/Toast/ToastInit.tsx +60 -0
  673. package/UI/Components/Toggle/Toggle.tsx +113 -0
  674. package/UI/Components/Tooltip/Tooltip.tsx +24 -0
  675. package/UI/Components/TopAlert/TopAlert.tsx +43 -0
  676. package/UI/Components/TopSection/TopSection.tsx +23 -0
  677. package/UI/Components/Types/FieldType.ts +39 -0
  678. package/UI/Components/Workflow/ArgumentsForm.tsx +177 -0
  679. package/UI/Components/Workflow/Component.tsx +321 -0
  680. package/UI/Components/Workflow/ComponentArgumentsViewer.tsx +61 -0
  681. package/UI/Components/Workflow/ComponentPortViewer.tsx +55 -0
  682. package/UI/Components/Workflow/ComponentReturnValueViewer.tsx +60 -0
  683. package/UI/Components/Workflow/ComponentSettingsModal.tsx +168 -0
  684. package/UI/Components/Workflow/ComponentValuePickerModal.tsx +197 -0
  685. package/UI/Components/Workflow/ComponentsModal.tsx +207 -0
  686. package/UI/Components/Workflow/DocumentationViewer.tsx +79 -0
  687. package/UI/Components/Workflow/RunForm.tsx +109 -0
  688. package/UI/Components/Workflow/RunModal.tsx +121 -0
  689. package/UI/Components/Workflow/Utils.ts +267 -0
  690. package/UI/Components/Workflow/VariableModal.tsx +55 -0
  691. package/UI/Components/Workflow/Workflow.tsx +525 -0
  692. package/UI/Components/Workflow/WorkflowStatus.tsx +37 -0
  693. package/UI/Config.ts +211 -0
  694. package/UI/Container.tsx +16 -0
  695. package/UI/Fonts/boxicons.eot +0 -0
  696. package/UI/Fonts/boxicons.svg +1510 -0
  697. package/UI/Fonts/boxicons.ttf +0 -0
  698. package/UI/Fonts/boxicons.woff +0 -0
  699. package/UI/Fonts/boxicons.woff2 +0 -0
  700. package/UI/Fonts/dripicons-v2.eot +0 -0
  701. package/UI/Fonts/dripicons-v2.svg +210 -0
  702. package/UI/Fonts/dripicons-v2.ttf +0 -0
  703. package/UI/Fonts/dripicons-v2.woff +0 -0
  704. package/UI/Fonts/fa-brands-400.eot +0 -0
  705. package/UI/Fonts/fa-brands-400.svg +3570 -0
  706. package/UI/Fonts/fa-brands-400.ttf +0 -0
  707. package/UI/Fonts/fa-brands-400.woff +0 -0
  708. package/UI/Fonts/fa-brands-400.woff2 +0 -0
  709. package/UI/Fonts/fa-regular-400.eot +0 -0
  710. package/UI/Fonts/fa-regular-400.svg +803 -0
  711. package/UI/Fonts/fa-regular-400.ttf +0 -0
  712. package/UI/Fonts/fa-regular-400.woff +0 -0
  713. package/UI/Fonts/fa-regular-400.woff2 +0 -0
  714. package/UI/Fonts/fa-solid-900.eot +0 -0
  715. package/UI/Fonts/fa-solid-900.svg +4938 -0
  716. package/UI/Fonts/fa-solid-900.ttf +0 -0
  717. package/UI/Fonts/fa-solid-900.woff +0 -0
  718. package/UI/Fonts/fa-solid-900.woff2 +0 -0
  719. package/UI/Fonts/materialdesignicons-webfont.eot +0 -0
  720. package/UI/Fonts/materialdesignicons-webfont.ttf +0 -0
  721. package/UI/Fonts/materialdesignicons-webfont.woff +0 -0
  722. package/UI/Fonts/materialdesignicons-webfont.woff2 +0 -0
  723. package/UI/Images/auth-bg.jpg +0 -0
  724. package/UI/Images/banner/placeholder.png +0 -0
  725. package/UI/Images/bg-1.jpg +0 -0
  726. package/UI/Images/bg-2.jpg +0 -0
  727. package/UI/Images/bg-3.jpg +0 -0
  728. package/UI/Images/error-img.png +0 -0
  729. package/UI/Images/favicon.ico +0 -0
  730. package/UI/Images/flags/french.jpg +0 -0
  731. package/UI/Images/flags/germany.jpg +0 -0
  732. package/UI/Images/flags/italy.jpg +0 -0
  733. package/UI/Images/flags/russia.jpg +0 -0
  734. package/UI/Images/flags/select2/ak.png +0 -0
  735. package/UI/Images/flags/select2/ca.png +0 -0
  736. package/UI/Images/flags/select2/hi.png +0 -0
  737. package/UI/Images/flags/select2/nv.png +0 -0
  738. package/UI/Images/flags/select2/or.png +0 -0
  739. package/UI/Images/flags/select2/wa.png +0 -0
  740. package/UI/Images/flags/spain.jpg +0 -0
  741. package/UI/Images/flags/us.jpg +0 -0
  742. package/UI/Images/giftbox.png +0 -0
  743. package/UI/Images/logo-sm.svg +1 -0
  744. package/UI/Images/logos/OneUptimeJPG/1.jpg +0 -0
  745. package/UI/Images/logos/OneUptimeJPG/2.jpg +0 -0
  746. package/UI/Images/logos/OneUptimeJPG/3.jpg +0 -0
  747. package/UI/Images/logos/OneUptimeJPG/4.jpg +0 -0
  748. package/UI/Images/logos/OneUptimeJPG/5.jpg +0 -0
  749. package/UI/Images/logos/OneUptimeJPG/6.jpg +0 -0
  750. package/UI/Images/logos/OneUptimePNG/1.png +0 -0
  751. package/UI/Images/logos/OneUptimePNG/2.png +0 -0
  752. package/UI/Images/logos/OneUptimePNG/3.png +0 -0
  753. package/UI/Images/logos/OneUptimePNG/4.png +0 -0
  754. package/UI/Images/logos/OneUptimePNG/5.png +0 -0
  755. package/UI/Images/logos/OneUptimePNG/6.png +0 -0
  756. package/UI/Images/logos/OneUptimePNG/7.png +0 -0
  757. package/UI/Images/logos/OneUptimeSVG/1.svg +1 -0
  758. package/UI/Images/logos/OneUptimeSVG/2.svg +1 -0
  759. package/UI/Images/logos/OneUptimeSVG/3-transparent.svg +1 -0
  760. package/UI/Images/logos/OneUptimeSVG/3.svg +1 -0
  761. package/UI/Images/logos/OneUptimeSVG/4.svg +1 -0
  762. package/UI/Images/logos/OneUptimeSVG/5.svg +1 -0
  763. package/UI/Images/logos/OneUptimeSVG/6.svg +1 -0
  764. package/UI/Images/small/img-1.jpg +0 -0
  765. package/UI/Images/small/img-2.jpg +0 -0
  766. package/UI/Images/small/img-3.jpg +0 -0
  767. package/UI/Images/small/img-4.jpg +0 -0
  768. package/UI/Images/small/img-5.jpg +0 -0
  769. package/UI/Images/small/img-6.jpg +0 -0
  770. package/UI/Images/small/img-7.jpg +0 -0
  771. package/UI/Images/undraw-calendar.svg +1 -0
  772. package/UI/Images/users/avatar-1.jpg +0 -0
  773. package/UI/Images/users/avatar-10.jpg +0 -0
  774. package/UI/Images/users/avatar-2.jpg +0 -0
  775. package/UI/Images/users/avatar-3.jpg +0 -0
  776. package/UI/Images/users/avatar-4.jpg +0 -0
  777. package/UI/Images/users/avatar-5.jpg +0 -0
  778. package/UI/Images/users/avatar-6.jpg +0 -0
  779. package/UI/Images/users/avatar-7.jpg +0 -0
  780. package/UI/Images/users/avatar-8.jpg +0 -0
  781. package/UI/Images/users/avatar-9.jpg +0 -0
  782. package/UI/Images/users/blank-profile.svg +8 -0
  783. package/UI/Types/AlignItem.ts +7 -0
  784. package/UI/Types/EntityFieldType.ts +20 -0
  785. package/UI/Types/FunctionTypes.ts +5 -0
  786. package/UI/Types/HtmlEvents.ts +7 -0
  787. package/UI/Types/RequiredEntityFields.ts +11 -0
  788. package/UI/Types/SelectEntityField.ts +11 -0
  789. package/UI/Types/UseComponentOutsideClick.ts +42 -0
  790. package/UI/Utils/API/API.ts +148 -0
  791. package/UI/Utils/API/ApiDocsAPI.ts +11 -0
  792. package/UI/Utils/API/DashboardAPI.ts +11 -0
  793. package/UI/Utils/API/DashboardFrontendAPI.ts +10 -0
  794. package/UI/Utils/API/HelmAPI.ts +10 -0
  795. package/UI/Utils/API/IdentityAPI.ts +11 -0
  796. package/UI/Utils/API/IntegrationAPI.ts +10 -0
  797. package/UI/Utils/Analytics.ts +6 -0
  798. package/UI/Utils/AnalyticsModelAPI/AnalyticsModelAPI.ts +520 -0
  799. package/UI/Utils/BaseDatabase/GroupBy.ts +9 -0
  800. package/UI/Utils/BaseDatabase/ListResult.ts +12 -0
  801. package/UI/Utils/BaseDatabase/Query.ts +25 -0
  802. package/UI/Utils/BaseDatabase/RequestOptions.ts +7 -0
  803. package/UI/Utils/BaseDatabase/Select.ts +9 -0
  804. package/UI/Utils/BaseDatabase/Sort.ts +10 -0
  805. package/UI/Utils/Clipboard.ts +5 -0
  806. package/UI/Utils/Cookie.ts +72 -0
  807. package/UI/Utils/Dropdown.ts +72 -0
  808. package/UI/Utils/File.ts +11 -0
  809. package/UI/Utils/GlobalEvents.ts +30 -0
  810. package/UI/Utils/History.ts +3 -0
  811. package/UI/Utils/JWT.ts +8 -0
  812. package/UI/Utils/JsonWebToken.ts +14 -0
  813. package/UI/Utils/LocalStorage.ts +45 -0
  814. package/UI/Utils/Logger.ts +21 -0
  815. package/UI/Utils/Login.ts +36 -0
  816. package/UI/Utils/ModelAPI/ModelAPI.ts +454 -0
  817. package/UI/Utils/Navigation.ts +243 -0
  818. package/UI/Utils/Permission.ts +90 -0
  819. package/UI/Utils/PricingPlan.ts +116 -0
  820. package/UI/Utils/Project.ts +52 -0
  821. package/UI/Utils/Realtime.ts +128 -0
  822. package/UI/Utils/StatusPage.ts +115 -0
  823. package/UI/Utils/Tailwind.ts +5 -0
  824. package/UI/Utils/Telemetry.ts +56 -0
  825. package/UI/Utils/Timezone.ts +37 -0
  826. package/UI/Utils/User.ts +193 -0
  827. package/Utils/API.ts +40 -0
  828. package/Utils/Faker.ts +22 -4
  829. package/Utils/Slug.ts +1 -1
  830. package/Utils/Uptime/UptimeUtil.ts +119 -6
  831. package/build/dist/Models/AnalyticsModels/AnalyticsBaseModel/AnalyticsBaseModel.js.map +1 -1
  832. package/build/dist/Models/AnalyticsModels/AnalyticsBaseModel/CommonModel.js.map +1 -1
  833. package/build/dist/Models/DatabaseModels/AcmeCertificate.js.map +1 -1
  834. package/build/dist/Models/DatabaseModels/AcmeChallenge.js.map +1 -1
  835. package/build/dist/Models/DatabaseModels/ApiKey.js.map +1 -1
  836. package/build/dist/Models/DatabaseModels/ApiKeyPermission.js.map +1 -1
  837. package/build/dist/Models/DatabaseModels/BillingInvoice.js.map +1 -1
  838. package/build/dist/Models/DatabaseModels/BillingPaymentMethod.js.map +1 -1
  839. package/build/dist/Models/DatabaseModels/CallLog.js.map +1 -1
  840. package/build/dist/Models/DatabaseModels/CopilotAction.js.map +1 -1
  841. package/build/dist/Models/DatabaseModels/CopilotCodeRepository.js.map +1 -1
  842. package/build/dist/Models/DatabaseModels/CopilotPullRequest.js.map +1 -1
  843. package/build/dist/Models/DatabaseModels/DataMigration.js.map +1 -1
  844. package/build/dist/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.js.map +1 -1
  845. package/build/dist/Models/DatabaseModels/DatabaseBaseModel/FileModel.js.map +1 -1
  846. package/build/dist/Models/DatabaseModels/Domain.js.map +1 -1
  847. package/build/dist/Models/DatabaseModels/EmailLog.js.map +1 -1
  848. package/build/dist/Models/DatabaseModels/EmailVerificationToken.js.map +1 -1
  849. package/build/dist/Models/DatabaseModels/GlobalConfig.js.map +1 -1
  850. package/build/dist/Models/DatabaseModels/GreenlockCertificate.js.map +1 -1
  851. package/build/dist/Models/DatabaseModels/GreenlockChallenge.js.map +1 -1
  852. package/build/dist/Models/DatabaseModels/Incident.js.map +1 -1
  853. package/build/dist/Models/DatabaseModels/IncidentCustomField.js.map +1 -1
  854. package/build/dist/Models/DatabaseModels/IncidentInternalNote.js.map +1 -1
  855. package/build/dist/Models/DatabaseModels/IncidentNoteTemplate.js.map +1 -1
  856. package/build/dist/Models/DatabaseModels/IncidentOwnerTeam.js.map +1 -1
  857. package/build/dist/Models/DatabaseModels/IncidentOwnerUser.js.map +1 -1
  858. package/build/dist/Models/DatabaseModels/IncidentPublicNote.js.map +1 -1
  859. package/build/dist/Models/DatabaseModels/IncidentSeverity.js.map +1 -1
  860. package/build/dist/Models/DatabaseModels/IncidentState.js.map +1 -1
  861. package/build/dist/Models/DatabaseModels/IncidentStateTimeline.js.map +1 -1
  862. package/build/dist/Models/DatabaseModels/IncidentTemplate.js.map +1 -1
  863. package/build/dist/Models/DatabaseModels/IncidentTemplateOwnerTeam.js.map +1 -1
  864. package/build/dist/Models/DatabaseModels/IncidentTemplateOwnerUser.js.map +1 -1
  865. package/build/dist/Models/DatabaseModels/Label.js.map +1 -1
  866. package/build/dist/Models/DatabaseModels/Monitor.js.map +1 -1
  867. package/build/dist/Models/DatabaseModels/MonitorCustomField.js.map +1 -1
  868. package/build/dist/Models/DatabaseModels/MonitorGroup.js.map +1 -1
  869. package/build/dist/Models/DatabaseModels/MonitorGroupOwnerTeam.js.map +1 -1
  870. package/build/dist/Models/DatabaseModels/MonitorGroupOwnerUser.js.map +1 -1
  871. package/build/dist/Models/DatabaseModels/MonitorGroupResource.js.map +1 -1
  872. package/build/dist/Models/DatabaseModels/MonitorOwnerTeam.js.map +1 -1
  873. package/build/dist/Models/DatabaseModels/MonitorOwnerUser.js.map +1 -1
  874. package/build/dist/Models/DatabaseModels/MonitorProbe.js.map +1 -1
  875. package/build/dist/Models/DatabaseModels/MonitorSecret.js.map +1 -1
  876. package/build/dist/Models/DatabaseModels/MonitorStatus.js.map +1 -1
  877. package/build/dist/Models/DatabaseModels/MonitorStatusTimeline.js.map +1 -1
  878. package/build/dist/Models/DatabaseModels/OnCallDutyPolicy.js.map +1 -1
  879. package/build/dist/Models/DatabaseModels/OnCallDutyPolicyCustomField.js.map +1 -1
  880. package/build/dist/Models/DatabaseModels/OnCallDutyPolicyEscalationRule.js.map +1 -1
  881. package/build/dist/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleSchedule.js.map +1 -1
  882. package/build/dist/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleTeam.js.map +1 -1
  883. package/build/dist/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleUser.js.map +1 -1
  884. package/build/dist/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js.map +1 -1
  885. package/build/dist/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js.map +1 -1
  886. package/build/dist/Models/DatabaseModels/OnCallDutyPolicySchedule.js.map +1 -1
  887. package/build/dist/Models/DatabaseModels/OnCallDutyPolicyScheduleLayer.js.map +1 -1
  888. package/build/dist/Models/DatabaseModels/OnCallDutyPolicyScheduleLayerUser.js.map +1 -1
  889. package/build/dist/Models/DatabaseModels/Probe.js.map +1 -1
  890. package/build/dist/Models/DatabaseModels/ProbeOwnerTeam.js.map +1 -1
  891. package/build/dist/Models/DatabaseModels/ProbeOwnerUser.js.map +1 -1
  892. package/build/dist/Models/DatabaseModels/Project.js.map +1 -1
  893. package/build/dist/Models/DatabaseModels/ProjectCallSMSConfig.js.map +1 -1
  894. package/build/dist/Models/DatabaseModels/ProjectSmtpConfig.js.map +1 -1
  895. package/build/dist/Models/DatabaseModels/ProjectSso.js.map +1 -1
  896. package/build/dist/Models/DatabaseModels/PromoCode.js.map +1 -1
  897. package/build/dist/Models/DatabaseModels/Reseller.js.map +1 -1
  898. package/build/dist/Models/DatabaseModels/ResellerPlan.js.map +1 -1
  899. package/build/dist/Models/DatabaseModels/ScheduledMaintenance.js.map +1 -1
  900. package/build/dist/Models/DatabaseModels/ScheduledMaintenanceCustomField.js.map +1 -1
  901. package/build/dist/Models/DatabaseModels/ScheduledMaintenanceInternalNote.js.map +1 -1
  902. package/build/dist/Models/DatabaseModels/ScheduledMaintenanceNoteTemplate.js.map +1 -1
  903. package/build/dist/Models/DatabaseModels/ScheduledMaintenanceOwnerTeam.js.map +1 -1
  904. package/build/dist/Models/DatabaseModels/ScheduledMaintenanceOwnerUser.js.map +1 -1
  905. package/build/dist/Models/DatabaseModels/ScheduledMaintenancePublicNote.js.map +1 -1
  906. package/build/dist/Models/DatabaseModels/ScheduledMaintenanceState.js.map +1 -1
  907. package/build/dist/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js.map +1 -1
  908. package/build/dist/Models/DatabaseModels/ServiceCatalog.js.map +1 -1
  909. package/build/dist/Models/DatabaseModels/ServiceCatalogDependency.js.map +1 -1
  910. package/build/dist/Models/DatabaseModels/ServiceCatalogMonitor.js.map +1 -1
  911. package/build/dist/Models/DatabaseModels/ServiceCatalogOwnerTeam.js.map +1 -1
  912. package/build/dist/Models/DatabaseModels/ServiceCatalogOwnerUser.js.map +1 -1
  913. package/build/dist/Models/DatabaseModels/ServiceCatalogTelemetryService.js.map +1 -1
  914. package/build/dist/Models/DatabaseModels/ServiceCopilotCodeRepository.js.map +1 -1
  915. package/build/dist/Models/DatabaseModels/ShortLink.js.map +1 -1
  916. package/build/dist/Models/DatabaseModels/SmsLog.js +1 -1
  917. package/build/dist/Models/DatabaseModels/SmsLog.js.map +1 -1
  918. package/build/dist/Models/DatabaseModels/StatusPage.js +75 -0
  919. package/build/dist/Models/DatabaseModels/StatusPage.js.map +1 -1
  920. package/build/dist/Models/DatabaseModels/StatusPageAnnouncement.js.map +1 -1
  921. package/build/dist/Models/DatabaseModels/StatusPageCustomField.js.map +1 -1
  922. package/build/dist/Models/DatabaseModels/StatusPageDomain.js.map +1 -1
  923. package/build/dist/Models/DatabaseModels/StatusPageFooterLink.js.map +1 -1
  924. package/build/dist/Models/DatabaseModels/StatusPageGroup.js.map +1 -1
  925. package/build/dist/Models/DatabaseModels/StatusPageHeaderLink.js.map +1 -1
  926. package/build/dist/Models/DatabaseModels/StatusPageHistoryChartBarColorRule.js.map +1 -1
  927. package/build/dist/Models/DatabaseModels/StatusPageOwnerTeam.js.map +1 -1
  928. package/build/dist/Models/DatabaseModels/StatusPageOwnerUser.js.map +1 -1
  929. package/build/dist/Models/DatabaseModels/StatusPagePrivateUser.js.map +1 -1
  930. package/build/dist/Models/DatabaseModels/StatusPageResource.js +1 -7
  931. package/build/dist/Models/DatabaseModels/StatusPageResource.js.map +1 -1
  932. package/build/dist/Models/DatabaseModels/StatusPageSso.js.map +1 -1
  933. package/build/dist/Models/DatabaseModels/StatusPageSubscriber.js.map +1 -1
  934. package/build/dist/Models/DatabaseModels/Team.js.map +1 -1
  935. package/build/dist/Models/DatabaseModels/TeamMember.js.map +1 -1
  936. package/build/dist/Models/DatabaseModels/TeamPermission.js.map +1 -1
  937. package/build/dist/Models/DatabaseModels/TelemetryIngestionKey.js.map +1 -1
  938. package/build/dist/Models/DatabaseModels/TelemetryService.js.map +1 -1
  939. package/build/dist/Models/DatabaseModels/TelemetryUsageBilling.js.map +1 -1
  940. package/build/dist/Models/DatabaseModels/User.js +3 -4
  941. package/build/dist/Models/DatabaseModels/User.js.map +1 -1
  942. package/build/dist/Models/DatabaseModels/UserCall.js.map +1 -1
  943. package/build/dist/Models/DatabaseModels/UserEmail.js.map +1 -1
  944. package/build/dist/Models/DatabaseModels/UserNotificationRule.js.map +1 -1
  945. package/build/dist/Models/DatabaseModels/UserNotificationSetting.js.map +1 -1
  946. package/build/dist/Models/DatabaseModels/UserOnCallLog.js.map +1 -1
  947. package/build/dist/Models/DatabaseModels/UserOnCallLogTimeline.js.map +1 -1
  948. package/build/dist/Models/DatabaseModels/UserSMS.js.map +1 -1
  949. package/build/dist/Models/DatabaseModels/UserTwoFactorAuth.js.map +1 -1
  950. package/build/dist/Models/DatabaseModels/Workflow.js.map +1 -1
  951. package/build/dist/Models/DatabaseModels/WorkflowLog.js.map +1 -1
  952. package/build/dist/Models/DatabaseModels/WorkflowVariable.js.map +1 -1
  953. package/build/dist/Server/API/BaseAPI.js +243 -0
  954. package/build/dist/Server/API/BaseAPI.js.map +1 -0
  955. package/build/dist/Server/API/BaseAnalyticsAPI.js +271 -0
  956. package/build/dist/Server/API/BaseAnalyticsAPI.js.map +1 -0
  957. package/build/dist/Server/API/BillingInvoiceAPI.js +106 -0
  958. package/build/dist/Server/API/BillingInvoiceAPI.js.map +1 -0
  959. package/build/dist/Server/API/BillingPaymentMethodAPI.js +62 -0
  960. package/build/dist/Server/API/BillingPaymentMethodAPI.js.map +1 -0
  961. package/build/dist/Server/API/CommonAPI.js +43 -0
  962. package/build/dist/Server/API/CommonAPI.js.map +1 -0
  963. package/build/dist/Server/API/CopilotActionAPI.js +116 -0
  964. package/build/dist/Server/API/CopilotActionAPI.js.map +1 -0
  965. package/build/dist/Server/API/CopilotCodeRepositoryAPI.js +91 -0
  966. package/build/dist/Server/API/CopilotCodeRepositoryAPI.js.map +1 -0
  967. package/build/dist/Server/API/CopilotPullRequestAPI.js +166 -0
  968. package/build/dist/Server/API/CopilotPullRequestAPI.js.map +1 -0
  969. package/build/dist/Server/API/FileAPI.js +30 -0
  970. package/build/dist/Server/API/FileAPI.js.map +1 -0
  971. package/build/dist/Server/API/GlobalConfigAPI.js +33 -0
  972. package/build/dist/Server/API/GlobalConfigAPI.js.map +1 -0
  973. package/build/dist/Server/API/Index.js +10 -0
  974. package/build/dist/Server/API/Index.js.map +1 -0
  975. package/build/dist/Server/API/MonitorGroupAPI.js +48 -0
  976. package/build/dist/Server/API/MonitorGroupAPI.js.map +1 -0
  977. package/build/dist/Server/API/NotificationAPI.js +54 -0
  978. package/build/dist/Server/API/NotificationAPI.js.map +1 -0
  979. package/build/dist/Server/API/ProbeAPI.js +39 -0
  980. package/build/dist/Server/API/ProbeAPI.js.map +1 -0
  981. package/build/dist/Server/API/ProjectAPI.js +118 -0
  982. package/build/dist/Server/API/ProjectAPI.js.map +1 -0
  983. package/build/dist/Server/API/ProjectSSO.js +40 -0
  984. package/build/dist/Server/API/ProjectSSO.js.map +1 -0
  985. package/build/dist/Server/API/ResellerPlanAPI.js +187 -0
  986. package/build/dist/Server/API/ResellerPlanAPI.js.map +1 -0
  987. package/build/dist/Server/API/ShortLinkAPI.js +28 -0
  988. package/build/dist/Server/API/ShortLinkAPI.js.map +1 -0
  989. package/build/dist/Server/API/StatusAPI.js +86 -0
  990. package/build/dist/Server/API/StatusAPI.js.map +1 -0
  991. package/build/dist/Server/API/StatusPageAPI.js +1558 -0
  992. package/build/dist/Server/API/StatusPageAPI.js.map +1 -0
  993. package/build/dist/Server/API/StatusPageDomainAPI.js +127 -0
  994. package/build/dist/Server/API/StatusPageDomainAPI.js.map +1 -0
  995. package/build/dist/Server/API/StatusPageSubscriberAPI.js +31 -0
  996. package/build/dist/Server/API/StatusPageSubscriberAPI.js.map +1 -0
  997. package/build/dist/Server/API/TelemetryAPI.js +41 -0
  998. package/build/dist/Server/API/TelemetryAPI.js.map +1 -0
  999. package/build/dist/Server/API/UserCallAPI.js +62 -0
  1000. package/build/dist/Server/API/UserCallAPI.js.map +1 -0
  1001. package/build/dist/Server/API/UserEmailAPI.js +64 -0
  1002. package/build/dist/Server/API/UserEmailAPI.js.map +1 -0
  1003. package/build/dist/Server/API/UserOnCallLogTimelineAPI.js +98 -0
  1004. package/build/dist/Server/API/UserOnCallLogTimelineAPI.js.map +1 -0
  1005. package/build/dist/Server/API/UserSmsAPI.js +62 -0
  1006. package/build/dist/Server/API/UserSmsAPI.js.map +1 -0
  1007. package/build/dist/Server/API/UserTwoFactorAuthAPI.js +79 -0
  1008. package/build/dist/Server/API/UserTwoFactorAuthAPI.js.map +1 -0
  1009. package/build/dist/Server/API/VersionAPI.js +8 -0
  1010. package/build/dist/Server/API/VersionAPI.js.map +1 -0
  1011. package/build/dist/Server/BillingConfig.js +9 -0
  1012. package/build/dist/Server/BillingConfig.js.map +1 -0
  1013. package/build/dist/Server/DatabaseConfig.js +44 -0
  1014. package/build/dist/Server/DatabaseConfig.js.map +1 -0
  1015. package/build/dist/Server/EnvironmentConfig.js +97 -0
  1016. package/build/dist/Server/EnvironmentConfig.js.map +1 -0
  1017. package/build/dist/Server/Infrastructure/CacheDatabase.js +2 -0
  1018. package/build/dist/Server/Infrastructure/CacheDatabase.js.map +1 -0
  1019. package/build/dist/Server/Infrastructure/ClickhouseConfig.js +27 -0
  1020. package/build/dist/Server/Infrastructure/ClickhouseConfig.js.map +1 -0
  1021. package/build/dist/Server/Infrastructure/ClickhouseDatabase.js +85 -0
  1022. package/build/dist/Server/Infrastructure/ClickhouseDatabase.js.map +1 -0
  1023. package/build/dist/Server/Infrastructure/GlobalCache.js +88 -0
  1024. package/build/dist/Server/Infrastructure/GlobalCache.js.map +1 -0
  1025. package/build/dist/Server/Infrastructure/LocalCache.js +38 -0
  1026. package/build/dist/Server/Infrastructure/LocalCache.js.map +1 -0
  1027. package/build/dist/Server/Infrastructure/Postgres/DataSourceOptions.js +29 -0
  1028. package/build/dist/Server/Infrastructure/Postgres/DataSourceOptions.js.map +1 -0
  1029. package/build/dist/Server/Infrastructure/Postgres/LocalMigrationGenerationDataSource.js +6 -0
  1030. package/build/dist/Server/Infrastructure/Postgres/LocalMigrationGenerationDataSource.js.map +1 -0
  1031. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717605043663-InitialMigration.js +1857 -0
  1032. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717605043663-InitialMigration.js.map +1 -0
  1033. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717678334852-MigrationName.js +32 -0
  1034. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717678334852-MigrationName.js.map +1 -0
  1035. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717839110671-MigrationName.js +30 -0
  1036. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717839110671-MigrationName.js.map +1 -0
  1037. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717849921874-MigrationName.js +46 -0
  1038. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717849921874-MigrationName.js.map +1 -0
  1039. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717955235341-MigrationName.js +32 -0
  1040. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1717955235341-MigrationName.js.map +1 -0
  1041. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718037833516-MigrationName.js +24 -0
  1042. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718037833516-MigrationName.js.map +1 -0
  1043. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718100824584-MigrationName.js +12 -0
  1044. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718100824584-MigrationName.js.map +1 -0
  1045. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718101665865-MigrationName.js +12 -0
  1046. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718101665865-MigrationName.js.map +1 -0
  1047. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718119926223-MigrationName.js +12 -0
  1048. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718119926223-MigrationName.js.map +1 -0
  1049. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718124277321-MigrationName.js +40 -0
  1050. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718124277321-MigrationName.js.map +1 -0
  1051. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718126316684-MigrationName.js +12 -0
  1052. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718126316684-MigrationName.js.map +1 -0
  1053. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718188920011-MigrationName.js +14 -0
  1054. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718188920011-MigrationName.js.map +1 -0
  1055. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718203144945-MigrationName.js +14 -0
  1056. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718203144945-MigrationName.js.map +1 -0
  1057. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718285877004-MigrationName.js +14 -0
  1058. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718285877004-MigrationName.js.map +1 -0
  1059. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718618155447-MigrationName.js +12 -0
  1060. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718618155447-MigrationName.js.map +1 -0
  1061. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718711669847-MigrationName.js +12 -0
  1062. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718711669847-MigrationName.js.map +1 -0
  1063. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718879960254-MigrationName.js +32 -0
  1064. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1718879960254-MigrationName.js.map +1 -0
  1065. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719227548476-MigrationName.js +12 -0
  1066. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719227548476-MigrationName.js.map +1 -0
  1067. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719228104620-MigrationName.js +15 -0
  1068. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719228104620-MigrationName.js.map +1 -0
  1069. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719247426296-MigrationName.js +14 -0
  1070. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719247426296-MigrationName.js.map +1 -0
  1071. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719348009053-MigrationName.js +12 -0
  1072. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719348009053-MigrationName.js.map +1 -0
  1073. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719827175832-MigrationName.js +12 -0
  1074. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719827175832-MigrationName.js.map +1 -0
  1075. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719831213463-MigrationName.js +12 -0
  1076. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719831213463-MigrationName.js.map +1 -0
  1077. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719838746775-MigrationName.js +60 -0
  1078. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719838746775-MigrationName.js.map +1 -0
  1079. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719915433542-MigrationName.js +12 -0
  1080. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1719915433542-MigrationName.js.map +1 -0
  1081. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720024126646-MigrationName.js +13 -0
  1082. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720024126646-MigrationName.js.map +1 -0
  1083. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720532068612-MigrationName.js +60 -0
  1084. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720532068612-MigrationName.js.map +1 -0
  1085. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720538999941-MigrationName.js +18 -0
  1086. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720538999941-MigrationName.js.map +1 -0
  1087. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720785305192-MigrationName.js +46 -0
  1088. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720785305192-MigrationName.js.map +1 -0
  1089. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720805596648-MigrationName.js +12 -0
  1090. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720805596648-MigrationName.js.map +1 -0
  1091. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720806196274-MigrationName.js +22 -0
  1092. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720806196274-MigrationName.js.map +1 -0
  1093. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720812937067-MigrationName.js +16 -0
  1094. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1720812937067-MigrationName.js.map +1 -0
  1095. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721075917289-MigrationName.js +28 -0
  1096. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721075917289-MigrationName.js.map +1 -0
  1097. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721152139648-MigrationName.js +46 -0
  1098. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721152139648-MigrationName.js.map +1 -0
  1099. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721159743714-MigrationName.js +12 -0
  1100. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721159743714-MigrationName.js.map +1 -0
  1101. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721754545771-MigrationName.js +18 -0
  1102. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721754545771-MigrationName.js.map +1 -0
  1103. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721779190475-MigrationName.js +12 -0
  1104. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1721779190475-MigrationName.js.map +1 -0
  1105. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1722031205897-MigrationName.js +18 -0
  1106. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1722031205897-MigrationName.js.map +1 -0
  1107. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1722543640526-MigrationName.js +24 -0
  1108. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1722543640526-MigrationName.js.map +1 -0
  1109. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1722892318363-MigrationName.js +20 -0
  1110. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1722892318363-MigrationName.js.map +1 -0
  1111. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1723825511054-MigrationName.js +12 -0
  1112. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1723825511054-MigrationName.js.map +1 -0
  1113. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1723828588502-MigrationName.js +12 -0
  1114. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1723828588502-MigrationName.js.map +1 -0
  1115. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +87 -0
  1116. package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -0
  1117. package/build/dist/Server/Infrastructure/PostgresDatabase.js +98 -0
  1118. package/build/dist/Server/Infrastructure/PostgresDatabase.js.map +1 -0
  1119. package/build/dist/Server/Infrastructure/Queue.js +59 -0
  1120. package/build/dist/Server/Infrastructure/Queue.js.map +1 -0
  1121. package/build/dist/Server/Infrastructure/QueueWorker.js +30 -0
  1122. package/build/dist/Server/Infrastructure/QueueWorker.js.map +1 -0
  1123. package/build/dist/Server/Infrastructure/Redis.js +118 -0
  1124. package/build/dist/Server/Infrastructure/Redis.js.map +1 -0
  1125. package/build/dist/Server/Infrastructure/Semaphore.js +24 -0
  1126. package/build/dist/Server/Infrastructure/Semaphore.js.map +1 -0
  1127. package/build/dist/Server/Infrastructure/SocketIO.js +28 -0
  1128. package/build/dist/Server/Infrastructure/SocketIO.js.map +1 -0
  1129. package/build/dist/Server/Infrastructure/Status.js +25 -0
  1130. package/build/dist/Server/Infrastructure/Status.js.map +1 -0
  1131. package/build/dist/Server/Middleware/BearerTokenAuthorization.js +24 -0
  1132. package/build/dist/Server/Middleware/BearerTokenAuthorization.js.map +1 -0
  1133. package/build/dist/Server/Middleware/ClusterKeyAuthorization.js +36 -0
  1134. package/build/dist/Server/Middleware/ClusterKeyAuthorization.js.map +1 -0
  1135. package/build/dist/Server/Middleware/CodeRepositoryAuthorization.js +32 -0
  1136. package/build/dist/Server/Middleware/CodeRepositoryAuthorization.js.map +1 -0
  1137. package/build/dist/Server/Middleware/NotificationMiddleware.js +35 -0
  1138. package/build/dist/Server/Middleware/NotificationMiddleware.js.map +1 -0
  1139. package/build/dist/Server/Middleware/ProjectAuthorization.js +137 -0
  1140. package/build/dist/Server/Middleware/ProjectAuthorization.js.map +1 -0
  1141. package/build/dist/Server/Middleware/UserAuthorization.js +237 -0
  1142. package/build/dist/Server/Middleware/UserAuthorization.js.map +1 -0
  1143. package/build/dist/Server/Services/AccessTokenService.js +256 -0
  1144. package/build/dist/Server/Services/AccessTokenService.js.map +1 -0
  1145. package/build/dist/Server/Services/AcmeCertificateService.js +9 -0
  1146. package/build/dist/Server/Services/AcmeCertificateService.js.map +1 -0
  1147. package/build/dist/Server/Services/AcmeChallengeService.js +9 -0
  1148. package/build/dist/Server/Services/AcmeChallengeService.js.map +1 -0
  1149. package/build/dist/Server/Services/AnalyticsDatabaseService.js +661 -0
  1150. package/build/dist/Server/Services/AnalyticsDatabaseService.js.map +1 -0
  1151. package/build/dist/Server/Services/ApiKeyPermissionService.js +120 -0
  1152. package/build/dist/Server/Services/ApiKeyPermissionService.js.map +1 -0
  1153. package/build/dist/Server/Services/ApiKeyService.js +14 -0
  1154. package/build/dist/Server/Services/ApiKeyService.js.map +1 -0
  1155. package/build/dist/Server/Services/BaseService.js +4 -0
  1156. package/build/dist/Server/Services/BaseService.js.map +1 -0
  1157. package/build/dist/Server/Services/BillingInvoiceService.js +66 -0
  1158. package/build/dist/Server/Services/BillingInvoiceService.js.map +1 -0
  1159. package/build/dist/Server/Services/BillingPaymentMethodService.js +84 -0
  1160. package/build/dist/Server/Services/BillingPaymentMethodService.js.map +1 -0
  1161. package/build/dist/Server/Services/BillingService.js +526 -0
  1162. package/build/dist/Server/Services/BillingService.js.map +1 -0
  1163. package/build/dist/Server/Services/CallLogService.js +10 -0
  1164. package/build/dist/Server/Services/CallLogService.js.map +1 -0
  1165. package/build/dist/Server/Services/CallService.js +31 -0
  1166. package/build/dist/Server/Services/CallService.js.map +1 -0
  1167. package/build/dist/Server/Services/CopilotActionService.js +9 -0
  1168. package/build/dist/Server/Services/CopilotActionService.js.map +1 -0
  1169. package/build/dist/Server/Services/CopilotCodeRepositoryService.js +17 -0
  1170. package/build/dist/Server/Services/CopilotCodeRepositoryService.js.map +1 -0
  1171. package/build/dist/Server/Services/CopilotPullRequestService.js +9 -0
  1172. package/build/dist/Server/Services/CopilotPullRequestService.js.map +1 -0
  1173. package/build/dist/Server/Services/DataMigrationService.js +9 -0
  1174. package/build/dist/Server/Services/DataMigrationService.js.map +1 -0
  1175. package/build/dist/Server/Services/DatabaseService.js +989 -0
  1176. package/build/dist/Server/Services/DatabaseService.js.map +1 -0
  1177. package/build/dist/Server/Services/DomainService.js +62 -0
  1178. package/build/dist/Server/Services/DomainService.js.map +1 -0
  1179. package/build/dist/Server/Services/EmailLogService.js +10 -0
  1180. package/build/dist/Server/Services/EmailLogService.js.map +1 -0
  1181. package/build/dist/Server/Services/EmailVerificationTokenService.js +9 -0
  1182. package/build/dist/Server/Services/EmailVerificationTokenService.js.map +1 -0
  1183. package/build/dist/Server/Services/FileService.js +28 -0
  1184. package/build/dist/Server/Services/FileService.js.map +1 -0
  1185. package/build/dist/Server/Services/GlobalConfigService.js +9 -0
  1186. package/build/dist/Server/Services/GlobalConfigService.js.map +1 -0
  1187. package/build/dist/Server/Services/GreenlockCertificateService.js +9 -0
  1188. package/build/dist/Server/Services/GreenlockCertificateService.js.map +1 -0
  1189. package/build/dist/Server/Services/GreenlockChallengeService.js +9 -0
  1190. package/build/dist/Server/Services/GreenlockChallengeService.js.map +1 -0
  1191. package/build/dist/Server/Services/IncidentCustomFieldService.js +9 -0
  1192. package/build/dist/Server/Services/IncidentCustomFieldService.js.map +1 -0
  1193. package/build/dist/Server/Services/IncidentInternalNoteService.js +9 -0
  1194. package/build/dist/Server/Services/IncidentInternalNoteService.js.map +1 -0
  1195. package/build/dist/Server/Services/IncidentNoteTemplateService.js +9 -0
  1196. package/build/dist/Server/Services/IncidentNoteTemplateService.js.map +1 -0
  1197. package/build/dist/Server/Services/IncidentOwnerTeamService.js +9 -0
  1198. package/build/dist/Server/Services/IncidentOwnerTeamService.js.map +1 -0
  1199. package/build/dist/Server/Services/IncidentOwnerUserService.js +9 -0
  1200. package/build/dist/Server/Services/IncidentOwnerUserService.js.map +1 -0
  1201. package/build/dist/Server/Services/IncidentPublicNoteService.js +19 -0
  1202. package/build/dist/Server/Services/IncidentPublicNoteService.js.map +1 -0
  1203. package/build/dist/Server/Services/IncidentService.js +497 -0
  1204. package/build/dist/Server/Services/IncidentService.js.map +1 -0
  1205. package/build/dist/Server/Services/IncidentSeverityService.js +110 -0
  1206. package/build/dist/Server/Services/IncidentSeverityService.js.map +1 -0
  1207. package/build/dist/Server/Services/IncidentStateService.js +135 -0
  1208. package/build/dist/Server/Services/IncidentStateService.js.map +1 -0
  1209. package/build/dist/Server/Services/IncidentStateTimelineService.js +305 -0
  1210. package/build/dist/Server/Services/IncidentStateTimelineService.js.map +1 -0
  1211. package/build/dist/Server/Services/IncidentTemplateOwnerTeamService.js +9 -0
  1212. package/build/dist/Server/Services/IncidentTemplateOwnerTeamService.js.map +1 -0
  1213. package/build/dist/Server/Services/IncidentTemplateOwnerUserService.js +9 -0
  1214. package/build/dist/Server/Services/IncidentTemplateOwnerUserService.js.map +1 -0
  1215. package/build/dist/Server/Services/IncidentTemplateService.js +58 -0
  1216. package/build/dist/Server/Services/IncidentTemplateService.js.map +1 -0
  1217. package/build/dist/Server/Services/Index.js +253 -0
  1218. package/build/dist/Server/Services/Index.js.map +1 -0
  1219. package/build/dist/Server/Services/LabelService.js +27 -0
  1220. package/build/dist/Server/Services/LabelService.js.map +1 -0
  1221. package/build/dist/Server/Services/LogService.js +9 -0
  1222. package/build/dist/Server/Services/LogService.js.map +1 -0
  1223. package/build/dist/Server/Services/MailService.js +33 -0
  1224. package/build/dist/Server/Services/MailService.js.map +1 -0
  1225. package/build/dist/Server/Services/MetricService.js +9 -0
  1226. package/build/dist/Server/Services/MetricService.js.map +1 -0
  1227. package/build/dist/Server/Services/MonitorCustomFieldService.js +9 -0
  1228. package/build/dist/Server/Services/MonitorCustomFieldService.js.map +1 -0
  1229. package/build/dist/Server/Services/MonitorGroupOwnerTeamService.js +9 -0
  1230. package/build/dist/Server/Services/MonitorGroupOwnerTeamService.js.map +1 -0
  1231. package/build/dist/Server/Services/MonitorGroupOwnerUserService.js +9 -0
  1232. package/build/dist/Server/Services/MonitorGroupOwnerUserService.js.map +1 -0
  1233. package/build/dist/Server/Services/MonitorGroupResourceService.js +9 -0
  1234. package/build/dist/Server/Services/MonitorGroupResourceService.js.map +1 -0
  1235. package/build/dist/Server/Services/MonitorGroupService.js +140 -0
  1236. package/build/dist/Server/Services/MonitorGroupService.js.map +1 -0
  1237. package/build/dist/Server/Services/MonitorMetricsByMinuteService.js +12 -0
  1238. package/build/dist/Server/Services/MonitorMetricsByMinuteService.js.map +1 -0
  1239. package/build/dist/Server/Services/MonitorOwnerTeamService.js +9 -0
  1240. package/build/dist/Server/Services/MonitorOwnerTeamService.js.map +1 -0
  1241. package/build/dist/Server/Services/MonitorOwnerUserService.js +9 -0
  1242. package/build/dist/Server/Services/MonitorOwnerUserService.js.map +1 -0
  1243. package/build/dist/Server/Services/MonitorProbeService.js +75 -0
  1244. package/build/dist/Server/Services/MonitorProbeService.js.map +1 -0
  1245. package/build/dist/Server/Services/MonitorSecretService.js +9 -0
  1246. package/build/dist/Server/Services/MonitorSecretService.js.map +1 -0
  1247. package/build/dist/Server/Services/MonitorService.js +646 -0
  1248. package/build/dist/Server/Services/MonitorService.js.map +1 -0
  1249. package/build/dist/Server/Services/MonitorStatusService.js +108 -0
  1250. package/build/dist/Server/Services/MonitorStatusService.js.map +1 -0
  1251. package/build/dist/Server/Services/MonitorStatusTimelineService.js +247 -0
  1252. package/build/dist/Server/Services/MonitorStatusTimelineService.js.map +1 -0
  1253. package/build/dist/Server/Services/NotificationService.js +127 -0
  1254. package/build/dist/Server/Services/NotificationService.js.map +1 -0
  1255. package/build/dist/Server/Services/OnCallDutyPolicyCustomFieldService.js +9 -0
  1256. package/build/dist/Server/Services/OnCallDutyPolicyCustomFieldService.js.map +1 -0
  1257. package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleScheduleService.js +9 -0
  1258. package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleScheduleService.js.map +1 -0
  1259. package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleService.js +496 -0
  1260. package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleService.js.map +1 -0
  1261. package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleTeamService.js +9 -0
  1262. package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleTeamService.js.map +1 -0
  1263. package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleUserService.js +9 -0
  1264. package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleUserService.js.map +1 -0
  1265. package/build/dist/Server/Services/OnCallDutyPolicyExecutionLogService.js +78 -0
  1266. package/build/dist/Server/Services/OnCallDutyPolicyExecutionLogService.js.map +1 -0
  1267. package/build/dist/Server/Services/OnCallDutyPolicyExecutionLogTimelineService.js +9 -0
  1268. package/build/dist/Server/Services/OnCallDutyPolicyExecutionLogTimelineService.js.map +1 -0
  1269. package/build/dist/Server/Services/OnCallDutyPolicyScheduleLayerService.js +89 -0
  1270. package/build/dist/Server/Services/OnCallDutyPolicyScheduleLayerService.js.map +1 -0
  1271. package/build/dist/Server/Services/OnCallDutyPolicyScheduleLayerUserService.js +191 -0
  1272. package/build/dist/Server/Services/OnCallDutyPolicyScheduleLayerUserService.js.map +1 -0
  1273. package/build/dist/Server/Services/OnCallDutyPolicyScheduleService.js +98 -0
  1274. package/build/dist/Server/Services/OnCallDutyPolicyScheduleService.js.map +1 -0
  1275. package/build/dist/Server/Services/OnCallDutyPolicyService.js +51 -0
  1276. package/build/dist/Server/Services/OnCallDutyPolicyService.js.map +1 -0
  1277. package/build/dist/Server/Services/ProbeOwnerTeamService.js +9 -0
  1278. package/build/dist/Server/Services/ProbeOwnerTeamService.js.map +1 -0
  1279. package/build/dist/Server/Services/ProbeOwnerUserService.js +9 -0
  1280. package/build/dist/Server/Services/ProbeOwnerUserService.js.map +1 -0
  1281. package/build/dist/Server/Services/ProbeService.js +218 -0
  1282. package/build/dist/Server/Services/ProbeService.js.map +1 -0
  1283. package/build/dist/Server/Services/ProjectCallSMSConfigService.js +32 -0
  1284. package/build/dist/Server/Services/ProjectCallSMSConfigService.js.map +1 -0
  1285. package/build/dist/Server/Services/ProjectService.js +854 -0
  1286. package/build/dist/Server/Services/ProjectService.js.map +1 -0
  1287. package/build/dist/Server/Services/ProjectSmtpConfigService.js +46 -0
  1288. package/build/dist/Server/Services/ProjectSmtpConfigService.js.map +1 -0
  1289. package/build/dist/Server/Services/ProjectSsoService.js +9 -0
  1290. package/build/dist/Server/Services/ProjectSsoService.js.map +1 -0
  1291. package/build/dist/Server/Services/PromoCodeService.js +9 -0
  1292. package/build/dist/Server/Services/PromoCodeService.js.map +1 -0
  1293. package/build/dist/Server/Services/ResellerPlanService.js +9 -0
  1294. package/build/dist/Server/Services/ResellerPlanService.js.map +1 -0
  1295. package/build/dist/Server/Services/ResellerService.js +9 -0
  1296. package/build/dist/Server/Services/ResellerService.js.map +1 -0
  1297. package/build/dist/Server/Services/ScheduledMaintenanceCustomFieldService.js +9 -0
  1298. package/build/dist/Server/Services/ScheduledMaintenanceCustomFieldService.js.map +1 -0
  1299. package/build/dist/Server/Services/ScheduledMaintenanceInternalNoteService.js +9 -0
  1300. package/build/dist/Server/Services/ScheduledMaintenanceInternalNoteService.js.map +1 -0
  1301. package/build/dist/Server/Services/ScheduledMaintenanceNoteTemplateService.js +9 -0
  1302. package/build/dist/Server/Services/ScheduledMaintenanceNoteTemplateService.js.map +1 -0
  1303. package/build/dist/Server/Services/ScheduledMaintenanceOwnerTeamService.js +9 -0
  1304. package/build/dist/Server/Services/ScheduledMaintenanceOwnerTeamService.js.map +1 -0
  1305. package/build/dist/Server/Services/ScheduledMaintenanceOwnerUserService.js +9 -0
  1306. package/build/dist/Server/Services/ScheduledMaintenanceOwnerUserService.js.map +1 -0
  1307. package/build/dist/Server/Services/ScheduledMaintenancePublicNoteService.js +19 -0
  1308. package/build/dist/Server/Services/ScheduledMaintenancePublicNoteService.js.map +1 -0
  1309. package/build/dist/Server/Services/ScheduledMaintenanceService.js +295 -0
  1310. package/build/dist/Server/Services/ScheduledMaintenanceService.js.map +1 -0
  1311. package/build/dist/Server/Services/ScheduledMaintenanceStateService.js +110 -0
  1312. package/build/dist/Server/Services/ScheduledMaintenanceStateService.js.map +1 -0
  1313. package/build/dist/Server/Services/ScheduledMaintenanceStateTimelineService.js +388 -0
  1314. package/build/dist/Server/Services/ScheduledMaintenanceStateTimelineService.js.map +1 -0
  1315. package/build/dist/Server/Services/ServiceCatalogDependencyService.js +32 -0
  1316. package/build/dist/Server/Services/ServiceCatalogDependencyService.js.map +1 -0
  1317. package/build/dist/Server/Services/ServiceCatalogMonitorService.js +40 -0
  1318. package/build/dist/Server/Services/ServiceCatalogMonitorService.js.map +1 -0
  1319. package/build/dist/Server/Services/ServiceCatalogOwnerTeamService.js +9 -0
  1320. package/build/dist/Server/Services/ServiceCatalogOwnerTeamService.js.map +1 -0
  1321. package/build/dist/Server/Services/ServiceCatalogOwnerUserService.js +9 -0
  1322. package/build/dist/Server/Services/ServiceCatalogOwnerUserService.js.map +1 -0
  1323. package/build/dist/Server/Services/ServiceCatalogService.js +19 -0
  1324. package/build/dist/Server/Services/ServiceCatalogService.js.map +1 -0
  1325. package/build/dist/Server/Services/ServiceCatalogTelemetryServiceService.js +40 -0
  1326. package/build/dist/Server/Services/ServiceCatalogTelemetryServiceService.js.map +1 -0
  1327. package/build/dist/Server/Services/ServiceCopilotCodeRepositoryService.js +9 -0
  1328. package/build/dist/Server/Services/ServiceCopilotCodeRepositoryService.js.map +1 -0
  1329. package/build/dist/Server/Services/ShortLinkService.js +44 -0
  1330. package/build/dist/Server/Services/ShortLinkService.js.map +1 -0
  1331. package/build/dist/Server/Services/SmsLogService.js +10 -0
  1332. package/build/dist/Server/Services/SmsLogService.js.map +1 -0
  1333. package/build/dist/Server/Services/SmsService.js +32 -0
  1334. package/build/dist/Server/Services/SmsService.js.map +1 -0
  1335. package/build/dist/Server/Services/SpanService.js +9 -0
  1336. package/build/dist/Server/Services/SpanService.js.map +1 -0
  1337. package/build/dist/Server/Services/StatusPageAnnouncementService.js +9 -0
  1338. package/build/dist/Server/Services/StatusPageAnnouncementService.js.map +1 -0
  1339. package/build/dist/Server/Services/StatusPageCertificateService.js +34 -0
  1340. package/build/dist/Server/Services/StatusPageCertificateService.js.map +1 -0
  1341. package/build/dist/Server/Services/StatusPageCustomFieldService.js +9 -0
  1342. package/build/dist/Server/Services/StatusPageCustomFieldService.js.map +1 -0
  1343. package/build/dist/Server/Services/StatusPageDomainService.js +393 -0
  1344. package/build/dist/Server/Services/StatusPageDomainService.js.map +1 -0
  1345. package/build/dist/Server/Services/StatusPageFooterLinkService.js +184 -0
  1346. package/build/dist/Server/Services/StatusPageFooterLinkService.js.map +1 -0
  1347. package/build/dist/Server/Services/StatusPageGroupService.js +183 -0
  1348. package/build/dist/Server/Services/StatusPageGroupService.js.map +1 -0
  1349. package/build/dist/Server/Services/StatusPageHeaderLinkService.js +184 -0
  1350. package/build/dist/Server/Services/StatusPageHeaderLinkService.js.map +1 -0
  1351. package/build/dist/Server/Services/StatusPageHistoryChartBarColorRuleService.js +184 -0
  1352. package/build/dist/Server/Services/StatusPageHistoryChartBarColorRuleService.js.map +1 -0
  1353. package/build/dist/Server/Services/StatusPageOwnerTeamService.js +9 -0
  1354. package/build/dist/Server/Services/StatusPageOwnerTeamService.js.map +1 -0
  1355. package/build/dist/Server/Services/StatusPageOwnerUserService.js +9 -0
  1356. package/build/dist/Server/Services/StatusPageOwnerUserService.js.map +1 -0
  1357. package/build/dist/Server/Services/StatusPagePrivateUserService.js +106 -0
  1358. package/build/dist/Server/Services/StatusPagePrivateUserService.js.map +1 -0
  1359. package/build/dist/Server/Services/StatusPageResourceService.js +198 -0
  1360. package/build/dist/Server/Services/StatusPageResourceService.js.map +1 -0
  1361. package/build/dist/Server/Services/StatusPageService.js +707 -0
  1362. package/build/dist/Server/Services/StatusPageService.js.map +1 -0
  1363. package/build/dist/Server/Services/StatusPageSsoService.js +9 -0
  1364. package/build/dist/Server/Services/StatusPageSsoService.js.map +1 -0
  1365. package/build/dist/Server/Services/StatusPageSubscriberService.js +291 -0
  1366. package/build/dist/Server/Services/StatusPageSubscriberService.js.map +1 -0
  1367. package/build/dist/Server/Services/TeamMemberService.js +333 -0
  1368. package/build/dist/Server/Services/TeamMemberService.js.map +1 -0
  1369. package/build/dist/Server/Services/TeamPermissionService.js +271 -0
  1370. package/build/dist/Server/Services/TeamPermissionService.js.map +1 -0
  1371. package/build/dist/Server/Services/TeamService.js +48 -0
  1372. package/build/dist/Server/Services/TeamService.js.map +1 -0
  1373. package/build/dist/Server/Services/TelemetryAttributeService.js +62 -0
  1374. package/build/dist/Server/Services/TelemetryAttributeService.js.map +1 -0
  1375. package/build/dist/Server/Services/TelemetryIngestionKeyService.js +16 -0
  1376. package/build/dist/Server/Services/TelemetryIngestionKeyService.js.map +1 -0
  1377. package/build/dist/Server/Services/TelemetryServiceService.js +37 -0
  1378. package/build/dist/Server/Services/TelemetryServiceService.js.map +1 -0
  1379. package/build/dist/Server/Services/TelemetryUsageBillingService.js +108 -0
  1380. package/build/dist/Server/Services/TelemetryUsageBillingService.js.map +1 -0
  1381. package/build/dist/Server/Services/UserCallService.js +146 -0
  1382. package/build/dist/Server/Services/UserCallService.js.map +1 -0
  1383. package/build/dist/Server/Services/UserEmailService.js +110 -0
  1384. package/build/dist/Server/Services/UserEmailService.js.map +1 -0
  1385. package/build/dist/Server/Services/UserNotificationRuleService.js +544 -0
  1386. package/build/dist/Server/Services/UserNotificationRuleService.js.map +1 -0
  1387. package/build/dist/Server/Services/UserNotificationSettingService.js +344 -0
  1388. package/build/dist/Server/Services/UserNotificationSettingService.js.map +1 -0
  1389. package/build/dist/Server/Services/UserOnCallLogService.js +200 -0
  1390. package/build/dist/Server/Services/UserOnCallLogService.js.map +1 -0
  1391. package/build/dist/Server/Services/UserOnCallLogTimelineService.js +100 -0
  1392. package/build/dist/Server/Services/UserOnCallLogTimelineService.js.map +1 -0
  1393. package/build/dist/Server/Services/UserService.js +247 -0
  1394. package/build/dist/Server/Services/UserService.js.map +1 -0
  1395. package/build/dist/Server/Services/UserSmsService.js +126 -0
  1396. package/build/dist/Server/Services/UserSmsService.js.map +1 -0
  1397. package/build/dist/Server/Services/UserTwoFactorAuthService.js +96 -0
  1398. package/build/dist/Server/Services/UserTwoFactorAuthService.js.map +1 -0
  1399. package/build/dist/Server/Services/WorkflowLogService.js +10 -0
  1400. package/build/dist/Server/Services/WorkflowLogService.js.map +1 -0
  1401. package/build/dist/Server/Services/WorkflowService.js +47 -0
  1402. package/build/dist/Server/Services/WorkflowService.js.map +1 -0
  1403. package/build/dist/Server/Services/WorkflowVariableService.js +9 -0
  1404. package/build/dist/Server/Services/WorkflowVariableService.js.map +1 -0
  1405. package/build/dist/Server/Types/AnalyticsDatabase/AggregateBy.js +28 -0
  1406. package/build/dist/Server/Types/AnalyticsDatabase/AggregateBy.js.map +1 -0
  1407. package/build/dist/Server/Types/AnalyticsDatabase/CountBy.js +2 -0
  1408. package/build/dist/Server/Types/AnalyticsDatabase/CountBy.js.map +1 -0
  1409. package/build/dist/Server/Types/AnalyticsDatabase/CreateBy.js +2 -0
  1410. package/build/dist/Server/Types/AnalyticsDatabase/CreateBy.js.map +1 -0
  1411. package/build/dist/Server/Types/AnalyticsDatabase/CreateManyBy.js +2 -0
  1412. package/build/dist/Server/Types/AnalyticsDatabase/CreateManyBy.js.map +1 -0
  1413. package/build/dist/Server/Types/AnalyticsDatabase/DeleteBy.js +2 -0
  1414. package/build/dist/Server/Types/AnalyticsDatabase/DeleteBy.js.map +1 -0
  1415. package/build/dist/Server/Types/AnalyticsDatabase/FindBy.js +2 -0
  1416. package/build/dist/Server/Types/AnalyticsDatabase/FindBy.js.map +1 -0
  1417. package/build/dist/Server/Types/AnalyticsDatabase/FindOneBy.js +2 -0
  1418. package/build/dist/Server/Types/AnalyticsDatabase/FindOneBy.js.map +1 -0
  1419. package/build/dist/Server/Types/AnalyticsDatabase/FindOneByID.js +2 -0
  1420. package/build/dist/Server/Types/AnalyticsDatabase/FindOneByID.js.map +1 -0
  1421. package/build/dist/Server/Types/AnalyticsDatabase/GroupBy.js +2 -0
  1422. package/build/dist/Server/Types/AnalyticsDatabase/GroupBy.js.map +1 -0
  1423. package/build/dist/Server/Types/AnalyticsDatabase/Hooks.js +2 -0
  1424. package/build/dist/Server/Types/AnalyticsDatabase/Hooks.js.map +1 -0
  1425. package/build/dist/Server/Types/AnalyticsDatabase/ModelPermission.js +351 -0
  1426. package/build/dist/Server/Types/AnalyticsDatabase/ModelPermission.js.map +1 -0
  1427. package/build/dist/Server/Types/AnalyticsDatabase/Query.js +2 -0
  1428. package/build/dist/Server/Types/AnalyticsDatabase/Query.js.map +1 -0
  1429. package/build/dist/Server/Types/AnalyticsDatabase/QueryHelper.js +19 -0
  1430. package/build/dist/Server/Types/AnalyticsDatabase/QueryHelper.js.map +1 -0
  1431. package/build/dist/Server/Types/AnalyticsDatabase/Select.js +2 -0
  1432. package/build/dist/Server/Types/AnalyticsDatabase/Select.js.map +1 -0
  1433. package/build/dist/Server/Types/AnalyticsDatabase/Sort.js +2 -0
  1434. package/build/dist/Server/Types/AnalyticsDatabase/Sort.js.map +1 -0
  1435. package/build/dist/Server/Types/AnalyticsDatabase/UpdateBy.js +2 -0
  1436. package/build/dist/Server/Types/AnalyticsDatabase/UpdateBy.js.map +1 -0
  1437. package/build/dist/Server/Types/AnalyticsDatabase/UpdateByID.js +2 -0
  1438. package/build/dist/Server/Types/AnalyticsDatabase/UpdateByID.js.map +1 -0
  1439. package/build/dist/Server/Types/BaseDatabase/DatabaseRequestType.js +9 -0
  1440. package/build/dist/Server/Types/BaseDatabase/DatabaseRequestType.js.map +1 -0
  1441. package/build/dist/Server/Types/Billing/MeteredPlan/ActiveMonitoringMeteredPlan.js +52 -0
  1442. package/build/dist/Server/Types/Billing/MeteredPlan/ActiveMonitoringMeteredPlan.js.map +1 -0
  1443. package/build/dist/Server/Types/Billing/MeteredPlan/AllMeteredPlans.js +42 -0
  1444. package/build/dist/Server/Types/Billing/MeteredPlan/AllMeteredPlans.js.map +1 -0
  1445. package/build/dist/Server/Types/Billing/MeteredPlan/ServerMeteredPlan.js +17 -0
  1446. package/build/dist/Server/Types/Billing/MeteredPlan/ServerMeteredPlan.js.map +1 -0
  1447. package/build/dist/Server/Types/Billing/MeteredPlan/TelemetryMeteredPlan.js +91 -0
  1448. package/build/dist/Server/Types/Billing/MeteredPlan/TelemetryMeteredPlan.js.map +1 -0
  1449. package/build/dist/Server/Types/Database/CountBy.js +2 -0
  1450. package/build/dist/Server/Types/Database/CountBy.js.map +1 -0
  1451. package/build/dist/Server/Types/Database/CreateBy.js +2 -0
  1452. package/build/dist/Server/Types/Database/CreateBy.js.map +1 -0
  1453. package/build/dist/Server/Types/Database/DeleteBy.js +2 -0
  1454. package/build/dist/Server/Types/Database/DeleteBy.js.map +1 -0
  1455. package/build/dist/Server/Types/Database/DeleteById.js +2 -0
  1456. package/build/dist/Server/Types/Database/DeleteById.js.map +1 -0
  1457. package/build/dist/Server/Types/Database/DeleteOneBy.js +2 -0
  1458. package/build/dist/Server/Types/Database/DeleteOneBy.js.map +1 -0
  1459. package/build/dist/Server/Types/Database/FindBy.js +2 -0
  1460. package/build/dist/Server/Types/Database/FindBy.js.map +1 -0
  1461. package/build/dist/Server/Types/Database/FindOneBy.js +2 -0
  1462. package/build/dist/Server/Types/Database/FindOneBy.js.map +1 -0
  1463. package/build/dist/Server/Types/Database/FindOneByID.js +2 -0
  1464. package/build/dist/Server/Types/Database/FindOneByID.js.map +1 -0
  1465. package/build/dist/Server/Types/Database/GroupBy.js +2 -0
  1466. package/build/dist/Server/Types/Database/GroupBy.js.map +1 -0
  1467. package/build/dist/Server/Types/Database/HardDeleteBy.js +2 -0
  1468. package/build/dist/Server/Types/Database/HardDeleteBy.js.map +1 -0
  1469. package/build/dist/Server/Types/Database/Hooks.js +2 -0
  1470. package/build/dist/Server/Types/Database/Hooks.js.map +1 -0
  1471. package/build/dist/Server/Types/Database/Permissions/AccessControlPermission.js +186 -0
  1472. package/build/dist/Server/Types/Database/Permissions/AccessControlPermission.js.map +1 -0
  1473. package/build/dist/Server/Types/Database/Permissions/BasePermission.js +61 -0
  1474. package/build/dist/Server/Types/Database/Permissions/BasePermission.js.map +1 -0
  1475. package/build/dist/Server/Types/Database/Permissions/BillingPermission.js +45 -0
  1476. package/build/dist/Server/Types/Database/Permissions/BillingPermission.js.map +1 -0
  1477. package/build/dist/Server/Types/Database/Permissions/ColumnPermission.js +113 -0
  1478. package/build/dist/Server/Types/Database/Permissions/ColumnPermission.js.map +1 -0
  1479. package/build/dist/Server/Types/Database/Permissions/CreatePermission.js +23 -0
  1480. package/build/dist/Server/Types/Database/Permissions/CreatePermission.js.map +1 -0
  1481. package/build/dist/Server/Types/Database/Permissions/DeletePermission.js +27 -0
  1482. package/build/dist/Server/Types/Database/Permissions/DeletePermission.js.map +1 -0
  1483. package/build/dist/Server/Types/Database/Permissions/Index.js +25 -0
  1484. package/build/dist/Server/Types/Database/Permissions/Index.js.map +1 -0
  1485. package/build/dist/Server/Types/Database/Permissions/PermissionsUtil.js +12 -0
  1486. package/build/dist/Server/Types/Database/Permissions/PermissionsUtil.js.map +1 -0
  1487. package/build/dist/Server/Types/Database/Permissions/PublicPermission.js +23 -0
  1488. package/build/dist/Server/Types/Database/Permissions/PublicPermission.js.map +1 -0
  1489. package/build/dist/Server/Types/Database/Permissions/QueryPermission.js +84 -0
  1490. package/build/dist/Server/Types/Database/Permissions/QueryPermission.js.map +1 -0
  1491. package/build/dist/Server/Types/Database/Permissions/ReadPermission.js +62 -0
  1492. package/build/dist/Server/Types/Database/Permissions/ReadPermission.js.map +1 -0
  1493. package/build/dist/Server/Types/Database/Permissions/SelectPermission.js +30 -0
  1494. package/build/dist/Server/Types/Database/Permissions/SelectPermission.js.map +1 -0
  1495. package/build/dist/Server/Types/Database/Permissions/TablePermission.js +61 -0
  1496. package/build/dist/Server/Types/Database/Permissions/TablePermission.js.map +1 -0
  1497. package/build/dist/Server/Types/Database/Permissions/TenantPermission.js +57 -0
  1498. package/build/dist/Server/Types/Database/Permissions/TenantPermission.js.map +1 -0
  1499. package/build/dist/Server/Types/Database/Permissions/UpdatePermission.js +23 -0
  1500. package/build/dist/Server/Types/Database/Permissions/UpdatePermission.js.map +1 -0
  1501. package/build/dist/Server/Types/Database/Permissions/UserPermission.js +17 -0
  1502. package/build/dist/Server/Types/Database/Permissions/UserPermission.js.map +1 -0
  1503. package/build/dist/Server/Types/Database/Query.js +2 -0
  1504. package/build/dist/Server/Types/Database/Query.js.map +1 -0
  1505. package/build/dist/Server/Types/Database/QueryHelper.js +287 -0
  1506. package/build/dist/Server/Types/Database/QueryHelper.js.map +1 -0
  1507. package/build/dist/Server/Types/Database/QueryUtil.js +143 -0
  1508. package/build/dist/Server/Types/Database/QueryUtil.js.map +1 -0
  1509. package/build/dist/Server/Types/Database/RelationSelect.js +2 -0
  1510. package/build/dist/Server/Types/Database/RelationSelect.js.map +1 -0
  1511. package/build/dist/Server/Types/Database/SearchBy.js +2 -0
  1512. package/build/dist/Server/Types/Database/SearchBy.js.map +1 -0
  1513. package/build/dist/Server/Types/Database/SearchResult.js +2 -0
  1514. package/build/dist/Server/Types/Database/SearchResult.js.map +1 -0
  1515. package/build/dist/Server/Types/Database/Select.js +2 -0
  1516. package/build/dist/Server/Types/Database/Select.js.map +1 -0
  1517. package/build/dist/Server/Types/Database/SelectUtil.js +22 -0
  1518. package/build/dist/Server/Types/Database/SelectUtil.js.map +1 -0
  1519. package/build/dist/Server/Types/Database/Sort.js +2 -0
  1520. package/build/dist/Server/Types/Database/Sort.js.map +1 -0
  1521. package/build/dist/Server/Types/Database/UpdateBy.js +2 -0
  1522. package/build/dist/Server/Types/Database/UpdateBy.js.map +1 -0
  1523. package/build/dist/Server/Types/Database/UpdateByID.js +2 -0
  1524. package/build/dist/Server/Types/Database/UpdateByID.js.map +1 -0
  1525. package/build/dist/Server/Types/Database/UpdateByIDAndFetch.js +2 -0
  1526. package/build/dist/Server/Types/Database/UpdateByIDAndFetch.js.map +1 -0
  1527. package/build/dist/Server/Types/Database/UpdateOneBy.js +2 -0
  1528. package/build/dist/Server/Types/Database/UpdateOneBy.js.map +1 -0
  1529. package/build/dist/Server/Types/Domain.js +31 -0
  1530. package/build/dist/Server/Types/Domain.js.map +1 -0
  1531. package/build/dist/Server/Types/FeatureSet.js +2 -0
  1532. package/build/dist/Server/Types/FeatureSet.js.map +1 -0
  1533. package/build/dist/Server/Types/FunctionTypes.js +2 -0
  1534. package/build/dist/Server/Types/FunctionTypes.js.map +1 -0
  1535. package/build/dist/Server/Types/Markdown.js +115 -0
  1536. package/build/dist/Server/Types/Markdown.js.map +1 -0
  1537. package/build/dist/Server/Types/Workflow/ComponentCode.js +24 -0
  1538. package/build/dist/Server/Types/Workflow/ComponentCode.js.map +1 -0
  1539. package/build/dist/Server/Types/Workflow/Components/API/Delete.js +47 -0
  1540. package/build/dist/Server/Types/Workflow/Components/API/Delete.js.map +1 -0
  1541. package/build/dist/Server/Types/Workflow/Components/API/Get.js +47 -0
  1542. package/build/dist/Server/Types/Workflow/Components/API/Get.js.map +1 -0
  1543. package/build/dist/Server/Types/Workflow/Components/API/Patch.js +47 -0
  1544. package/build/dist/Server/Types/Workflow/Components/API/Patch.js.map +1 -0
  1545. package/build/dist/Server/Types/Workflow/Components/API/Post.js +47 -0
  1546. package/build/dist/Server/Types/Workflow/Components/API/Post.js.map +1 -0
  1547. package/build/dist/Server/Types/Workflow/Components/API/Put.js +47 -0
  1548. package/build/dist/Server/Types/Workflow/Components/API/Put.js.map +1 -0
  1549. package/build/dist/Server/Types/Workflow/Components/API/Utils.js +52 -0
  1550. package/build/dist/Server/Types/Workflow/Components/API/Utils.js.map +1 -0
  1551. package/build/dist/Server/Types/Workflow/Components/BaseModel/CreateManyBaseModel.js +79 -0
  1552. package/build/dist/Server/Types/Workflow/Components/BaseModel/CreateManyBaseModel.js.map +1 -0
  1553. package/build/dist/Server/Types/Workflow/Components/BaseModel/CreateOneBaseModel.js +83 -0
  1554. package/build/dist/Server/Types/Workflow/Components/BaseModel/CreateOneBaseModel.js.map +1 -0
  1555. package/build/dist/Server/Types/Workflow/Components/BaseModel/DeleteManyBaseModel.js +99 -0
  1556. package/build/dist/Server/Types/Workflow/Components/BaseModel/DeleteManyBaseModel.js.map +1 -0
  1557. package/build/dist/Server/Types/Workflow/Components/BaseModel/DeleteOneBaseModel.js +77 -0
  1558. package/build/dist/Server/Types/Workflow/Components/BaseModel/DeleteOneBaseModel.js.map +1 -0
  1559. package/build/dist/Server/Types/Workflow/Components/BaseModel/FindManyBaseModel.js +116 -0
  1560. package/build/dist/Server/Types/Workflow/Components/BaseModel/FindManyBaseModel.js.map +1 -0
  1561. package/build/dist/Server/Types/Workflow/Components/BaseModel/FindOneBaseModel.js +96 -0
  1562. package/build/dist/Server/Types/Workflow/Components/BaseModel/FindOneBaseModel.js.map +1 -0
  1563. package/build/dist/Server/Types/Workflow/Components/BaseModel/OnCreateBaseModel.js +7 -0
  1564. package/build/dist/Server/Types/Workflow/Components/BaseModel/OnCreateBaseModel.js.map +1 -0
  1565. package/build/dist/Server/Types/Workflow/Components/BaseModel/OnDeleteBaseModel.js +7 -0
  1566. package/build/dist/Server/Types/Workflow/Components/BaseModel/OnDeleteBaseModel.js.map +1 -0
  1567. package/build/dist/Server/Types/Workflow/Components/BaseModel/OnTriggerBaseModel.js +149 -0
  1568. package/build/dist/Server/Types/Workflow/Components/BaseModel/OnTriggerBaseModel.js.map +1 -0
  1569. package/build/dist/Server/Types/Workflow/Components/BaseModel/OnUpdateBaseModel.js +7 -0
  1570. package/build/dist/Server/Types/Workflow/Components/BaseModel/OnUpdateBaseModel.js.map +1 -0
  1571. package/build/dist/Server/Types/Workflow/Components/BaseModel/UpdateManyBaseModel.js +112 -0
  1572. package/build/dist/Server/Types/Workflow/Components/BaseModel/UpdateManyBaseModel.js.map +1 -0
  1573. package/build/dist/Server/Types/Workflow/Components/BaseModel/UpdateOneBaseModel.js +90 -0
  1574. package/build/dist/Server/Types/Workflow/Components/BaseModel/UpdateOneBaseModel.js.map +1 -0
  1575. package/build/dist/Server/Types/Workflow/Components/Conditions/IfElse.js +91 -0
  1576. package/build/dist/Server/Types/Workflow/Components/Conditions/IfElse.js.map +1 -0
  1577. package/build/dist/Server/Types/Workflow/Components/Email.js +101 -0
  1578. package/build/dist/Server/Types/Workflow/Components/Email.js.map +1 -0
  1579. package/build/dist/Server/Types/Workflow/Components/Index.js +82 -0
  1580. package/build/dist/Server/Types/Workflow/Components/Index.js.map +1 -0
  1581. package/build/dist/Server/Types/Workflow/Components/JSON/JsonToText.js +57 -0
  1582. package/build/dist/Server/Types/Workflow/Components/JSON/JsonToText.js.map +1 -0
  1583. package/build/dist/Server/Types/Workflow/Components/JSON/MergeJson.js +56 -0
  1584. package/build/dist/Server/Types/Workflow/Components/JSON/MergeJson.js.map +1 -0
  1585. package/build/dist/Server/Types/Workflow/Components/JSON/TextToJson.js +54 -0
  1586. package/build/dist/Server/Types/Workflow/Components/JSON/TextToJson.js.map +1 -0
  1587. package/build/dist/Server/Types/Workflow/Components/JavaScript.js +70 -0
  1588. package/build/dist/Server/Types/Workflow/Components/JavaScript.js.map +1 -0
  1589. package/build/dist/Server/Types/Workflow/Components/Log.js +31 -0
  1590. package/build/dist/Server/Types/Workflow/Components/Log.js.map +1 -0
  1591. package/build/dist/Server/Types/Workflow/Components/Manual.js +17 -0
  1592. package/build/dist/Server/Types/Workflow/Components/Manual.js.map +1 -0
  1593. package/build/dist/Server/Types/Workflow/Components/MicrosoftTeams/SendMessageToChannel.js +94 -0
  1594. package/build/dist/Server/Types/Workflow/Components/MicrosoftTeams/SendMessageToChannel.js.map +1 -0
  1595. package/build/dist/Server/Types/Workflow/Components/Schedule.js +104 -0
  1596. package/build/dist/Server/Types/Workflow/Components/Schedule.js.map +1 -0
  1597. package/build/dist/Server/Types/Workflow/Components/Slack/SendMessageToChannel.js +74 -0
  1598. package/build/dist/Server/Types/Workflow/Components/Slack/SendMessageToChannel.js.map +1 -0
  1599. package/build/dist/Server/Types/Workflow/Components/Webhook.js +53 -0
  1600. package/build/dist/Server/Types/Workflow/Components/Webhook.js.map +1 -0
  1601. package/build/dist/Server/Types/Workflow/TriggerCode.js +35 -0
  1602. package/build/dist/Server/Types/Workflow/TriggerCode.js.map +1 -0
  1603. package/build/dist/Server/Types/Workflow/Workflow.js +2 -0
  1604. package/build/dist/Server/Types/Workflow/Workflow.js.map +1 -0
  1605. package/build/dist/Server/Utils/Airtable.js +21 -0
  1606. package/build/dist/Server/Utils/Airtable.js.map +1 -0
  1607. package/build/dist/Server/Utils/AnalyticsDatabase/Statement.js +155 -0
  1608. package/build/dist/Server/Utils/AnalyticsDatabase/Statement.js.map +1 -0
  1609. package/build/dist/Server/Utils/AnalyticsDatabase/StatementGenerator.js +536 -0
  1610. package/build/dist/Server/Utils/AnalyticsDatabase/StatementGenerator.js.map +1 -0
  1611. package/build/dist/Server/Utils/BasicCron.js +22 -0
  1612. package/build/dist/Server/Utils/BasicCron.js.map +1 -0
  1613. package/build/dist/Server/Utils/CodeRepository/CodeRepository.js +228 -0
  1614. package/build/dist/Server/Utils/CodeRepository/CodeRepository.js.map +1 -0
  1615. package/build/dist/Server/Utils/CodeRepository/CodeRepositoryFile.js +2 -0
  1616. package/build/dist/Server/Utils/CodeRepository/CodeRepositoryFile.js.map +1 -0
  1617. package/build/dist/Server/Utils/CodeRepository/GitHub/GitHub.js +136 -0
  1618. package/build/dist/Server/Utils/CodeRepository/GitHub/GitHub.js.map +1 -0
  1619. package/build/dist/Server/Utils/CodeRepository/HostedCodeRepository/HostedCodeRepository.js +29 -0
  1620. package/build/dist/Server/Utils/CodeRepository/HostedCodeRepository/HostedCodeRepository.js.map +1 -0
  1621. package/build/dist/Server/Utils/Cookie.js +122 -0
  1622. package/build/dist/Server/Utils/Cookie.js.map +1 -0
  1623. package/build/dist/Server/Utils/CronTab.js +15 -0
  1624. package/build/dist/Server/Utils/CronTab.js.map +1 -0
  1625. package/build/dist/Server/Utils/Encryption.js +25 -0
  1626. package/build/dist/Server/Utils/Encryption.js.map +1 -0
  1627. package/build/dist/Server/Utils/Environment.js +19 -0
  1628. package/build/dist/Server/Utils/Environment.js.map +1 -0
  1629. package/build/dist/Server/Utils/Errors.js +20 -0
  1630. package/build/dist/Server/Utils/Errors.js.map +1 -0
  1631. package/build/dist/Server/Utils/Execute.js +18 -0
  1632. package/build/dist/Server/Utils/Execute.js.map +1 -0
  1633. package/build/dist/Server/Utils/Express.js +40 -0
  1634. package/build/dist/Server/Utils/Express.js.map +1 -0
  1635. package/build/dist/Server/Utils/Greenlock/Greenlock.js +197 -0
  1636. package/build/dist/Server/Utils/Greenlock/Greenlock.js.map +1 -0
  1637. package/build/dist/Server/Utils/JsonToCsv.js +13 -0
  1638. package/build/dist/Server/Utils/JsonToCsv.js.map +1 -0
  1639. package/build/dist/Server/Utils/JsonWebToken.js +86 -0
  1640. package/build/dist/Server/Utils/JsonWebToken.js.map +1 -0
  1641. package/build/dist/Server/Utils/LocalFile.js +147 -0
  1642. package/build/dist/Server/Utils/LocalFile.js.map +1 -0
  1643. package/build/dist/Server/Utils/Logger.js +77 -0
  1644. package/build/dist/Server/Utils/Logger.js.map +1 -0
  1645. package/build/dist/Server/Utils/Monitor/Criteria/APIRequestCriteria.js +128 -0
  1646. package/build/dist/Server/Utils/Monitor/Criteria/APIRequestCriteria.js.map +1 -0
  1647. package/build/dist/Server/Utils/Monitor/Criteria/CompareCriteria.js +408 -0
  1648. package/build/dist/Server/Utils/Monitor/Criteria/CompareCriteria.js.map +1 -0
  1649. package/build/dist/Server/Utils/Monitor/Criteria/CustomCodeMonitorCriteria.js +79 -0
  1650. package/build/dist/Server/Utils/Monitor/Criteria/CustomCodeMonitorCriteria.js.map +1 -0
  1651. package/build/dist/Server/Utils/Monitor/Criteria/EvaluateOverTime.js +85 -0
  1652. package/build/dist/Server/Utils/Monitor/Criteria/EvaluateOverTime.js.map +1 -0
  1653. package/build/dist/Server/Utils/Monitor/Criteria/IncomingRequestCriteria.js +155 -0
  1654. package/build/dist/Server/Utils/Monitor/Criteria/IncomingRequestCriteria.js.map +1 -0
  1655. package/build/dist/Server/Utils/Monitor/Criteria/LogMonitorCriteria.js +19 -0
  1656. package/build/dist/Server/Utils/Monitor/Criteria/LogMonitorCriteria.js.map +1 -0
  1657. package/build/dist/Server/Utils/Monitor/Criteria/SSLMonitorCriteria.js +125 -0
  1658. package/build/dist/Server/Utils/Monitor/Criteria/SSLMonitorCriteria.js.map +1 -0
  1659. package/build/dist/Server/Utils/Monitor/Criteria/ServerMonitorCriteria.js +175 -0
  1660. package/build/dist/Server/Utils/Monitor/Criteria/ServerMonitorCriteria.js.map +1 -0
  1661. package/build/dist/Server/Utils/Monitor/Criteria/SyntheticMonitor.js +35 -0
  1662. package/build/dist/Server/Utils/Monitor/Criteria/SyntheticMonitor.js.map +1 -0
  1663. package/build/dist/Server/Utils/Monitor/Criteria/TraceMonitorCriteria.js +19 -0
  1664. package/build/dist/Server/Utils/Monitor/Criteria/TraceMonitorCriteria.js.map +1 -0
  1665. package/build/dist/Server/Utils/Monitor/DataToProcess.js +2 -0
  1666. package/build/dist/Server/Utils/Monitor/DataToProcess.js.map +1 -0
  1667. package/build/dist/Server/Utils/Monitor/MonitorResource.js +833 -0
  1668. package/build/dist/Server/Utils/Monitor/MonitorResource.js.map +1 -0
  1669. package/build/dist/Server/Utils/Process.js +15 -0
  1670. package/build/dist/Server/Utils/Process.js.map +1 -0
  1671. package/build/dist/Server/Utils/Realtime.js +87 -0
  1672. package/build/dist/Server/Utils/Realtime.js.map +1 -0
  1673. package/build/dist/Server/Utils/Response.js +152 -0
  1674. package/build/dist/Server/Utils/Response.js.map +1 -0
  1675. package/build/dist/Server/Utils/Slack.js +20 -0
  1676. package/build/dist/Server/Utils/Slack.js.map +1 -0
  1677. package/build/dist/Server/Utils/StartServer.js +183 -0
  1678. package/build/dist/Server/Utils/StartServer.js.map +1 -0
  1679. package/build/dist/Server/Utils/Stream.js +21 -0
  1680. package/build/dist/Server/Utils/Stream.js.map +1 -0
  1681. package/build/dist/Server/Utils/Telemetry.js +185 -0
  1682. package/build/dist/Server/Utils/Telemetry.js.map +1 -0
  1683. package/build/dist/Server/Utils/TwoFactorAuth.js +57 -0
  1684. package/build/dist/Server/Utils/TwoFactorAuth.js.map +1 -0
  1685. package/build/dist/Server/Utils/VM/VMAPI.js +124 -0
  1686. package/build/dist/Server/Utils/VM/VMAPI.js.map +1 -0
  1687. package/build/dist/Server/Utils/VM/VMRunner.js +30 -0
  1688. package/build/dist/Server/Utils/VM/VMRunner.js.map +1 -0
  1689. package/build/dist/Tests/Models/File.test.js.map +1 -0
  1690. package/build/dist/Tests/Server/API/BaseAPI.test.js +566 -0
  1691. package/build/dist/Tests/Server/API/BaseAPI.test.js.map +1 -0
  1692. package/build/dist/Tests/Server/API/Helpers.js +27 -0
  1693. package/build/dist/Tests/Server/API/Helpers.js.map +1 -0
  1694. package/build/dist/Tests/Server/API/ProbeAPI.test.js +84 -0
  1695. package/build/dist/Tests/Server/API/ProbeAPI.test.js.map +1 -0
  1696. package/build/dist/Tests/Server/API/ProjectAPI.test.js +170 -0
  1697. package/build/dist/Tests/Server/API/ProjectAPI.test.js.map +1 -0
  1698. package/build/dist/Tests/Server/API/UserSmsApi.test.js +177 -0
  1699. package/build/dist/Tests/Server/API/UserSmsApi.test.js.map +1 -0
  1700. package/build/dist/Tests/Server/Middleware/BearerTokenAuthorization.test.js +63 -0
  1701. package/build/dist/Tests/Server/Middleware/BearerTokenAuthorization.test.js.map +1 -0
  1702. package/build/dist/Tests/Server/Middleware/ClusterKeyAuthorization.test.js +58 -0
  1703. package/build/dist/Tests/Server/Middleware/ClusterKeyAuthorization.test.js.map +1 -0
  1704. package/build/dist/Tests/Server/Middleware/NotificationMiddleware.test.js +100 -0
  1705. package/build/dist/Tests/Server/Middleware/NotificationMiddleware.test.js.map +1 -0
  1706. package/build/dist/Tests/Server/Middleware/ProjectAuthorization.test.js +169 -0
  1707. package/build/dist/Tests/Server/Middleware/ProjectAuthorization.test.js.map +1 -0
  1708. package/build/dist/Tests/Server/Middleware/UserAuthorization.test.js +417 -0
  1709. package/build/dist/Tests/Server/Middleware/UserAuthorization.test.js.map +1 -0
  1710. package/build/dist/Tests/Server/Services/AnalyticsDatabaseService.test.js +195 -0
  1711. package/build/dist/Tests/Server/Services/AnalyticsDatabaseService.test.js.map +1 -0
  1712. package/build/dist/Tests/Server/Services/BillingService.test.js +907 -0
  1713. package/build/dist/Tests/Server/Services/BillingService.test.js.map +1 -0
  1714. package/build/dist/Tests/Server/Services/ProbeService.test.js +719 -0
  1715. package/build/dist/Tests/Server/Services/ProbeService.test.js.map +1 -0
  1716. package/build/dist/Tests/Server/Services/ScheduledMaintenanceService.test.js +95 -0
  1717. package/build/dist/Tests/Server/Services/ScheduledMaintenanceService.test.js.map +1 -0
  1718. package/build/dist/Tests/Server/Services/TeamMemberService.test.js +852 -0
  1719. package/build/dist/Tests/Server/Services/TeamMemberService.test.js.map +1 -0
  1720. package/build/dist/Tests/Server/TestingUtils/Init.js +4 -0
  1721. package/build/dist/Tests/Server/TestingUtils/Init.js.map +1 -0
  1722. package/build/dist/Tests/Server/TestingUtils/Postgres/TestDataSourceOptions.js +9 -0
  1723. package/build/dist/Tests/Server/TestingUtils/Postgres/TestDataSourceOptions.js.map +1 -0
  1724. package/build/dist/Tests/Server/TestingUtils/Redis/TestRedisOptions.js +16 -0
  1725. package/build/dist/Tests/Server/TestingUtils/Redis/TestRedisOptions.js.map +1 -0
  1726. package/build/dist/Tests/Server/TestingUtils/Services/BillingServiceHelper.js +123 -0
  1727. package/build/dist/Tests/Server/TestingUtils/Services/BillingServiceHelper.js.map +1 -0
  1728. package/build/dist/Tests/Server/TestingUtils/Services/ProjectServiceHelper.js +39 -0
  1729. package/build/dist/Tests/Server/TestingUtils/Services/ProjectServiceHelper.js.map +1 -0
  1730. package/build/dist/Tests/Server/TestingUtils/Services/ScheduledMaintenanceServiceHelper.js +20 -0
  1731. package/build/dist/Tests/Server/TestingUtils/Services/ScheduledMaintenanceServiceHelper.js.map +1 -0
  1732. package/build/dist/Tests/Server/TestingUtils/Services/ScheduledMaintenanceStateServiceHelper.js +31 -0
  1733. package/build/dist/Tests/Server/TestingUtils/Services/ScheduledMaintenanceStateServiceHelper.js.map +1 -0
  1734. package/build/dist/Tests/Server/TestingUtils/Services/TeamMemberServiceHelper.js +14 -0
  1735. package/build/dist/Tests/Server/TestingUtils/Services/TeamMemberServiceHelper.js.map +1 -0
  1736. package/build/dist/Tests/Server/TestingUtils/Services/TeamServiceHelper.js +21 -0
  1737. package/build/dist/Tests/Server/TestingUtils/Services/TeamServiceHelper.js.map +1 -0
  1738. package/build/dist/Tests/Server/TestingUtils/Services/Types.js +2 -0
  1739. package/build/dist/Tests/Server/TestingUtils/Services/Types.js.map +1 -0
  1740. package/build/dist/Tests/Server/TestingUtils/Services/UserServiceHelper.js +37 -0
  1741. package/build/dist/Tests/Server/TestingUtils/Services/UserServiceHelper.js.map +1 -0
  1742. package/build/dist/Tests/Server/TestingUtils/__mocks__/Stripe.mock.js +13 -0
  1743. package/build/dist/Tests/Server/TestingUtils/__mocks__/Stripe.mock.js.map +1 -0
  1744. package/build/dist/Tests/Server/TestingUtils/__mocks__/TestDatabase.mock.js +22 -0
  1745. package/build/dist/Tests/Server/TestingUtils/__mocks__/TestDatabase.mock.js.map +1 -0
  1746. package/build/dist/Tests/Server/Utils/AnalyticsDatabase/Statement.test.js +94 -0
  1747. package/build/dist/Tests/Server/Utils/AnalyticsDatabase/Statement.test.js.map +1 -0
  1748. package/build/dist/Tests/Server/Utils/AnalyticsDatabase/StatementGenerator.test.js +298 -0
  1749. package/build/dist/Tests/Server/Utils/AnalyticsDatabase/StatementGenerator.test.js.map +1 -0
  1750. package/build/dist/Tests/Server/Utils/Cookie.test.js +77 -0
  1751. package/build/dist/Tests/Server/Utils/Cookie.test.js.map +1 -0
  1752. package/build/dist/Tests/Server/Utils/CronTab.test.js +29 -0
  1753. package/build/dist/Tests/Server/Utils/CronTab.test.js.map +1 -0
  1754. package/build/dist/Tests/Server/Utils/JsonToCsv.test.js +114 -0
  1755. package/build/dist/Tests/Server/Utils/JsonToCsv.test.js.map +1 -0
  1756. package/build/dist/Tests/Types/API/Headers.test.js +1 -1
  1757. package/build/dist/Tests/Types/API/Headers.test.js.map +1 -1
  1758. package/build/dist/Tests/Types/ArrayUtil.test.js +1 -1
  1759. package/build/dist/Tests/Types/ArrayUtil.test.js.map +1 -1
  1760. package/build/dist/Tests/Types/Database/Date.test.js +12 -10
  1761. package/build/dist/Tests/Types/Database/Date.test.js.map +1 -1
  1762. package/build/dist/Tests/Types/Sleep.test.js +3 -7
  1763. package/build/dist/Tests/Types/Sleep.test.js.map +1 -1
  1764. package/build/dist/Tests/UI/Components/404.test.js +54 -0
  1765. package/build/dist/Tests/UI/Components/404.test.js.map +1 -0
  1766. package/build/dist/Tests/UI/Components/Alert.test.js +83 -0
  1767. package/build/dist/Tests/UI/Components/Alert.test.js.map +1 -0
  1768. package/build/dist/Tests/UI/Components/Badge.test.js +59 -0
  1769. package/build/dist/Tests/UI/Components/Badge.test.js.map +1 -0
  1770. package/build/dist/Tests/UI/Components/BasicForm.test.js +92 -0
  1771. package/build/dist/Tests/UI/Components/BasicForm.test.js.map +1 -0
  1772. package/build/dist/Tests/UI/Components/Breadcrumbs.test.js +65 -0
  1773. package/build/dist/Tests/UI/Components/Breadcrumbs.test.js.map +1 -0
  1774. package/build/dist/Tests/UI/Components/Button.test.js +104 -0
  1775. package/build/dist/Tests/UI/Components/Button.test.js.map +1 -0
  1776. package/build/dist/Tests/UI/Components/Card.test.js +83 -0
  1777. package/build/dist/Tests/UI/Components/Card.test.js.map +1 -0
  1778. package/build/dist/Tests/UI/Components/ColorViewer.test.js +42 -0
  1779. package/build/dist/Tests/UI/Components/ColorViewer.test.js.map +1 -0
  1780. package/build/dist/Tests/UI/Components/ComponentsModal.test.js +224 -0
  1781. package/build/dist/Tests/UI/Components/ComponentsModal.test.js.map +1 -0
  1782. package/build/dist/Tests/UI/Components/ConfirmModal.test.js +57 -0
  1783. package/build/dist/Tests/UI/Components/ConfirmModal.test.js.map +1 -0
  1784. package/build/dist/Tests/UI/Components/DictionaryOfStrings.test.js +82 -0
  1785. package/build/dist/Tests/UI/Components/DictionaryOfStrings.test.js.map +1 -0
  1786. package/build/dist/Tests/UI/Components/Dropdown.test.js +130 -0
  1787. package/build/dist/Tests/UI/Components/Dropdown.test.js.map +1 -0
  1788. package/build/dist/Tests/UI/Components/DuplicateModel.test.js +219 -0
  1789. package/build/dist/Tests/UI/Components/DuplicateModel.test.js.map +1 -0
  1790. package/build/dist/Tests/UI/Components/EmptyState/EmptyState.test.js +26 -0
  1791. package/build/dist/Tests/UI/Components/EmptyState/EmptyState.test.js.map +1 -0
  1792. package/build/dist/Tests/UI/Components/ErrorBoundary.test.js +32 -0
  1793. package/build/dist/Tests/UI/Components/ErrorBoundary.test.js.map +1 -0
  1794. package/build/dist/Tests/UI/Components/FilePicker.test.js +249 -0
  1795. package/build/dist/Tests/UI/Components/FilePicker.test.js.map +1 -0
  1796. package/build/dist/Tests/UI/Components/HiddenText.test.js +51 -0
  1797. package/build/dist/Tests/UI/Components/HiddenText.test.js.map +1 -0
  1798. package/build/dist/Tests/UI/Components/Input.test.js +197 -0
  1799. package/build/dist/Tests/UI/Components/Input.test.js.map +1 -0
  1800. package/build/dist/Tests/UI/Components/Item.test.js +58 -0
  1801. package/build/dist/Tests/UI/Components/Item.test.js.map +1 -0
  1802. package/build/dist/Tests/UI/Components/List.test.js +81 -0
  1803. package/build/dist/Tests/UI/Components/List.test.js.map +1 -0
  1804. package/build/dist/Tests/UI/Components/Loader.test.js +19 -0
  1805. package/build/dist/Tests/UI/Components/Loader.test.js.map +1 -0
  1806. package/build/dist/Tests/UI/Components/MasterPage.test.js +46 -0
  1807. package/build/dist/Tests/UI/Components/MasterPage.test.js.map +1 -0
  1808. package/build/dist/Tests/UI/Components/Modal.test.js +127 -0
  1809. package/build/dist/Tests/UI/Components/Modal.test.js.map +1 -0
  1810. package/build/dist/Tests/UI/Components/NavBar.test.js +33 -0
  1811. package/build/dist/Tests/UI/Components/NavBar.test.js.map +1 -0
  1812. package/build/dist/Tests/UI/Components/OrderedStatesList.test.js +86 -0
  1813. package/build/dist/Tests/UI/Components/OrderedStatesList.test.js.map +1 -0
  1814. package/build/dist/Tests/UI/Components/Pagination.test.js +133 -0
  1815. package/build/dist/Tests/UI/Components/Pagination.test.js.map +1 -0
  1816. package/build/dist/Tests/UI/Components/Pill.test.js +49 -0
  1817. package/build/dist/Tests/UI/Components/Pill.test.js.map +1 -0
  1818. package/build/dist/Tests/UI/Components/Probe.test.js +52 -0
  1819. package/build/dist/Tests/UI/Components/Probe.test.js.map +1 -0
  1820. package/build/dist/Tests/UI/Components/ProgressBar.test.js +44 -0
  1821. package/build/dist/Tests/UI/Components/ProgressBar.test.js.map +1 -0
  1822. package/build/dist/Tests/UI/Components/RadioButtons.test.js +66 -0
  1823. package/build/dist/Tests/UI/Components/RadioButtons.test.js.map +1 -0
  1824. package/build/dist/Tests/UI/Components/SideMenuItem.test.js +98 -0
  1825. package/build/dist/Tests/UI/Components/SideMenuItem.test.js.map +1 -0
  1826. package/build/dist/Tests/UI/Components/SideOver.test.js +77 -0
  1827. package/build/dist/Tests/UI/Components/SideOver.test.js.map +1 -0
  1828. package/build/dist/Tests/UI/Components/Tabs.test.js +56 -0
  1829. package/build/dist/Tests/UI/Components/Tabs.test.js.map +1 -0
  1830. package/build/dist/Tests/UI/Components/Template/Template.test.js +15 -0
  1831. package/build/dist/Tests/UI/Components/Template/Template.test.js.map +1 -0
  1832. package/build/dist/Tests/UI/Components/TextArea.test.js +97 -0
  1833. package/build/dist/Tests/UI/Components/TextArea.test.js.map +1 -0
  1834. package/build/dist/Tests/UI/Components/Toast.test.js +48 -0
  1835. package/build/dist/Tests/UI/Components/Toast.test.js.map +1 -0
  1836. package/build/dist/Tests/UI/Components/Toggle.test.js +95 -0
  1837. package/build/dist/Tests/UI/Components/Toggle.test.js.map +1 -0
  1838. package/build/dist/Tests/UI/Components/TopSection.test.js +33 -0
  1839. package/build/dist/Tests/UI/Components/TopSection.test.js.map +1 -0
  1840. package/build/dist/Tests/UI/Index.js +2 -0
  1841. package/build/dist/Tests/UI/Index.js.map +1 -0
  1842. package/build/dist/Tests/UI/Mocks/FileMock.js +3 -0
  1843. package/build/dist/Tests/UI/Mocks/FileMock.js.map +1 -0
  1844. package/build/dist/Tests/Utils/API.test.js +1 -1
  1845. package/build/dist/Tests/Utils/API.test.js.map +1 -1
  1846. package/build/dist/Tests/Utils/Faker.test.js +1 -1
  1847. package/build/dist/Tests/Utils/Faker.test.js.map +1 -1
  1848. package/build/dist/Types/API/HTTPErrorResponse.js.map +1 -1
  1849. package/build/dist/Types/API/HTTPMethod.js +1 -0
  1850. package/build/dist/Types/API/HTTPMethod.js.map +1 -1
  1851. package/build/dist/Types/API/HTTPResponse.js.map +1 -1
  1852. package/build/dist/Types/API/Hostname.js.map +1 -1
  1853. package/build/dist/Types/API/Route.js.map +1 -1
  1854. package/build/dist/Types/API/StatusCode.js.map +1 -1
  1855. package/build/dist/Types/API/URL.js.map +1 -1
  1856. package/build/dist/Types/AnalyticsDatabase/TableColumn.js.map +1 -1
  1857. package/build/dist/Types/ArrayUtil.js.map +1 -1
  1858. package/build/dist/Types/BaseDatabase/DatabaseCommonInteractionPropsUtil.js.map +1 -1
  1859. package/build/dist/Types/BaseDatabase/EqualToOrNull.js.map +1 -1
  1860. package/build/dist/Types/BaseDatabase/GreaterThan.js.map +1 -1
  1861. package/build/dist/Types/BaseDatabase/GreaterThanOrEqual.js.map +1 -1
  1862. package/build/dist/Types/BaseDatabase/InBetween.js +2 -14
  1863. package/build/dist/Types/BaseDatabase/InBetween.js.map +1 -1
  1864. package/build/dist/Types/BaseDatabase/Includes.js.map +1 -1
  1865. package/build/dist/Types/BaseDatabase/IsNull.js.map +1 -1
  1866. package/build/dist/Types/BaseDatabase/LessThan.js.map +1 -1
  1867. package/build/dist/Types/BaseDatabase/LessThanOrEqual.js.map +1 -1
  1868. package/build/dist/Types/BaseDatabase/ModelPermission.js.map +1 -1
  1869. package/build/dist/Types/BaseDatabase/NotEqual.js.map +1 -1
  1870. package/build/dist/Types/BaseDatabase/NotNull.js.map +1 -1
  1871. package/build/dist/Types/BaseDatabase/Search.js.map +1 -1
  1872. package/build/dist/Types/Billing/SubscriptionPlan.js.map +1 -1
  1873. package/build/dist/Types/Billing/SubscriptionStatus.js.map +1 -1
  1874. package/build/dist/Types/Call/CallRequest.js.map +1 -1
  1875. package/build/dist/Types/Color.js.map +1 -1
  1876. package/build/dist/Types/Currency.js.map +1 -1
  1877. package/build/dist/Types/Database/AccessControl/ColumnAccessControl.js.map +1 -1
  1878. package/build/dist/Types/Database/AccessControl/ColumnBillingAccessControl.js.map +1 -1
  1879. package/build/dist/Types/Database/AccessControl/TableAccessControl.js.map +1 -1
  1880. package/build/dist/Types/Database/AccessControl/TableBillingAccessControl.js.map +1 -1
  1881. package/build/dist/Types/Database/CanAccessIfCanReadOn.js.map +1 -1
  1882. package/build/dist/Types/Database/ColumnLength.js.map +1 -1
  1883. package/build/dist/Types/Database/CompareBase.js.map +1 -1
  1884. package/build/dist/Types/Database/DatabaseProperty.js.map +1 -1
  1885. package/build/dist/Types/Database/Date.js.map +1 -1
  1886. package/build/dist/Types/Database/IsPermissionsIf.js.map +1 -1
  1887. package/build/dist/Types/Database/TableColumn.js.map +1 -1
  1888. package/build/dist/Types/Database/UniqueColumnBy.js.map +1 -1
  1889. package/build/dist/Types/Date.js.map +1 -1
  1890. package/build/dist/Types/Day/DayOfWeek.js.map +1 -1
  1891. package/build/dist/Types/Decimal.js.map +1 -1
  1892. package/build/dist/Types/DiskSize.js.map +1 -1
  1893. package/build/dist/Types/Domain.js +1 -1
  1894. package/build/dist/Types/Domain.js.map +1 -1
  1895. package/build/dist/Types/Email.js.map +1 -1
  1896. package/build/dist/Types/EmailWithName.js.map +1 -1
  1897. package/build/dist/Types/Events/Recurring.js.map +1 -1
  1898. package/build/dist/Types/Exception/ApiException.js.map +1 -1
  1899. package/build/dist/Types/Exception/SsoAuthorizationException.js +2 -1
  1900. package/build/dist/Types/Exception/SsoAuthorizationException.js.map +1 -1
  1901. package/build/dist/Types/HashCode.js.map +1 -1
  1902. package/build/dist/Types/HashedString.js.map +1 -1
  1903. package/build/dist/Types/IP/IP.js.map +1 -1
  1904. package/build/dist/Types/IP/IPv4.js.map +1 -1
  1905. package/build/dist/Types/IP/IPv6.js.map +1 -1
  1906. package/build/dist/Types/JSONFunctions.js +3 -0
  1907. package/build/dist/Types/JSONFunctions.js.map +1 -1
  1908. package/build/dist/Types/Monitor/CriteriaFilter.js +2 -0
  1909. package/build/dist/Types/Monitor/CriteriaFilter.js.map +1 -1
  1910. package/build/dist/Types/Monitor/MonitorCriteria.js.map +1 -1
  1911. package/build/dist/Types/Monitor/MonitorCriteriaInstance.js +49 -0
  1912. package/build/dist/Types/Monitor/MonitorCriteriaInstance.js.map +1 -1
  1913. package/build/dist/Types/Monitor/MonitorStep.js +18 -1
  1914. package/build/dist/Types/Monitor/MonitorStep.js.map +1 -1
  1915. package/build/dist/Types/Monitor/MonitorStepLogMonitor.js.map +1 -1
  1916. package/build/dist/Types/Monitor/MonitorStepTraceMonitor.js +59 -0
  1917. package/build/dist/Types/Monitor/MonitorStepTraceMonitor.js.map +1 -0
  1918. package/build/dist/Types/Monitor/MonitorSteps.js +3 -0
  1919. package/build/dist/Types/Monitor/MonitorSteps.js.map +1 -1
  1920. package/build/dist/Types/Monitor/MonitorType.js +5 -6
  1921. package/build/dist/Types/Monitor/MonitorType.js.map +1 -1
  1922. package/build/dist/Types/Monitor/TraceMonitor/TraceMonitorResponse.js +2 -0
  1923. package/build/dist/Types/Monitor/TraceMonitor/TraceMonitorResponse.js.map +1 -0
  1924. package/build/dist/Types/Name.js.map +1 -1
  1925. package/build/dist/Types/ObjectID.js.map +1 -1
  1926. package/build/dist/Types/OnCallDutyPolicy/Layer.js +1 -1
  1927. package/build/dist/Types/OnCallDutyPolicy/Layer.js.map +1 -1
  1928. package/build/dist/Types/OnCallDutyPolicy/RestrictionTimes.js.map +1 -1
  1929. package/build/dist/Types/Permission.js.map +1 -1
  1930. package/build/dist/Types/Phone.js.map +1 -1
  1931. package/build/dist/Types/Port.js.map +1 -1
  1932. package/build/dist/Types/PositiveNumber.js.map +1 -1
  1933. package/build/dist/Types/SerializableObjectDictionary.js +2 -0
  1934. package/build/dist/Types/SerializableObjectDictionary.js.map +1 -1
  1935. package/build/dist/Types/StatusPage/UptimePrecision.js +9 -0
  1936. package/build/dist/Types/StatusPage/UptimePrecision.js.map +1 -0
  1937. package/build/dist/Types/Text.js.map +1 -1
  1938. package/build/dist/Types/Version.js.map +1 -1
  1939. package/build/dist/Types/WebsiteRequest.js.map +1 -1
  1940. package/build/dist/Types/Workflow/ComponentID.js +1 -0
  1941. package/build/dist/Types/Workflow/ComponentID.js.map +1 -1
  1942. package/build/dist/Types/Workflow/Components/API.js +84 -0
  1943. package/build/dist/Types/Workflow/Components/API.js.map +1 -1
  1944. package/build/dist/Types/Workflow/Components/BaseModel.js.map +1 -1
  1945. package/build/dist/Types/XML.js.map +1 -1
  1946. package/build/dist/UI/Components/404.js +25 -0
  1947. package/build/dist/UI/Components/404.js.map +1 -0
  1948. package/build/dist/UI/Components/Accordion/Accordion.js +51 -0
  1949. package/build/dist/UI/Components/Accordion/Accordion.js.map +1 -0
  1950. package/build/dist/UI/Components/Accordion/AccordionGroup.js +6 -0
  1951. package/build/dist/UI/Components/Accordion/AccordionGroup.js.map +1 -0
  1952. package/build/dist/UI/Components/ActionButton/ActionButtonSchema.js +2 -0
  1953. package/build/dist/UI/Components/ActionButton/ActionButtonSchema.js.map +1 -0
  1954. package/build/dist/UI/Components/Alerts/Alert.js +72 -0
  1955. package/build/dist/UI/Components/Alerts/Alert.js.map +1 -0
  1956. package/build/dist/UI/Components/AuthContainer/AuthContainer.js +6 -0
  1957. package/build/dist/UI/Components/AuthContainer/AuthContainer.js.map +1 -0
  1958. package/build/dist/UI/Components/Badge/Badge.js +25 -0
  1959. package/build/dist/UI/Components/Badge/Badge.js.map +1 -0
  1960. package/build/dist/UI/Components/Banner/Banner.js +19 -0
  1961. package/build/dist/UI/Components/Banner/Banner.js.map +1 -0
  1962. package/build/dist/UI/Components/Breadcrumbs/Breadcrumbs.js +25 -0
  1963. package/build/dist/UI/Components/Breadcrumbs/Breadcrumbs.js.map +1 -0
  1964. package/build/dist/UI/Components/BulkUpdate/BulkUpdateForm.js +139 -0
  1965. package/build/dist/UI/Components/BulkUpdate/BulkUpdateForm.js.map +1 -0
  1966. package/build/dist/UI/Components/Button/Button.js +137 -0
  1967. package/build/dist/UI/Components/Button/Button.js.map +1 -0
  1968. package/build/dist/UI/Components/Button/ButtonTypes.js +8 -0
  1969. package/build/dist/UI/Components/Button/ButtonTypes.js.map +1 -0
  1970. package/build/dist/UI/Components/Calendar/Calendar.js +55 -0
  1971. package/build/dist/UI/Components/Calendar/Calendar.js.map +1 -0
  1972. package/build/dist/UI/Components/Card/Card.js +31 -0
  1973. package/build/dist/UI/Components/Card/Card.js.map +1 -0
  1974. package/build/dist/UI/Components/Card/CardButtons/Refresh.js +12 -0
  1975. package/build/dist/UI/Components/Card/CardButtons/Refresh.js.map +1 -0
  1976. package/build/dist/UI/Components/CategoryCheckbox/Category.js +79 -0
  1977. package/build/dist/UI/Components/CategoryCheckbox/Category.js.map +1 -0
  1978. package/build/dist/UI/Components/CategoryCheckbox/CategoryCheckboxTypes.js +2 -0
  1979. package/build/dist/UI/Components/CategoryCheckbox/CategoryCheckboxTypes.js.map +1 -0
  1980. package/build/dist/UI/Components/CategoryCheckbox/CheckboxList.js +54 -0
  1981. package/build/dist/UI/Components/CategoryCheckbox/CheckboxList.js.map +1 -0
  1982. package/build/dist/UI/Components/CategoryCheckbox/Index.js +80 -0
  1983. package/build/dist/UI/Components/CategoryCheckbox/Index.js.map +1 -0
  1984. package/build/dist/UI/Components/Charts/Bar/Bar.js +2 -0
  1985. package/build/dist/UI/Components/Charts/Bar/Bar.js.map +1 -0
  1986. package/build/dist/UI/Components/Charts/Base/BaseChart.js +2 -0
  1987. package/build/dist/UI/Components/Charts/Base/BaseChart.js.map +1 -0
  1988. package/build/dist/UI/Components/Charts/ChartGroup/ChartGroup.js +30 -0
  1989. package/build/dist/UI/Components/Charts/ChartGroup/ChartGroup.js.map +1 -0
  1990. package/build/dist/UI/Components/Charts/Line/LineChart.js +139 -0
  1991. package/build/dist/UI/Components/Charts/Line/LineChart.js.map +1 -0
  1992. package/build/dist/UI/Components/Charts/Tooltip/Tooltip.js +34 -0
  1993. package/build/dist/UI/Components/Charts/Tooltip/Tooltip.js.map +1 -0
  1994. package/build/dist/UI/Components/Checkbox/Checkbox.js +30 -0
  1995. package/build/dist/UI/Components/Checkbox/Checkbox.js.map +1 -0
  1996. package/build/dist/UI/Components/Checkbox/CheckboxViewer.js +12 -0
  1997. package/build/dist/UI/Components/Checkbox/CheckboxViewer.js.map +1 -0
  1998. package/build/dist/UI/Components/CodeBlock/CodeBlock.js +8 -0
  1999. package/build/dist/UI/Components/CodeBlock/CodeBlock.js.map +1 -0
  2000. package/build/dist/UI/Components/CodeEditor/CodeEditor.js +129 -0
  2001. package/build/dist/UI/Components/CodeEditor/CodeEditor.js.map +1 -0
  2002. package/build/dist/UI/Components/ColorCircle/ColorCircle.js +10 -0
  2003. package/build/dist/UI/Components/ColorCircle/ColorCircle.js.map +1 -0
  2004. package/build/dist/UI/Components/ColorSquareCube/ColorSquareCube.js +10 -0
  2005. package/build/dist/UI/Components/ColorSquareCube/ColorSquareCube.js.map +1 -0
  2006. package/build/dist/UI/Components/ColorViewer/ColorViewer.js +22 -0
  2007. package/build/dist/UI/Components/ColorViewer/ColorViewer.js.map +1 -0
  2008. package/build/dist/UI/Components/ComingSoon/ComingSoon.js +8 -0
  2009. package/build/dist/UI/Components/ComingSoon/ComingSoon.js.map +1 -0
  2010. package/build/dist/UI/Components/ComponentLoader/CompactLoader.js +9 -0
  2011. package/build/dist/UI/Components/ComponentLoader/CompactLoader.js.map +1 -0
  2012. package/build/dist/UI/Components/ComponentLoader/ComponentLoader.js +8 -0
  2013. package/build/dist/UI/Components/ComponentLoader/ComponentLoader.js.map +1 -0
  2014. package/build/dist/UI/Components/CopyTextButton/CopyTextButton.js +18 -0
  2015. package/build/dist/UI/Components/CopyTextButton/CopyTextButton.js.map +1 -0
  2016. package/build/dist/UI/Components/CopyableButton/CopyableButton.js +24 -0
  2017. package/build/dist/UI/Components/CopyableButton/CopyableButton.js.map +1 -0
  2018. package/build/dist/UI/Components/CustomFields/CustomFieldsDetail.js +120 -0
  2019. package/build/dist/UI/Components/CustomFields/CustomFieldsDetail.js.map +1 -0
  2020. package/build/dist/UI/Components/Date/StartAndEndDate.js +199 -0
  2021. package/build/dist/UI/Components/Date/StartAndEndDate.js.map +1 -0
  2022. package/build/dist/UI/Components/Detail/Detail.js +231 -0
  2023. package/build/dist/UI/Components/Detail/Detail.js.map +1 -0
  2024. package/build/dist/UI/Components/Detail/Field.js +2 -0
  2025. package/build/dist/UI/Components/Detail/Field.js.map +1 -0
  2026. package/build/dist/UI/Components/Detail/FieldLabel.js +19 -0
  2027. package/build/dist/UI/Components/Detail/FieldLabel.js.map +1 -0
  2028. package/build/dist/UI/Components/Detail/PlaceholderText.js +6 -0
  2029. package/build/dist/UI/Components/Detail/PlaceholderText.js.map +1 -0
  2030. package/build/dist/UI/Components/Dictionary/Dictionary.js +175 -0
  2031. package/build/dist/UI/Components/Dictionary/Dictionary.js.map +1 -0
  2032. package/build/dist/UI/Components/Dictionary/DictionaryOfStingsViewer.js +29 -0
  2033. package/build/dist/UI/Components/Dictionary/DictionaryOfStingsViewer.js.map +1 -0
  2034. package/build/dist/UI/Components/Dictionary/DictionaryOfStrings.js +21 -0
  2035. package/build/dist/UI/Components/Dictionary/DictionaryOfStrings.js.map +1 -0
  2036. package/build/dist/UI/Components/Divider/Divider.js +6 -0
  2037. package/build/dist/UI/Components/Divider/Divider.js.map +1 -0
  2038. package/build/dist/UI/Components/Dropdown/Dropdown.js +107 -0
  2039. package/build/dist/UI/Components/Dropdown/Dropdown.js.map +1 -0
  2040. package/build/dist/UI/Components/DuplicateModel/DuplicateModel.js +86 -0
  2041. package/build/dist/UI/Components/DuplicateModel/DuplicateModel.js.map +1 -0
  2042. package/build/dist/UI/Components/EmptyState/EmptyState.js +13 -0
  2043. package/build/dist/UI/Components/EmptyState/EmptyState.js.map +1 -0
  2044. package/build/dist/UI/Components/Error/PageError.js +18 -0
  2045. package/build/dist/UI/Components/Error/PageError.js.map +1 -0
  2046. package/build/dist/UI/Components/ErrorBoundary.js +22 -0
  2047. package/build/dist/UI/Components/ErrorBoundary.js.map +1 -0
  2048. package/build/dist/UI/Components/ErrorMessage/ErrorMessage.js +12 -0
  2049. package/build/dist/UI/Components/ErrorMessage/ErrorMessage.js.map +1 -0
  2050. package/build/dist/UI/Components/EventHistoryList/EventHistoryDayList.js +22 -0
  2051. package/build/dist/UI/Components/EventHistoryList/EventHistoryDayList.js.map +1 -0
  2052. package/build/dist/UI/Components/EventHistoryList/EventHistoryList.js +9 -0
  2053. package/build/dist/UI/Components/EventHistoryList/EventHistoryList.js.map +1 -0
  2054. package/build/dist/UI/Components/EventHistoryList/NoEventDay.js +16 -0
  2055. package/build/dist/UI/Components/EventHistoryList/NoEventDay.js.map +1 -0
  2056. package/build/dist/UI/Components/EventItem/EventItem.js +112 -0
  2057. package/build/dist/UI/Components/EventItem/EventItem.js.map +1 -0
  2058. package/build/dist/UI/Components/Events/RecurringFieldElement.js +42 -0
  2059. package/build/dist/UI/Components/Events/RecurringFieldElement.js.map +1 -0
  2060. package/build/dist/UI/Components/Events/RecurringViewElement.js +17 -0
  2061. package/build/dist/UI/Components/Events/RecurringViewElement.js.map +1 -0
  2062. package/build/dist/UI/Components/FilePicker/FilePicker.js +149 -0
  2063. package/build/dist/UI/Components/FilePicker/FilePicker.js.map +1 -0
  2064. package/build/dist/UI/Components/Filters/BooleanFilter.js +35 -0
  2065. package/build/dist/UI/Components/Filters/BooleanFilter.js.map +1 -0
  2066. package/build/dist/UI/Components/Filters/DateFilter.js +23 -0
  2067. package/build/dist/UI/Components/Filters/DateFilter.js.map +1 -0
  2068. package/build/dist/UI/Components/Filters/DropdownFilter.js +40 -0
  2069. package/build/dist/UI/Components/Filters/DropdownFilter.js.map +1 -0
  2070. package/build/dist/UI/Components/Filters/EntityFilter.js +40 -0
  2071. package/build/dist/UI/Components/Filters/EntityFilter.js.map +1 -0
  2072. package/build/dist/UI/Components/Filters/FilterModal.js +2 -0
  2073. package/build/dist/UI/Components/Filters/FilterModal.js.map +1 -0
  2074. package/build/dist/UI/Components/Filters/FilterViewer.js +232 -0
  2075. package/build/dist/UI/Components/Filters/FilterViewer.js.map +1 -0
  2076. package/build/dist/UI/Components/Filters/FilterViewerItem.js +11 -0
  2077. package/build/dist/UI/Components/Filters/FilterViewerItem.js.map +1 -0
  2078. package/build/dist/UI/Components/Filters/FiltersForm.js +55 -0
  2079. package/build/dist/UI/Components/Filters/FiltersForm.js.map +1 -0
  2080. package/build/dist/UI/Components/Filters/JSONFilter.js +24 -0
  2081. package/build/dist/UI/Components/Filters/JSONFilter.js.map +1 -0
  2082. package/build/dist/UI/Components/Filters/TextFilter.js +59 -0
  2083. package/build/dist/UI/Components/Filters/TextFilter.js.map +1 -0
  2084. package/build/dist/UI/Components/Filters/Types/Filter.js +2 -0
  2085. package/build/dist/UI/Components/Filters/Types/Filter.js.map +1 -0
  2086. package/build/dist/UI/Components/Filters/Types/FilterData.js +2 -0
  2087. package/build/dist/UI/Components/Filters/Types/FilterData.js.map +1 -0
  2088. package/build/dist/UI/Components/Footer/Footer.js +17 -0
  2089. package/build/dist/UI/Components/Footer/Footer.js.map +1 -0
  2090. package/build/dist/UI/Components/FormModal/BasicFormModal.js +26 -0
  2091. package/build/dist/UI/Components/FormModal/BasicFormModal.js.map +1 -0
  2092. package/build/dist/UI/Components/Forms/BasicForm.js +339 -0
  2093. package/build/dist/UI/Components/Forms/BasicForm.js.map +1 -0
  2094. package/build/dist/UI/Components/Forms/BasicModelForm.js +30 -0
  2095. package/build/dist/UI/Components/Forms/BasicModelForm.js.map +1 -0
  2096. package/build/dist/UI/Components/Forms/Fields/ColorPicker.js +58 -0
  2097. package/build/dist/UI/Components/Forms/Fields/ColorPicker.js.map +1 -0
  2098. package/build/dist/UI/Components/Forms/Fields/FieldLabel.js +16 -0
  2099. package/build/dist/UI/Components/Forms/Fields/FieldLabel.js.map +1 -0
  2100. package/build/dist/UI/Components/Forms/Fields/FormField.js +329 -0
  2101. package/build/dist/UI/Components/Forms/Fields/FormField.js.map +1 -0
  2102. package/build/dist/UI/Components/Forms/ModelForm.js +429 -0
  2103. package/build/dist/UI/Components/Forms/ModelForm.js.map +1 -0
  2104. package/build/dist/UI/Components/Forms/Steps/Step.js +27 -0
  2105. package/build/dist/UI/Components/Forms/Steps/Step.js.map +1 -0
  2106. package/build/dist/UI/Components/Forms/Steps/Steps.js +33 -0
  2107. package/build/dist/UI/Components/Forms/Steps/Steps.js.map +1 -0
  2108. package/build/dist/UI/Components/Forms/Types/Field.js +7 -0
  2109. package/build/dist/UI/Components/Forms/Types/Field.js.map +1 -0
  2110. package/build/dist/UI/Components/Forms/Types/Fields.js +2 -0
  2111. package/build/dist/UI/Components/Forms/Types/Fields.js.map +1 -0
  2112. package/build/dist/UI/Components/Forms/Types/FormFieldSchemaType.js +41 -0
  2113. package/build/dist/UI/Components/Forms/Types/FormFieldSchemaType.js.map +1 -0
  2114. package/build/dist/UI/Components/Forms/Types/FormFieldsSchema.js +2 -0
  2115. package/build/dist/UI/Components/Forms/Types/FormFieldsSchema.js.map +1 -0
  2116. package/build/dist/UI/Components/Forms/Types/FormStep.js +7 -0
  2117. package/build/dist/UI/Components/Forms/Types/FormStep.js.map +1 -0
  2118. package/build/dist/UI/Components/Forms/Types/FormValues.js +2 -0
  2119. package/build/dist/UI/Components/Forms/Types/FormValues.js.map +1 -0
  2120. package/build/dist/UI/Components/Forms/Validation.js +247 -0
  2121. package/build/dist/UI/Components/Forms/Validation.js.map +1 -0
  2122. package/build/dist/UI/Components/Forms/WizardForm.js +2 -0
  2123. package/build/dist/UI/Components/Forms/WizardForm.js.map +1 -0
  2124. package/build/dist/UI/Components/FullPageModal/FullPageModal.js +13 -0
  2125. package/build/dist/UI/Components/FullPageModal/FullPageModal.js.map +1 -0
  2126. package/build/dist/UI/Components/GanttChart/Bar/BarLabel.js +8 -0
  2127. package/build/dist/UI/Components/GanttChart/Bar/BarLabel.js.map +1 -0
  2128. package/build/dist/UI/Components/GanttChart/Bar/Index.js +55 -0
  2129. package/build/dist/UI/Components/GanttChart/Bar/Index.js.map +1 -0
  2130. package/build/dist/UI/Components/GanttChart/ChartContainer.js +24 -0
  2131. package/build/dist/UI/Components/GanttChart/ChartContainer.js.map +1 -0
  2132. package/build/dist/UI/Components/GanttChart/Index.js +35 -0
  2133. package/build/dist/UI/Components/GanttChart/Index.js.map +1 -0
  2134. package/build/dist/UI/Components/GanttChart/Row/Index.js +7 -0
  2135. package/build/dist/UI/Components/GanttChart/Row/Index.js.map +1 -0
  2136. package/build/dist/UI/Components/GanttChart/Row/Row.js +53 -0
  2137. package/build/dist/UI/Components/GanttChart/Row/Row.js.map +1 -0
  2138. package/build/dist/UI/Components/GanttChart/Row/RowLabel.js +10 -0
  2139. package/build/dist/UI/Components/GanttChart/Row/RowLabel.js.map +1 -0
  2140. package/build/dist/UI/Components/GanttChart/Rows.js +15 -0
  2141. package/build/dist/UI/Components/GanttChart/Rows.js.map +1 -0
  2142. package/build/dist/UI/Components/GanttChart/Timeline/Index.js +16 -0
  2143. package/build/dist/UI/Components/GanttChart/Timeline/Index.js.map +1 -0
  2144. package/build/dist/UI/Components/GanttChart/Timeline/TimelineInterval.js +13 -0
  2145. package/build/dist/UI/Components/GanttChart/Timeline/TimelineInterval.js.map +1 -0
  2146. package/build/dist/UI/Components/GanttChart/Timeline/TimelineIntervalMarks.js +13 -0
  2147. package/build/dist/UI/Components/GanttChart/Timeline/TimelineIntervalMarks.js.map +1 -0
  2148. package/build/dist/UI/Components/Graphs/DayUptimeGraph.js +114 -0
  2149. package/build/dist/UI/Components/Graphs/DayUptimeGraph.js.map +1 -0
  2150. package/build/dist/UI/Components/Header/Header.js +10 -0
  2151. package/build/dist/UI/Components/Header/Header.js.map +1 -0
  2152. package/build/dist/UI/Components/Header/HeaderIconDropdown/HeaderIconDropdown.js +2 -0
  2153. package/build/dist/UI/Components/Header/HeaderIconDropdown/HeaderIconDropdown.js.map +1 -0
  2154. package/build/dist/UI/Components/Header/HeaderIconDropdownButton.js +32 -0
  2155. package/build/dist/UI/Components/Header/HeaderIconDropdownButton.js.map +1 -0
  2156. package/build/dist/UI/Components/Header/IconDropdown/IconDropdownItem.js +10 -0
  2157. package/build/dist/UI/Components/Header/IconDropdown/IconDropdownItem.js.map +1 -0
  2158. package/build/dist/UI/Components/Header/IconDropdown/IconDropdownMenu.js +6 -0
  2159. package/build/dist/UI/Components/Header/IconDropdown/IconDropdownMenu.js.map +1 -0
  2160. package/build/dist/UI/Components/Header/IconDropdown/IconDropdownRow.js +6 -0
  2161. package/build/dist/UI/Components/Header/IconDropdown/IconDropdownRow.js.map +1 -0
  2162. package/build/dist/UI/Components/Header/Notifications/NotificationItem.js +24 -0
  2163. package/build/dist/UI/Components/Header/Notifications/NotificationItem.js.map +1 -0
  2164. package/build/dist/UI/Components/Header/Notifications/Notifications.js +41 -0
  2165. package/build/dist/UI/Components/Header/Notifications/Notifications.js.map +1 -0
  2166. package/build/dist/UI/Components/Header/ProjectPicker/CreateNewProjectButton.js +13 -0
  2167. package/build/dist/UI/Components/Header/ProjectPicker/CreateNewProjectButton.js.map +1 -0
  2168. package/build/dist/UI/Components/Header/ProjectPicker/ProjectPicker.js +49 -0
  2169. package/build/dist/UI/Components/Header/ProjectPicker/ProjectPicker.js.map +1 -0
  2170. package/build/dist/UI/Components/Header/ProjectPicker/ProjectPickerFilterBox.js +12 -0
  2171. package/build/dist/UI/Components/Header/ProjectPicker/ProjectPickerFilterBox.js.map +1 -0
  2172. package/build/dist/UI/Components/Header/ProjectPicker/ProjectPickerMenu.js +11 -0
  2173. package/build/dist/UI/Components/Header/ProjectPicker/ProjectPickerMenu.js.map +1 -0
  2174. package/build/dist/UI/Components/Header/ProjectPicker/ProjectPickerMenuItem.js +18 -0
  2175. package/build/dist/UI/Components/Header/ProjectPicker/ProjectPickerMenuItem.js.map +1 -0
  2176. package/build/dist/UI/Components/Header/SearchBox.js +14 -0
  2177. package/build/dist/UI/Components/Header/SearchBox.js.map +1 -0
  2178. package/build/dist/UI/Components/Header/UserProfile/UserProfile.js +17 -0
  2179. package/build/dist/UI/Components/Header/UserProfile/UserProfile.js.map +1 -0
  2180. package/build/dist/UI/Components/Header/UserProfile/UserProfileDropdownDivider.js +6 -0
  2181. package/build/dist/UI/Components/Header/UserProfile/UserProfileDropdownDivider.js.map +1 -0
  2182. package/build/dist/UI/Components/Header/UserProfile/UserProfileMenu.js +12 -0
  2183. package/build/dist/UI/Components/Header/UserProfile/UserProfileMenu.js.map +1 -0
  2184. package/build/dist/UI/Components/Header/UserProfile/UserProfileMenuItem.js +16 -0
  2185. package/build/dist/UI/Components/Header/UserProfile/UserProfileMenuItem.js.map +1 -0
  2186. package/build/dist/UI/Components/HeaderAlert/HeaderAlert.js +14 -0
  2187. package/build/dist/UI/Components/HeaderAlert/HeaderAlert.js.map +1 -0
  2188. package/build/dist/UI/Components/HeaderAlert/HeaderModelAlert.js +52 -0
  2189. package/build/dist/UI/Components/HeaderAlert/HeaderModelAlert.js.map +1 -0
  2190. package/build/dist/UI/Components/HiddenText/HiddenText.js +24 -0
  2191. package/build/dist/UI/Components/HiddenText/HiddenText.js.map +1 -0
  2192. package/build/dist/UI/Components/HorizontalRule/HorizontalRule.js +6 -0
  2193. package/build/dist/UI/Components/HorizontalRule/HorizontalRule.js.map +1 -0
  2194. package/build/dist/UI/Components/Icon/CircularIconImage.js +15 -0
  2195. package/build/dist/UI/Components/Icon/CircularIconImage.js.map +1 -0
  2196. package/build/dist/UI/Components/Icon/Icon.js +460 -0
  2197. package/build/dist/UI/Components/Icon/Icon.js.map +1 -0
  2198. package/build/dist/UI/Components/Image/Image.js +28 -0
  2199. package/build/dist/UI/Components/Image/Image.js.map +1 -0
  2200. package/build/dist/UI/Components/ImageTiles/ImageTiles.js +21 -0
  2201. package/build/dist/UI/Components/ImageTiles/ImageTiles.js.map +1 -0
  2202. package/build/dist/UI/Components/InfoCard/InfoCard.js +10 -0
  2203. package/build/dist/UI/Components/InfoCard/InfoCard.js.map +1 -0
  2204. package/build/dist/UI/Components/InlineCode/InlineCode.js +6 -0
  2205. package/build/dist/UI/Components/InlineCode/InlineCode.js.map +1 -0
  2206. package/build/dist/UI/Components/Input/Input.js +159 -0
  2207. package/build/dist/UI/Components/Input/Input.js.map +1 -0
  2208. package/build/dist/UI/Components/Link/Link.js +48 -0
  2209. package/build/dist/UI/Components/Link/Link.js.map +1 -0
  2210. package/build/dist/UI/Components/List/List.js +44 -0
  2211. package/build/dist/UI/Components/List/List.js.map +1 -0
  2212. package/build/dist/UI/Components/List/ListBody.js +19 -0
  2213. package/build/dist/UI/Components/List/ListBody.js.map +1 -0
  2214. package/build/dist/UI/Components/List/ListRow.js +58 -0
  2215. package/build/dist/UI/Components/List/ListRow.js.map +1 -0
  2216. package/build/dist/UI/Components/Loader/Loader.js +22 -0
  2217. package/build/dist/UI/Components/Loader/Loader.js.map +1 -0
  2218. package/build/dist/UI/Components/Loader/PageLoader.js +12 -0
  2219. package/build/dist/UI/Components/Loader/PageLoader.js.map +1 -0
  2220. package/build/dist/UI/Components/LogsViewer/LogItem.js +114 -0
  2221. package/build/dist/UI/Components/LogsViewer/LogItem.js.map +1 -0
  2222. package/build/dist/UI/Components/LogsViewer/LogsViewer.js +152 -0
  2223. package/build/dist/UI/Components/LogsViewer/LogsViewer.js.map +1 -0
  2224. package/build/dist/UI/Components/Markdown.tsx/LazyMarkdownViewer.js +10 -0
  2225. package/build/dist/UI/Components/Markdown.tsx/LazyMarkdownViewer.js.map +1 -0
  2226. package/build/dist/UI/Components/Markdown.tsx/MarkdownEditor.js +7 -0
  2227. package/build/dist/UI/Components/Markdown.tsx/MarkdownEditor.js.map +1 -0
  2228. package/build/dist/UI/Components/Markdown.tsx/MarkdownViewer.js +90 -0
  2229. package/build/dist/UI/Components/Markdown.tsx/MarkdownViewer.js.map +1 -0
  2230. package/build/dist/UI/Components/MasterPage/MasterPage.js +22 -0
  2231. package/build/dist/UI/Components/MasterPage/MasterPage.js.map +1 -0
  2232. package/build/dist/UI/Components/Modal/ConfirmModal.js +11 -0
  2233. package/build/dist/UI/Components/Modal/ConfirmModal.js.map +1 -0
  2234. package/build/dist/UI/Components/Modal/Modal.js +64 -0
  2235. package/build/dist/UI/Components/Modal/Modal.js.map +1 -0
  2236. package/build/dist/UI/Components/Modal/ModalBody.js +9 -0
  2237. package/build/dist/UI/Components/Modal/ModalBody.js.map +1 -0
  2238. package/build/dist/UI/Components/Modal/ModalFooter.js +18 -0
  2239. package/build/dist/UI/Components/Modal/ModalFooter.js.map +1 -0
  2240. package/build/dist/UI/Components/ModelDelete/ModelDelete.js +54 -0
  2241. package/build/dist/UI/Components/ModelDelete/ModelDelete.js.map +1 -0
  2242. package/build/dist/UI/Components/ModelDetail/CardModelDetail.js +71 -0
  2243. package/build/dist/UI/Components/ModelDetail/CardModelDetail.js.map +1 -0
  2244. package/build/dist/UI/Components/ModelDetail/Field.js +2 -0
  2245. package/build/dist/UI/Components/ModelDetail/Field.js.map +1 -0
  2246. package/build/dist/UI/Components/ModelDetail/ModelDetail.js +160 -0
  2247. package/build/dist/UI/Components/ModelDetail/ModelDetail.js.map +1 -0
  2248. package/build/dist/UI/Components/ModelFilter/Filter.js +2 -0
  2249. package/build/dist/UI/Components/ModelFilter/Filter.js.map +1 -0
  2250. package/build/dist/UI/Components/ModelFormModal/ModelFormModal.js +41 -0
  2251. package/build/dist/UI/Components/ModelFormModal/ModelFormModal.js.map +1 -0
  2252. package/build/dist/UI/Components/ModelList/ModelList.js +177 -0
  2253. package/build/dist/UI/Components/ModelList/ModelList.js.map +1 -0
  2254. package/build/dist/UI/Components/ModelList/StaticModelList.js +67 -0
  2255. package/build/dist/UI/Components/ModelList/StaticModelList.js.map +1 -0
  2256. package/build/dist/UI/Components/ModelListModal/ModelListModal.js +17 -0
  2257. package/build/dist/UI/Components/ModelListModal/ModelListModal.js.map +1 -0
  2258. package/build/dist/UI/Components/ModelProgress/ModelProgress.js +40 -0
  2259. package/build/dist/UI/Components/ModelProgress/ModelProgress.js.map +1 -0
  2260. package/build/dist/UI/Components/ModelTable/AnalyticsModelTable.js +56 -0
  2261. package/build/dist/UI/Components/ModelTable/AnalyticsModelTable.js.map +1 -0
  2262. package/build/dist/UI/Components/ModelTable/BaseModelTable.js +988 -0
  2263. package/build/dist/UI/Components/ModelTable/BaseModelTable.js.map +1 -0
  2264. package/build/dist/UI/Components/ModelTable/Column.js +2 -0
  2265. package/build/dist/UI/Components/ModelTable/Column.js.map +1 -0
  2266. package/build/dist/UI/Components/ModelTable/Columns.js +2 -0
  2267. package/build/dist/UI/Components/ModelTable/Columns.js.map +1 -0
  2268. package/build/dist/UI/Components/ModelTable/ModelTable.js +87 -0
  2269. package/build/dist/UI/Components/ModelTable/ModelTable.js.map +1 -0
  2270. package/build/dist/UI/Components/MonitorGraphs/Uptime.js +35 -0
  2271. package/build/dist/UI/Components/MonitorGraphs/Uptime.js.map +1 -0
  2272. package/build/dist/UI/Components/MonitorGraphs/UptimeUtil.js +3 -0
  2273. package/build/dist/UI/Components/MonitorGraphs/UptimeUtil.js.map +1 -0
  2274. package/build/dist/UI/Components/Navbar/NavBar.js +9 -0
  2275. package/build/dist/UI/Components/Navbar/NavBar.js.map +1 -0
  2276. package/build/dist/UI/Components/Navbar/NavBarItem.js +33 -0
  2277. package/build/dist/UI/Components/Navbar/NavBarItem.js.map +1 -0
  2278. package/build/dist/UI/Components/Navbar/NavBarMenu.js +21 -0
  2279. package/build/dist/UI/Components/Navbar/NavBarMenu.js.map +1 -0
  2280. package/build/dist/UI/Components/Navbar/NavBarMenuItem.js +14 -0
  2281. package/build/dist/UI/Components/Navbar/NavBarMenuItem.js.map +1 -0
  2282. package/build/dist/UI/Components/Navbar/NavBarMenuSubItem.js +7 -0
  2283. package/build/dist/UI/Components/Navbar/NavBarMenuSubItem.js.map +1 -0
  2284. package/build/dist/UI/Components/ObjectID/IDGenerator.js +37 -0
  2285. package/build/dist/UI/Components/ObjectID/IDGenerator.js.map +1 -0
  2286. package/build/dist/UI/Components/OrderedStatesList/Item.js +46 -0
  2287. package/build/dist/UI/Components/OrderedStatesList/Item.js.map +1 -0
  2288. package/build/dist/UI/Components/OrderedStatesList/OrderedStatesList.js +63 -0
  2289. package/build/dist/UI/Components/OrderedStatesList/OrderedStatesList.js.map +1 -0
  2290. package/build/dist/UI/Components/Page/ModelPage.js +42 -0
  2291. package/build/dist/UI/Components/Page/ModelPage.js.map +1 -0
  2292. package/build/dist/UI/Components/Page/Page.js +40 -0
  2293. package/build/dist/UI/Components/Page/Page.js.map +1 -0
  2294. package/build/dist/UI/Components/Pagination/Pagination.js +138 -0
  2295. package/build/dist/UI/Components/Pagination/Pagination.js.map +1 -0
  2296. package/build/dist/UI/Components/Pill/Pill.js +35 -0
  2297. package/build/dist/UI/Components/Pill/Pill.js.map +1 -0
  2298. package/build/dist/UI/Components/Probe/Probe.js +32 -0
  2299. package/build/dist/UI/Components/Probe/Probe.js.map +1 -0
  2300. package/build/dist/UI/Components/ProgressBar/ProgressBar.js +43 -0
  2301. package/build/dist/UI/Components/ProgressBar/ProgressBar.js.map +1 -0
  2302. package/build/dist/UI/Components/QR/QR.js +22 -0
  2303. package/build/dist/UI/Components/QR/QR.js.map +1 -0
  2304. package/build/dist/UI/Components/Radio/Radio.js +20 -0
  2305. package/build/dist/UI/Components/Radio/Radio.js.map +1 -0
  2306. package/build/dist/UI/Components/RadioButtons/BasicRadioButtons.js +37 -0
  2307. package/build/dist/UI/Components/RadioButtons/BasicRadioButtons.js.map +1 -0
  2308. package/build/dist/UI/Components/RadioButtons/GroupRadioButtons.js +47 -0
  2309. package/build/dist/UI/Components/RadioButtons/GroupRadioButtons.js.map +1 -0
  2310. package/build/dist/UI/Components/ResetObjectID/ResetObjectID.js +73 -0
  2311. package/build/dist/UI/Components/ResetObjectID/ResetObjectID.js.map +1 -0
  2312. package/build/dist/UI/Components/ShortcutKey/Shortcut.js +8 -0
  2313. package/build/dist/UI/Components/ShortcutKey/Shortcut.js.map +1 -0
  2314. package/build/dist/UI/Components/ShortcutKey/ShortcutKey.js +9 -0
  2315. package/build/dist/UI/Components/ShortcutKey/ShortcutKey.js.map +1 -0
  2316. package/build/dist/UI/Components/SideMenu/CountModelSideMenuItem.js +43 -0
  2317. package/build/dist/UI/Components/SideMenu/CountModelSideMenuItem.js.map +1 -0
  2318. package/build/dist/UI/Components/SideMenu/SideMenu.js +16 -0
  2319. package/build/dist/UI/Components/SideMenu/SideMenu.js.map +1 -0
  2320. package/build/dist/UI/Components/SideMenu/SideMenuItem.js +88 -0
  2321. package/build/dist/UI/Components/SideMenu/SideMenuItem.js.map +1 -0
  2322. package/build/dist/UI/Components/SideMenu/SideMenuSection.js +8 -0
  2323. package/build/dist/UI/Components/SideMenu/SideMenuSection.js.map +1 -0
  2324. package/build/dist/UI/Components/SideOver/SideOver.js +53 -0
  2325. package/build/dist/UI/Components/SideOver/SideOver.js.map +1 -0
  2326. package/build/dist/UI/Components/SimpleLogViewer/SimpleLogViewer.js +6 -0
  2327. package/build/dist/UI/Components/SimpleLogViewer/SimpleLogViewer.js.map +1 -0
  2328. package/build/dist/UI/Components/StatusBubble/StatusBubble.js +21 -0
  2329. package/build/dist/UI/Components/StatusBubble/StatusBubble.js.map +1 -0
  2330. package/build/dist/UI/Components/Table/Table.js +113 -0
  2331. package/build/dist/UI/Components/Table/Table.js.map +1 -0
  2332. package/build/dist/UI/Components/Table/TableBody.js +26 -0
  2333. package/build/dist/UI/Components/Table/TableBody.js.map +1 -0
  2334. package/build/dist/UI/Components/Table/TableCard.js +9 -0
  2335. package/build/dist/UI/Components/Table/TableCard.js.map +1 -0
  2336. package/build/dist/UI/Components/Table/TableHeader.js +59 -0
  2337. package/build/dist/UI/Components/Table/TableHeader.js.map +1 -0
  2338. package/build/dist/UI/Components/Table/TableRow.js +97 -0
  2339. package/build/dist/UI/Components/Table/TableRow.js.map +1 -0
  2340. package/build/dist/UI/Components/Table/Types/Column.js +2 -0
  2341. package/build/dist/UI/Components/Table/Types/Column.js.map +1 -0
  2342. package/build/dist/UI/Components/Table/Types/Columns.js +2 -0
  2343. package/build/dist/UI/Components/Table/Types/Columns.js.map +1 -0
  2344. package/build/dist/UI/Components/TableColumnList/TableColumnListComponent.js +36 -0
  2345. package/build/dist/UI/Components/TableColumnList/TableColumnListComponent.js.map +1 -0
  2346. package/build/dist/UI/Components/Tabs/Tab.js +28 -0
  2347. package/build/dist/UI/Components/Tabs/Tab.js.map +1 -0
  2348. package/build/dist/UI/Components/Tabs/Tabs.js +23 -0
  2349. package/build/dist/UI/Components/Tabs/Tabs.js.map +1 -0
  2350. package/build/dist/UI/Components/Template/Template.js +6 -0
  2351. package/build/dist/UI/Components/Template/Template.js.map +1 -0
  2352. package/build/dist/UI/Components/TextArea/TextArea.js +49 -0
  2353. package/build/dist/UI/Components/TextArea/TextArea.js.map +1 -0
  2354. package/build/dist/UI/Components/Toast/Toast.js +67 -0
  2355. package/build/dist/UI/Components/Toast/Toast.js.map +1 -0
  2356. package/build/dist/UI/Components/Toast/ToastInit.js +31 -0
  2357. package/build/dist/UI/Components/Toast/ToastInit.js.map +1 -0
  2358. package/build/dist/UI/Components/Toggle/Toggle.js +55 -0
  2359. package/build/dist/UI/Components/Toggle/Toggle.js.map +1 -0
  2360. package/build/dist/UI/Components/Tooltip/Tooltip.js +11 -0
  2361. package/build/dist/UI/Components/Tooltip/Tooltip.js.map +1 -0
  2362. package/build/dist/UI/Components/TopAlert/TopAlert.js +20 -0
  2363. package/build/dist/UI/Components/TopAlert/TopAlert.js.map +1 -0
  2364. package/build/dist/UI/Components/TopSection/TopSection.js +9 -0
  2365. package/build/dist/UI/Components/TopSection/TopSection.js.map +1 -0
  2366. package/build/dist/UI/Components/Types/FieldType.js +40 -0
  2367. package/build/dist/UI/Components/Types/FieldType.js.map +1 -0
  2368. package/build/dist/UI/Components/Workflow/ArgumentsForm.js +73 -0
  2369. package/build/dist/UI/Components/Workflow/ArgumentsForm.js.map +1 -0
  2370. package/build/dist/UI/Components/Workflow/Component.js +174 -0
  2371. package/build/dist/UI/Components/Workflow/Component.js.map +1 -0
  2372. package/build/dist/UI/Components/Workflow/ComponentArgumentsViewer.js +32 -0
  2373. package/build/dist/UI/Components/Workflow/ComponentArgumentsViewer.js.map +1 -0
  2374. package/build/dist/UI/Components/Workflow/ComponentPortViewer.js +26 -0
  2375. package/build/dist/UI/Components/Workflow/ComponentPortViewer.js.map +1 -0
  2376. package/build/dist/UI/Components/Workflow/ComponentReturnValueViewer.js +30 -0
  2377. package/build/dist/UI/Components/Workflow/ComponentReturnValueViewer.js.map +1 -0
  2378. package/build/dist/UI/Components/Workflow/ComponentSettingsModal.js +68 -0
  2379. package/build/dist/UI/Components/Workflow/ComponentSettingsModal.js.map +1 -0
  2380. package/build/dist/UI/Components/Workflow/ComponentValuePickerModal.js +94 -0
  2381. package/build/dist/UI/Components/Workflow/ComponentValuePickerModal.js.map +1 -0
  2382. package/build/dist/UI/Components/Workflow/ComponentsModal.js +109 -0
  2383. package/build/dist/UI/Components/Workflow/ComponentsModal.js.map +1 -0
  2384. package/build/dist/UI/Components/Workflow/DocumentationViewer.js +47 -0
  2385. package/build/dist/UI/Components/Workflow/DocumentationViewer.js.map +1 -0
  2386. package/build/dist/UI/Components/Workflow/RunForm.js +37 -0
  2387. package/build/dist/UI/Components/Workflow/RunForm.js.map +1 -0
  2388. package/build/dist/UI/Components/Workflow/RunModal.js +56 -0
  2389. package/build/dist/UI/Components/Workflow/RunModal.js.map +1 -0
  2390. package/build/dist/UI/Components/Workflow/Utils.js +205 -0
  2391. package/build/dist/UI/Components/Workflow/Utils.js.map +1 -0
  2392. package/build/dist/UI/Components/Workflow/VariableModal.js +30 -0
  2393. package/build/dist/UI/Components/Workflow/VariableModal.js.map +1 -0
  2394. package/build/dist/UI/Components/Workflow/Workflow.js +306 -0
  2395. package/build/dist/UI/Components/Workflow/Workflow.js.map +1 -0
  2396. package/build/dist/UI/Components/Workflow/WorkflowStatus.js +27 -0
  2397. package/build/dist/UI/Components/Workflow/WorkflowStatus.js.map +1 -0
  2398. package/build/dist/UI/Config.js +79 -0
  2399. package/build/dist/UI/Config.js.map +1 -0
  2400. package/build/dist/UI/Container.js +9 -0
  2401. package/build/dist/UI/Container.js.map +1 -0
  2402. package/build/dist/UI/Types/AlignItem.js +8 -0
  2403. package/build/dist/UI/Types/AlignItem.js.map +1 -0
  2404. package/build/dist/UI/Types/EntityFieldType.js +2 -0
  2405. package/build/dist/UI/Types/EntityFieldType.js.map +1 -0
  2406. package/build/dist/UI/Types/FunctionTypes.js +2 -0
  2407. package/build/dist/UI/Types/FunctionTypes.js.map +1 -0
  2408. package/build/dist/UI/Types/HtmlEvents.js +2 -0
  2409. package/build/dist/UI/Types/HtmlEvents.js.map +1 -0
  2410. package/build/dist/UI/Types/RequiredEntityFields.js +2 -0
  2411. package/build/dist/UI/Types/RequiredEntityFields.js.map +1 -0
  2412. package/build/dist/UI/Types/SelectEntityField.js +2 -0
  2413. package/build/dist/UI/Types/SelectEntityField.js.map +1 -0
  2414. package/build/dist/UI/Types/UseComponentOutsideClick.js +19 -0
  2415. package/build/dist/UI/Types/UseComponentOutsideClick.js.map +1 -0
  2416. package/build/dist/UI/Utils/API/API.js +86 -0
  2417. package/build/dist/UI/Utils/API/API.js.map +1 -0
  2418. package/build/dist/UI/Utils/API/ApiDocsAPI.js +10 -0
  2419. package/build/dist/UI/Utils/API/ApiDocsAPI.js.map +1 -0
  2420. package/build/dist/UI/Utils/API/DashboardAPI.js +10 -0
  2421. package/build/dist/UI/Utils/API/DashboardAPI.js.map +1 -0
  2422. package/build/dist/UI/Utils/API/DashboardFrontendAPI.js +9 -0
  2423. package/build/dist/UI/Utils/API/DashboardFrontendAPI.js.map +1 -0
  2424. package/build/dist/UI/Utils/API/HelmAPI.js +9 -0
  2425. package/build/dist/UI/Utils/API/HelmAPI.js.map +1 -0
  2426. package/build/dist/UI/Utils/API/IdentityAPI.js +10 -0
  2427. package/build/dist/UI/Utils/API/IdentityAPI.js.map +1 -0
  2428. package/build/dist/UI/Utils/API/IntegrationAPI.js +9 -0
  2429. package/build/dist/UI/Utils/API/IntegrationAPI.js.map +1 -0
  2430. package/build/dist/UI/Utils/Analytics.js +5 -0
  2431. package/build/dist/UI/Utils/Analytics.js.map +1 -0
  2432. package/build/dist/UI/Utils/AnalyticsModelAPI/AnalyticsModelAPI.js +237 -0
  2433. package/build/dist/UI/Utils/AnalyticsModelAPI/AnalyticsModelAPI.js.map +1 -0
  2434. package/build/dist/UI/Utils/BaseDatabase/GroupBy.js +2 -0
  2435. package/build/dist/UI/Utils/BaseDatabase/GroupBy.js.map +1 -0
  2436. package/build/dist/UI/Utils/BaseDatabase/ListResult.js +2 -0
  2437. package/build/dist/UI/Utils/BaseDatabase/ListResult.js.map +1 -0
  2438. package/build/dist/UI/Utils/BaseDatabase/Query.js +2 -0
  2439. package/build/dist/UI/Utils/BaseDatabase/Query.js.map +1 -0
  2440. package/build/dist/UI/Utils/BaseDatabase/RequestOptions.js +2 -0
  2441. package/build/dist/UI/Utils/BaseDatabase/RequestOptions.js.map +1 -0
  2442. package/build/dist/UI/Utils/BaseDatabase/Select.js +2 -0
  2443. package/build/dist/UI/Utils/BaseDatabase/Select.js.map +1 -0
  2444. package/build/dist/UI/Utils/BaseDatabase/Sort.js +2 -0
  2445. package/build/dist/UI/Utils/BaseDatabase/Sort.js.map +1 -0
  2446. package/build/dist/UI/Utils/Clipboard.js +7 -0
  2447. package/build/dist/UI/Utils/Clipboard.js.map +1 -0
  2448. package/build/dist/UI/Utils/Cookie.js +44 -0
  2449. package/build/dist/UI/Utils/Cookie.js.map +1 -0
  2450. package/build/dist/UI/Utils/Dropdown.js +46 -0
  2451. package/build/dist/UI/Utils/Dropdown.js.map +1 -0
  2452. package/build/dist/UI/Utils/File.js +10 -0
  2453. package/build/dist/UI/Utils/File.js.map +1 -0
  2454. package/build/dist/UI/Utils/GlobalEvents.js +17 -0
  2455. package/build/dist/UI/Utils/GlobalEvents.js.map +1 -0
  2456. package/build/dist/UI/Utils/History.js +3 -0
  2457. package/build/dist/UI/Utils/History.js.map +1 -0
  2458. package/build/dist/UI/Utils/JWT.js +7 -0
  2459. package/build/dist/UI/Utils/JWT.js.map +1 -0
  2460. package/build/dist/UI/Utils/JsonWebToken.js +10 -0
  2461. package/build/dist/UI/Utils/JsonWebToken.js.map +1 -0
  2462. package/build/dist/UI/Utils/LocalStorage.js +33 -0
  2463. package/build/dist/UI/Utils/LocalStorage.js.map +1 -0
  2464. package/build/dist/UI/Utils/Logger.js +19 -0
  2465. package/build/dist/UI/Utils/Logger.js.map +1 -0
  2466. package/build/dist/UI/Utils/Login.js +26 -0
  2467. package/build/dist/UI/Utils/Login.js.map +1 -0
  2468. package/build/dist/UI/Utils/ModelAPI/ModelAPI.js +232 -0
  2469. package/build/dist/UI/Utils/ModelAPI/ModelAPI.js.map +1 -0
  2470. package/build/dist/UI/Utils/Navigation.js +167 -0
  2471. package/build/dist/UI/Utils/Navigation.js.map +1 -0
  2472. package/build/dist/UI/Utils/Permission.js +56 -0
  2473. package/build/dist/UI/Utils/Permission.js.map +1 -0
  2474. package/build/dist/UI/Utils/PricingPlan.js +108 -0
  2475. package/build/dist/UI/Utils/PricingPlan.js.map +1 -0
  2476. package/build/dist/UI/Utils/Project.js +38 -0
  2477. package/build/dist/UI/Utils/Project.js.map +1 -0
  2478. package/build/dist/UI/Utils/Realtime.js +71 -0
  2479. package/build/dist/UI/Utils/Realtime.js.map +1 -0
  2480. package/build/dist/UI/Utils/StatusPage.js +79 -0
  2481. package/build/dist/UI/Utils/StatusPage.js.map +1 -0
  2482. package/build/dist/UI/Utils/Tailwind.js +6 -0
  2483. package/build/dist/UI/Utils/Tailwind.js.map +1 -0
  2484. package/build/dist/UI/Utils/Telemetry.js +37 -0
  2485. package/build/dist/UI/Utils/Telemetry.js.map +1 -0
  2486. package/build/dist/UI/Utils/Timezone.js +25 -0
  2487. package/build/dist/UI/Utils/Timezone.js.map +1 -0
  2488. package/build/dist/UI/Utils/User.js +138 -0
  2489. package/build/dist/UI/Utils/User.js.map +1 -0
  2490. package/build/dist/Utils/API.js +6 -0
  2491. package/build/dist/Utils/API.js.map +1 -1
  2492. package/build/dist/Utils/Analytics.js.map +1 -1
  2493. package/build/dist/Utils/Faker.js +16 -4
  2494. package/build/dist/Utils/Faker.js.map +1 -1
  2495. package/build/dist/Utils/Slug.js +1 -1
  2496. package/build/dist/Utils/Slug.js.map +1 -1
  2497. package/build/dist/Utils/TechStack.js.map +1 -1
  2498. package/build/dist/Utils/Uptime/UptimeUtil.js +72 -5
  2499. package/build/dist/Utils/Uptime/UptimeUtil.js.map +1 -1
  2500. package/jest.config.json +2 -6
  2501. package/package.json +109 -8
  2502. package/test-setup.sh +58 -0
  2503. package/build/dist/Tests/AppModels/File.test.js.map +0 -1
  2504. /package/Tests/{AppModels → Models}/File.test.ts +0 -0
  2505. /package/build/dist/Tests/{AppModels → Models}/File.test.js +0 -0
@@ -0,0 +1,1484 @@
1
+ import { AppApiHostname, EncryptionSecret } from "../EnvironmentConfig";
2
+ import { PostgresAppInstance } from "../Infrastructure/PostgresDatabase";
3
+ import ClusterKeyAuthorization from "../Middleware/ClusterKeyAuthorization";
4
+ import CountBy from "../Types/Database/CountBy";
5
+ import CreateBy from "../Types/Database/CreateBy";
6
+ import DeleteBy from "../Types/Database/DeleteBy";
7
+ import DeleteById from "../Types/Database/DeleteById";
8
+ import DeleteOneBy from "../Types/Database/DeleteOneBy";
9
+ import FindBy from "../Types/Database/FindBy";
10
+ import FindOneBy from "../Types/Database/FindOneBy";
11
+ import FindOneByID from "../Types/Database/FindOneByID";
12
+ import {
13
+ DatabaseTriggerType,
14
+ OnCreate,
15
+ OnDelete,
16
+ OnFind,
17
+ OnUpdate,
18
+ } from "../Types/Database/Hooks";
19
+ import ModelPermission from "../Types/Database/Permissions/Index";
20
+ import { CheckReadPermissionType } from "../Types/Database/Permissions/ReadPermission";
21
+ import Query, { FindWhere } from "../Types/Database/Query";
22
+ import QueryHelper from "../Types/Database/QueryHelper";
23
+ import RelationSelect from "../Types/Database/RelationSelect";
24
+ import SearchBy from "../Types/Database/SearchBy";
25
+ import SearchResult from "../Types/Database/SearchResult";
26
+ import Select from "../Types/Database/Select";
27
+ import UpdateBy from "../Types/Database/UpdateBy";
28
+ import UpdateByID from "../Types/Database/UpdateByID";
29
+ import UpdateByIDAndFetch from "../Types/Database/UpdateByIDAndFetch";
30
+ import UpdateOneBy from "../Types/Database/UpdateOneBy";
31
+ import Encryption from "../Utils/Encryption";
32
+ import logger from "../Utils/Logger";
33
+ import BaseService from "./BaseService";
34
+ import BaseModel from "Common/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel";
35
+ import { WorkflowRoute } from "Common/ServiceRoute";
36
+ import Protocol from "../../Types/API/Protocol";
37
+ import Route from "../../Types/API/Route";
38
+ import URL from "../../Types/API/URL";
39
+ import DatabaseCommonInteractionProps from "../../Types/BaseDatabase/DatabaseCommonInteractionProps";
40
+ import SortOrder from "../../Types/BaseDatabase/SortOrder";
41
+ import { getMaxLengthFromTableColumnType } from "../../Types/Database/ColumnLength";
42
+ import Columns from "../../Types/Database/Columns";
43
+ import LIMIT_MAX from "../../Types/Database/LimitMax";
44
+ import PartialEntity from "../../Types/Database/PartialEntity";
45
+ import { TableColumnMetadata } from "../../Types/Database/TableColumn";
46
+ import TableColumnType from "../../Types/Database/TableColumnType";
47
+ import { getUniqueColumnsBy } from "../../Types/Database/UniqueColumnBy";
48
+ import Dictionary from "../../Types/Dictionary";
49
+ import BadDataException from "../../Types/Exception/BadDataException";
50
+ import DatabaseNotConnectedException from "../../Types/Exception/DatabaseNotConnectedException";
51
+ import Exception from "../../Types/Exception/Exception";
52
+ import HashedString from "../../Types/HashedString";
53
+ import { JSONObject, JSONValue } from "../../Types/JSON";
54
+ import JSONFunctions from "../../Types/JSONFunctions";
55
+ import ObjectID from "../../Types/ObjectID";
56
+ import PositiveNumber from "../../Types/PositiveNumber";
57
+ import Text from "../../Types/Text";
58
+ import Typeof from "../../Types/Typeof";
59
+ import API from "Common/Utils/API";
60
+ import Slug from "Common/Utils/Slug";
61
+ import { DataSource, Repository, SelectQueryBuilder } from "typeorm";
62
+ import { QueryDeepPartialEntity } from "typeorm/query-builder/QueryPartialEntity";
63
+
64
+ class DatabaseService<TBaseModel extends BaseModel> extends BaseService {
65
+ public modelType!: { new (): TBaseModel };
66
+ private model!: TBaseModel;
67
+ private modelName!: string;
68
+
69
+ private _hardDeleteItemByColumnName: string = "";
70
+ public get hardDeleteItemByColumnName(): string {
71
+ return this._hardDeleteItemByColumnName;
72
+ }
73
+ public set hardDeleteItemByColumnName(v: string) {
74
+ this._hardDeleteItemByColumnName = v;
75
+ }
76
+
77
+ private _hardDeleteItemsOlderThanDays: number = 0;
78
+ public get hardDeleteItemsOlderThanDays(): number {
79
+ return this._hardDeleteItemsOlderThanDays;
80
+ }
81
+ public set hardDeleteItemsOlderThanDays(v: number) {
82
+ this._hardDeleteItemsOlderThanDays = v;
83
+ }
84
+
85
+ public doNotAllowDelete: boolean = false;
86
+
87
+ public constructor(modelType: { new (): TBaseModel }) {
88
+ super();
89
+ this.modelType = modelType;
90
+ this.model = new modelType();
91
+ this.modelName = modelType.name;
92
+ }
93
+
94
+ public setDoNotAllowDelete(doNotAllowDelete: boolean): void {
95
+ this.doNotAllowDelete = doNotAllowDelete;
96
+ }
97
+
98
+ public hardDeleteItemsOlderThanInDays(
99
+ columnName: string,
100
+ olderThan: number,
101
+ ): void {
102
+ this.hardDeleteItemByColumnName = columnName;
103
+ this.hardDeleteItemsOlderThanDays = olderThan;
104
+ }
105
+
106
+ public getModel(): TBaseModel {
107
+ return this.model;
108
+ }
109
+
110
+ public getQueryBuilder(modelName: string): SelectQueryBuilder<TBaseModel> {
111
+ return this.getRepository().createQueryBuilder(modelName);
112
+ }
113
+
114
+ public getRepository(): Repository<TBaseModel> {
115
+ if (!PostgresAppInstance.isConnected()) {
116
+ throw new DatabaseNotConnectedException();
117
+ }
118
+
119
+ const dataSource: DataSource | null = PostgresAppInstance.getDataSource();
120
+
121
+ if (dataSource) {
122
+ return dataSource.getRepository<TBaseModel>(this.modelType.name);
123
+ }
124
+
125
+ throw new DatabaseNotConnectedException();
126
+ }
127
+
128
+ protected isValid(data: TBaseModel): boolean {
129
+ if (!data) {
130
+ throw new BadDataException("Data cannot be null");
131
+ }
132
+
133
+ return true;
134
+ }
135
+
136
+ protected generateDefaultValues(data: TBaseModel): TBaseModel {
137
+ const tableColumns: Array<string> = data.getTableColumns().columns;
138
+
139
+ for (const column of tableColumns) {
140
+ const metadata: TableColumnMetadata = data.getTableColumnMetadata(column);
141
+ if (metadata.forceGetDefaultValueOnCreate) {
142
+ (data as any)[column] = metadata.forceGetDefaultValueOnCreate();
143
+ }
144
+ }
145
+
146
+ return data;
147
+ }
148
+
149
+ protected async checkForUniqueValues(data: TBaseModel): Promise<TBaseModel> {
150
+ const tableColumns: Array<string> = data.getTableColumns().columns;
151
+
152
+ for (const columnName of tableColumns) {
153
+ const metadata: TableColumnMetadata =
154
+ data.getTableColumnMetadata(columnName);
155
+ if (metadata.unique && data.getColumnValue(columnName)) {
156
+ // check for unique values.
157
+ const count: PositiveNumber = await this.countBy({
158
+ query: {
159
+ [columnName]: data.getColumnValue(columnName),
160
+ } as any,
161
+ props: {
162
+ isRoot: true,
163
+ },
164
+ });
165
+
166
+ if (count.toNumber() > 0) {
167
+ throw new BadDataException(
168
+ `${metadata.title} ${data
169
+ .getColumnValue(columnName)
170
+ ?.toString()} already exists. Please choose a different ${
171
+ metadata.title
172
+ }`,
173
+ );
174
+ }
175
+ }
176
+ }
177
+
178
+ return data;
179
+ }
180
+
181
+ protected checkRequiredFields(data: TBaseModel): TBaseModel {
182
+ // Check required fields.
183
+
184
+ const relationalColumns: Dictionary<string> = {};
185
+
186
+ const tableColumns: Array<string> = data.getTableColumns().columns;
187
+
188
+ for (const column of tableColumns) {
189
+ const metadata: TableColumnMetadata = data.getTableColumnMetadata(column);
190
+ if (metadata.manyToOneRelationColumn) {
191
+ relationalColumns[metadata.manyToOneRelationColumn] = column;
192
+ }
193
+ }
194
+
195
+ for (const requiredField of data.getRequiredColumns().columns) {
196
+ if (typeof (data as any)[requiredField] === Typeof.Boolean) {
197
+ if (
198
+ !(data as any)[requiredField] &&
199
+ (data as any)[requiredField] !== false &&
200
+ !data.isDefaultValueColumn(requiredField)
201
+ ) {
202
+ throw new BadDataException(`${requiredField} is required`);
203
+ }
204
+ } else if (
205
+ !(data as any)[requiredField] &&
206
+ !data.isDefaultValueColumn(requiredField)
207
+ ) {
208
+ const metadata: TableColumnMetadata =
209
+ data.getTableColumnMetadata(requiredField);
210
+
211
+ if (
212
+ metadata &&
213
+ metadata.manyToOneRelationColumn &&
214
+ metadata.type === TableColumnType.Entity &&
215
+ data.getColumnValue(metadata.manyToOneRelationColumn)
216
+ ) {
217
+ continue;
218
+ }
219
+
220
+ if (
221
+ relationalColumns[requiredField] &&
222
+ data.getColumnValue(relationalColumns[requiredField] as string)
223
+ ) {
224
+ continue;
225
+ }
226
+
227
+ throw new BadDataException(`${requiredField} is required`);
228
+ }
229
+ }
230
+
231
+ return data;
232
+ }
233
+
234
+ protected async onBeforeCreate(
235
+ createBy: CreateBy<TBaseModel>,
236
+ ): Promise<OnCreate<TBaseModel>> {
237
+ // A place holder method used for overriding.
238
+ return Promise.resolve({
239
+ createBy: createBy as CreateBy<TBaseModel>,
240
+ carryForward: undefined,
241
+ });
242
+ }
243
+
244
+ private async _onBeforeCreate(
245
+ createBy: CreateBy<TBaseModel>,
246
+ ): Promise<OnCreate<TBaseModel>> {
247
+ // Private method that runs before create.
248
+ const projectIdColumn: string | null = this.model.getTenantColumn();
249
+
250
+ if (projectIdColumn && createBy.props.tenantId) {
251
+ (createBy.data as any)[projectIdColumn] = createBy.props.tenantId;
252
+ }
253
+
254
+ return await this.onBeforeCreate(createBy);
255
+ }
256
+
257
+ protected async encrypt(
258
+ data: TBaseModel | PartialEntity<TBaseModel>,
259
+ ): Promise<TBaseModel | PartialEntity<TBaseModel>> {
260
+ for (const key of this.model.getEncryptedColumns().columns) {
261
+ if (!(data as any)[key]) {
262
+ continue;
263
+ }
264
+
265
+ // If data is an object.
266
+ if (typeof (data as any)[key] === Typeof.Object) {
267
+ const dataObj: JSONObject = (data as any)[key] as JSONObject;
268
+
269
+ for (const key in dataObj) {
270
+ dataObj[key] = await Encryption.encrypt(dataObj[key] as string);
271
+ }
272
+
273
+ (data as any)[key] = dataObj;
274
+ } else {
275
+ //If its string or other type.
276
+ (data as any)[key] = await Encryption.encrypt(
277
+ (data as any)[key] as string,
278
+ );
279
+ }
280
+ }
281
+
282
+ return data;
283
+ }
284
+
285
+ protected async hash(data: TBaseModel): Promise<TBaseModel> {
286
+ const columns: Columns = data.getHashedColumns();
287
+
288
+ for (const key of columns.columns) {
289
+ if (
290
+ data.hasValue(key) &&
291
+ !(data.getValue(key) as HashedString).isValueHashed()
292
+ ) {
293
+ await ((data as any)[key] as HashedString).hashValue(EncryptionSecret);
294
+ }
295
+ }
296
+
297
+ return data;
298
+ }
299
+
300
+ protected async decrypt(data: TBaseModel): Promise<TBaseModel> {
301
+ for (const key of data.getEncryptedColumns().columns) {
302
+ if (!data.hasValue(key)) {
303
+ continue;
304
+ }
305
+
306
+ // If data is an object.
307
+ if (typeof data.getValue(key) === Typeof.Object) {
308
+ const dataObj: JSONObject = data.getValue(key) as JSONObject;
309
+
310
+ for (const key in dataObj) {
311
+ dataObj[key] = await Encryption.decrypt(dataObj[key] as string);
312
+ }
313
+
314
+ data.setValue(key, dataObj);
315
+ } else {
316
+ //If its string or other type.
317
+ data.setValue(key, await Encryption.decrypt((data as any)[key]));
318
+ }
319
+ }
320
+
321
+ return data;
322
+ }
323
+
324
+ protected async onBeforeDelete(
325
+ deleteBy: DeleteBy<TBaseModel>,
326
+ ): Promise<OnDelete<TBaseModel>> {
327
+ // A place holder method used for overriding.
328
+ return Promise.resolve({ deleteBy, carryForward: null });
329
+ }
330
+
331
+ protected async onBeforeUpdate(
332
+ updateBy: UpdateBy<TBaseModel>,
333
+ ): Promise<OnUpdate<TBaseModel>> {
334
+ // A place holder method used for overriding.
335
+ return Promise.resolve({ updateBy, carryForward: null });
336
+ }
337
+
338
+ protected async onBeforeFind(
339
+ findBy: FindBy<TBaseModel>,
340
+ ): Promise<OnFind<TBaseModel>> {
341
+ // A place holder method used for overriding.
342
+ return Promise.resolve({ findBy, carryForward: null });
343
+ }
344
+
345
+ protected async onCreateSuccess(
346
+ _onCreate: OnCreate<TBaseModel>,
347
+ createdItem: TBaseModel,
348
+ ): Promise<TBaseModel> {
349
+ // A place holder method used for overriding.
350
+ return Promise.resolve(createdItem);
351
+ }
352
+
353
+ protected async onCreateError(error: Exception): Promise<Exception> {
354
+ // A place holder method used for overriding.
355
+ return Promise.resolve(error);
356
+ }
357
+
358
+ protected async onUpdateSuccess(
359
+ onUpdate: OnUpdate<TBaseModel>,
360
+ _updatedItemIds: Array<ObjectID>,
361
+ ): Promise<OnUpdate<TBaseModel>> {
362
+ // A place holder method used for overriding.
363
+ return Promise.resolve(onUpdate);
364
+ }
365
+
366
+ protected async onUpdateError(error: Exception): Promise<Exception> {
367
+ // A place holder method used for overriding.
368
+ return Promise.resolve(error);
369
+ }
370
+
371
+ protected async onDeleteSuccess(
372
+ onDelete: OnDelete<TBaseModel>,
373
+ _itemIdsBeforeDelete: Array<ObjectID>,
374
+ ): Promise<OnDelete<TBaseModel>> {
375
+ // A place holder method used for overriding.
376
+ return Promise.resolve(onDelete);
377
+ }
378
+
379
+ protected async onDeleteError(error: Exception): Promise<Exception> {
380
+ // A place holder method used for overriding.
381
+ return Promise.resolve(error);
382
+ }
383
+
384
+ protected async onFindSuccess(
385
+ onFind: OnFind<TBaseModel>,
386
+ items: Array<TBaseModel>,
387
+ ): Promise<OnFind<TBaseModel>> {
388
+ // A place holder method used for overriding.
389
+ return Promise.resolve({ ...onFind, carryForward: items });
390
+ }
391
+
392
+ protected async onFindError(error: Exception): Promise<Exception> {
393
+ // A place holder method used for overriding.
394
+ return Promise.resolve(error);
395
+ }
396
+
397
+ protected async onCountSuccess(
398
+ count: PositiveNumber,
399
+ ): Promise<PositiveNumber> {
400
+ // A place holder method used for overriding.
401
+ return Promise.resolve(count);
402
+ }
403
+
404
+ protected async onCountError(error: Exception): Promise<Exception> {
405
+ // A place holder method used for overriding.
406
+ return Promise.resolve(error);
407
+ }
408
+
409
+ protected async getException(error: Exception): Promise<void> {
410
+ throw error;
411
+ }
412
+
413
+ private generateSlug(createBy: CreateBy<TBaseModel>): CreateBy<TBaseModel> {
414
+ if (createBy.data.getSlugifyColumn()) {
415
+ (createBy.data as any)[createBy.data.getSaveSlugToColumn() as string] =
416
+ Slug.getSlug(
417
+ (createBy.data as any)[createBy.data.getSlugifyColumn() as string]
418
+ ? ((createBy.data as any)[
419
+ createBy.data.getSlugifyColumn() as string
420
+ ] as string)
421
+ : null,
422
+ );
423
+ }
424
+
425
+ return createBy;
426
+ }
427
+
428
+ private async sanitizeCreateOrUpdate(
429
+ data: TBaseModel | QueryDeepPartialEntity<TBaseModel>,
430
+ props: DatabaseCommonInteractionProps,
431
+ isUpdate: boolean = false,
432
+ ): Promise<TBaseModel | QueryDeepPartialEntity<TBaseModel>> {
433
+ data = this.checkMaxLengthOfFields(data as TBaseModel);
434
+
435
+ const columns: Columns = this.model.getTableColumns();
436
+
437
+ for (const columnName of columns.columns) {
438
+ if (this.model.isEntityColumn(columnName)) {
439
+ const tableColumnMetadata: TableColumnMetadata =
440
+ this.model.getTableColumnMetadata(columnName);
441
+
442
+ const columnValue: JSONValue = (data as any)[columnName];
443
+
444
+ if (
445
+ data &&
446
+ columnName &&
447
+ tableColumnMetadata.modelType &&
448
+ columnValue &&
449
+ tableColumnMetadata.type === TableColumnType.Entity &&
450
+ (typeof columnValue === "string" || columnValue instanceof ObjectID)
451
+ ) {
452
+ const relatedType: BaseModel = new tableColumnMetadata.modelType();
453
+ relatedType._id = columnValue.toString();
454
+ (data as any)[columnName] = relatedType;
455
+ }
456
+
457
+ if (
458
+ data &&
459
+ Array.isArray(columnValue) &&
460
+ columnValue.length > 0 &&
461
+ tableColumnMetadata.modelType &&
462
+ columnValue &&
463
+ tableColumnMetadata.type === TableColumnType.EntityArray
464
+ ) {
465
+ const itemsArray: Array<BaseModel> = [];
466
+ for (const item of columnValue) {
467
+ if (typeof item === "string" || item instanceof ObjectID) {
468
+ const basemodelItem: BaseModel =
469
+ new tableColumnMetadata.modelType();
470
+ basemodelItem._id = item.toString();
471
+ itemsArray.push(basemodelItem);
472
+ } else if (
473
+ item &&
474
+ typeof item === Typeof.Object &&
475
+ (item as JSONObject)["_id"] &&
476
+ typeof (item as JSONObject)["_id"] === Typeof.String
477
+ ) {
478
+ const basemodelItem: BaseModel =
479
+ new tableColumnMetadata.modelType();
480
+ basemodelItem._id = (
481
+ (item as JSONObject)["_id"] as string
482
+ ).toString();
483
+ itemsArray.push(basemodelItem);
484
+ } else if (item instanceof BaseModel) {
485
+ itemsArray.push(item);
486
+ }
487
+ }
488
+ (data as any)[columnName] = itemsArray;
489
+ }
490
+ }
491
+
492
+ if (this.model.isHashedStringColumn(columnName)) {
493
+ const columnValue: JSONValue = (data as any)[columnName];
494
+
495
+ if (
496
+ data &&
497
+ columnName &&
498
+ columnValue &&
499
+ columnValue instanceof HashedString
500
+ ) {
501
+ if (!columnValue.isValueHashed()) {
502
+ await columnValue.hashValue(EncryptionSecret);
503
+ }
504
+
505
+ (data as any)[columnName] = columnValue.toString();
506
+ }
507
+ }
508
+ }
509
+
510
+ // check createByUserId.
511
+
512
+ if (!isUpdate && props.userId) {
513
+ (data as any)["createdByUserId"] = props.userId;
514
+ }
515
+
516
+ return data;
517
+ }
518
+
519
+ public async onTrigger(
520
+ id: ObjectID,
521
+ projectId: ObjectID,
522
+ triggerType: DatabaseTriggerType,
523
+ miscData?: JSONObject | undefined, // miscData is used for passing data to workflow.
524
+ ): Promise<void> {
525
+ if (this.getModel().enableWorkflowOn) {
526
+ API.post(
527
+ new URL(
528
+ Protocol.HTTP,
529
+ AppApiHostname,
530
+ new Route(
531
+ `/api${WorkflowRoute.toString()}/model/${projectId.toString()}/${Text.pascalCaseToDashes(
532
+ this.getModel().tableName!,
533
+ )}/${triggerType}`,
534
+ ),
535
+ ),
536
+ {
537
+ data: {
538
+ _id: id.toString(),
539
+ miscData: miscData,
540
+ },
541
+ },
542
+ {
543
+ ...ClusterKeyAuthorization.getClusterKeyHeaders(),
544
+ },
545
+ ).catch((error: Error) => {
546
+ logger.error(error);
547
+ });
548
+ }
549
+ }
550
+
551
+ public async create(createBy: CreateBy<TBaseModel>): Promise<TBaseModel> {
552
+ const onCreate: OnCreate<TBaseModel> = createBy.props.ignoreHooks
553
+ ? { createBy, carryForward: [] }
554
+ : await this._onBeforeCreate(createBy);
555
+
556
+ let _createdBy: CreateBy<TBaseModel> = onCreate.createBy;
557
+
558
+ const carryForward: any = onCreate.carryForward;
559
+
560
+ _createdBy = this.generateSlug(_createdBy);
561
+
562
+ let data: TBaseModel = _createdBy.data;
563
+
564
+ // add tenantId if present.
565
+ const tenantColumnName: string | null = data.getTenantColumn();
566
+
567
+ if (tenantColumnName && _createdBy.props.tenantId) {
568
+ data.setColumnValue(tenantColumnName, _createdBy.props.tenantId);
569
+ }
570
+
571
+ data = this.generateDefaultValues(data);
572
+
573
+ data = this.checkRequiredFields(data);
574
+
575
+ await this.checkForUniqueValues(data);
576
+
577
+ if (!this.isValid(data)) {
578
+ throw new BadDataException("Data is not valid");
579
+ }
580
+
581
+ // check total items by.
582
+
583
+ await this.checkTotalItemsBy(_createdBy);
584
+
585
+ // Encrypt data
586
+ data = (await this.encrypt(data)) as TBaseModel;
587
+
588
+ // hash data
589
+ data = await this.hash(data);
590
+
591
+ ModelPermission.checkCreatePermissions(
592
+ this.modelType,
593
+ data,
594
+ _createdBy.props,
595
+ );
596
+
597
+ createBy.data = data;
598
+
599
+ // check uniqueColumns by:
600
+ createBy = await this.checkUniqueColumnBy(createBy);
601
+
602
+ // serialize.
603
+ createBy.data = (await this.sanitizeCreateOrUpdate(
604
+ createBy.data,
605
+ createBy.props,
606
+ )) as TBaseModel;
607
+
608
+ try {
609
+ createBy.data = await this.getRepository().save(createBy.data);
610
+
611
+ if (!createBy.props.ignoreHooks) {
612
+ createBy.data = await this.onCreateSuccess(
613
+ {
614
+ createBy,
615
+ carryForward,
616
+ },
617
+ createBy.data,
618
+ );
619
+ }
620
+
621
+ // hit workflow.;
622
+ if (this.getModel().enableWorkflowOn?.create) {
623
+ let tenantId: ObjectID | undefined = createBy.props.tenantId;
624
+
625
+ if (!tenantId && this.getModel().getTenantColumn()) {
626
+ tenantId = createBy.data.getValue<ObjectID>(
627
+ this.getModel().getTenantColumn()!,
628
+ );
629
+ }
630
+
631
+ if (tenantId) {
632
+ await this.onTrigger(createBy.data.id!, tenantId, "on-create");
633
+ }
634
+ }
635
+
636
+ return createBy.data;
637
+ } catch (error) {
638
+ await this.onCreateError(error as Exception);
639
+ throw this.getException(error as Exception);
640
+ }
641
+ }
642
+
643
+ private checkMaxLengthOfFields<TBaseModel extends BaseModel>(
644
+ data: TBaseModel,
645
+ ): TBaseModel {
646
+ // Check required fields.
647
+
648
+ const tableColumns: Array<string> = this.model.getTableColumns().columns;
649
+
650
+ for (const column of tableColumns) {
651
+ const metadata: TableColumnMetadata =
652
+ this.model.getTableColumnMetadata(column);
653
+ if (
654
+ (data as any)[column] &&
655
+ metadata.type &&
656
+ getMaxLengthFromTableColumnType(metadata.type)
657
+ ) {
658
+ if (
659
+ (data as any)[column].toString().length >
660
+ getMaxLengthFromTableColumnType(metadata.type)!
661
+ ) {
662
+ throw new BadDataException(
663
+ `${column} length cannot be more than ${getMaxLengthFromTableColumnType(
664
+ metadata.type,
665
+ )} characters`,
666
+ );
667
+ }
668
+ }
669
+ }
670
+
671
+ return data;
672
+ }
673
+
674
+ private async checkTotalItemsBy(
675
+ createdBy: CreateBy<TBaseModel>,
676
+ ): Promise<void> {
677
+ const totalItemsColumnName: string | null =
678
+ this.model.getTotalItemsByColumnName();
679
+ const totalItemsNumber: number | null = this.model.getTotalItemsNumber();
680
+ const errorMessage: string | null =
681
+ this.model.getTotalItemsByErrorMessage();
682
+
683
+ if (
684
+ totalItemsColumnName &&
685
+ totalItemsNumber &&
686
+ errorMessage &&
687
+ createdBy.data.getColumnValue(totalItemsColumnName)
688
+ ) {
689
+ const count: PositiveNumber = await this.countBy({
690
+ query: {
691
+ [totalItemsColumnName]:
692
+ createdBy.data.getColumnValue(totalItemsColumnName),
693
+ } as FindWhere<TBaseModel>,
694
+
695
+ skip: 0,
696
+ limit: LIMIT_MAX,
697
+ props: {
698
+ isRoot: true,
699
+ },
700
+ });
701
+
702
+ if (count.positiveNumber > totalItemsNumber - 1) {
703
+ throw new BadDataException(errorMessage);
704
+ }
705
+ }
706
+ }
707
+
708
+ private async checkUniqueColumnBy(
709
+ createBy: CreateBy<TBaseModel>,
710
+ ): Promise<CreateBy<TBaseModel>> {
711
+ let existingItemsWithSameNameCount: number = 0;
712
+
713
+ const uniqueColumnsBy: Dictionary<string | Array<string>> =
714
+ getUniqueColumnsBy(createBy.data);
715
+
716
+ for (const key in uniqueColumnsBy) {
717
+ if (!uniqueColumnsBy[key]) {
718
+ continue;
719
+ }
720
+
721
+ if (typeof uniqueColumnsBy[key] === Typeof.String) {
722
+ uniqueColumnsBy[key] = [uniqueColumnsBy[key] as string];
723
+ }
724
+
725
+ const query: Query<TBaseModel> = {};
726
+
727
+ for (const uniqueByColumnName of uniqueColumnsBy[key] as Array<string>) {
728
+ const columnValue: JSONValue = (createBy.data as any)[
729
+ uniqueByColumnName as string
730
+ ];
731
+ if (columnValue === null || columnValue === undefined) {
732
+ (query as any)[uniqueByColumnName] = QueryHelper.isNull();
733
+ } else {
734
+ (query as any)[uniqueByColumnName] = columnValue;
735
+ }
736
+ }
737
+
738
+ existingItemsWithSameNameCount = (
739
+ await this.countBy({
740
+ query: {
741
+ [key]: QueryHelper.findWithSameText(
742
+ (createBy.data as any)[key]
743
+ ? ((createBy.data as any)[key]! as string)
744
+ : "",
745
+ ),
746
+ ...query,
747
+ },
748
+ props: {
749
+ isRoot: true,
750
+ },
751
+ })
752
+ ).toNumber();
753
+
754
+ if (existingItemsWithSameNameCount > 0) {
755
+ throw new BadDataException(
756
+ `${this.model.singularName} with the same ${key} already exists.`,
757
+ );
758
+ }
759
+
760
+ existingItemsWithSameNameCount = 0;
761
+ }
762
+
763
+ return Promise.resolve(createBy);
764
+ }
765
+
766
+ public async countBy({
767
+ query,
768
+ skip,
769
+ limit,
770
+ props,
771
+ groupBy,
772
+ distinctOn,
773
+ }: CountBy<TBaseModel>): Promise<PositiveNumber> {
774
+ try {
775
+ if (groupBy && Object.keys(groupBy).length > 0) {
776
+ throw new BadDataException("Group By is not supported for countBy");
777
+ }
778
+
779
+ if (!skip) {
780
+ skip = new PositiveNumber(0);
781
+ }
782
+
783
+ if (!limit) {
784
+ limit = new PositiveNumber(Infinity);
785
+ }
786
+
787
+ if (!(skip instanceof PositiveNumber)) {
788
+ skip = new PositiveNumber(skip);
789
+ }
790
+
791
+ if (!(limit instanceof PositiveNumber)) {
792
+ limit = new PositiveNumber(limit);
793
+ }
794
+
795
+ const findBy: FindBy<TBaseModel> = {
796
+ query,
797
+ skip,
798
+ limit,
799
+ props,
800
+ };
801
+
802
+ const checkReadPermissionType: CheckReadPermissionType<TBaseModel> =
803
+ await ModelPermission.checkReadQueryPermission(
804
+ this.modelType,
805
+ query,
806
+ null,
807
+ props,
808
+ );
809
+
810
+ findBy.query = checkReadPermissionType.query;
811
+ let count: number = 0;
812
+
813
+ if (distinctOn) {
814
+ const queryBuilder: SelectQueryBuilder<TBaseModel> =
815
+ this.getQueryBuilder(this.modelName)
816
+ .where(findBy.query)
817
+ .skip(skip.toNumber())
818
+ .take(limit.toNumber());
819
+
820
+ if (distinctOn) {
821
+ queryBuilder.groupBy(`${this.modelName}.${distinctOn}`);
822
+ }
823
+
824
+ count = await queryBuilder.getCount();
825
+ } else {
826
+ count = await this.getRepository().count({
827
+ where: findBy.query as any,
828
+ skip: (findBy.skip as PositiveNumber).toNumber(),
829
+ take: (findBy.limit as PositiveNumber).toNumber(),
830
+ });
831
+ }
832
+
833
+ let countPositive: PositiveNumber = new PositiveNumber(count);
834
+ countPositive = await this.onCountSuccess(countPositive);
835
+ return countPositive;
836
+ } catch (error) {
837
+ await this.onCountError(error as Exception);
838
+ throw this.getException(error as Exception);
839
+ }
840
+ }
841
+
842
+ public async deleteOneById(deleteById: DeleteById): Promise<number> {
843
+ await ModelPermission.checkDeletePermissionByModel({
844
+ modelType: this.modelType,
845
+ fetchModelWithAccessControlIds: async () => {
846
+ const selectModel: Select<TBaseModel> = {};
847
+ const accessControlColumn: string | null =
848
+ this.getModel().getAccessControlColumn();
849
+
850
+ if (accessControlColumn) {
851
+ (selectModel as any)[accessControlColumn] = {
852
+ _id: true,
853
+ name: true,
854
+ };
855
+ }
856
+
857
+ return await this.findOneById({
858
+ id: deleteById.id,
859
+ select: selectModel,
860
+ props: {
861
+ isRoot: true,
862
+ },
863
+ });
864
+ },
865
+ props: deleteById.props,
866
+ });
867
+
868
+ return await this.deleteOneBy({
869
+ query: {
870
+ _id: deleteById.id.toString(),
871
+ } as any,
872
+ deletedByUser: deleteById.deletedByUser,
873
+ props: deleteById.props,
874
+ });
875
+ }
876
+
877
+ public async deleteOneBy(
878
+ deleteOneBy: DeleteOneBy<TBaseModel>,
879
+ ): Promise<number> {
880
+ return await this._deleteBy({ ...deleteOneBy, limit: 1, skip: 0 });
881
+ }
882
+
883
+ public async deleteBy(deleteBy: DeleteBy<TBaseModel>): Promise<number> {
884
+ return await this._deleteBy(deleteBy);
885
+ }
886
+
887
+ public async hardDeleteBy(deleteBy: DeleteBy<TBaseModel>): Promise<number> {
888
+ try {
889
+ const onDelete: OnDelete<TBaseModel> = deleteBy.props.ignoreHooks
890
+ ? { deleteBy, carryForward: [] }
891
+ : await this.onBeforeDelete(deleteBy);
892
+ const beforeDeleteBy: DeleteBy<TBaseModel> = onDelete.deleteBy;
893
+
894
+ beforeDeleteBy.query = await ModelPermission.checkDeleteQueryPermission(
895
+ this.modelType,
896
+ beforeDeleteBy.query,
897
+ deleteBy.props,
898
+ );
899
+
900
+ if (!(beforeDeleteBy.skip instanceof PositiveNumber)) {
901
+ beforeDeleteBy.skip = new PositiveNumber(beforeDeleteBy.skip);
902
+ }
903
+
904
+ if (!(beforeDeleteBy.limit instanceof PositiveNumber)) {
905
+ beforeDeleteBy.limit = new PositiveNumber(beforeDeleteBy.limit);
906
+ }
907
+
908
+ const items: Array<TBaseModel> = await this._findBy(
909
+ {
910
+ query: beforeDeleteBy.query,
911
+ skip: beforeDeleteBy.skip.toNumber(),
912
+ limit: beforeDeleteBy.limit.toNumber(),
913
+ select: {},
914
+ props: { ...beforeDeleteBy.props, ignoreHooks: true },
915
+ },
916
+ true,
917
+ );
918
+
919
+ let numberOfDocsAffected: number = 0;
920
+
921
+ if (items.length > 0) {
922
+ beforeDeleteBy.query = {
923
+ ...beforeDeleteBy.query,
924
+ _id: QueryHelper.any(
925
+ items.map((i: TBaseModel) => {
926
+ return i.id!;
927
+ }),
928
+ ),
929
+ };
930
+
931
+ numberOfDocsAffected =
932
+ (await this.getRepository().delete(beforeDeleteBy.query as any))
933
+ .affected || 0;
934
+ }
935
+
936
+ return numberOfDocsAffected;
937
+ } catch (error) {
938
+ await this.onDeleteError(error as Exception);
939
+ throw this.getException(error as Exception);
940
+ }
941
+ }
942
+
943
+ private async _deleteBy(deleteBy: DeleteBy<TBaseModel>): Promise<number> {
944
+ try {
945
+ if (this.doNotAllowDelete && !deleteBy.props.isRoot) {
946
+ throw new BadDataException("Delete not allowed");
947
+ }
948
+
949
+ const onDelete: OnDelete<TBaseModel> = deleteBy.props.ignoreHooks
950
+ ? { deleteBy, carryForward: [] }
951
+ : await this.onBeforeDelete(deleteBy);
952
+
953
+ const beforeDeleteBy: DeleteBy<TBaseModel> = onDelete.deleteBy;
954
+
955
+ const carryForward: any = onDelete.carryForward;
956
+
957
+ beforeDeleteBy.query = await ModelPermission.checkDeleteQueryPermission(
958
+ this.modelType,
959
+ beforeDeleteBy.query,
960
+ deleteBy.props,
961
+ );
962
+
963
+ if (!(beforeDeleteBy.skip instanceof PositiveNumber)) {
964
+ beforeDeleteBy.skip = new PositiveNumber(beforeDeleteBy.skip);
965
+ }
966
+
967
+ if (!(beforeDeleteBy.limit instanceof PositiveNumber)) {
968
+ beforeDeleteBy.limit = new PositiveNumber(beforeDeleteBy.limit);
969
+ }
970
+
971
+ const select: Select<TBaseModel> = {};
972
+
973
+ if (this.getModel().getTenantColumn()) {
974
+ (select as any)[this.getModel().getTenantColumn() as string] = true;
975
+ }
976
+
977
+ const items: Array<TBaseModel> = await this._findBy({
978
+ query: beforeDeleteBy.query,
979
+ skip: beforeDeleteBy.skip.toNumber(),
980
+ limit: beforeDeleteBy.limit.toNumber(),
981
+ select: select,
982
+ props: {
983
+ isRoot: true, // isRoot because query has already been checked for permissions.
984
+ ignoreHooks: true,
985
+ },
986
+ });
987
+
988
+ // We are hard deleting anyway. So, this does not make sense. Please uncomment if
989
+ // we change the code to soft-delete.
990
+
991
+ // await this._updateBy({
992
+ // query: deleteBy.query,
993
+ // data: {
994
+ // deletedByUserId: deleteBy.props.userId,
995
+ // } as any,
996
+ // limit: deleteBy.limit,
997
+ // skip: deleteBy.skip,
998
+ // props: {
999
+ // isRoot: true,
1000
+ // ignoreHooks: true,
1001
+ // },
1002
+ // });
1003
+
1004
+ let numberOfDocsAffected: number = 0;
1005
+
1006
+ if (items.length > 0) {
1007
+ const query: Query<TBaseModel> = {
1008
+ _id: QueryHelper.any(
1009
+ items.map((i: TBaseModel) => {
1010
+ return i.id!;
1011
+ }),
1012
+ ),
1013
+ };
1014
+
1015
+ numberOfDocsAffected =
1016
+ (await this.getRepository().delete(query as any)).affected || 0;
1017
+ }
1018
+
1019
+ // hit workflow.
1020
+ if (
1021
+ this.getModel().enableWorkflowOn?.delete &&
1022
+ (deleteBy.props.tenantId || this.getModel().getTenantColumn())
1023
+ ) {
1024
+ for (const item of items) {
1025
+ if (this.getModel().enableWorkflowOn?.create) {
1026
+ let tenantId: ObjectID | undefined = deleteBy.props.tenantId;
1027
+
1028
+ if (!tenantId && this.getModel().getTenantColumn()) {
1029
+ tenantId = item.getValue<ObjectID>(
1030
+ this.getModel().getTenantColumn()!,
1031
+ );
1032
+ }
1033
+
1034
+ if (tenantId) {
1035
+ await this.onTrigger(item.id!, tenantId, "on-delete");
1036
+ }
1037
+ }
1038
+ }
1039
+ }
1040
+
1041
+ if (!deleteBy.props.ignoreHooks) {
1042
+ await this.onDeleteSuccess(
1043
+ { deleteBy, carryForward },
1044
+ items.map((i: TBaseModel) => {
1045
+ return new ObjectID(i._id!);
1046
+ }),
1047
+ );
1048
+ }
1049
+
1050
+ return numberOfDocsAffected;
1051
+ } catch (error) {
1052
+ await this.onDeleteError(error as Exception);
1053
+ throw this.getException(error as Exception);
1054
+ }
1055
+ }
1056
+
1057
+ public async findBy(findBy: FindBy<TBaseModel>): Promise<Array<TBaseModel>> {
1058
+ return await this._findBy(findBy);
1059
+ }
1060
+
1061
+ private async _findBy(
1062
+ findBy: FindBy<TBaseModel>,
1063
+ withDeleted?: boolean | undefined,
1064
+ ): Promise<Array<TBaseModel>> {
1065
+ try {
1066
+ let automaticallyAddedCreatedAtInSelect: boolean = false;
1067
+
1068
+ if (!findBy.sort || Object.keys(findBy.sort).length === 0) {
1069
+ findBy.sort = {
1070
+ createdAt: SortOrder.Descending,
1071
+ };
1072
+
1073
+ if (!findBy.select) {
1074
+ findBy.select = {} as any;
1075
+ }
1076
+
1077
+ if (!(findBy.select as any)["createdAt"]) {
1078
+ (findBy.select as any)["createdAt"] = true;
1079
+ automaticallyAddedCreatedAtInSelect = true;
1080
+ }
1081
+ }
1082
+
1083
+ const onFind: OnFind<TBaseModel> = findBy.props.ignoreHooks
1084
+ ? { findBy, carryForward: [] }
1085
+ : await this.onBeforeFind(findBy);
1086
+ const onBeforeFind: FindBy<TBaseModel> = { ...onFind.findBy };
1087
+ const carryForward: any = onFind.carryForward;
1088
+
1089
+ if (
1090
+ !onBeforeFind.select ||
1091
+ Object.keys(onBeforeFind.select).length === 0
1092
+ ) {
1093
+ onBeforeFind.select = {} as any;
1094
+ }
1095
+
1096
+ if (!(onBeforeFind.select as any)["_id"]) {
1097
+ (onBeforeFind.select as any)["_id"] = true;
1098
+ }
1099
+
1100
+ const result: {
1101
+ query: Query<TBaseModel>;
1102
+ select: Select<TBaseModel> | null;
1103
+ relationSelect: RelationSelect<TBaseModel> | null;
1104
+ } = await ModelPermission.checkReadQueryPermission(
1105
+ this.modelType,
1106
+ onBeforeFind.query,
1107
+ onBeforeFind.select || null,
1108
+ onBeforeFind.props,
1109
+ );
1110
+
1111
+ onBeforeFind.query = result.query;
1112
+ onBeforeFind.select = result.select || undefined;
1113
+
1114
+ if (!(onBeforeFind.skip instanceof PositiveNumber)) {
1115
+ onBeforeFind.skip = new PositiveNumber(onBeforeFind.skip);
1116
+ }
1117
+
1118
+ if (!(onBeforeFind.limit instanceof PositiveNumber)) {
1119
+ onBeforeFind.limit = new PositiveNumber(onBeforeFind.limit);
1120
+ }
1121
+
1122
+ if (
1123
+ onBeforeFind.groupBy &&
1124
+ Object.keys(onBeforeFind.groupBy).length > 0
1125
+ ) {
1126
+ throw new BadDataException("GroupBy is currently not supported");
1127
+ }
1128
+
1129
+ const items: Array<TBaseModel> = await this.getRepository().find({
1130
+ skip: onBeforeFind.skip.toNumber(),
1131
+ take: onBeforeFind.limit.toNumber(),
1132
+ where: onBeforeFind.query as any,
1133
+ order: onBeforeFind.sort as any,
1134
+ relations: result.relationSelect as any,
1135
+ select: onBeforeFind.select as any,
1136
+ withDeleted: withDeleted || false,
1137
+ });
1138
+
1139
+ let decryptedItems: Array<TBaseModel> = [];
1140
+
1141
+ for (const item of items) {
1142
+ decryptedItems.push(await this.decrypt(item));
1143
+ }
1144
+
1145
+ decryptedItems = this.sanitizeFindByItems(decryptedItems, onBeforeFind);
1146
+
1147
+ for (const item of decryptedItems) {
1148
+ if (automaticallyAddedCreatedAtInSelect) {
1149
+ delete (item as any).createdAt;
1150
+ }
1151
+ }
1152
+
1153
+ if (!findBy.props.ignoreHooks) {
1154
+ decryptedItems = await (
1155
+ await this.onFindSuccess({ findBy, carryForward }, decryptedItems)
1156
+ ).carryForward;
1157
+ }
1158
+
1159
+ return decryptedItems;
1160
+ } catch (error) {
1161
+ await this.onFindError(error as Exception);
1162
+ throw this.getException(error as Exception);
1163
+ }
1164
+ }
1165
+
1166
+ private sanitizeFindByItems(
1167
+ items: Array<TBaseModel>,
1168
+ findBy: FindBy<TBaseModel>,
1169
+ ): Array<TBaseModel> {
1170
+ // if there's no select then there's nothing to do.
1171
+ if (!findBy.select) {
1172
+ return items;
1173
+ }
1174
+
1175
+ for (const key in findBy.select) {
1176
+ // for each key in select check if there's nested properties, this indicates there's a relation.
1177
+ if (typeof findBy.select[key] === Typeof.Object) {
1178
+ // get meta data to check if this column is an entity array.
1179
+ const tableColumnMetadata: TableColumnMetadata =
1180
+ this.model.getTableColumnMetadata(key);
1181
+
1182
+ if (!tableColumnMetadata.modelType) {
1183
+ throw new BadDataException(
1184
+ "Select not supported on " +
1185
+ key +
1186
+ " of " +
1187
+ this.model.singularName +
1188
+ " because this column modelType is not found.",
1189
+ );
1190
+ }
1191
+
1192
+ const relatedModel: BaseModel = new tableColumnMetadata.modelType();
1193
+ if (tableColumnMetadata.type === TableColumnType.EntityArray) {
1194
+ const tableColumns: Array<string> =
1195
+ relatedModel.getTableColumns().columns;
1196
+ const columnsToKeep: Array<string> = Object.keys(
1197
+ (findBy.select as any)[key],
1198
+ );
1199
+
1200
+ for (const item of items) {
1201
+ if (item[key] && Array.isArray(item[key])) {
1202
+ const relatedArray: Array<BaseModel> = item[key] as any;
1203
+ const newArray: Array<BaseModel> = [];
1204
+ // now we need to sanitize data.
1205
+
1206
+ for (const relatedArrayItem of relatedArray) {
1207
+ for (const column of tableColumns) {
1208
+ if (!columnsToKeep.includes(column)) {
1209
+ (relatedArrayItem as any)[column] = undefined;
1210
+ }
1211
+ }
1212
+ newArray.push(relatedArrayItem);
1213
+ }
1214
+
1215
+ (item[key] as any) = newArray;
1216
+ }
1217
+ }
1218
+ }
1219
+ }
1220
+ }
1221
+
1222
+ return items;
1223
+ }
1224
+
1225
+ public async findOneBy(
1226
+ findOneBy: FindOneBy<TBaseModel>,
1227
+ ): Promise<TBaseModel | null> {
1228
+ const findBy: FindBy<TBaseModel> = findOneBy as FindBy<TBaseModel>;
1229
+ findBy.limit = new PositiveNumber(1);
1230
+ findBy.skip = new PositiveNumber(0);
1231
+
1232
+ const documents: Array<TBaseModel> = await this._findBy(findBy);
1233
+
1234
+ if (documents && documents[0]) {
1235
+ return documents[0];
1236
+ }
1237
+ return null;
1238
+ }
1239
+
1240
+ public async findOneById(
1241
+ findOneById: FindOneByID<TBaseModel>,
1242
+ ): Promise<TBaseModel | null> {
1243
+ if (!findOneById.id) {
1244
+ throw new BadDataException("findOneById.id is required");
1245
+ }
1246
+
1247
+ return await this.findOneBy({
1248
+ query: {
1249
+ _id: findOneById.id.toString() as any,
1250
+ },
1251
+ select: findOneById.select || {},
1252
+ props: findOneById.props,
1253
+ });
1254
+ }
1255
+
1256
+ private async _updateBy(updateBy: UpdateBy<TBaseModel>): Promise<number> {
1257
+ try {
1258
+ const onUpdate: OnUpdate<TBaseModel> = updateBy.props.ignoreHooks
1259
+ ? { updateBy, carryForward: [] }
1260
+ : await this.onBeforeUpdate(updateBy);
1261
+
1262
+ // Encrypt data
1263
+ updateBy.data = (await this.encrypt(
1264
+ updateBy.data,
1265
+ )) as PartialEntity<TBaseModel>;
1266
+
1267
+ const beforeUpdateBy: UpdateBy<TBaseModel> = onUpdate.updateBy;
1268
+ const carryForward: any = onUpdate.carryForward;
1269
+
1270
+ beforeUpdateBy.query = await ModelPermission.checkUpdateQueryPermissions(
1271
+ this.modelType,
1272
+ beforeUpdateBy.query,
1273
+ beforeUpdateBy.data,
1274
+ beforeUpdateBy.props,
1275
+ );
1276
+
1277
+ const data: QueryDeepPartialEntity<TBaseModel> =
1278
+ (await this.sanitizeCreateOrUpdate(
1279
+ beforeUpdateBy.data,
1280
+ updateBy.props,
1281
+ true,
1282
+ )) as QueryDeepPartialEntity<TBaseModel>;
1283
+
1284
+ if (!(updateBy.skip instanceof PositiveNumber)) {
1285
+ updateBy.skip = new PositiveNumber(updateBy.skip);
1286
+ }
1287
+
1288
+ if (!(updateBy.limit instanceof PositiveNumber)) {
1289
+ updateBy.limit = new PositiveNumber(updateBy.limit);
1290
+ }
1291
+
1292
+ const dataColumns: [string, boolean][] = [];
1293
+ const dataKeys: string[] = Object.keys(data);
1294
+ for (const key of dataKeys) {
1295
+ dataColumns.push([key, true]);
1296
+ }
1297
+ // Select the `_id` column and the columns in `data`.
1298
+ // `_id` is used for locating database records for updates, and `data`
1299
+ // columns are used for checking if the update causes a change in values.
1300
+ const selectColumns: Select<TBaseModel> = {
1301
+ _id: true,
1302
+ ...Object.fromEntries(dataColumns),
1303
+ };
1304
+
1305
+ if (this.getModel().getTenantColumn()) {
1306
+ (selectColumns as any)[this.getModel().getTenantColumn()!.toString()] =
1307
+ true;
1308
+ }
1309
+
1310
+ const items: Array<TBaseModel> = await this._findBy({
1311
+ query: beforeUpdateBy.query,
1312
+ skip: updateBy.skip.toNumber(),
1313
+ limit: updateBy.limit.toNumber(),
1314
+ select: selectColumns,
1315
+ props: { isRoot: true, ignoreHooks: true },
1316
+ });
1317
+
1318
+ for (const item of items) {
1319
+ const updatedItem: any = {
1320
+ _id: item._id!,
1321
+ ...data,
1322
+ } as any;
1323
+
1324
+ await this.getRepository().save(updatedItem);
1325
+
1326
+ // hit workflow.
1327
+ if (
1328
+ this.getModel().enableWorkflowOn?.update &&
1329
+ // Only trigger workflow if there's a change in values
1330
+ !this.hasSameValues({ item, updatedItem })
1331
+ ) {
1332
+ let tenantId: ObjectID | undefined = updateBy.props.tenantId;
1333
+
1334
+ if (!tenantId && this.getModel().getTenantColumn()) {
1335
+ tenantId = item.getValue<ObjectID>(
1336
+ this.getModel().getTenantColumn()!,
1337
+ );
1338
+ }
1339
+
1340
+ if (tenantId) {
1341
+ await this.onTrigger(item.id!, tenantId, "on-update", {
1342
+ updatedFields: JSONFunctions.serialize(data as JSONObject),
1343
+ });
1344
+ }
1345
+ }
1346
+ }
1347
+
1348
+ // Cant Update relations.
1349
+ // https://github.com/typeorm/typeorm/issues/2821
1350
+
1351
+ // const numberOfDocsAffected: number =
1352
+ // (
1353
+ // await this.getRepository().update(
1354
+ // query as any,
1355
+ // data
1356
+ // )
1357
+ // ).affected || 0;
1358
+
1359
+ if (!updateBy.props.ignoreHooks) {
1360
+ await this.onUpdateSuccess(
1361
+ { updateBy, carryForward },
1362
+ items.map((i: TBaseModel) => {
1363
+ return new ObjectID(i._id!);
1364
+ }),
1365
+ );
1366
+ }
1367
+
1368
+ return items.length;
1369
+ } catch (error) {
1370
+ await this.onUpdateError(error as Exception);
1371
+ throw this.getException(error as Exception);
1372
+ }
1373
+ }
1374
+
1375
+ private hasSameValues(data: { item: TBaseModel; updatedItem: any }): boolean {
1376
+ const { item, updatedItem } = data;
1377
+ const columns: string[] = Object.keys(updatedItem);
1378
+ for (const column of columns) {
1379
+ if (
1380
+ // `toString()` is necessary so we can compare wrapped values
1381
+ // (e.g. `ObjectID`) with raw values (e.g. `string`)
1382
+ item.getColumnValue(column)?.toString() !==
1383
+ updatedItem[column]?.toString()
1384
+ ) {
1385
+ return false;
1386
+ }
1387
+ }
1388
+ return true;
1389
+ }
1390
+
1391
+ public async updateOneBy(
1392
+ updateOneBy: UpdateOneBy<TBaseModel>,
1393
+ ): Promise<number> {
1394
+ return await this._updateBy({ ...updateOneBy, limit: 1, skip: 0 });
1395
+ }
1396
+
1397
+ public async updateBy(updateBy: UpdateBy<TBaseModel>): Promise<number> {
1398
+ return await this._updateBy(updateBy);
1399
+ }
1400
+
1401
+ public async updateOneById(
1402
+ updateById: UpdateByID<TBaseModel>,
1403
+ ): Promise<void> {
1404
+ if (!updateById.id) {
1405
+ throw new BadDataException("updateById.id is required");
1406
+ }
1407
+
1408
+ await ModelPermission.checkUpdatePermissionByModel({
1409
+ modelType: this.modelType,
1410
+ fetchModelWithAccessControlIds: async () => {
1411
+ const selectModel: Select<TBaseModel> = {};
1412
+ const accessControlColumn: string | null =
1413
+ this.getModel().getAccessControlColumn();
1414
+
1415
+ if (accessControlColumn) {
1416
+ (selectModel as any)[accessControlColumn] = {
1417
+ _id: true,
1418
+ name: true,
1419
+ };
1420
+ }
1421
+
1422
+ return await this.findOneById({
1423
+ id: updateById.id,
1424
+ select: selectModel,
1425
+ props: {
1426
+ isRoot: true,
1427
+ },
1428
+ });
1429
+ },
1430
+ props: updateById.props,
1431
+ });
1432
+
1433
+ await this.updateOneBy({
1434
+ query: {
1435
+ _id: updateById.id.toString() as any,
1436
+ },
1437
+ data: updateById.data as any,
1438
+ props: updateById.props,
1439
+ });
1440
+ }
1441
+
1442
+ public async updateOneByIdAndFetch(
1443
+ updateById: UpdateByIDAndFetch<TBaseModel>,
1444
+ ): Promise<TBaseModel | null> {
1445
+ await this.updateOneById(updateById);
1446
+ return this.findOneById({
1447
+ id: updateById.id,
1448
+ select: updateById.select,
1449
+ props: updateById.props,
1450
+ });
1451
+ }
1452
+
1453
+ public async searchBy({
1454
+ skip,
1455
+ limit,
1456
+ select,
1457
+ props,
1458
+ }: SearchBy<TBaseModel>): Promise<SearchResult<TBaseModel>> {
1459
+ const query: Query<TBaseModel> = {};
1460
+
1461
+ // query[column] = RegExp(`^${text}`, 'i');
1462
+
1463
+ const [items, count]: [Array<TBaseModel>, PositiveNumber] =
1464
+ await Promise.all([
1465
+ this.findBy({
1466
+ query,
1467
+ skip,
1468
+ limit,
1469
+ select,
1470
+ props: props,
1471
+ }),
1472
+ this.countBy({
1473
+ query,
1474
+ skip: new PositiveNumber(0),
1475
+ limit: new PositiveNumber(Infinity),
1476
+ props: props,
1477
+ }),
1478
+ ]);
1479
+
1480
+ return { items, count };
1481
+ }
1482
+ }
1483
+
1484
+ export default DatabaseService;