@attraccess/database-entities 1.10.0 → 1.11.0-beta.1

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 (130) hide show
  1. package/package.json +7 -2
  2. package/src/index.d.ts +1 -0
  3. package/src/lib/entities/attractap-credential-event.entity.d.ts +14 -0
  4. package/src/lib/entities/attractap-credential-event.entity.js +58 -0
  5. package/src/lib/entities/attractap-credential-event.entity.js.map +1 -0
  6. package/src/lib/entities/attractap-installation.entity.d.ts +12 -0
  7. package/src/lib/entities/attractap-installation.entity.js +45 -0
  8. package/src/lib/entities/attractap-installation.entity.js.map +1 -0
  9. package/src/lib/entities/attractap-secure-boot-key.entity.d.ts +21 -0
  10. package/src/lib/entities/attractap-secure-boot-key.entity.js +53 -0
  11. package/src/lib/entities/attractap-secure-boot-key.entity.js.map +1 -0
  12. package/src/lib/entities/attractap.entity.d.ts +12 -0
  13. package/src/lib/entities/attractap.entity.js +88 -0
  14. package/src/lib/entities/attractap.entity.js.map +1 -1
  15. package/src/lib/entities/attractapCrashReport.entity.d.ts +5 -0
  16. package/src/lib/entities/attractapCrashReport.entity.js +26 -1
  17. package/src/lib/entities/attractapCrashReport.entity.js.map +1 -1
  18. package/src/lib/entities/audit-log.entity.d.ts +4 -1
  19. package/src/lib/entities/audit-log.entity.js +3 -1
  20. package/src/lib/entities/audit-log.entity.js.map +1 -1
  21. package/src/lib/entities/billing-transaction-item.entity.d.ts +23 -0
  22. package/src/lib/entities/billing-transaction-item.entity.js +24 -0
  23. package/src/lib/entities/billing-transaction-item.entity.js.map +1 -1
  24. package/src/lib/entities/billing-transaction.entity.d.ts +2 -0
  25. package/src/lib/entities/billing-transaction.entity.js +13 -0
  26. package/src/lib/entities/billing-transaction.entity.js.map +1 -1
  27. package/src/lib/entities/csv-export-template.entity.d.ts +23 -0
  28. package/src/lib/entities/csv-export-template.entity.js +110 -0
  29. package/src/lib/entities/csv-export-template.entity.js.map +1 -0
  30. package/src/lib/entities/dashboard-pin.entity.d.ts +15 -0
  31. package/src/lib/entities/dashboard-pin.entity.js +45 -0
  32. package/src/lib/entities/dashboard-pin.entity.js.map +1 -0
  33. package/src/lib/entities/flow.entity.d.ts +19 -0
  34. package/src/lib/entities/flow.entity.js +62 -0
  35. package/src/lib/entities/flow.entity.js.map +1 -0
  36. package/src/lib/entities/mcp-oauth-client.entity.d.ts +8 -0
  37. package/src/lib/entities/mcp-oauth-client.entity.js +33 -0
  38. package/src/lib/entities/mcp-oauth-client.entity.js.map +1 -0
  39. package/src/lib/entities/mcp-oauth-grant.entity.d.ts +20 -0
  40. package/src/lib/entities/mcp-oauth-grant.entity.js +58 -0
  41. package/src/lib/entities/mcp-oauth-grant.entity.js.map +1 -0
  42. package/src/lib/entities/mcp-oauth-token.entity.d.ts +18 -0
  43. package/src/lib/entities/mcp-oauth-token.entity.js +51 -0
  44. package/src/lib/entities/mcp-oauth-token.entity.js.map +1 -0
  45. package/src/lib/entities/nfcCardPendingChange.entity.d.ts +20 -0
  46. package/src/lib/entities/nfcCardPendingChange.entity.js +55 -0
  47. package/src/lib/entities/nfcCardPendingChange.entity.js.map +1 -0
  48. package/src/lib/entities/plugin-ble-endpoint.entity.d.ts +19 -0
  49. package/src/lib/entities/plugin-ble-endpoint.entity.js +63 -0
  50. package/src/lib/entities/plugin-ble-endpoint.entity.js.map +1 -0
  51. package/src/lib/entities/reader-ui-settings.entity.d.ts +32 -0
  52. package/src/lib/entities/reader-ui-settings.entity.js +101 -0
  53. package/src/lib/entities/reader-ui-settings.entity.js.map +1 -0
  54. package/src/lib/entities/resource-flow-node/companion-schemas.d.ts +15 -0
  55. package/src/lib/entities/resource-flow-node/companion-schemas.js +27 -0
  56. package/src/lib/entities/resource-flow-node/companion-schemas.js.map +1 -0
  57. package/src/lib/entities/resource-flow-node/external-effect-policy.d.ts +19 -0
  58. package/src/lib/entities/resource-flow-node/external-effect-policy.js +24 -0
  59. package/src/lib/entities/resource-flow-node/external-effect-policy.js.map +1 -0
  60. package/src/lib/entities/resource-flow-node/health-schemas.d.ts +18 -0
  61. package/src/lib/entities/resource-flow-node/health-schemas.js +34 -0
  62. package/src/lib/entities/resource-flow-node/health-schemas.js.map +1 -0
  63. package/src/lib/entities/resource-flow-node/http-schema.d.ts +25 -0
  64. package/src/lib/entities/resource-flow-node/http-schema.js +20 -0
  65. package/src/lib/entities/resource-flow-node/http-schema.js.map +1 -0
  66. package/src/lib/entities/resource-flow-node/metering-schemas.d.ts +28 -0
  67. package/src/lib/entities/resource-flow-node/metering-schemas.js +48 -0
  68. package/src/lib/entities/resource-flow-node/metering-schemas.js.map +1 -0
  69. package/src/lib/entities/resource-flow-node/mqtt-schemas.d.ts +33 -0
  70. package/src/lib/entities/resource-flow-node/mqtt-schemas.js +43 -0
  71. package/src/lib/entities/resource-flow-node/mqtt-schemas.js.map +1 -0
  72. package/src/lib/entities/resource-flow-node/node-type.d.ts +43 -0
  73. package/src/lib/entities/resource-flow-node/node-type.js +48 -0
  74. package/src/lib/entities/resource-flow-node/node-type.js.map +1 -0
  75. package/src/lib/entities/resource-flow-node/processing-schemas.d.ts +35 -0
  76. package/src/lib/entities/resource-flow-node/processing-schemas.js +32 -0
  77. package/src/lib/entities/resource-flow-node/processing-schemas.js.map +1 -0
  78. package/src/lib/entities/resource-flow-node/resource-schemas.d.ts +27 -0
  79. package/src/lib/entities/resource-flow-node/resource-schemas.js +44 -0
  80. package/src/lib/entities/resource-flow-node/resource-schemas.js.map +1 -0
  81. package/src/lib/entities/resource-flow-node/schema-registry.d.ts +180 -0
  82. package/src/lib/entities/resource-flow-node/schema-registry.js +80 -0
  83. package/src/lib/entities/resource-flow-node/schema-registry.js.map +1 -0
  84. package/src/lib/entities/resource-flow-node/variable-schemas.d.ts +38 -0
  85. package/src/lib/entities/resource-flow-node/variable-schemas.js +31 -0
  86. package/src/lib/entities/resource-flow-node/variable-schemas.js.map +1 -0
  87. package/src/lib/entities/resource-meter.entity.d.ts +16 -0
  88. package/src/lib/entities/resource-meter.entity.js +52 -0
  89. package/src/lib/entities/resource-meter.entity.js.map +1 -0
  90. package/src/lib/entities/resource-metering.entity.d.ts +102 -0
  91. package/src/lib/entities/resource-metering.entity.js +271 -0
  92. package/src/lib/entities/resource-metering.entity.js.map +1 -0
  93. package/src/lib/entities/resource-usage-lifecycle-attempt.entity.js +3 -1
  94. package/src/lib/entities/resource-usage-lifecycle-attempt.entity.js.map +1 -1
  95. package/src/lib/entities/resource.entity.d.ts +22 -21
  96. package/src/lib/entities/resource.entity.js +104 -93
  97. package/src/lib/entities/resource.entity.js.map +1 -1
  98. package/src/lib/entities/resourceFlowEdge.d.ts +5 -2
  99. package/src/lib/entities/resourceFlowEdge.js +28 -3
  100. package/src/lib/entities/resourceFlowEdge.js.map +1 -1
  101. package/src/lib/entities/resourceFlowNode.d.ts +18 -377
  102. package/src/lib/entities/resourceFlowNode.js +76 -310
  103. package/src/lib/entities/resourceFlowNode.js.map +1 -1
  104. package/src/lib/entities/resourceIntroduction.entity.js +1 -0
  105. package/src/lib/entities/resourceIntroduction.entity.js.map +1 -1
  106. package/src/lib/entities/resourceUsage.entity.d.ts +15 -9
  107. package/src/lib/entities/resourceUsage.entity.js +59 -50
  108. package/src/lib/entities/resourceUsage.entity.js.map +1 -1
  109. package/src/lib/entities/{nfcCard.entity.js → rfidCard.entity.js} +1 -1
  110. package/src/lib/entities/rfidCard.entity.js.map +1 -0
  111. package/src/lib/entities/session.entity.d.ts +6 -0
  112. package/src/lib/entities/session.entity.js +33 -1
  113. package/src/lib/entities/session.entity.js.map +1 -1
  114. package/src/lib/entities/ssoProvider.oidc.d.ts +7 -0
  115. package/src/lib/entities/ssoProvider.oidc.js +43 -1
  116. package/src/lib/entities/ssoProvider.oidc.js.map +1 -1
  117. package/src/lib/entities/ssoProvider.saml.d.ts +3 -0
  118. package/src/lib/entities/ssoProvider.saml.js +26 -0
  119. package/src/lib/entities/ssoProvider.saml.js.map +1 -1
  120. package/src/lib/entities/user.entity.d.ts +19 -18
  121. package/src/lib/entities/user.entity.js +75 -70
  122. package/src/lib/entities/user.entity.js.map +1 -1
  123. package/src/lib/entities-index.d.ts +156 -52
  124. package/src/lib/entities-index.js +344 -215
  125. package/src/lib/entities-index.js.map +1 -1
  126. package/src/lib/types/sso-session-context.d.ts +32 -0
  127. package/src/lib/types/sso-session-context.js +3 -0
  128. package/src/lib/types/sso-session-context.js.map +1 -0
  129. package/src/lib/entities/nfcCard.entity.js.map +0 -1
  130. /package/src/lib/entities/{nfcCard.entity.d.ts → rfidCard.entity.d.ts} +0 -0
