@attraccess/database-entities 1.9.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/package.json +1 -1
  2. package/src/lib/entities/api-token-permission.entity.d.ts +10 -0
  3. package/src/lib/entities/api-token-permission.entity.js +40 -0
  4. package/src/lib/entities/api-token-permission.entity.js.map +1 -0
  5. package/src/lib/entities/api-token.entity.d.ts +15 -0
  6. package/src/lib/entities/api-token.entity.js +61 -0
  7. package/src/lib/entities/api-token.entity.js.map +1 -0
  8. package/src/lib/entities/audit-log.entity.d.ts +18 -0
  9. package/src/lib/entities/audit-log.entity.js +79 -0
  10. package/src/lib/entities/audit-log.entity.js.map +1 -0
  11. package/src/lib/entities/billing-transaction-item.entity.d.ts +1 -0
  12. package/src/lib/entities/billing-transaction-item.entity.js +9 -0
  13. package/src/lib/entities/billing-transaction-item.entity.js.map +1 -1
  14. package/src/lib/entities/form.d.ts +1 -0
  15. package/src/lib/entities/form.js +5 -0
  16. package/src/lib/entities/form.js.map +1 -1
  17. package/src/lib/entities/mqttServer.entity.d.ts +4 -0
  18. package/src/lib/entities/mqttServer.entity.js +39 -0
  19. package/src/lib/entities/mqttServer.entity.js.map +1 -1
  20. package/src/lib/entities/passkey.entity.d.ts +28 -0
  21. package/src/lib/entities/passkey.entity.js +109 -0
  22. package/src/lib/entities/passkey.entity.js.map +1 -0
  23. package/src/lib/entities/resource-billing-configuration.entity.d.ts +1 -0
  24. package/src/lib/entities/resource-billing-configuration.entity.js +5 -0
  25. package/src/lib/entities/resource-billing-configuration.entity.js.map +1 -1
  26. package/src/lib/entities/resource-maintenance-schedule.entity.d.ts +6 -0
  27. package/src/lib/entities/resource-maintenance-schedule.entity.js +21 -1
  28. package/src/lib/entities/resource-maintenance-schedule.entity.js.map +1 -1
  29. package/src/lib/entities/resource-operating-interval.entity.d.ts +13 -0
  30. package/src/lib/entities/resource-operating-interval.entity.js +65 -0
  31. package/src/lib/entities/resource-operating-interval.entity.js.map +1 -0
  32. package/src/lib/entities/resource-usage-lifecycle-attempt.entity.d.ts +19 -0
  33. package/src/lib/entities/resource-usage-lifecycle-attempt.entity.js +56 -0
  34. package/src/lib/entities/resource-usage-lifecycle-attempt.entity.js.map +1 -0
  35. package/src/lib/entities/resource.entity.d.ts +2 -2
  36. package/src/lib/entities/resource.entity.js +5 -5
  37. package/src/lib/entities/resource.entity.js.map +1 -1
  38. package/src/lib/entities/resource.maintenance.js +2 -0
  39. package/src/lib/entities/resource.maintenance.js.map +1 -1
  40. package/src/lib/entities/resourceFlowNode.d.ts +194 -1
  41. package/src/lib/entities/resourceFlowNode.js +103 -71
  42. package/src/lib/entities/resourceFlowNode.js.map +1 -1
  43. package/src/lib/entities/resourceHealthState.entity.js +2 -2
  44. package/src/lib/entities/resourceHealthState.entity.js.map +1 -1
  45. package/src/lib/entities/resourceIntroduction.entity.d.ts +1 -0
  46. package/src/lib/entities/resourceIntroduction.entity.js +4 -0
  47. package/src/lib/entities/resourceIntroduction.entity.js.map +1 -1
  48. package/src/lib/entities/resourceUsage.entity.d.ts +7 -0
  49. package/src/lib/entities/resourceUsage.entity.js +50 -0
  50. package/src/lib/entities/resourceUsage.entity.js.map +1 -1
  51. package/src/lib/entities/user.entity.d.ts +3 -0
  52. package/src/lib/entities/user.entity.js +10 -0
  53. package/src/lib/entities/user.entity.js.map +1 -1
  54. package/src/lib/entities-index.d.ts +17 -7
  55. package/src/lib/entities-index.js +26 -11
  56. package/src/lib/entities-index.js.map +1 -1
  57. package/src/lib/entities/password-policy-audit.entity.d.ts +0 -19
  58. package/src/lib/entities/password-policy-audit.entity.js +0 -83
  59. package/src/lib/entities/password-policy-audit.entity.js.map +0 -1
  60. package/src/lib/entities/resourceFlowLog.d.ts +0 -18
  61. package/src/lib/entities/resourceFlowLog.js +0 -96
  62. package/src/lib/entities/resourceFlowLog.js.map +0 -1
@@ -1,3 +1,4 @@
1
+ import { AuditLog } from './entities/audit-log.entity';
1
2
  import { EmailTemplate } from './entities/email-template.entity';
2
3
  import { EmailTemplateTranslation } from './entities/email-template-translation.entity';
3
4
  import { AuthenticationDetail } from './entities/authenticationDetail.entity';
@@ -18,13 +19,12 @@ import { User } from './entities/user.entity';
18
19
  import { Session } from './entities/session.entity';
19
20
  import { Attractap, AttractapFirmwareVersion } from './entities/attractap.entity';
20
21
  import { AttractapCrashReport } from './entities/attractapCrashReport.entity';
21
- import { ResourceFlowNode, ResourceFlowNodeType, getNodeDataSchema, NodeWithoutDataSchema, HttpRequestNodeDataSchema, MqttSendMessageNodeDataSchema, WaitNodeDataSchema, ButtonNodeDataSchema, IfNodeDataSchema, BillingTransactionItemCreateSchema, SetPayloadNodeDataSchema, MqttMessageReceivedNodeDataSchema, MqttWaitForMessageNodeDataSchema, ResourceUsageEndSessionNodeDataSchema, ErrorNodeDataSchema, InputResourceActivityNoActivityNodeDataSchema, ResourceActivityTrackActivityNodeDataSchema, ResourceHealthHeartbeatNodeDataSchema, ResourceHealthSetNodeDataSchema, HealthStateOptionEnum, SetVariablesNodeDataSchema, GetVariablesNodeDataSchema, VariableChangedNodeDataSchema, VariableScopeSchema, CompanionLockNodeDataSchema, CompanionIdleActiveNodeDataSchema, CompanionForegroundAppNodeDataSchema, CompanionUsbDeviceNodeDataSchema } from './entities/resourceFlowNode';
22
+ import { ResourceFlowNode, ResourceFlowNodeType, getNodeDataSchema, NodeWithoutDataSchema, HttpRequestNodeDataSchema, MqttSendMessageNodeDataSchema, WaitNodeDataSchema, ButtonNodeDataSchema, IfNodeDataSchema, BillingTransactionItemCreateSchema, SetPayloadNodeDataSchema, MqttMessageReceivedNodeDataSchema, MqttWaitForMessageNodeDataSchema, ResourceUsageEndSessionNodeDataSchema, ErrorNodeDataSchema, InputResourceActivityNoActivityNodeDataSchema, ResourceActivityTrackActivityNodeDataSchema, ResourceOperatingTransitionNodeDataSchema, ResourceHealthHeartbeatNodeDataSchema, ResourceHealthSetNodeDataSchema, HealthStateOptionEnum, SetVariablesNodeDataSchema, GetVariablesNodeDataSchema, VariableChangedNodeDataSchema, VariableScopeSchema, CompanionLockNodeDataSchema, CompanionIdleActiveNodeDataSchema, CompanionForegroundAppNodeDataSchema, CompanionUsbDeviceNodeDataSchema, getExternalEffectFailureBehavior } from './entities/resourceFlowNode';
22
23
  import { ResourceHealthState, ResourceHealthStatus, ResourceHealthSource } from './entities/resourceHealthState.entity';
