@attraccess/database-entities 0.0.15 → 1.1.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 (86) hide show
  1. package/package.json +3 -4
  2. package/src/index.d.ts +2 -0
  3. package/src/index.js +4 -0
  4. package/src/index.js.map +1 -1
  5. package/src/lib/entities/attractap.entity.d.ts +15 -0
  6. package/src/lib/entities/attractap.entity.js +87 -0
  7. package/src/lib/entities/attractap.entity.js.map +1 -0
  8. package/src/lib/entities/billing-transaction-item.entity.d.ts +11 -0
  9. package/src/lib/entities/billing-transaction-item.entity.js +65 -0
  10. package/src/lib/entities/billing-transaction-item.entity.js.map +1 -0
  11. package/src/lib/entities/billing-transaction.entity.d.ts +25 -0
  12. package/src/lib/entities/billing-transaction.entity.js +121 -0
  13. package/src/lib/entities/billing-transaction.entity.js.map +1 -0
  14. package/src/lib/entities/email-template.entity.d.ts +15 -0
  15. package/src/lib/entities/email-template.entity.js +61 -0
  16. package/src/lib/entities/email-template.entity.js.map +1 -0
  17. package/src/lib/entities/mqttServer.entity.d.ts +0 -2
  18. package/src/lib/entities/mqttServer.entity.js +0 -5
  19. package/src/lib/entities/mqttServer.entity.js.map +1 -1
  20. package/src/lib/entities/nfcCard.entity.d.ts +15 -0
  21. package/src/lib/entities/nfcCard.entity.js +76 -0
  22. package/src/lib/entities/nfcCard.entity.js.map +1 -0
  23. package/src/lib/entities/resource-billing-configuration.entity.d.ts +10 -0
  24. package/src/lib/entities/resource-billing-configuration.entity.js +52 -0
  25. package/src/lib/entities/resource-billing-configuration.entity.js.map +1 -0
  26. package/src/lib/entities/resource.entity.d.ts +23 -10
  27. package/src/lib/entities/resource.entity.js +96 -34
  28. package/src/lib/entities/resource.entity.js.map +1 -1
  29. package/src/lib/entities/resource.maintenance.d.ts +11 -0
  30. package/src/lib/entities/resource.maintenance.js +78 -0
  31. package/src/lib/entities/resource.maintenance.js.map +1 -0
  32. package/src/lib/entities/resource.type.d.ts +4 -0
  33. package/src/lib/entities/resource.type.js +9 -0
  34. package/src/lib/entities/resource.type.js.map +1 -0
  35. package/src/lib/entities/resourceFlowEdge.d.ts +12 -0
  36. package/src/lib/entities/resourceFlowEdge.js +86 -0
  37. package/src/lib/entities/resourceFlowEdge.js.map +1 -0
  38. package/src/lib/entities/resourceFlowLog.d.ts +18 -0
  39. package/src/lib/entities/resourceFlowLog.js +94 -0
  40. package/src/lib/entities/resourceFlowLog.js.map +1 -0
  41. package/src/lib/entities/resourceFlowNode.d.ts +142 -0
  42. package/src/lib/entities/resourceFlowNode.js +226 -0
  43. package/src/lib/entities/resourceFlowNode.js.map +1 -0
  44. package/src/lib/entities/resourceGroup.entity.d.ts +2 -2
  45. package/src/lib/entities/resourceGroup.entity.js +3 -3
  46. package/src/lib/entities/resourceGroup.entity.js.map +1 -1
  47. package/src/lib/entities/{resourceIntroductionUser.entity.d.ts → resourceIntroducer.entity.d.ts} +5 -4
  48. package/src/lib/entities/{resourceIntroductionUser.entity.js → resourceIntroducer.entity.js} +27 -17
  49. package/src/lib/entities/resourceIntroducer.entity.js.map +1 -0
  50. package/src/lib/entities/resourceIntroduction.entity.d.ts +2 -1
  51. package/src/lib/entities/resourceIntroduction.entity.js +14 -4
  52. package/src/lib/entities/resourceIntroduction.entity.js.map +1 -1
  53. package/src/lib/entities/resourceIntroductionHistoryItem.entity.d.ts +1 -1
  54. package/src/lib/entities/resourceIntroductionHistoryItem.entity.js +3 -3
  55. package/src/lib/entities/resourceIntroductionHistoryItem.entity.js.map +1 -1
  56. package/src/lib/entities/resourceUsage.entity.d.ts +4 -0
  57. package/src/lib/entities/resourceUsage.entity.js +24 -2
  58. package/src/lib/entities/resourceUsage.entity.js.map +1 -1
  59. package/src/lib/entities/resourceUsage.type.d.ts +6 -0
  60. package/src/lib/entities/resourceUsage.type.js +11 -0
  61. package/src/lib/entities/resourceUsage.type.js.map +1 -0
  62. package/src/lib/entities/revokedToken.entity.d.ts +0 -5
  63. package/src/lib/entities/revokedToken.entity.js +1 -29
  64. package/src/lib/entities/revokedToken.entity.js.map +1 -1
  65. package/src/lib/entities/session.entity.d.ts +12 -0
  66. package/src/lib/entities/session.entity.js +91 -0
  67. package/src/lib/entities/session.entity.js.map +1 -0
  68. package/src/lib/entities/setting.entity.d.ts +8 -0
  69. package/src/lib/entities/setting.entity.js +56 -0
  70. package/src/lib/entities/setting.entity.js.map +1 -0
  71. package/src/lib/entities/user.entity.d.ts +17 -4
  72. package/src/lib/entities/user.entity.js +79 -8
  73. package/src/lib/entities/user.entity.js.map +1 -1
  74. package/src/lib/entities-index.d.ts +30 -9
  75. package/src/lib/entities-index.js +58 -12
  76. package/src/lib/entities-index.js.map +1 -1
  77. package/src/lib/types/documentationType.enum.d.ts +7 -0
  78. package/src/lib/types/documentationType.enum.js +12 -0
  79. package/src/lib/types/documentationType.enum.js.map +1 -0
  80. package/src/lib/entities/mqttResourceConfig.entity.d.ts +0 -15
  81. package/src/lib/entities/mqttResourceConfig.entity.js +0 -95
  82. package/src/lib/entities/mqttResourceConfig.entity.js.map +0 -1
  83. package/src/lib/entities/resourceIntroductionUser.entity.js.map +0 -1
  84. package/src/lib/entities/webhookConfig.entity.d.ts +0 -20
  85. package/src/lib/entities/webhookConfig.entity.js +0 -148
  86. package/src/lib/entities/webhookConfig.entity.js.map +0 -1