@@ -1,379 +1,18 @@
1
- import { z } from 'zod';
2
1
  import { Resource } from './resource.entity';
3
- export declare enum ResourceFlowNodeType {
4
- INPUT_BUTTON = "input.button",
5
- INPUT_RESOURCE_USAGE_STARTED = "input.resource.usage.started",
6
- INPUT_RESOURCE_USAGE_STOPPED = "input.resource.usage.stopped",
7
- INPUT_RESOURCE_USAGE_TAKEOVER = "input.resource.usage.takeover",
8
- INPUT_RESOURCE_DOOR_UNLOCKED = "input.resource.door.unlocked",
9
- INPUT_RESOURCE_DOOR_LOCKED = "input.resource.door.locked",
10
- INPUT_RESOURCE_DOOR_UNLATCHED = "input.resource.door.unlatched",
11
- INPUT_MQTT_MESSAGE_RECEIVED = "input.mqtt.message.received",
12
- INPUT_RESOURCE_ACTIVITY_NO_ACTIVITY = "input.resource.activity.no-activity",
13
- INPUT_VARIABLE_CHANGED = "input.variable.changed",
14
- OUTPUT_HTTP_SEND_REQUEST = "output.http.sendRequest",
15
- OUTPUT_MQTT_SEND_MESSAGE = "output.mqtt.sendMessage",
16
- OUTPUT_RESOURCE_BILLING_SET_ADDITIONAL_ITEMS = "output.resource.billing.calculation.set-additional-items",
17
- OUTPUT_RESOURCE_USAGE_END_SESSION = "output.resource.usage.end-session",
18
- OUTPUT_RESOURCE_ACTIVITY_TRACK_ACTIVITY = "output.resource.activity.track-activity",
19
- OUTPUT_RESOURCE_ACTIVITY_OPERATING = "output.resource.activity.operating",
20
- OUTPUT_RESOURCE_ACTIVITY_IDLE = "output.resource.activity.idle",
21
- PROCESSING_WAIT = "processing.wait",
22
- PROCESSING_IF = "processing.if",
23
- PROCESSING_SET_PAYLOAD = "processing.set-payload",
24
- PROCESSING_MQTT_WAIT_FOR_MESSAGE = "processing.mqtt.waitForMessage",
25
- PROCESSING_ERROR = "processing.error",
26
- PROCESSING_SET_VARIABLES = "processing.variables.set",
27
- PROCESSING_GET_VARIABLES = "processing.variables.get",
28
- OUTPUT_RESOURCE_HEALTH_HEARTBEAT = "output.resource.health.heartbeat",
29
- OUTPUT_RESOURCE_HEALTH_SET = "output.resource.health.set",
30
- OUTPUT_COMPANION_LOCK_PC = "output.companion.lock-pc",
31
- OUTPUT_COMPANION_UNLOCK_PC = "output.companion.unlock-pc",
32
- INPUT_COMPANION_IDLE = "input.companion.idle",
33
- INPUT_COMPANION_ACTIVE = "input.companion.active",
34
- INPUT_COMPANION_FOREGROUND_APP_CHANGED = "input.companion.foreground_app_changed",
35
- INPUT_COMPANION_USB_DEVICE_CONNECTED = "input.companion.usb_device_connected",
36
- INPUT_COMPANION_USB_DEVICE_DISCONNECTED = "input.companion.usb_device_disconnected"
37
- }
38
- export declare const VariableScopeSchema: z.ZodEnum<{
39
- resource: "resource";
40
- global: "global";
41
- }>;
42
- export declare const NodeWithoutDataSchema: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
43
- export declare const ButtonNodeDataSchema: z.ZodObject<{
44
- label: z.ZodString;
45
- }, z.core.$strip>;
46
- export declare const ExternalEffectFailureBehaviorSchema: z.ZodDefault<z.ZodEnum<{
47
- "fail-flow": "fail-flow";
48
- "failure-output": "failure-output";
49
- "log-and-continue": "log-and-continue";
50
- }>>;
51
- export declare const ExternalEffectPolicySchema: z.ZodObject<{
52
- failureBehavior: z.ZodDefault<z.ZodEnum<{
53
- "fail-flow": "fail-flow";
54
- "failure-output": "failure-output";
55
- "log-and-continue": "log-and-continue";
56
- }>>;
57
- }, z.core.$strip>;
58
- export type ExternalEffectFailureBehavior = z.infer<typeof ExternalEffectFailureBehaviorSchema>;
59
- export declare const HttpRequestNodeDataSchema: z.ZodObject<{
60
- url: z.ZodString;
61
- method: z.ZodEnum<{
62
- GET: "GET";
63
- POST: "POST";
64
- PUT: "PUT";
65
- PATCH: "PATCH";
66
- DELETE: "DELETE";
67
- HEAD: "HEAD";
68
- OPTIONS: "OPTIONS";
69
- }>;
70
- headers: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
71
- body: z.ZodDefault<z.ZodOptional<z.ZodString>>;
72
- timeoutSeconds: z.ZodOptional<z.ZodNumber>;
73
- completionBehavior: z.ZodDefault<z.ZodEnum<{
74
- dispatch: "dispatch";
75
- acknowledged: "acknowledged";
76
- }>>;
77
- failureBehavior: z.ZodDefault<z.ZodEnum<{
78
- "fail-flow": "fail-flow";
79
- "failure-output": "failure-output";
80
- "log-and-continue": "log-and-continue";
81
- }>>;
82
- }, z.core.$strip>;
83
- export declare const MqttSendMessageNodeDataSchema: z.ZodObject<{
84
- serverId: z.ZodNumber;
85
- topic: z.ZodString;
86
- payload: z.ZodDefault<z.ZodOptional<z.ZodString>>;
87
- qos: z.ZodOptional<z.ZodNumber>;
88
- retain: z.ZodOptional<z.ZodBoolean>;
89
- completionBehavior: z.ZodDefault<z.ZodEnum<{
90
- dispatch: "dispatch";
91
- acknowledged: "acknowledged";
92
- }>>;
93
- acknowledgementTimeoutSeconds: z.ZodOptional<z.ZodNumber>;
94
- failureBehavior: z.ZodDefault<z.ZodEnum<{
95
- "fail-flow": "fail-flow";
96
- "failure-output": "failure-output";
97
- "log-and-continue": "log-and-continue";
98
- }>>;
99
- }, z.core.$strip>;
100
- export declare const WaitNodeDataSchema: z.ZodObject<{
101
- duration: z.ZodNumber;
102
- unit: z.ZodEnum<{
103
- seconds: "seconds";
104
- minutes: "minutes";
105
- hours: "hours";
106
- }>;
107
- }, z.core.$strip>;
108
- export declare const IfNodeDataSchema: z.ZodObject<{
109
- path: z.ZodString;
110
- comparisonOperator: z.ZodEnum<{
111
- "=": "=";
112
- "!=": "!=";
113
- ">": ">";
114
- "<": "<";
115
- ">=": ">=";
116
- "<=": "<=";
117
- }>;
118
- comparisonValueIsPath: z.ZodDefault<z.ZodBoolean>;
119
- comparisonValue: z.ZodString;
120
- }, z.core.$strip>;
121
- export declare const BillingTransactionItemCreateSchema: z.ZodObject<{
122
- name: z.ZodString;
123
- unitPrice: z.ZodNumber;
124
- quantity: z.ZodCoercedNumber<unknown>;
125
- description: z.ZodOptional<z.ZodString>;
126
- externalReference: z.ZodOptional<z.ZodString>;
127
- }, z.core.$strip>;
128
- export declare const ResourceActivityTrackActivityNodeDataSchema: z.ZodObject<{}, z.core.$strip>;
129
- export declare const ResourceOperatingTransitionNodeDataSchema: z.ZodObject<{}, z.core.$strip>;
130
- export declare const MqttMessageReceivedNodeDataSchema: z.ZodObject<{
131
- topic: z.ZodString;
132
- serverId: z.ZodNumber;
133
- }, z.core.$strip>;
134
- export declare const InputResourceActivityNoActivityNodeDataSchema: z.ZodObject<{
135
- minInactivityMinutes: z.ZodNumber;
136
- }, z.core.$strip>;
137
- export declare const SetPayloadNodeDataSchema: z.ZodObject<{
138
- entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
139
- key: z.ZodString;
140
- value: z.ZodDefault<z.ZodOptional<z.ZodString>>;
141
- }, z.core.$strip>>>;
142
- }, z.core.$strip>;
143
- export declare const SetVariablesNodeDataSchema: z.ZodObject<{
144
- variables: z.ZodArray<z.ZodObject<{
145
- key: z.ZodString;
146
- value: z.ZodDefault<z.ZodOptional<z.ZodString>>;
147
- scope: z.ZodEnum<{
148
- resource: "resource";
149
- global: "global";
150
- }>;
151
- }, z.core.$strip>>;
152
- }, z.core.$strip>;
153
- export declare const GetVariablesNodeDataSchema: z.ZodObject<{
154
- variables: z.ZodArray<z.ZodObject<{
155
- key: z.ZodString;
156
- scope: z.ZodEnum<{
157
- resource: "resource";
158
- global: "global";
159
- }>;
160
- payloadPath: z.ZodString;
161
- }, z.core.$strip>>;
162
- }, z.core.$strip>;
163
- export declare const VariableChangedNodeDataSchema: z.ZodObject<{
164
- watches: z.ZodArray<z.ZodObject<{
165
- key: z.ZodString;
166
- scope: z.ZodEnum<{
167
- resource: "resource";
168
- global: "global";
169
- }>;
170
- }, z.core.$strip>>;
171
- source: z.ZodDefault<z.ZodEnum<{
172
- any: "any";
173
- "exclude-self": "exclude-self";
174
- }>>;
175
- }, z.core.$strip>;
176
- export declare const MqttWaitForMessageNodeDataSchema: z.ZodObject<{
177
- serverId: z.ZodNumber;
178
- topic: z.ZodString;
179
- timeoutSeconds: z.ZodNumber;
180
- subscribeQos: z.ZodOptional<z.ZodNumber>;
181
- failureBehavior: z.ZodDefault<z.ZodEnum<{
182
- "fail-flow": "fail-flow";
183
- "failure-output": "failure-output";
184
- "log-and-continue": "log-and-continue";
185
- }>>;
186
- }, z.core.$strip>;
187
- export declare const ErrorNodeDataSchema: z.ZodObject<{
188
- message: z.ZodString;
189
- }, z.core.$strip>;
190
- export declare const ResourceUsageEndSessionNodeDataSchema: z.ZodOptional<z.ZodObject<{
191
- notes: z.ZodOptional<z.ZodString>;
192
- failureBehavior: z.ZodDefault<z.ZodEnum<{
193
- "fail-flow": "fail-flow";
194
- "failure-output": "failure-output";
195
- "log-and-continue": "log-and-continue";
196
- }>>;
197
- }, z.core.$strip>>;
198
- export declare function getExternalEffectFailureBehavior(nodeType: ResourceFlowNodeType, data: unknown): ExternalEffectFailureBehavior | undefined;
199
- export declare const HealthStateOptionEnum: z.ZodEnum<{
200
- healthy: "healthy";
201
- unhealthy: "unhealthy";
202
- }>;
203
- export declare const ResourceHealthHeartbeatNodeDataSchema: z.ZodObject<{
204
- identifier: z.ZodDefault<z.ZodOptional<z.ZodString>>;
205
- timeoutSeconds: z.ZodNumber;
206
- unhealthyReason: z.ZodDefault<z.ZodOptional<z.ZodString>>;
207
- }, z.core.$strip>;
208
- export declare const ResourceHealthSetNodeDataSchema: z.ZodObject<{
209
- identifier: z.ZodDefault<z.ZodOptional<z.ZodString>>;
210
- status: z.ZodEnum<{
211
- healthy: "healthy";
212
- unhealthy: "unhealthy";
213
- }>;
214
- reason: z.ZodDefault<z.ZodOptional<z.ZodString>>;
215
- }, z.core.$strip>;
216
- export declare const CompanionLockNodeDataSchema: z.ZodObject<{
217
- deviceId: z.ZodNumber;
218
- }, z.core.$strip>;
219
- export declare const CompanionIdleActiveNodeDataSchema: z.ZodObject<{
220
- deviceId: z.ZodNumber;
221
- }, z.core.$strip>;
222
- export declare const CompanionForegroundAppNodeDataSchema: z.ZodObject<{
223
- deviceId: z.ZodNumber;
224
- }, z.core.$strip>;
225
- export declare const CompanionUsbDeviceNodeDataSchema: z.ZodObject<{
226
- deviceId: z.ZodNumber;
227
- vendorId: z.ZodOptional<z.ZodNumber>;
228
- productId: z.ZodOptional<z.ZodNumber>;
229
- }, z.core.$strip>;
230
- export declare function getNodeDataSchema(nodeType: ResourceFlowNodeType): z.ZodOptional<z.ZodObject<{}, z.core.$strip>> | z.ZodObject<{
231
- label: z.ZodString;
232
- }, z.core.$strip> | z.ZodObject<{
233
- url: z.ZodString;
234
- method: z.ZodEnum<{
235
- GET: "GET";
236
- POST: "POST";
237
- PUT: "PUT";
238
- PATCH: "PATCH";
239
- DELETE: "DELETE";
240
- HEAD: "HEAD";
241
- OPTIONS: "OPTIONS";
242
- }>;
243
- headers: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
244
- body: z.ZodDefault<z.ZodOptional<z.ZodString>>;
245
- timeoutSeconds: z.ZodOptional<z.ZodNumber>;
246
- completionBehavior: z.ZodDefault<z.ZodEnum<{
247
- dispatch: "dispatch";
248
- acknowledged: "acknowledged";
249
- }>>;
250
- failureBehavior: z.ZodDefault<z.ZodEnum<{
251
- "fail-flow": "fail-flow";
252
- "failure-output": "failure-output";
253
- "log-and-continue": "log-and-continue";
254
- }>>;
255
- }, z.core.$strip> | z.ZodObject<{
256
- serverId: z.ZodNumber;
257
- topic: z.ZodString;
258
- payload: z.ZodDefault<z.ZodOptional<z.ZodString>>;
259
- qos: z.ZodOptional<z.ZodNumber>;
260
- retain: z.ZodOptional<z.ZodBoolean>;
261
- completionBehavior: z.ZodDefault<z.ZodEnum<{
262
- dispatch: "dispatch";
263
- acknowledged: "acknowledged";
264
- }>>;
265
- acknowledgementTimeoutSeconds: z.ZodOptional<z.ZodNumber>;
266
- failureBehavior: z.ZodDefault<z.ZodEnum<{
267
- "fail-flow": "fail-flow";
268
- "failure-output": "failure-output";
269
- "log-and-continue": "log-and-continue";
270
- }>>;
271
- }, z.core.$strip> | z.ZodObject<{
272
- duration: z.ZodNumber;
273
- unit: z.ZodEnum<{
274
- seconds: "seconds";
275
- minutes: "minutes";
276
- hours: "hours";
277
- }>;
278
- }, z.core.$strip> | z.ZodObject<{
279
- path: z.ZodString;
280
- comparisonOperator: z.ZodEnum<{
281
- "=": "=";
282
- "!=": "!=";
283
- ">": ">";
284
- "<": "<";
285
- ">=": ">=";
286
- "<=": "<=";
287
- }>;
288
- comparisonValueIsPath: z.ZodDefault<z.ZodBoolean>;
289
- comparisonValue: z.ZodString;
290
- }, z.core.$strip> | z.ZodObject<{
291
- name: z.ZodString;
292
- unitPrice: z.ZodNumber;
293
- quantity: z.ZodCoercedNumber<unknown>;
294
- description: z.ZodOptional<z.ZodString>;
295
- externalReference: z.ZodOptional<z.ZodString>;
296
- }, z.core.$strip> | z.ZodObject<{}, z.core.$strip> | z.ZodObject<{}, z.core.$strip> | z.ZodObject<{
297
- topic: z.ZodString;
298
- serverId: z.ZodNumber;
299
- }, z.core.$strip> | z.ZodObject<{
300
- minInactivityMinutes: z.ZodNumber;
301
- }, z.core.$strip> | z.ZodObject<{
302
- entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
303
- key: z.ZodString;
304
- value: z.ZodDefault<z.ZodOptional<z.ZodString>>;
305
- }, z.core.$strip>>>;
306
- }, z.core.$strip> | z.ZodObject<{
307
- variables: z.ZodArray<z.ZodObject<{
308
- key: z.ZodString;
309
- value: z.ZodDefault<z.ZodOptional<z.ZodString>>;
310
- scope: z.ZodEnum<{
311
- resource: "resource";
312
- global: "global";
313
- }>;
314
- }, z.core.$strip>>;
315
- }, z.core.$strip> | z.ZodObject<{
316
- variables: z.ZodArray<z.ZodObject<{
317
- key: z.ZodString;
318
- scope: z.ZodEnum<{
319
- resource: "resource";
320
- global: "global";
321
- }>;
322
- payloadPath: z.ZodString;
323
- }, z.core.$strip>>;
324
- }, z.core.$strip> | z.ZodObject<{
325
- watches: z.ZodArray<z.ZodObject<{
326
- key: z.ZodString;
327
- scope: z.ZodEnum<{
328
- resource: "resource";
329
- global: "global";
330
- }>;
331
- }, z.core.$strip>>;
332
- source: z.ZodDefault<z.ZodEnum<{
333
- any: "any";
334
- "exclude-self": "exclude-self";
335
- }>>;
336
- }, z.core.$strip> | z.ZodObject<{
337
- serverId: z.ZodNumber;
338
- topic: z.ZodString;
339
- timeoutSeconds: z.ZodNumber;
340
- subscribeQos: z.ZodOptional<z.ZodNumber>;
341
- failureBehavior: z.ZodDefault<z.ZodEnum<{
342
- "fail-flow": "fail-flow";
343
- "failure-output": "failure-output";
344
- "log-and-continue": "log-and-continue";
345
- }>>;
346
- }, z.core.$strip> | z.ZodObject<{
347
- message: z.ZodString;
348
- }, z.core.$strip> | z.ZodOptional<z.ZodObject<{
349
- notes: z.ZodOptional<z.ZodString>;
350
- failureBehavior: z.ZodDefault<z.ZodEnum<{
351
- "fail-flow": "fail-flow";
352
- "failure-output": "failure-output";
353
- "log-and-continue": "log-and-continue";
354
- }>>;
355
- }, z.core.$strip>> | z.ZodObject<{
356
- identifier: z.ZodDefault<z.ZodOptional<z.ZodString>>;
357
- timeoutSeconds: z.ZodNumber;
358
- unhealthyReason: z.ZodDefault<z.ZodOptional<z.ZodString>>;
359
- }, z.core.$strip> | z.ZodObject<{
360
- identifier: z.ZodDefault<z.ZodOptional<z.ZodString>>;
361
- status: z.ZodEnum<{
362
- healthy: "healthy";
363
- unhealthy: "unhealthy";
364
- }>;
365
- reason: z.ZodDefault<z.ZodOptional<z.ZodString>>;
366
- }, z.core.$strip> | z.ZodObject<{
367
- deviceId: z.ZodNumber;
368
- }, z.core.$strip> | z.ZodObject<{
369
- deviceId: z.ZodNumber;
370
- }, z.core.$strip> | z.ZodObject<{
371
- deviceId: z.ZodNumber;
372
- }, z.core.$strip> | z.ZodObject<{
373
- deviceId: z.ZodNumber;
374
- vendorId: z.ZodOptional<z.ZodNumber>;
375
- productId: z.ZodOptional<z.ZodNumber>;
376
- }, z.core.$strip>;
2
+ import { Flow } from './flow.entity';
3
+ import { ResourceFlowNodeType } from './resource-flow-node/node-type';
4
+ export { ResourceFlowNodeType } from './resource-flow-node/node-type';
5
+ export { ExternalEffectFailureBehaviorSchema, ExternalEffectPolicySchema, } from './resource-flow-node/external-effect-policy';
6
+ export type { ExternalEffectFailureBehavior } from './resource-flow-node/external-effect-policy';
7
+ export { HttpRequestNodeDataSchema } from './resource-flow-node/http-schema';
8
+ export { MqttSendMessageNodeDataSchema, MqttMessageReceivedNodeDataSchema, MqttWaitForMessageNodeDataSchema, } from './resource-flow-node/mqtt-schemas';
9
+ export { NodeWithoutDataSchema, ButtonNodeDataSchema, WaitNodeDataSchema, IfNodeDataSchema, SetPayloadNodeDataSchema, ErrorNodeDataSchema, } from './resource-flow-node/processing-schemas';
10
+ export { BillingTransactionItemCreateSchema, ResourceActivityTrackActivityNodeDataSchema, ResourceOperatingTransitionNodeDataSchema, InputResourceActivityNoActivityNodeDataSchema, ResourceUsageEndSessionNodeDataSchema, } from './resource-flow-node/resource-schemas';
11
+ export { VariableScopeSchema, SetVariablesNodeDataSchema, GetVariablesNodeDataSchema, VariableChangedNodeDataSchema, } from './resource-flow-node/variable-schemas';
12
+ export { HealthStateOptionEnum, ResourceHealthHeartbeatNodeDataSchema, ResourceHealthSetNodeDataSchema, } from './resource-flow-node/health-schemas';
13
+ export { CompanionLockNodeDataSchema, CompanionIdleActiveNodeDataSchema, CompanionForegroundAppNodeDataSchema, CompanionUsbDeviceNodeDataSchema, } from './resource-flow-node/companion-schemas';
14
+ export { MeteringStartNodeDataSchema, MeteringCollectNodeDataSchema, MeteringReadyNodeDataSchema, MeteringReportNodeDataSchema, } from './resource-flow-node/metering-schemas';
15
+ export { getNodeDataSchema, getExternalEffectFailureBehavior } from './resource-flow-node/schema-registry';
377
16
  export declare class ResourceFlowNodePosition {
378
17
  x: number;
379
18
  y: number;
@@ -385,6 +24,8 @@ export declare class ResourceFlowNode {
385
24
  data: Record<string, unknown>;
386
25
  createdAt: Date;
387
26
  updatedAt: Date;
388
- resourceId: number;
389
- resource: Resource;
27
+ resourceId: number | null;
28
+ flowId: number | null;
29
+ flow: Flow | null;
30
+ resource: Resource | null;
390
31
  }