23
24
  import { ResourceFlowEdge } from './entities/resourceFlowEdge';
24
- import { ResourceFlowLog, ResourceFlowLogType } from './entities/resourceFlowLog';
25
25
  import { ResourceMaintenance } from './entities/resource.maintenance';
26
26
  import { ResourceMaintenanceRequest, MaintenanceRequestStatus } from './entities/resource-maintenance-request.entity';
27
- import { ResourceMaintenanceSchedule, ResourceMaintenanceScheduleTriggerType } from './entities/resource-maintenance-schedule.entity';
27
+ import { ResourceMaintenanceSchedule, ResourceMaintenanceScheduleDurationBasis, ResourceMaintenanceScheduleTriggerType } from './entities/resource-maintenance-schedule.entity';
28
28
  import { ResourceMaintenanceScheduleUsageHoursConfig } from './entities/resource-maintenance-schedule-usage-hours-config.entity';
29
29
  import { UsageDurationUnit } from './types/usageDurationUnit.enum';
30
30
  import { ResourceMaintenanceScheduleUsageCountConfig } from './entities/resource-maintenance-schedule-usage-count-config.entity';
@@ -42,20 +42,26 @@ import { ResourceFlowVariable, ResourceFlowVariableScope, type ResourceFlowVaria
42
42
  import { PasswordPolicy, PASSWORD_POLICY_SINGLETON_ID } from './entities/password-policy.entity';
43
43
  import { PasswordHistory } from './entities/password-history.entity';
44
44
  import { PasswordPolicyOverride, PasswordPolicyRole, PASSWORD_POLICY_ROLES } from './entities/password-policy-override.entity';
45
- import { PasswordPolicyAudit, PasswordPolicyAuditEvent } from './entities/password-policy-audit.entity';
46
45
  import { Conversation } from './entities/conversation.entity';
47
46
  import { ConversationParticipant } from './entities/conversation-participant.entity';
48
47
  import { Message, MessageReferenceType } from './entities/message.entity';
49
48
  import { NotificationPreference } from './entities/notification-preference.entity';
50
49
  import { PushSubscription } from './entities/push-subscription.entity';
50
+ import { Passkey, PasskeyChallenge } from './entities/passkey.entity';
51
51
  import { CompanionDevice } from './entities/companion-device.entity';
52
52
  import { EmailLayout, EMAIL_LAYOUT_SINGLETON_ID } from './entities/email-layout.entity';
53
53
  import { Permission } from './entities/permission.entity';
54
54
  import { Role } from './entities/role.entity';
55
55
  import { RolePermission } from './entities/role-permission.entity';
56
56
  import { UserRole, UserRoleSource } from './entities/user-role.entity';
57
- export { AuthenticationDetail, MqttServer, Resource, ResourceGroup, ResourceIntroduction, ResourceIntroductionHistoryItem, IntroductionHistoryAction, ResourceIntroducer, ResourceIntroducerType, ResourceUsage, SSOProvider, SSOProviderType, SSOProviderOIDCConfiguration, SSOProviderSAMLConfiguration, User, Session, NFCCard, Attractap, AttractapCrashReport, EmailTemplate, EmailTemplateTranslation, ResourceFlowNode, ResourceFlowNodeType, ResourceFlowEdge, getNodeDataSchema, NodeWithoutDataSchema as EventNodeDataSchema, HttpRequestNodeDataSchema, MqttSendMessageNodeDataSchema, WaitNodeDataSchema, ResourceFlowLog, ResourceFlowLogType, AttractapFirmwareVersion, ResourceMaintenance, ResourceMaintenanceRequest, MaintenanceRequestStatus, ResourceMaintenanceSchedule, ResourceMaintenanceScheduleTriggerType, ResourceMaintenanceScheduleUsageHoursConfig, UsageDurationUnit, ResourceMaintenanceScheduleUsageCountConfig, ResourceMaintenanceScheduleTimeIntervalConfig, ResourceType, SupervisionMode, AutoIntroductionTarget, ResourceUsageAction, ButtonNodeDataSchema, IfNodeDataSchema, SetPayloadNodeDataSchema, BillingTransaction, ResourceBillingConfiguration, Setting, BillingTransactionStatus, BillingTransactionItem, BillingTransactionItemCreateSchema, MqttMessageReceivedNodeDataSchema, MqttWaitForMessageNodeDataSchema, ResourceUsageEndSessionNodeDataSchema, ErrorNodeDataSchema, Project, ProjectMember, ProjectMemberRole, ProjectInvitation, ProjectInvitationStatus, Form, FormField, FormSubmission, FormFieldType, ResourceFormAction, InputResourceActivityNoActivityNodeDataSchema, ResourceActivityTrackActivityNodeDataSchema, ResourceHealthHeartbeatNodeDataSchema, ResourceHealthSetNodeDataSchema, HealthStateOptionEnum, ResourceHealthState, ResourceHealthStatus, ResourceHealthSource, ResourceFlowVariable, ResourceFlowVariableScope, type ResourceFlowVariableValueType, SetVariablesNodeDataSchema, GetVariablesNodeDataSchema, VariableChangedNodeDataSchema, VariableScopeSchema, CompanionLockNodeDataSchema, CompanionIdleActiveNodeDataSchema, CompanionForegroundAppNodeDataSchema, CompanionUsbDeviceNodeDataSchema, PasswordPolicy, PASSWORD_POLICY_SINGLETON_ID, PasswordHistory, PasswordPolicyOverride, PasswordPolicyRole, PASSWORD_POLICY_ROLES, PasswordPolicyAudit, PasswordPolicyAuditEvent, Conversation, ConversationParticipant, Message, MessageReferenceType, NotificationPreference, PushSubscription, CompanionDevice, EmailLayout, EMAIL_LAYOUT_SINGLETON_ID, Permission, Role, RolePermission, UserRole, UserRoleSource, };
57
+ import { ApiToken } from './entities/api-token.entity';
58
+ import { ApiTokenPermission } from './entities/api-token-permission.entity';
59
+ import { ResourceOperatingInterval } from './entities/resource-operating-interval.entity';
60
+ import { ResourceUsageLifecycleAttempt } from './entities/resource-usage-lifecycle-attempt.entity';
61
+ export type { LifecycleBillingItem } from './entities/resource-usage-lifecycle-attempt.entity';
62
+ export { AuditLog, AuthenticationDetail, MqttServer, Resource, ResourceGroup, ResourceIntroduction, ResourceIntroductionHistoryItem, IntroductionHistoryAction, ResourceIntroducer, ResourceIntroducerType, ResourceUsage, SSOProvider, SSOProviderType, SSOProviderOIDCConfiguration, SSOProviderSAMLConfiguration, User, Session, NFCCard, Attractap, AttractapCrashReport, EmailTemplate, EmailTemplateTranslation, ResourceFlowNode, ResourceFlowNodeType, ResourceFlowEdge, getNodeDataSchema, NodeWithoutDataSchema as EventNodeDataSchema, HttpRequestNodeDataSchema, MqttSendMessageNodeDataSchema, WaitNodeDataSchema, AttractapFirmwareVersion, ResourceMaintenance, ResourceMaintenanceRequest, MaintenanceRequestStatus, ResourceMaintenanceSchedule, ResourceMaintenanceScheduleDurationBasis, ResourceMaintenanceScheduleTriggerType, ResourceMaintenanceScheduleUsageHoursConfig, UsageDurationUnit, ResourceMaintenanceScheduleUsageCountConfig, ResourceMaintenanceScheduleTimeIntervalConfig, ResourceType, SupervisionMode, AutoIntroductionTarget, ResourceUsageAction, ButtonNodeDataSchema, IfNodeDataSchema, SetPayloadNodeDataSchema, BillingTransaction, ResourceBillingConfiguration, Setting, BillingTransactionStatus, BillingTransactionItem, BillingTransactionItemCreateSchema, MqttMessageReceivedNodeDataSchema, MqttWaitForMessageNodeDataSchema, getExternalEffectFailureBehavior, ResourceUsageEndSessionNodeDataSchema, ErrorNodeDataSchema, Project, ProjectMember, ProjectMemberRole, ProjectInvitation, ProjectInvitationStatus, Form, FormField, FormSubmission, FormFieldType, ResourceFormAction, InputResourceActivityNoActivityNodeDataSchema, ResourceActivityTrackActivityNodeDataSchema, ResourceOperatingTransitionNodeDataSchema, ResourceHealthHeartbeatNodeDataSchema, ResourceHealthSetNodeDataSchema, HealthStateOptionEnum, ResourceHealthState, ResourceHealthStatus, ResourceHealthSource, ResourceFlowVariable, ResourceFlowVariableScope, type ResourceFlowVariableValueType, SetVariablesNodeDataSchema, GetVariablesNodeDataSchema, VariableChangedNodeDataSchema, VariableScopeSchema, CompanionLockNodeDataSchema, CompanionIdleActiveNodeDataSchema, CompanionForegroundAppNodeDataSchema, CompanionUsbDeviceNodeDataSchema, PasswordPolicy, PASSWORD_POLICY_SINGLETON_ID, PasswordHistory, PasswordPolicyOverride, PasswordPolicyRole, PASSWORD_POLICY_ROLES, Conversation, ConversationParticipant, Message, MessageReferenceType, NotificationPreference, PushSubscription, Passkey, PasskeyChallenge, CompanionDevice, EmailLayout, EMAIL_LAYOUT_SINGLETON_ID, Permission, Role, RolePermission, UserRole, UserRoleSource, ApiToken, ApiTokenPermission, ResourceOperatingInterval, ResourceUsageLifecycleAttempt, };
58
63
  export declare const entities: {
64
+ AuditLog: typeof AuditLog;
59
65
  User: typeof User;
60
66
  AuthenticationDetail: typeof AuthenticationDetail;
61
67
  Session: typeof Session;
@@ -76,7 +82,6 @@ export declare const entities: {
76
82
  EmailTemplateTranslation: typeof EmailTemplateTranslation;
77
83
  ResourceFlowNode: typeof ResourceFlowNode;
78
84
  ResourceFlowEdge: typeof ResourceFlowEdge;
79
- ResourceFlowLog: typeof ResourceFlowLog;
80
85
  ResourceMaintenance: typeof ResourceMaintenance;
81
86
  ResourceMaintenanceRequest: typeof ResourceMaintenanceRequest;
82
87
  ResourceMaintenanceSchedule: typeof ResourceMaintenanceSchedule;
@@ -98,15 +103,20 @@ export declare const entities: {
98
103
  PasswordPolicy: typeof PasswordPolicy;
99
104
  PasswordHistory: typeof PasswordHistory;
100
105
  PasswordPolicyOverride: typeof PasswordPolicyOverride;
101
- PasswordPolicyAudit: typeof PasswordPolicyAudit;
102
106
  Conversation: typeof Conversation;
103
107
  ConversationParticipant: typeof ConversationParticipant;
104
108
  Message: typeof Message;
105
109
  NotificationPreference: typeof NotificationPreference;
106
110
  PushSubscription: typeof PushSubscription;
111
+ Passkey: typeof Passkey;
112
+ PasskeyChallenge: typeof PasskeyChallenge;
107
113
  CompanionDevice: typeof CompanionDevice;
108
114
  Permission: typeof Permission;
109
115
  Role: typeof Role;
110
116
  RolePermission: typeof RolePermission;
111
117
  UserRole: typeof UserRole;
118
+ ApiToken: typeof ApiToken;
119
+ ApiTokenPermission: typeof ApiTokenPermission;
120
+ ResourceOperatingInterval: typeof ResourceOperatingInterval;
121
+ ResourceUsageLifecycleAttempt: typeof ResourceUsageLifecycleAttempt;
112
122
  };
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResourceBillingConfiguration = exports.BillingTransaction = exports.SetPayloadNodeDataSchema = exports.IfNodeDataSchema = exports.ButtonNodeDataSchema = exports.ResourceUsageAction = exports.AutoIntroductionTarget = exports.SupervisionMode = exports.ResourceType = exports.ResourceMaintenanceScheduleTimeIntervalConfig = exports.ResourceMaintenanceScheduleUsageCountConfig = exports.UsageDurationUnit = exports.ResourceMaintenanceScheduleUsageHoursConfig = exports.ResourceMaintenanceScheduleTriggerType = exports.ResourceMaintenanceSchedule = exports.MaintenanceRequestStatus = exports.ResourceMaintenanceRequest = exports.ResourceMaintenance = exports.AttractapFirmwareVersion = exports.ResourceFlowLogType = exports.ResourceFlowLog = exports.WaitNodeDataSchema = exports.MqttSendMessageNodeDataSchema = exports.HttpRequestNodeDataSchema = exports.EventNodeDataSchema = exports.getNodeDataSchema = exports.ResourceFlowEdge = exports.ResourceFlowNodeType = exports.ResourceFlowNode = exports.EmailTemplateTranslation = exports.EmailTemplate = exports.AttractapCrashReport = exports.Attractap = exports.NFCCard = exports.Session = exports.User = exports.SSOProviderSAMLConfiguration = exports.SSOProviderOIDCConfiguration = exports.SSOProviderType = exports.SSOProvider = exports.ResourceUsage = exports.ResourceIntroducerType = exports.ResourceIntroducer = exports.IntroductionHistoryAction = exports.ResourceIntroductionHistoryItem = exports.ResourceIntroduction = exports.ResourceGroup = exports.Resource = exports.MqttServer = exports.AuthenticationDetail = void 0;
4
- exports.PushSubscription = exports.NotificationPreference = exports.MessageReferenceType = exports.Message = exports.ConversationParticipant = exports.Conversation = exports.PasswordPolicyAuditEvent = exports.PasswordPolicyAudit = exports.PASSWORD_POLICY_ROLES = exports.PasswordPolicyRole = exports.PasswordPolicyOverride = exports.PasswordHistory = exports.PASSWORD_POLICY_SINGLETON_ID = exports.PasswordPolicy = exports.CompanionUsbDeviceNodeDataSchema = exports.CompanionForegroundAppNodeDataSchema = exports.CompanionIdleActiveNodeDataSchema = exports.CompanionLockNodeDataSchema = exports.VariableScopeSchema = exports.VariableChangedNodeDataSchema = exports.GetVariablesNodeDataSchema = exports.SetVariablesNodeDataSchema = exports.ResourceFlowVariableScope = exports.ResourceFlowVariable = exports.ResourceHealthSource = exports.ResourceHealthStatus = exports.ResourceHealthState = exports.HealthStateOptionEnum = exports.ResourceHealthSetNodeDataSchema = exports.ResourceHealthHeartbeatNodeDataSchema = exports.ResourceActivityTrackActivityNodeDataSchema = exports.InputResourceActivityNoActivityNodeDataSchema = exports.ResourceFormAction = exports.FormFieldType = exports.FormSubmission = exports.FormField = exports.Form = exports.ProjectInvitationStatus = exports.ProjectInvitation = exports.ProjectMemberRole = exports.ProjectMember = exports.Project = exports.ErrorNodeDataSchema = exports.ResourceUsageEndSessionNodeDataSchema = exports.MqttWaitForMessageNodeDataSchema = exports.MqttMessageReceivedNodeDataSchema = exports.BillingTransactionItemCreateSchema = exports.BillingTransactionItem = exports.BillingTransactionStatus = exports.Setting = void 0;
5
- exports.entities = exports.UserRoleSource = exports.UserRole = exports.RolePermission = exports.Role = exports.Permission = exports.EMAIL_LAYOUT_SINGLETON_ID = exports.EmailLayout = exports.CompanionDevice = void 0;
3
+ exports.ResourceBillingConfiguration = exports.BillingTransaction = exports.SetPayloadNodeDataSchema = exports.IfNodeDataSchema = exports.ButtonNodeDataSchema = exports.ResourceUsageAction = exports.AutoIntroductionTarget = exports.SupervisionMode = exports.ResourceType = exports.ResourceMaintenanceScheduleTimeIntervalConfig = exports.ResourceMaintenanceScheduleUsageCountConfig = exports.UsageDurationUnit = exports.ResourceMaintenanceScheduleUsageHoursConfig = exports.ResourceMaintenanceScheduleTriggerType = exports.ResourceMaintenanceScheduleDurationBasis = exports.ResourceMaintenanceSchedule = exports.MaintenanceRequestStatus = exports.ResourceMaintenanceRequest = exports.ResourceMaintenance = exports.AttractapFirmwareVersion = exports.WaitNodeDataSchema = exports.MqttSendMessageNodeDataSchema = exports.HttpRequestNodeDataSchema = exports.EventNodeDataSchema = exports.getNodeDataSchema = exports.ResourceFlowEdge = exports.ResourceFlowNodeType = exports.ResourceFlowNode = exports.EmailTemplateTranslation = exports.EmailTemplate = exports.AttractapCrashReport = exports.Attractap = exports.NFCCard = exports.Session = exports.User = exports.SSOProviderSAMLConfiguration = exports.SSOProviderOIDCConfiguration = exports.SSOProviderType = exports.SSOProvider = exports.ResourceUsage = exports.ResourceIntroducerType = exports.ResourceIntroducer = exports.IntroductionHistoryAction = exports.ResourceIntroductionHistoryItem = exports.ResourceIntroduction = exports.ResourceGroup = exports.Resource = exports.MqttServer = exports.AuthenticationDetail = exports.AuditLog = void 0;
4
+ exports.PushSubscription = exports.NotificationPreference = exports.MessageReferenceType = exports.Message = exports.ConversationParticipant = exports.Conversation = exports.PASSWORD_POLICY_ROLES = exports.PasswordPolicyRole = exports.PasswordPolicyOverride = exports.PasswordHistory = exports.PASSWORD_POLICY_SINGLETON_ID = exports.PasswordPolicy = exports.CompanionUsbDeviceNodeDataSchema = exports.CompanionForegroundAppNodeDataSchema = exports.CompanionIdleActiveNodeDataSchema = exports.CompanionLockNodeDataSchema = exports.VariableScopeSchema = exports.VariableChangedNodeDataSchema = exports.GetVariablesNodeDataSchema = exports.SetVariablesNodeDataSchema = exports.ResourceFlowVariableScope = exports.ResourceFlowVariable = exports.ResourceHealthSource = exports.ResourceHealthStatus = exports.ResourceHealthState = exports.HealthStateOptionEnum = exports.ResourceHealthSetNodeDataSchema = exports.ResourceHealthHeartbeatNodeDataSchema = exports.ResourceOperatingTransitionNodeDataSchema = exports.ResourceActivityTrackActivityNodeDataSchema = exports.InputResourceActivityNoActivityNodeDataSchema = exports.ResourceFormAction = exports.FormFieldType = exports.FormSubmission = exports.FormField = exports.Form = exports.ProjectInvitationStatus = exports.ProjectInvitation = exports.ProjectMemberRole = exports.ProjectMember = exports.Project = exports.ErrorNodeDataSchema = exports.ResourceUsageEndSessionNodeDataSchema = exports.getExternalEffectFailureBehavior = exports.MqttWaitForMessageNodeDataSchema = exports.MqttMessageReceivedNodeDataSchema = exports.BillingTransactionItemCreateSchema = exports.BillingTransactionItem = exports.BillingTransactionStatus = exports.Setting = void 0;
5
+ exports.entities = exports.ResourceUsageLifecycleAttempt = exports.ResourceOperatingInterval = exports.ApiTokenPermission = exports.ApiToken = exports.UserRoleSource = exports.UserRole = exports.RolePermission = exports.Role = exports.Permission = exports.EMAIL_LAYOUT_SINGLETON_ID = exports.EmailLayout = exports.CompanionDevice = exports.PasskeyChallenge = exports.Passkey = void 0;
6
6
  // Import entities
7
+ const audit_log_entity_1 = require("./entities/audit-log.entity");
8
+ Object.defineProperty(exports, "AuditLog", { enumerable: true, get: function () { return audit_log_entity_1.AuditLog; } });
7
9
  const email_template_entity_1 = require("./entities/email-template.entity");
8
10
  Object.defineProperty(exports, "EmailTemplate", { enumerable: true, get: function () { return email_template_entity_1.EmailTemplate; } });
9
11
  const email_template_translation_entity_1 = require("./entities/email-template-translation.entity");
@@ -67,6 +69,7 @@ Object.defineProperty(exports, "ResourceUsageEndSessionNodeDataSchema", { enumer
67
69
  Object.defineProperty(exports, "ErrorNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.ErrorNodeDataSchema; } });
68
70
  Object.defineProperty(exports, "InputResourceActivityNoActivityNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.InputResourceActivityNoActivityNodeDataSchema; } });
69
71
  Object.defineProperty(exports, "ResourceActivityTrackActivityNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.ResourceActivityTrackActivityNodeDataSchema; } });
72
+ Object.defineProperty(exports, "ResourceOperatingTransitionNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.ResourceOperatingTransitionNodeDataSchema; } });
70
73
  Object.defineProperty(exports, "ResourceHealthHeartbeatNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.ResourceHealthHeartbeatNodeDataSchema; } });
71
74
  Object.defineProperty(exports, "ResourceHealthSetNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.ResourceHealthSetNodeDataSchema; } });
72
75
  Object.defineProperty(exports, "HealthStateOptionEnum", { enumerable: true, get: function () { return resourceFlowNode_1.HealthStateOptionEnum; } });
@@ -78,15 +81,13 @@ Object.defineProperty(exports, "CompanionLockNodeDataSchema", { enumerable: true
78
81
  Object.defineProperty(exports, "CompanionIdleActiveNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.CompanionIdleActiveNodeDataSchema; } });
79
82
  Object.defineProperty(exports, "CompanionForegroundAppNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.CompanionForegroundAppNodeDataSchema; } });
80
83
  Object.defineProperty(exports, "CompanionUsbDeviceNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.CompanionUsbDeviceNodeDataSchema; } });
84
+ Object.defineProperty(exports, "getExternalEffectFailureBehavior", { enumerable: true, get: function () { return resourceFlowNode_1.getExternalEffectFailureBehavior; } });
81
85
  const resourceHealthState_entity_1 = require("./entities/resourceHealthState.entity");
82
86
  Object.defineProperty(exports, "ResourceHealthState", { enumerable: true, get: function () { return resourceHealthState_entity_1.ResourceHealthState; } });
83
87
  Object.defineProperty(exports, "ResourceHealthStatus", { enumerable: true, get: function () { return resourceHealthState_entity_1.ResourceHealthStatus; } });
84
88
  Object.defineProperty(exports, "ResourceHealthSource", { enumerable: true, get: function () { return resourceHealthState_entity_1.ResourceHealthSource; } });
85
89
  const resourceFlowEdge_1 = require("./entities/resourceFlowEdge");
86
90
  Object.defineProperty(exports, "ResourceFlowEdge", { enumerable: true, get: function () { return resourceFlowEdge_1.ResourceFlowEdge; } });
87
- const resourceFlowLog_1 = require("./entities/resourceFlowLog");
88
- Object.defineProperty(exports, "ResourceFlowLog", { enumerable: true, get: function () { return resourceFlowLog_1.ResourceFlowLog; } });
89
- Object.defineProperty(exports, "ResourceFlowLogType", { enumerable: true, get: function () { return resourceFlowLog_1.ResourceFlowLogType; } });
90
91
  const resource_maintenance_1 = require("./entities/resource.maintenance");
91
92
  Object.defineProperty(exports, "ResourceMaintenance", { enumerable: true, get: function () { return resource_maintenance_1.ResourceMaintenance; } });
92
93
  const resource_maintenance_request_entity_1 = require("./entities/resource-maintenance-request.entity");
@@ -94,6 +95,7 @@ Object.defineProperty(exports, "ResourceMaintenanceRequest", { enumerable: true,
94
95
  Object.defineProperty(exports, "MaintenanceRequestStatus", { enumerable: true, get: function () { return resource_maintenance_request_entity_1.MaintenanceRequestStatus; } });
95
96
  const resource_maintenance_schedule_entity_1 = require("./entities/resource-maintenance-schedule.entity");
96
97
  Object.defineProperty(exports, "ResourceMaintenanceSchedule", { enumerable: true, get: function () { return resource_maintenance_schedule_entity_1.ResourceMaintenanceSchedule; } });
98
+ Object.defineProperty(exports, "ResourceMaintenanceScheduleDurationBasis", { enumerable: true, get: function () { return resource_maintenance_schedule_entity_1.ResourceMaintenanceScheduleDurationBasis; } });
97
99
  Object.defineProperty(exports, "ResourceMaintenanceScheduleTriggerType", { enumerable: true, get: function () { return resource_maintenance_schedule_entity_1.ResourceMaintenanceScheduleTriggerType; } });
98
100
  const resource_maintenance_schedule_usage_hours_config_entity_1 = require("./entities/resource-maintenance-schedule-usage-hours-config.entity");
99
101
  Object.defineProperty(exports, "ResourceMaintenanceScheduleUsageHoursConfig", { enumerable: true, get: function () { return resource_maintenance_schedule_usage_hours_config_entity_1.ResourceMaintenanceScheduleUsageHoursConfig; } });
@@ -140,9 +142,6 @@ const password_policy_override_entity_1 = require("./entities/password-policy-ov
140
142
  Object.defineProperty(exports, "PasswordPolicyOverride", { enumerable: true, get: function () { return password_policy_override_entity_1.PasswordPolicyOverride; } });
141
143
  Object.defineProperty(exports, "PasswordPolicyRole", { enumerable: true, get: function () { return password_policy_override_entity_1.PasswordPolicyRole; } });
142
144
  Object.defineProperty(exports, "PASSWORD_POLICY_ROLES", { enumerable: true, get: function () { return password_policy_override_entity_1.PASSWORD_POLICY_ROLES; } });
143
- const password_policy_audit_entity_1 = require("./entities/password-policy-audit.entity");
144
- Object.defineProperty(exports, "PasswordPolicyAudit", { enumerable: true, get: function () { return password_policy_audit_entity_1.PasswordPolicyAudit; } });
145
- Object.defineProperty(exports, "PasswordPolicyAuditEvent", { enumerable: true, get: function () { return password_policy_audit_entity_1.PasswordPolicyAuditEvent; } });
146
145
  const conversation_entity_1 = require("./entities/conversation.entity");
147
146
  Object.defineProperty(exports, "Conversation", { enumerable: true, get: function () { return conversation_entity_1.Conversation; } });
148
147
  const conversation_participant_entity_1 = require("./entities/conversation-participant.entity");
@@ -154,6 +153,9 @@ const notification_preference_entity_1 = require("./entities/notification-prefer
154
153
  Object.defineProperty(exports, "NotificationPreference", { enumerable: true, get: function () { return notification_preference_entity_1.NotificationPreference; } });
155
154
  const push_subscription_entity_1 = require("./entities/push-subscription.entity");
156
155
  Object.defineProperty(exports, "PushSubscription", { enumerable: true, get: function () { return push_subscription_entity_1.PushSubscription; } });
156
+ const passkey_entity_1 = require("./entities/passkey.entity");
157
+ Object.defineProperty(exports, "Passkey", { enumerable: true, get: function () { return passkey_entity_1.Passkey; } });
158
+ Object.defineProperty(exports, "PasskeyChallenge", { enumerable: true, get: function () { return passkey_entity_1.PasskeyChallenge; } });
157
159
  const companion_device_entity_1 = require("./entities/companion-device.entity");
158
160
  Object.defineProperty(exports, "CompanionDevice", { enumerable: true, get: function () { return companion_device_entity_1.CompanionDevice; } });
159
161
  const email_layout_entity_1 = require("./entities/email-layout.entity");
@@ -168,8 +170,17 @@ Object.defineProperty(exports, "RolePermission", { enumerable: true, get: functi
168
170
  const user_role_entity_1 = require("./entities/user-role.entity");
169
171
  Object.defineProperty(exports, "UserRole", { enumerable: true, get: function () { return user_role_entity_1.UserRole; } });
170
172
  Object.defineProperty(exports, "UserRoleSource", { enumerable: true, get: function () { return user_role_entity_1.UserRoleSource; } });
173
+ const api_token_entity_1 = require("./entities/api-token.entity");
174
+ Object.defineProperty(exports, "ApiToken", { enumerable: true, get: function () { return api_token_entity_1.ApiToken; } });
175
+ const api_token_permission_entity_1 = require("./entities/api-token-permission.entity");
176
+ Object.defineProperty(exports, "ApiTokenPermission", { enumerable: true, get: function () { return api_token_permission_entity_1.ApiTokenPermission; } });
177
+ const resource_operating_interval_entity_1 = require("./entities/resource-operating-interval.entity");
178
+ Object.defineProperty(exports, "ResourceOperatingInterval", { enumerable: true, get: function () { return resource_operating_interval_entity_1.ResourceOperatingInterval; } });
179
+ const resource_usage_lifecycle_attempt_entity_1 = require("./entities/resource-usage-lifecycle-attempt.entity");
180
+ Object.defineProperty(exports, "ResourceUsageLifecycleAttempt", { enumerable: true, get: function () { return resource_usage_lifecycle_attempt_entity_1.ResourceUsageLifecycleAttempt; } });
171
181
  // Export the entities object
172
182
  exports.entities = {
183
+ AuditLog: audit_log_entity_1.AuditLog,
173
184
  User: user_entity_1.User,
174
185
  AuthenticationDetail: authenticationDetail_entity_1.AuthenticationDetail,
175
186
  Session: session_entity_1.Session,
@@ -190,7 +201,6 @@ exports.entities = {
190
201
  EmailTemplateTranslation: email_template_translation_entity_1.EmailTemplateTranslation,
191
202
  ResourceFlowNode: resourceFlowNode_1.ResourceFlowNode,
192
203
  ResourceFlowEdge: resourceFlowEdge_1.ResourceFlowEdge,
193
- ResourceFlowLog: resourceFlowLog_1.ResourceFlowLog,
194
204
  ResourceMaintenance: resource_maintenance_1.ResourceMaintenance,
195
205
  ResourceMaintenanceRequest: resource_maintenance_request_entity_1.ResourceMaintenanceRequest,
196
206
  ResourceMaintenanceSchedule: resource_maintenance_schedule_entity_1.ResourceMaintenanceSchedule,
@@ -212,16 +222,21 @@ exports.entities = {
212
222
  PasswordPolicy: password_policy_entity_1.PasswordPolicy,
213
223
  PasswordHistory: password_history_entity_1.PasswordHistory,
214
224
  PasswordPolicyOverride: password_policy_override_entity_1.PasswordPolicyOverride,
215
- PasswordPolicyAudit: password_policy_audit_entity_1.PasswordPolicyAudit,
216
225
  Conversation: conversation_entity_1.Conversation,
217
226
  ConversationParticipant: conversation_participant_entity_1.ConversationParticipant,
218
227
  Message: message_entity_1.Message,
219
228
  NotificationPreference: notification_preference_entity_1.NotificationPreference,
220
229
  PushSubscription: push_subscription_entity_1.PushSubscription,
230
+ Passkey: passkey_entity_1.Passkey,
231
+ PasskeyChallenge: passkey_entity_1.PasskeyChallenge,
221
232
  CompanionDevice: companion_device_entity_1.CompanionDevice,
222
233
  Permission: permission_entity_1.Permission,
223
234
  Role: role_entity_1.Role,
224
235
  RolePermission: role_permission_entity_1.RolePermission,
225
236
  UserRole: user_role_entity_1.UserRole,
237
+ ApiToken: api_token_entity_1.ApiToken,
238
+ ApiTokenPermission: api_token_permission_entity_1.ApiTokenPermission,
239
+ ResourceOperatingInterval: resource_operating_interval_entity_1.ResourceOperatingInterval,
240
+ ResourceUsageLifecycleAttempt: resource_usage_lifecycle_attempt_entity_1.ResourceUsageLifecycleAttempt,
226
241
  };
227
242
  //# sourceMappingURL=entities-index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"entities-index.js","sourceRoot":"","sources":["../../../../../libs/database-entities/src/lib/entities-index.ts"],"names":[],"mappings":";;;;;AAAA,kBAAkB;AAClB,4EAAiE;AAkI/D,8FAlIO,qCAAa,OAkIP;AAjIf,oGAAwF;AAkItF,yGAlIO,4DAAwB,OAkIP;AAjI1B,wFAA8E;AA6G5E,qGA7GO,kDAAoB,OA6GP;AA5GtB,oEAA0D;AA6GxD,2FA7GO,8BAAU,OA6GP;AA5GZ,8DAAoD;AA2HlD,wFA3HO,wBAAO,OA2HP;AA1HT,gEAAsD;AA4GpD,yFA5GO,0BAAQ,OA4GP;AA3GV,4DAAwD;AAkJtD,6FAlJO,4BAAY,OAkJP;AAjJd,0EAAgE;AA2G9D,8FA3GO,oCAAa,OA2GP;AA1Gf,wFAA8E;AA2G5E,qGA3GO,kDAAoB,OA2GP;AA1GtB,8GAG2D;AAwGzD,gHA1GA,wEAA+B,OA0GA;AAC/B,0GA1GA,kEAAyB,OA0GA;AAxG3B,oFAAkG;AAyGhG,mGAzGO,8CAAkB,OAyGP;AAClB,uGA1G2B,kDAAsB,OA0G3B;AAzGxB,0EAAgE;AA0G9D,8FA1GO,oCAAa,OA0GP;AAzGf,0EAA0F;AA0IxF,gGA1IO,sCAAe,OA0IP;AACf,uGA3IwB,6CAAsB,OA2IxB;AA1IxB,sEAA6E;AAyG3E,4FAzGO,gC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,OAAO,EAAP,wBAAO;IACP,gBAAgB,EAAhB,iCAAgB;IAChB,eAAe,EAAf,yCAAe;IACf,UAAU,EAAV,8BAAU;IACV,IAAI,EAAJ,kBAAI;IACJ,cAAc,EAAd,uCAAc;IACd,QAAQ,EAAR,2BAAQ;IACR,QAAQ,EAAR,2BAAQ;IACR,kBAAkB,EAAlB,gDAAkB;IAClB,yBAAyB,EAAzB,8DAAyB;IACzB,6BAA6B,EAA7B,uEAA6B;CAC9B,CAAC"}
@@ -1,19 +0,0 @@
1
- export declare enum PasswordPolicyAuditEvent {
2
- GLOBAL_POLICY_UPDATED = "global_policy_updated",
3
- OVERRIDE_UPSERTED = "override_upserted",
4
- OVERRIDE_DELETED = "override_deleted"
5
- }
6
- export declare class PasswordPolicyAudit {
7
- id: number;
8
- at: Date;
9
- event: PasswordPolicyAuditEvent;
10
- actorId: number | null;
11
- actorUsername: string | null;
12
- ip: string | null;
13
- userAgent: string | null;
14
- requestId: string | null;
15
- role: string | null;
16
- before: string | null;
17
- after: string | null;
18
- changedFields: string | null;
19
- }
@@ -1,83 +0,0 @@
1
- "use strict";
2
- // Append-only audit log for password policy admin mutations (global PATCH + per-role override CRUD)
3
- // FEATURE: Password policy admin audit trail (DB-backed, queryable, retains actor + before/after diff)
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.PasswordPolicyAudit = exports.PasswordPolicyAuditEvent = void 0;
6
- const tslib_1 = require("tslib");
7
- const typeorm_1 = require("typeorm");
8
- const swagger_1 = require("@nestjs/swagger");
9
- var PasswordPolicyAuditEvent;
10
- (function (PasswordPolicyAuditEvent) {
11
- PasswordPolicyAuditEvent["GLOBAL_POLICY_UPDATED"] = "global_policy_updated";
12
- PasswordPolicyAuditEvent["OVERRIDE_UPSERTED"] = "override_upserted";
13
- PasswordPolicyAuditEvent["OVERRIDE_DELETED"] = "override_deleted";
14
- })(PasswordPolicyAuditEvent || (exports.PasswordPolicyAuditEvent = PasswordPolicyAuditEvent = {}));
15
- let PasswordPolicyAudit = class PasswordPolicyAudit {
16
- };
17
- exports.PasswordPolicyAudit = PasswordPolicyAudit;
18
- tslib_1.__decorate([
19
- (0, typeorm_1.PrimaryGeneratedColumn)(),
20
- (0, swagger_1.ApiProperty)({ description: 'Auto-incremented audit row id', example: 42 }),
21
- tslib_1.__metadata("design:type", Number)
22
- ], PasswordPolicyAudit.prototype, "id", void 0);
23
- tslib_1.__decorate([
24
- (0, typeorm_1.Index)(),
25
- (0, typeorm_1.CreateDateColumn)(),
26
- (0, swagger_1.ApiProperty)({ description: 'When the audited mutation happened' }),
27
- tslib_1.__metadata("design:type", Date)
28
- ], PasswordPolicyAudit.prototype, "at", void 0);
29
- tslib_1.__decorate([
30
- (0, typeorm_1.Column)({ type: 'varchar', length: 64 }),
31
- (0, swagger_1.ApiProperty)({ description: 'Which mutation was performed', enum: PasswordPolicyAuditEvent, enumName: 'PasswordPolicyAuditEvent' }),
32
- tslib_1.__metadata("design:type", String)
33
- ], PasswordPolicyAudit.prototype, "event", void 0);
34
- tslib_1.__decorate([
35
- (0, typeorm_1.Index)(),
36
- (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
37
- (0, swagger_1.ApiProperty)({ description: 'User id of the admin who performed the change', nullable: true, example: 1 }),
38
- tslib_1.__metadata("design:type", Number)
39
- ], PasswordPolicyAudit.prototype, "actorId", void 0);
40
- tslib_1.__decorate([
41
- (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
42
- (0, swagger_1.ApiProperty)({ description: 'Username snapshot at the time of the change', nullable: true, example: 'root' }),
43
- tslib_1.__metadata("design:type", String)
44
- ], PasswordPolicyAudit.prototype, "actorUsername", void 0);
45
- tslib_1.__decorate([
46
- (0, typeorm_1.Column)({ type: 'varchar', length: 45, nullable: true }),
47
- (0, swagger_1.ApiProperty)({ description: 'Source IP address of the admin request', nullable: true, example: '203.0.113.4' }),
48
- tslib_1.__metadata("design:type", String)
49
- ], PasswordPolicyAudit.prototype, "ip", void 0);
50
- tslib_1.__decorate([
51
- (0, typeorm_1.Column)({ type: 'varchar', length: 512, nullable: true }),
52
- (0, swagger_1.ApiProperty)({ description: 'User-agent of the admin request', nullable: true }),
53
- tslib_1.__metadata("design:type", String)
54
- ], PasswordPolicyAudit.prototype, "userAgent", void 0);
55
- tslib_1.__decorate([
56
- (0, typeorm_1.Column)({ type: 'varchar', length: 128, nullable: true }),
57
- (0, swagger_1.ApiProperty)({ description: 'Optional request id for tracing', nullable: true }),
58
- tslib_1.__metadata("design:type", String)
59
- ], PasswordPolicyAudit.prototype, "requestId", void 0);
60
- tslib_1.__decorate([
61
- (0, typeorm_1.Column)({ type: 'varchar', length: 64, nullable: true }),
62
- (0, swagger_1.ApiProperty)({ description: 'Role the change applied to (only set for override events)', nullable: true }),
63
- tslib_1.__metadata("design:type", String)
64
- ], PasswordPolicyAudit.prototype, "role", void 0);
65
- tslib_1.__decorate([
66
- (0, typeorm_1.Column)({ type: 'text', nullable: true }),
67
- (0, swagger_1.ApiProperty)({ description: 'JSON-encoded snapshot of the row before the change', nullable: true }),
68
- tslib_1.__metadata("design:type", String)
69
- ], PasswordPolicyAudit.prototype, "before", void 0);
70
- tslib_1.__decorate([
71
- (0, typeorm_1.Column)({ type: 'text', nullable: true }),
72
- (0, swagger_1.ApiProperty)({ description: 'JSON-encoded snapshot of the row after the change', nullable: true }),
73
- tslib_1.__metadata("design:type", String)
74
- ], PasswordPolicyAudit.prototype, "after", void 0);
75
- tslib_1.__decorate([
76
- (0, typeorm_1.Column)({ type: 'text', nullable: true }),
77
- (0, swagger_1.ApiProperty)({ description: 'JSON array of field names that changed', nullable: true }),
78
- tslib_1.__metadata("design:type", String)
79
- ], PasswordPolicyAudit.prototype, "changedFields", void 0);
80
- exports.PasswordPolicyAudit = PasswordPolicyAudit = tslib_1.__decorate([
81
- (0, typeorm_1.Entity)()
82
- ], PasswordPolicyAudit);
83
- //# sourceMappingURL=password-policy-audit.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"password-policy-aud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EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACxC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,mDAAmD,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAC5E;AAItB;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACxC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,wCAAwC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACzD;8BAjDnB,mBAAmB;IAD/B,IAAA,gBAAM,GAAE;GACI,mBAAmB,CAkD/B"}
@@ -1,18 +0,0 @@
1
- import { Resource } from './resource.entity';
2
- export declare enum ResourceFlowLogType {
3
- FLOW_START = "flow.start",
4
- NODE_PROCESSING_STARTED = "node.processing.started",
5
- NODE_PROCESSING_FAILED = "node.processing.failed",
6
- NODE_PROCESSING_COMPLETED = "node.processing.completed",
7
- FLOW_COMPLETED = "flow.completed"
8
- }
9
- export declare class ResourceFlowLog {
10
- id: number;
11
- nodeId: string | null;
12
- flowRunId: string;
13
- type: ResourceFlowLogType;
14
- payload?: string;
15
- createdAt: Date;
16
- resourceId: number;
17
- resource: Resource;
18
- }
@@ -1,96 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResourceFlowLog = exports.ResourceFlowLogType = void 0;
4
- const tslib_1 = require("tslib");
5
- const typeorm_1 = require("typeorm");
6
- const swagger_1 = require("@nestjs/swagger");
7
- const resource_entity_1 = require("./resource.entity");
8
- var ResourceFlowLogType;
9
- (function (ResourceFlowLogType) {
10
- ResourceFlowLogType["FLOW_START"] = "flow.start";
11
- ResourceFlowLogType["NODE_PROCESSING_STARTED"] = "node.processing.started";
12
- ResourceFlowLogType["NODE_PROCESSING_FAILED"] = "node.processing.failed";
13
- ResourceFlowLogType["NODE_PROCESSING_COMPLETED"] = "node.processing.completed";
14
- ResourceFlowLogType["FLOW_COMPLETED"] = "flow.completed";
15
- })(ResourceFlowLogType || (exports.ResourceFlowLogType = ResourceFlowLogType = {}));
16
- let ResourceFlowLog = class ResourceFlowLog {
17
- };
18
- exports.ResourceFlowLog = ResourceFlowLog;
19
- tslib_1.__decorate([
20
- (0, typeorm_1.PrimaryGeneratedColumn)(),
21
- (0, swagger_1.ApiProperty)({
22
- description: 'The unique identifier of the resource flow log',
23
- example: 42,
24
- }),
25
- tslib_1.__metadata("design:type", Number)
26
- ], ResourceFlowLog.prototype, "id", void 0);
27
- tslib_1.__decorate([
28
- (0, typeorm_1.Column)({ type: 'text', nullable: true }),
29
- (0, swagger_1.ApiProperty)({
30
- description: 'The node id of the node that generated the log',
31
- example: 'TGVgqDzCKXKVr-XGUD5V3',
32
- nullable: true,
33
- }),
34
- tslib_1.__metadata("design:type", String)
35
- ], ResourceFlowLog.prototype, "nodeId", void 0);
36
- tslib_1.__decorate([
37
- (0, typeorm_1.Column)({ type: 'text', nullable: false }),
38
- (0, swagger_1.ApiProperty)({
39
- description: 'The run/execution id of the flow that generated the log',
40
- example: '123e4567-e89b-12d3-a456-426614174000',
41
- required: true,
42
- }),
43
- tslib_1.__metadata("design:type", String)
44
- ], ResourceFlowLog.prototype, "flowRunId", void 0);
45
- tslib_1.__decorate([
46
- (0, typeorm_1.Column)({
47
- type: 'varchar',
48
- enum: ResourceFlowLogType,
49
- }),
50
- (0, swagger_1.ApiProperty)({
51
- description: 'The type of the log entry',
52
- enum: ResourceFlowLogType,
53
- example: ResourceFlowLogType.NODE_PROCESSING_STARTED,
54
- enumName: 'ResourceFlowLogType',
55
- }),
56
- tslib_1.__metadata("design:type", String)
57
- ], ResourceFlowLog.prototype, "type", void 0);
58
- tslib_1.__decorate([
59
- (0, typeorm_1.Column)({ type: 'text', nullable: true }),
60
- (0, swagger_1.ApiProperty)({
61
- description: 'Optional payload for additional user information',
62
- example: 'Processing took longer than expected due to network latency',
63
- required: false,
64
- }),
65
- tslib_1.__metadata("design:type", String)
66
- ], ResourceFlowLog.prototype, "payload", void 0);
67
- tslib_1.__decorate([
68
- (0, typeorm_1.CreateDateColumn)(),
69
- (0, swagger_1.ApiProperty)({
70
- description: 'When the node was created',
71
- }),
72
- tslib_1.__metadata("design:type", Date)
73
- ], ResourceFlowLog.prototype, "createdAt", void 0);
74
- tslib_1.__decorate([
75
- (0, typeorm_1.Column)({ type: 'integer' }),
76
- (0, swagger_1.ApiProperty)({
77
- description: 'The id of the resource that this log belongs to',
78
- example: 1,
79
- }),
80
- tslib_1.__metadata("design:type", Number)
81
- ], ResourceFlowLog.prototype, "resourceId", void 0);
82
- tslib_1.__decorate([
83
- (0, typeorm_1.ManyToOne)(() => resource_entity_1.Resource, (resource) => resource.flowLogs, { onDelete: 'CASCADE' }),
84
- (0, typeorm_1.JoinColumn)({ name: 'resourceId' }),
85
- (0, swagger_1.ApiProperty)({
86
- description: 'The resource being this log belongs to',
87
- type: () => resource_entity_1.Resource,
88
- required: false,
89
- }),
90
- tslib_1.__metadata("design:type", resource_entity_1.Resource)
91
- ], ResourceFlowLog.prototype, "resource", void 0);
92
- exports.ResourceFlowLog = ResourceFlowLog = tslib_1.__decorate([
93
- (0, typeorm_1.Entity)(),
94
- (0, typeorm_1.Index)('IDX_resource_flow_log_resource_created', ['resourceId', 'createdAt'])
95
- ], ResourceFlowLog);
96
- //# sourceMappingURL=resourceFlowLog.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resourceFlowLog.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/resourceFlowLog.ts"],"names":[],"mappings":";;;;AAAA,qCAAiH;AACjH,6CAA8C;AAC9C,uDAA6C;AAE7C,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,gDAAyB,CAAA;IACzB,0EAAmD,CAAA;IACnD,wEAAiD,CAAA;IACjD,8EAAuD,CAAA;IACvD,wDAAiC,CAAA;AACnC,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;AAIM,IAAM,eAAe,G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