@@ -1,32 +1,53 @@
1
+ import { EmailTemplate } from './entities/email-template.entity';
1
2
  import { AuthenticationDetail } from './entities/authenticationDetail.entity';
2
- import { MqttResourceConfig } from './entities/mqttResourceConfig.entity';
3
3
  import { MqttServer } from './entities/mqttServer.entity';
4
- import { Resource, ResourceComputedView } from './entities/resource.entity';
4
+ import { NFCCard } from './entities/nfcCard.entity';
5
+ import { Resource } from './entities/resource.entity';
6
+ import { ResourceType } from './entities/resource.type';
5
7
  import { ResourceGroup } from './entities/resourceGroup.entity';
6
8
  import { ResourceIntroduction } from './entities/resourceIntroduction.entity';
7
9
  import { ResourceIntroductionHistoryItem, IntroductionHistoryAction } from './entities/resourceIntroductionHistoryItem.entity';
8
- import { ResourceIntroductionUser } from './entities/resourceIntroductionUser.entity';
10
+ import { ResourceIntroducer } from './entities/resourceIntroducer.entity';
9
11
  import { ResourceUsage } from './entities/resourceUsage.entity';
10
12
  import { RevokedToken } from './entities/revokedToken.entity';
11
13
  import { SSOProvider, SSOProviderType } from './entities/ssoProvider.entity';
12
14
  import { SSOProviderOIDCConfiguration } from './entities/ssoProvider.oidc';
13
15
  import { User, SystemPermissions, type SystemPermission } from './entities/user.entity';
14
- import { WebhookConfig } from './entities/webhookConfig.entity';
15
- export { AuthenticationDetail, MqttResourceConfig, MqttServer, Resource, ResourceComputedView, ResourceGroup, ResourceIntroduction, ResourceIntroductionHistoryItem, IntroductionHistoryAction, ResourceIntroductionUser, ResourceUsage, RevokedToken, SSOProvider, SSOProviderType, SSOProviderOIDCConfiguration, User, SystemPermissions, SystemPermission, WebhookConfig, };
16
+ import { Session } from './entities/session.entity';
17
+ import { Attractap, AttractapFirmwareVersion } from './entities/attractap.entity';
18
+ import { ResourceFlowNode, ResourceFlowNodeType, getNodeDataSchema, NodeWithoutDataSchema, HttpRequestNodeDataSchema, MqttSendMessageNodeDataSchema, WaitNodeDataSchema, ButtonNodeDataSchema, IfNodeDataSchema, BillingTransactionItemCreateSchema, SetPayloadNodeDataSchema, MqttMessageReceivedNodeDataSchema } from './entities/resourceFlowNode';
19
+ import { ResourceFlowEdge } from './entities/resourceFlowEdge';
20
+ import { ResourceFlowLog, ResourceFlowLogType } from './entities/resourceFlowLog';
21
+ import { ResourceMaintenance } from './entities/resource.maintenance';
22
+ import { ResourceUsageAction } from './entities/resourceUsage.type';
23
+ import { BillingTransaction, BillingTransactionStatus } from './entities/billing-transaction.entity';
24
+ import { ResourceBillingConfiguration } from './entities/resource-billing-configuration.entity';
25
+ import { Setting } from './entities/setting.entity';
26
+ import { BillingTransactionItem } from './entities/billing-transaction-item.entity';
27
+ export { AuthenticationDetail, MqttServer, Resource, ResourceGroup, ResourceIntroduction, ResourceIntroductionHistoryItem, IntroductionHistoryAction, ResourceIntroducer, ResourceUsage, RevokedToken, SSOProvider, SSOProviderType, SSOProviderOIDCConfiguration, User, SystemPermissions, SystemPermission, Session, NFCCard, Attractap, EmailTemplate, ResourceFlowNode, ResourceFlowNodeType, ResourceFlowEdge, getNodeDataSchema, NodeWithoutDataSchema as EventNodeDataSchema, HttpRequestNodeDataSchema, MqttSendMessageNodeDataSchema, WaitNodeDataSchema, ResourceFlowLog, ResourceFlowLogType, AttractapFirmwareVersion, ResourceMaintenance, ResourceType, ResourceUsageAction, ButtonNodeDataSchema, IfNodeDataSchema, SetPayloadNodeDataSchema, BillingTransaction, ResourceBillingConfiguration, Setting, BillingTransactionStatus, BillingTransactionItem, BillingTransactionItemCreateSchema, MqttMessageReceivedNodeDataSchema, };
16
28
  export declare const entities: {
17
29
  User: typeof User;
18
30
  AuthenticationDetail: typeof AuthenticationDetail;
19
31
  RevokedToken: typeof RevokedToken;
32
+ Session: typeof Session;
20
33
  Resource: typeof Resource;
21
- ResourceComputedView: typeof ResourceComputedView;
22
34
  ResourceGroup: typeof ResourceGroup;
23
35
  ResourceUsage: typeof ResourceUsage;
24
36
  ResourceIntroduction: typeof ResourceIntroduction;
25
- ResourceIntroductionUser: typeof ResourceIntroductionUser;
37
+ ResourceIntroducer: typeof ResourceIntroducer;
26
38
  ResourceIntroductionHistoryItem: typeof ResourceIntroductionHistoryItem;
27
39
  MqttServer: typeof MqttServer;
28
- MqttResourceConfig: typeof MqttResourceConfig;
29
- WebhookConfig: typeof WebhookConfig;
30
40
  SSOProvider: typeof SSOProvider;
31
41
  SSOProviderOIDCConfiguration: typeof SSOProviderOIDCConfiguration;
42
+ NFCCard: typeof NFCCard;
43
+ Attractap: typeof Attractap;
44
+ EmailTemplate: typeof EmailTemplate;
45
+ ResourceFlowNode: typeof ResourceFlowNode;
46
+ ResourceFlowEdge: typeof ResourceFlowEdge;
47
+ ResourceFlowLog: typeof ResourceFlowLog;
48
+ ResourceMaintenance: typeof ResourceMaintenance;
49
+ BillingTransaction: typeof BillingTransaction;
50
+ ResourceBillingConfiguration: typeof ResourceBillingConfiguration;
51
+ Setting: typeof Setting;
52
+ BillingTransactionItem: typeof BillingTransactionItem;
32
53
  };
@@ -1,16 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.entities = exports.WebhookConfig = exports.SystemPermissions = exports.User = exports.SSOProviderOIDCConfiguration = exports.SSOProviderType = exports.SSOProvider = exports.RevokedToken = exports.ResourceUsage = exports.ResourceIntroductionUser = exports.IntroductionHistoryAction = exports.ResourceIntroductionHistoryItem = exports.ResourceIntroduction = exports.ResourceGroup = exports.ResourceComputedView = exports.Resource = exports.MqttServer = exports.MqttResourceConfig = exports.AuthenticationDetail = void 0;
3
+ exports.entities = exports.MqttMessageReceivedNodeDataSchema = exports.BillingTransactionItemCreateSchema = exports.BillingTransactionItem = exports.BillingTransactionStatus = exports.Setting = exports.ResourceBillingConfiguration = exports.BillingTransaction = exports.SetPayloadNodeDataSchema = exports.IfNodeDataSchema = exports.ButtonNodeDataSchema = exports.ResourceUsageAction = exports.ResourceType = 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.EmailTemplate = exports.Attractap = exports.NFCCard = exports.Session = exports.SystemPermissions = exports.User = exports.SSOProviderOIDCConfiguration = exports.SSOProviderType = exports.SSOProvider = exports.RevokedToken = exports.ResourceUsage = exports.ResourceIntroducer = exports.IntroductionHistoryAction = exports.ResourceIntroductionHistoryItem = exports.ResourceIntroduction = exports.ResourceGroup = exports.Resource = exports.MqttServer = exports.AuthenticationDetail = void 0;
4
4
  // Import entities
5
+ const email_template_entity_1 = require("./entities/email-template.entity");
6
+ Object.defineProperty(exports, "EmailTemplate", { enumerable: true, get: function () { return email_template_entity_1.EmailTemplate; } });
5
7
  const authenticationDetail_entity_1 = require("./entities/authenticationDetail.entity");
6
8
  Object.defineProperty(exports, "AuthenticationDetail", { enumerable: true, get: function () { return authenticationDetail_entity_1.AuthenticationDetail; } });
7
- const mqttResourceConfig_entity_1 = require("./entities/mqttResourceConfig.entity");
8
- Object.defineProperty(exports, "MqttResourceConfig", { enumerable: true, get: function () { return mqttResourceConfig_entity_1.MqttResourceConfig; } });
9
9
  const mqttServer_entity_1 = require("./entities/mqttServer.entity");
10
10
  Object.defineProperty(exports, "MqttServer", { enumerable: true, get: function () { return mqttServer_entity_1.MqttServer; } });
11
+ const nfcCard_entity_1 = require("./entities/nfcCard.entity");
12
+ Object.defineProperty(exports, "NFCCard", { enumerable: true, get: function () { return nfcCard_entity_1.NFCCard; } });
11
13
  const resource_entity_1 = require("./entities/resource.entity");
12
14
  Object.defineProperty(exports, "Resource", { enumerable: true, get: function () { return resource_entity_1.Resource; } });
13
- Object.defineProperty(exports, "ResourceComputedView", { enumerable: true, get: function () { return resource_entity_1.ResourceComputedView; } });
15
+ const resource_type_1 = require("./entities/resource.type");
16
+ Object.defineProperty(exports, "ResourceType", { enumerable: true, get: function () { return resource_type_1.ResourceType; } });
14
17
  const resourceGroup_entity_1 = require("./entities/resourceGroup.entity");
15
18
  Object.defineProperty(exports, "ResourceGroup", { enumerable: true, get: function () { return resourceGroup_entity_1.ResourceGroup; } });
16
19
  const resourceIntroduction_entity_1 = require("./entities/resourceIntroduction.entity");
@@ -18,8 +21,8 @@ Object.defineProperty(exports, "ResourceIntroduction", { enumerable: true, get:
18
21
  const resourceIntroductionHistoryItem_entity_1 = require("./entities/resourceIntroductionHistoryItem.entity");
19
22
  Object.defineProperty(exports, "ResourceIntroductionHistoryItem", { enumerable: true, get: function () { return resourceIntroductionHistoryItem_entity_1.ResourceIntroductionHistoryItem; } });
20
23
  Object.defineProperty(exports, "IntroductionHistoryAction", { enumerable: true, get: function () { return resourceIntroductionHistoryItem_entity_1.IntroductionHistoryAction; } });
21
- const resourceIntroductionUser_entity_1 = require("./entities/resourceIntroductionUser.entity");
22
- Object.defineProperty(exports, "ResourceIntroductionUser", { enumerable: true, get: function () { return resourceIntroductionUser_entity_1.ResourceIntroductionUser; } });
24
+ const resourceIntroducer_entity_1 = require("./entities/resourceIntroducer.entity");
25
+ Object.defineProperty(exports, "ResourceIntroducer", { enumerable: true, get: function () { return resourceIntroducer_entity_1.ResourceIntroducer; } });
23
26
  const resourceUsage_entity_1 = require("./entities/resourceUsage.entity");
24
27
  Object.defineProperty(exports, "ResourceUsage", { enumerable: true, get: function () { return resourceUsage_entity_1.ResourceUsage; } });
25
28
  const revokedToken_entity_1 = require("./entities/revokedToken.entity");
@@ -32,24 +35,67 @@ Object.defineProperty(exports, "SSOProviderOIDCConfiguration", { enumerable: tru
32
35
  const user_entity_1 = require("./entities/user.entity");
33
36
  Object.defineProperty(exports, "User", { enumerable: true, get: function () { return user_entity_1.User; } });
34
37
  Object.defineProperty(exports, "SystemPermissions", { enumerable: true, get: function () { return user_entity_1.SystemPermissions; } });
35
- const webhookConfig_entity_1 = require("./entities/webhookConfig.entity");
36
- Object.defineProperty(exports, "WebhookConfig", { enumerable: true, get: function () { return webhookConfig_entity_1.WebhookConfig; } });
38
+ const session_entity_1 = require("./entities/session.entity");
39
+ Object.defineProperty(exports, "Session", { enumerable: true, get: function () { return session_entity_1.Session; } });
40
+ const attractap_entity_1 = require("./entities/attractap.entity");
41
+ Object.defineProperty(exports, "Attractap", { enumerable: true, get: function () { return attractap_entity_1.Attractap; } });
42
+ Object.defineProperty(exports, "AttractapFirmwareVersion", { enumerable: true, get: function () { return attractap_entity_1.AttractapFirmwareVersion; } });
43
+ const resourceFlowNode_1 = require("./entities/resourceFlowNode");
44
+ Object.defineProperty(exports, "ResourceFlowNode", { enumerable: true, get: function () { return resourceFlowNode_1.ResourceFlowNode; } });
45
+ Object.defineProperty(exports, "ResourceFlowNodeType", { enumerable: true, get: function () { return resourceFlowNode_1.ResourceFlowNodeType; } });
46
+ Object.defineProperty(exports, "getNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.getNodeDataSchema; } });
47
+ Object.defineProperty(exports, "EventNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.NodeWithoutDataSchema; } });
48
+ Object.defineProperty(exports, "HttpRequestNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.HttpRequestNodeDataSchema; } });
49
+ Object.defineProperty(exports, "MqttSendMessageNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.MqttSendMessageNodeDataSchema; } });
50
+ Object.defineProperty(exports, "WaitNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.WaitNodeDataSchema; } });
51
+ Object.defineProperty(exports, "ButtonNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.ButtonNodeDataSchema; } });
52
+ Object.defineProperty(exports, "IfNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.IfNodeDataSchema; } });
53
+ Object.defineProperty(exports, "BillingTransactionItemCreateSchema", { enumerable: true, get: function () { return resourceFlowNode_1.BillingTransactionItemCreateSchema; } });
54
+ Object.defineProperty(exports, "SetPayloadNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.SetPayloadNodeDataSchema; } });
55
+ Object.defineProperty(exports, "MqttMessageReceivedNodeDataSchema", { enumerable: true, get: function () { return resourceFlowNode_1.MqttMessageReceivedNodeDataSchema; } });
56
+ const resourceFlowEdge_1 = require("./entities/resourceFlowEdge");
57
+ Object.defineProperty(exports, "ResourceFlowEdge", { enumerable: true, get: function () { return resourceFlowEdge_1.ResourceFlowEdge; } });
58
+ const resourceFlowLog_1 = require("./entities/resourceFlowLog");
59
+ Object.defineProperty(exports, "ResourceFlowLog", { enumerable: true, get: function () { return resourceFlowLog_1.ResourceFlowLog; } });
60
+ Object.defineProperty(exports, "ResourceFlowLogType", { enumerable: true, get: function () { return resourceFlowLog_1.ResourceFlowLogType; } });
61
+ const resource_maintenance_1 = require("./entities/resource.maintenance");
62
+ Object.defineProperty(exports, "ResourceMaintenance", { enumerable: true, get: function () { return resource_maintenance_1.ResourceMaintenance; } });
63
+ const resourceUsage_type_1 = require("./entities/resourceUsage.type");
64
+ Object.defineProperty(exports, "ResourceUsageAction", { enumerable: true, get: function () { return resourceUsage_type_1.ResourceUsageAction; } });
65
+ const billing_transaction_entity_1 = require("./entities/billing-transaction.entity");
66
+ Object.defineProperty(exports, "BillingTransaction", { enumerable: true, get: function () { return billing_transaction_entity_1.BillingTransaction; } });
67
+ Object.defineProperty(exports, "BillingTransactionStatus", { enumerable: true, get: function () { return billing_transaction_entity_1.BillingTransactionStatus; } });
68
+ const resource_billing_configuration_entity_1 = require("./entities/resource-billing-configuration.entity");
69
+ Object.defineProperty(exports, "ResourceBillingConfiguration", { enumerable: true, get: function () { return resource_billing_configuration_entity_1.ResourceBillingConfiguration; } });
70
+ const setting_entity_1 = require("./entities/setting.entity");
71
+ Object.defineProperty(exports, "Setting", { enumerable: true, get: function () { return setting_entity_1.Setting; } });
72
+ const billing_transaction_item_entity_1 = require("./entities/billing-transaction-item.entity");
73
+ Object.defineProperty(exports, "BillingTransactionItem", { enumerable: true, get: function () { return billing_transaction_item_entity_1.BillingTransactionItem; } });
37
74
  // Export the entities object
38
75
  exports.entities = {
39
76
  User: user_entity_1.User,
40
77
  AuthenticationDetail: authenticationDetail_entity_1.AuthenticationDetail,
41
78
  RevokedToken: revokedToken_entity_1.RevokedToken,
79
+ Session: session_entity_1.Session,
42
80
  Resource: resource_entity_1.Resource,
43
- ResourceComputedView: resource_entity_1.ResourceComputedView,
44
81
  ResourceGroup: resourceGroup_entity_1.ResourceGroup,
45
82
  ResourceUsage: resourceUsage_entity_1.ResourceUsage,
46
83
  ResourceIntroduction: resourceIntroduction_entity_1.ResourceIntroduction,
47
- ResourceIntroductionUser: resourceIntroductionUser_entity_1.ResourceIntroductionUser,
84
+ ResourceIntroducer: resourceIntroducer_entity_1.ResourceIntroducer,
48
85
  ResourceIntroductionHistoryItem: resourceIntroductionHistoryItem_entity_1.ResourceIntroductionHistoryItem,
49
86
  MqttServer: mqttServer_entity_1.MqttServer,
50
- MqttResourceConfig: mqttResourceConfig_entity_1.MqttResourceConfig,
51
- WebhookConfig: webhookConfig_entity_1.WebhookConfig,
52
87
  SSOProvider: ssoProvider_entity_1.SSOProvider,
53
88
  SSOProviderOIDCConfiguration: ssoProvider_oidc_1.SSOProviderOIDCConfiguration,
89
+ NFCCard: nfcCard_entity_1.NFCCard,
90
+ Attractap: attractap_entity_1.Attractap,
91
+ EmailTemplate: email_template_entity_1.EmailTemplate,
92
+ ResourceFlowNode: resourceFlowNode_1.ResourceFlowNode,
93
+ ResourceFlowEdge: resourceFlowEdge_1.ResourceFlowEdge,
94
+ ResourceFlowLog: resourceFlowLog_1.ResourceFlowLog,
95
+ ResourceMaintenance: resource_maintenance_1.ResourceMaintenance,
96
+ BillingTransaction: billing_transaction_entity_1.BillingTransaction,
97
+ ResourceBillingConfiguration: resource_billing_configuration_entity_1.ResourceBillingConfiguration,
98
+ Setting: setting_entity_1.Setting,
99
+ BillingTransactionItem: billing_transaction_item_entity_1.BillingTransactionItem,
54
100
  };
55
101
  //# 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,wFAA8E;AAoB5E,qGApBO,kDAAoB,OAoBP;AAnBtB,oFAA0E;AAoBxE,mGApBO,8CAAkB,OAoBP;AAnBpB,oEAA0D;AAoBxD,2FApBO,8BAAU,OAoBP;AAnBZ,gEAA4E;AAoB1E,yFApBO,0BAAQ,OAoBP;AACR,qGArBiB,sCAAoB,OAqBjB;AApBtB,0EAAgE;AAqB9D,8FArBO,oCAAa,OAqBP;AApBf,wFAA8E;AAqB5E,qGArBO,kDAAoB,OAqBP;AApBtB,8GAG2D;AAkBzD,gHApBA,wEAA+B,OAoBA;AAC/B,0GApBA,kEAAyB,OAoBA;AAlB3B,gGAAsF;AAmBpF,yGAnBO,0DAAwB,OAmBP;AAlB1B,0EAAgE;AAmB9D,8FAnBO,oCAAa,OAmBP;AAlBf,wEAA8D;AAmB5D,6FAnBO,kCAAY,OAmBP;AAlBd,sEAA6E;AAmB3E,4FAnBO,gCAAW,OAmBP;AACX,gGApBoB,oCAAe,OAoBpB;AAnBjB,kEAA2E;AAoBzE,6GApBO,+CAA4B,OAoBP;AAnB9B,wDAAwF;AAoBtF,qFApBO,kBAAI,OAoBP;AACJ,kGArBa,+BAAiB,OAqBb;AApBnB,0EAAgE;AAsB9D,8FAtBO,oCAAa,OAsBP;AAGf,6BAA6B;AAChB,QAAA,QAAQ,GAAG;IACtB,IAAI,EAAJ,kBAAI;IACJ,oBAAoB,EAApB,kDAAoB;IACpB,YAAY,EAAZ,kCAAY;IACZ,QAAQ,EAAR,0BAAQ;IACR,oBAAoB,EAApB,sCAAoB;IACpB,aAAa,EAAb,oCAAa;IACb,aAAa,EAAb,oCAAa;IACb,oBAAoB,EAApB,kDAAoB;IACpB,wBAAwB,EAAxB,0DAAwB;IACxB,+BAA+B,EAA/B,wEAA+B;IAC/B,UAAU,EAAV,8BAAU;IACV,kBAAkB,EAAlB,8CAAkB;IAClB,aAAa,EAAb,oCAAa;IACb,WAAW,EAAX,gCAAW;IACX,4BAA4B,EAA5B,+CAA4B;CAC7B,CAAC"}
1
+ {"version":3,"file":"entities-index.js","sourceRoot":"","sources":["../../../../../libs/database-entities/src/lib/entities-index.ts"],"names":[],"mappings":";;;AAAA,kBAAkB;AAClB,4EAAiE;AAgE/D,8FAhEO,qCAAa,OAgEP;AA/Df,wFAA8E;AA4C5E,qGA5CO,kDAAoB,OA4CP;AA3CtB,oEAA0D;AA4CxD,2FA5CO,8BAAU,OA4CP;AA3CZ,8DAAoD;AA2DlD,wFA3DO,wBAAO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Ae,OAsCP;AACf,oGAvCwB,qCAAmB,OAuCxB;AAtCrB,0EAAsE;AAwCpE,oGAxCO,0CAAmB,OAwCP;AAvCrB,sEAAoE;AAyClE,oGAzCO,wCAAmB,OAyCP;AAxCrB,sFAAqG;AA4CnG,mGA5CO,+CAAkB,OA4CP;AAGlB,yGA/C2B,qDAAwB,OA+C3B;AA9C1B,4GAAgG;AA4C9F,6GA5CO,oEAA4B,OA4CP;AA3C9B,8DAAoD;AA4ClD,wFA5CO,wBAAO,OA4CP;AA3CT,gGAAoF;AA6ClF,uGA7CO,wDAAsB,OA6CP;AAKxB,6BAA6B;AAChB,QAAA,QAAQ,GAAG;IACtB,IAAI,EAAJ,kBAAI;IACJ,oBAAoB,EAApB,kDAAoB;IACpB,YAAY,EAAZ,kCAAY;IACZ,OAAO,EAAP,wBAAO;IACP,QAAQ,EAAR,0BAAQ;IACR,aAAa,EAAb,oCAAa;IACb,aAAa,EAAb,oCAAa;IACb,oBAAoB,EAApB,kDAAoB;IACpB,kBAAkB,EAAlB,8CAAkB;IAClB,+BAA+B,EAA/B,wEAA+B;IAC/B,UAAU,EAAV,8BAAU;IACV,WAAW,EAAX,gCAAW;IACX,4BAA4B,EAA5B,+CAA4B;IAC5B,OAAO,EAAP,wBAAO;IACP,SAAS,EAAT,4BAAS;IACT,aAAa,EAAb,qCAAa;IACb,gBAAgB,EAAhB,mCAAgB;IAChB,gBAAgB,EAAhB,mCAAgB;IAChB,eAAe,EAAf,iCAAe;IACf,mBAAmB,EAAnB,0CAAmB;IACnB,kBAAkB,EAAlB,+CAAkB;IAClB,4BAA4B,EAA5B,oEAA4B;IAC5B,OAAO,EAAP,wBAAO;IACP,sBAAsB,EAAtB,wDAAsB;CACvB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Enum for resource documentation types
3
+ */
4
+ export declare enum DocumentationType {
5
+ MARKDOWN = "markdown",
6
+ URL = "url"
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DocumentationType = void 0;
4
+ /**
5
+ * Enum for resource documentation types
6
+ */
7
+ var DocumentationType;
8
+ (function (DocumentationType) {
9
+ DocumentationType["MARKDOWN"] = "markdown";
10
+ DocumentationType["URL"] = "url";
11
+ })(DocumentationType || (exports.DocumentationType = DocumentationType = {}));
12
+ //# sourceMappingURL=documentationType.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"documentationType.enum.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/types/documentationType.enum.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,0CAAqB,CAAA;IACrB,gCAAW,CAAA;AACb,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B"}
@@ -1,15 +0,0 @@
1
- import { Resource } from './resource.entity';
2
- import { MqttServer } from './mqttServer.entity';
3
- export declare class MqttResourceConfig {
4
- id: number;
5
- resourceId: number;
6
- serverId: number;
7
- inUseTopic: string;
8
- inUseMessage: string;
9
- notInUseTopic: string;
10
- notInUseMessage: string;
11
- createdAt: Date;
12
- updatedAt: Date;
13
- resource: Resource;
14
- server: MqttServer;
15
- }
@@ -1,95 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MqttResourceConfig = 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
- const mqttServer_entity_1 = require("./mqttServer.entity");
9
- let MqttResourceConfig = class MqttResourceConfig {
10
- };
11
- exports.MqttResourceConfig = MqttResourceConfig;
12
- tslib_1.__decorate([
13
- (0, typeorm_1.PrimaryGeneratedColumn)(),
14
- (0, swagger_1.ApiProperty)({
15
- description: 'The unique identifier of the MQTT resource configuration',
16
- example: 1,
17
- }),
18
- tslib_1.__metadata("design:type", Number)
19
- ], MqttResourceConfig.prototype, "id", void 0);
20
- tslib_1.__decorate([
21
- (0, typeorm_1.Column)({ type: 'integer' }),
22
- (0, swagger_1.ApiProperty)({
23
- description: 'The ID of the resource this configuration is for',
24
- example: 1,
25
- }),
26
- tslib_1.__metadata("design:type", Number)
27
- ], MqttResourceConfig.prototype, "resourceId", void 0);
28
- tslib_1.__decorate([
29
- (0, typeorm_1.Column)({ type: 'integer' }),
30
- (0, swagger_1.ApiProperty)({
31
- description: 'The ID of the MQTT server to publish to',
32
- example: 1,
33
- }),
34
- tslib_1.__metadata("design:type", Number)
35
- ], MqttResourceConfig.prototype, "serverId", void 0);
36
- tslib_1.__decorate([
37
- (0, typeorm_1.Column)({ type: 'text' }),
38
- (0, swagger_1.ApiProperty)({
39
- description: 'Topic template using Handlebars for in-use status',
40
- example: 'resources/{{id}}/status',
41
- }),
42
- tslib_1.__metadata("design:type", String)
43
- ], MqttResourceConfig.prototype, "inUseTopic", void 0);
44
- tslib_1.__decorate([
45
- (0, typeorm_1.Column)({ type: 'text' }),
46
- (0, swagger_1.ApiProperty)({
47
- description: 'Message template using Handlebars for in-use status',
48
- example: '{"status": "in_use", "resourceId": "{{id}}", "timestamp": "{{timestamp}}"}',
49
- }),
50
- tslib_1.__metadata("design:type", String)
51
- ], MqttResourceConfig.prototype, "inUseMessage", void 0);
52
- tslib_1.__decorate([
53
- (0, typeorm_1.Column)({ type: 'text' }),
54
- (0, swagger_1.ApiProperty)({
55
- description: 'Topic template using Handlebars for not-in-use status',
56
- example: 'resources/{{id}}/status',
57
- }),
58
- tslib_1.__metadata("design:type", String)
59
- ], MqttResourceConfig.prototype, "notInUseTopic", void 0);
60
- tslib_1.__decorate([
61
- (0, typeorm_1.Column)({ type: 'text' }),
62
- (0, swagger_1.ApiProperty)({
63
- description: 'Message template using Handlebars for not-in-use status',
64
- example: '{"status": "not_in_use", "resourceId": "{{id}}", "timestamp": "{{timestamp}}"}',
65
- }),
66
- tslib_1.__metadata("design:type", String)
67
- ], MqttResourceConfig.prototype, "notInUseMessage", void 0);
68
- tslib_1.__decorate([
69
- (0, typeorm_1.CreateDateColumn)(),
70
- (0, swagger_1.ApiProperty)({
71
- description: 'When the MQTT resource configuration was created',
72
- }),
73
- tslib_1.__metadata("design:type", Date)
74
- ], MqttResourceConfig.prototype, "createdAt", void 0);
75
- tslib_1.__decorate([
76
- (0, typeorm_1.UpdateDateColumn)(),
77
- (0, swagger_1.ApiProperty)({
78
- description: 'When the MQTT resource configuration was last updated',
79
- }),
80
- tslib_1.__metadata("design:type", Date)
81
- ], MqttResourceConfig.prototype, "updatedAt", void 0);
82
- tslib_1.__decorate([
83
- (0, typeorm_1.ManyToOne)(() => resource_entity_1.Resource),
84
- (0, typeorm_1.JoinColumn)({ name: 'resourceId' }),
85
- tslib_1.__metadata("design:type", resource_entity_1.Resource)
86
- ], MqttResourceConfig.prototype, "resource", void 0);
87
- tslib_1.__decorate([
88
- (0, typeorm_1.ManyToOne)(() => mqttServer_entity_1.MqttServer, (server) => server.resourceConfigs),
89
- (0, typeorm_1.JoinColumn)({ name: 'serverId' }),
90
- tslib_1.__metadata("design:type", mqttServer_entity_1.MqttServer)
91
- ], MqttResourceConfig.prototype, "server", void 0);
92
- exports.MqttResourceConfig = MqttResourceConfig = tslib_1.__decorate([
93
- (0, typeorm_1.Entity)()
94
- ], MqttResourceConfig);
95
- //# sourceMappingURL=mqttResourceConfig.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mqttResourceConfig.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/mqttResourceConfig.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAQiB;AACjB,6CAA8C;AAC9C,uDAA6C;AAC7C,2DAAiD;AAG1C,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAqE9B,CAAA;AArEY,gDAAkB;AAM7B;IALC,IAAA,gCAAsB,GAAE;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,0DAA0D;QACvE,OAAO,EAAE,CAAC;K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C;AAIjB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAQ,CAAC;IACzB,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;sCACxB,0BAAQ;oDAAC;AAIpB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAU,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC;IAC/D,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;sCACxB,8BAAU;kDAAC;6BApET,kBAAkB;IAD9B,IAAA,gBAAM,GAAE;GACI,kBAAkB,CAqE9B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"resourceIntroductionUser.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/resourceIntroductionUser.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAA0G;AAC1G,6CAA8C;AAC9C,uDAA6C;AAC7C,+CAAqC;AACrC,iEAAuD;AAGhD,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CA2CpC,CAAA;AA3CY,4DAAwB;AAMnC;IALC,IAAA,gCAAsB,GAAE;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,sDAAsD;QACnE,OAAO,EAAE,CAAC;KACX,CAAC;;oDACU;AAOZ;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC3B,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,wBAAwB;QACrC,OAAO,EAAE,CAAC;KACX,CAAC;;4DACkB;AAOpB;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC3B,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,+CAA+C;QAC5D,OAAO,EAAE,CAAC;KACX,CAAC;;wDACc;AAMhB;IAJC,IAAA,0BAAgB,GAAE;IAClB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,iCAAiC;KAC/C,CAAC;sCACU,IAAI;2DAAC;AAIjB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAQ,CAAC;IACzB,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;sCACxB,0BAAQ;0DAAC;AAQpB;IANC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,CAAC;IACrB,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAC9B,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,qCAAqC;QAClD,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI;KACjB,CAAC;sCACK,kBAAI;sDAAC;AAIZ;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oCAAa,CAAC;IAC9B,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;sCACxB,oCAAa;+DAAC;mCA1CnB,wBAAwB;IADpC,IAAA,gBAAM,GAAE;GACI,wBAAwB,CA2CpC"}
@@ -1,20 +0,0 @@
1
- import { Resource } from './resource.entity';
2
- export declare class WebhookConfig {
3
- id: number;
4
- resourceId: number;
5
- name: string;
6
- url: string;
7
- method: string;
8
- headers: string | null;
9
- inUseTemplate: string;
10
- notInUseTemplate: string;
11
- active: boolean;
12
- retryEnabled: boolean;
13
- maxRetries: number;
14
- retryDelay: number;
15
- secret: string | null;
16
- signatureHeader: string;
17
- createdAt: Date;
18
- updatedAt: Date;
19
- resource: Resource;
20
- }
@@ -1,148 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebhookConfig = 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
- let WebhookConfig = class WebhookConfig {
9
- };
10
- exports.WebhookConfig = WebhookConfig;
11
- tslib_1.__decorate([
12
- (0, typeorm_1.PrimaryGeneratedColumn)(),
13
- (0, swagger_1.ApiProperty)({
14
- description: 'The unique identifier of the webhook configuration',
15
- example: 1,
16
- }),
17
- tslib_1.__metadata("design:type", Number)
18
- ], WebhookConfig.prototype, "id", void 0);
19
- tslib_1.__decorate([
20
- (0, typeorm_1.Column)({ type: 'integer' }),
21
- (0, swagger_1.ApiProperty)({
22
- description: 'The ID of the resource this webhook configuration is for',
23
- example: 1,
24
- }),
25
- tslib_1.__metadata("design:type", Number)
26
- ], WebhookConfig.prototype, "resourceId", void 0);
27
- tslib_1.__decorate([
28
- (0, typeorm_1.Column)({ type: 'text' }),
29
- (0, swagger_1.ApiProperty)({
30
- description: 'Friendly name for the webhook',
31
- example: 'Slack Notification',
32
- }),
33
- tslib_1.__metadata("design:type", String)
34
- ], WebhookConfig.prototype, "name", void 0);
35
- tslib_1.__decorate([
36
- (0, typeorm_1.Column)({ type: 'text' }),
37
- (0, swagger_1.ApiProperty)({
38
- description: 'Destination URL for the webhook',
39
- example: 'https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX',
40
- }),
41
- tslib_1.__metadata("design:type", String)
42
- ], WebhookConfig.prototype, "url", void 0);
43
- tslib_1.__decorate([
44
- (0, typeorm_1.Column)({ type: 'text' }),
45
- (0, swagger_1.ApiProperty)({
46
- description: 'HTTP method to use for the webhook request',
47
- example: 'POST',
48
- enum: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'],
49
- }),
50
- tslib_1.__metadata("design:type", String)
51
- ], WebhookConfig.prototype, "method", void 0);
52
- tslib_1.__decorate([
53
- (0, typeorm_1.Column)({ type: 'text', nullable: true }),
54
- (0, swagger_1.ApiProperty)({
55
- description: 'JSON object for custom headers',
56
- example: '{"Content-Type": "application/json", "Authorization": "Bearer token123"}',
57
- required: false,
58
- }),
59
- tslib_1.__metadata("design:type", String)
60
- ], WebhookConfig.prototype, "headers", void 0);
61
- tslib_1.__decorate([
62
- (0, typeorm_1.Column)({ type: 'text' }),
63
- (0, swagger_1.ApiProperty)({
64
- description: 'Template for payload when resource is in use',
65
- example: '{"status": "in_use", "resource": "{{name}}", "user": "{{user.name}}", "timestamp": "{{timestamp}}"}',
66
- }),
67
- tslib_1.__metadata("design:type", String)
68
- ], WebhookConfig.prototype, "inUseTemplate", void 0);
69
- tslib_1.__decorate([
70
- (0, typeorm_1.Column)({ type: 'text' }),
71
- (0, swagger_1.ApiProperty)({
72
- description: 'Template for payload when resource is not in use',
73
- example: '{"status": "not_in_use", "resource": "{{name}}", "timestamp": "{{timestamp}}"}',
74
- }),
75
- tslib_1.__metadata("design:type", String)
76
- ], WebhookConfig.prototype, "notInUseTemplate", void 0);
77
- tslib_1.__decorate([
78
- (0, typeorm_1.Column)({ default: true, type: 'boolean' }),
79
- (0, swagger_1.ApiProperty)({
80
- description: 'Whether the webhook is active',
81
- example: true,
82
- }),
83
- tslib_1.__metadata("design:type", Boolean)
84
- ], WebhookConfig.prototype, "active", void 0);
85
- tslib_1.__decorate([
86
- (0, typeorm_1.Column)({ default: false, type: 'boolean' }),
87
- (0, swagger_1.ApiProperty)({
88
- description: 'Whether to enable retry mechanism for failed webhook requests',
89
- example: true,
90
- }),
91
- tslib_1.__metadata("design:type", Boolean)
92
- ], WebhookConfig.prototype, "retryEnabled", void 0);
93
- tslib_1.__decorate([
94
- (0, typeorm_1.Column)({ default: 3, type: 'integer' }),
95
- (0, swagger_1.ApiProperty)({
96
- description: 'Number of retry attempts for failed webhook requests (maximum 10)',
97
- example: 3,
98
- }),
99
- tslib_1.__metadata("design:type", Number)
100
- ], WebhookConfig.prototype, "maxRetries", void 0);
101
- tslib_1.__decorate([
102
- (0, typeorm_1.Column)({ default: 1000, type: 'integer' }),
103
- (0, swagger_1.ApiProperty)({
104
- description: 'Delay in milliseconds between retries (maximum 10000)',
105
- example: 1000,
106
- }),
107
- tslib_1.__metadata("design:type", Number)
108
- ], WebhookConfig.prototype, "retryDelay", void 0);
109
- tslib_1.__decorate([
110
- (0, typeorm_1.Column)({ nullable: true, type: 'text' }),
111
- (0, swagger_1.ApiProperty)({
112
- description: 'Secret key for signing webhook payloads',
113
- example: 'whsec_abcdef123456789',
114
- required: false,
115
- }),
116
- tslib_1.__metadata("design:type", String)
117
- ], WebhookConfig.prototype, "secret", void 0);
118
- tslib_1.__decorate([
119
- (0, typeorm_1.Column)({ default: 'X-Webhook-Signature', type: 'text' }),
120
- (0, swagger_1.ApiProperty)({
121
- description: 'Name of the header that contains the signature',
122
- example: 'X-Webhook-Signature',
123
- }),
124
- tslib_1.__metadata("design:type", String)
125
- ], WebhookConfig.prototype, "signatureHeader", void 0);
126
- tslib_1.__decorate([
127
- (0, typeorm_1.CreateDateColumn)(),
128
- (0, swagger_1.ApiProperty)({
129
- description: 'When the webhook configuration was created',
130
- }),
131
- tslib_1.__metadata("design:type", Date)
132
- ], WebhookConfig.prototype, "createdAt", void 0);
133
- tslib_1.__decorate([
134
- (0, typeorm_1.UpdateDateColumn)(),
135
- (0, swagger_1.ApiProperty)({
136
- description: 'When the webhook configuration was last updated',
137
- }),
138
- tslib_1.__metadata("design:type", Date)
139
- ], WebhookConfig.prototype, "updatedAt", void 0);
140
- tslib_1.__decorate([
141
- (0, typeorm_1.ManyToOne)(() => resource_entity_1.Resource),
142
- (0, typeorm_1.JoinColumn)({ name: 'resourceId' }),
143
- tslib_1.__metadata("design:type", resource_entity_1.Resource)
144
- ], WebhookConfig.prototype, "resource", void 0);
145
- exports.WebhookConfig = WebhookConfig = tslib_1.__decorate([
146
- (0, typeorm_1.Entity)()
147
- ], WebhookConfig);
148
- //# sourceMappingURL=webhookConfig.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webhookConfig.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/webhookConfig.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAQiB;AACjB,6CAA8C;AAC9C,uDAA6C;AAGtC,IAAM,aAAa,GAAnB,MAAM,aAAa;CAqHzB,CAAA;AArHY,sC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