@attraccess/database-entities 1.10.0 → 1.11.0-beta.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 (111) hide show
  1. package/package.json +6 -1
  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 +11 -0
  13. package/src/lib/entities/attractap.entity.js +79 -0
  14. package/src/lib/entities/attractap.entity.js.map +1 -1
  15. package/src/lib/entities/attractapCrashReport.entity.js +2 -1
  16. package/src/lib/entities/attractapCrashReport.entity.js.map +1 -1
  17. package/src/lib/entities/billing-transaction-item.entity.d.ts +2 -0
  18. package/src/lib/entities/billing-transaction-item.entity.js +14 -0
  19. package/src/lib/entities/billing-transaction-item.entity.js.map +1 -1
  20. package/src/lib/entities/billing-transaction.entity.d.ts +2 -0
  21. package/src/lib/entities/billing-transaction.entity.js +13 -0
  22. package/src/lib/entities/billing-transaction.entity.js.map +1 -1
  23. package/src/lib/entities/csv-export-template.entity.d.ts +23 -0
  24. package/src/lib/entities/csv-export-template.entity.js +110 -0
  25. package/src/lib/entities/csv-export-template.entity.js.map +1 -0
  26. package/src/lib/entities/flow.entity.d.ts +19 -0
  27. package/src/lib/entities/flow.entity.js +62 -0
  28. package/src/lib/entities/flow.entity.js.map +1 -0
  29. package/src/lib/entities/nfcCardPendingChange.entity.d.ts +20 -0
  30. package/src/lib/entities/nfcCardPendingChange.entity.js +55 -0
  31. package/src/lib/entities/nfcCardPendingChange.entity.js.map +1 -0
  32. package/src/lib/entities/reader-ui-settings.entity.d.ts +32 -0
  33. package/src/lib/entities/reader-ui-settings.entity.js +101 -0
  34. package/src/lib/entities/reader-ui-settings.entity.js.map +1 -0
  35. package/src/lib/entities/resource-flow-node/companion-schemas.d.ts +15 -0
  36. package/src/lib/entities/resource-flow-node/companion-schemas.js +27 -0
  37. package/src/lib/entities/resource-flow-node/companion-schemas.js.map +1 -0
  38. package/src/lib/entities/resource-flow-node/external-effect-policy.d.ts +19 -0
  39. package/src/lib/entities/resource-flow-node/external-effect-policy.js +24 -0
  40. package/src/lib/entities/resource-flow-node/external-effect-policy.js.map +1 -0
  41. package/src/lib/entities/resource-flow-node/health-schemas.d.ts +18 -0
  42. package/src/lib/entities/resource-flow-node/health-schemas.js +34 -0
  43. package/src/lib/entities/resource-flow-node/health-schemas.js.map +1 -0
  44. package/src/lib/entities/resource-flow-node/http-schema.d.ts +25 -0
  45. package/src/lib/entities/resource-flow-node/http-schema.js +20 -0
  46. package/src/lib/entities/resource-flow-node/http-schema.js.map +1 -0
  47. package/src/lib/entities/resource-flow-node/metering-schemas.d.ts +27 -0
  48. package/src/lib/entities/resource-flow-node/metering-schemas.js +45 -0
  49. package/src/lib/entities/resource-flow-node/metering-schemas.js.map +1 -0
  50. package/src/lib/entities/resource-flow-node/mqtt-schemas.d.ts +33 -0
  51. package/src/lib/entities/resource-flow-node/mqtt-schemas.js +43 -0
  52. package/src/lib/entities/resource-flow-node/mqtt-schemas.js.map +1 -0
  53. package/src/lib/entities/resource-flow-node/node-type.d.ts +43 -0
  54. package/src/lib/entities/resource-flow-node/node-type.js +48 -0
  55. package/src/lib/entities/resource-flow-node/node-type.js.map +1 -0
  56. package/src/lib/entities/resource-flow-node/processing-schemas.d.ts +35 -0
  57. package/src/lib/entities/resource-flow-node/processing-schemas.js +32 -0
  58. package/src/lib/entities/resource-flow-node/processing-schemas.js.map +1 -0
  59. package/src/lib/entities/resource-flow-node/resource-schemas.d.ts +27 -0
  60. package/src/lib/entities/resource-flow-node/resource-schemas.js +44 -0
  61. package/src/lib/entities/resource-flow-node/resource-schemas.js.map +1 -0
  62. package/src/lib/entities/resource-flow-node/schema-registry.d.ts +179 -0
  63. package/src/lib/entities/resource-flow-node/schema-registry.js +80 -0
  64. package/src/lib/entities/resource-flow-node/schema-registry.js.map +1 -0
  65. package/src/lib/entities/resource-flow-node/variable-schemas.d.ts +38 -0
  66. package/src/lib/entities/resource-flow-node/variable-schemas.js +31 -0
  67. package/src/lib/entities/resource-flow-node/variable-schemas.js.map +1 -0
  68. package/src/lib/entities/resource-meter.entity.d.ts +12 -0
  69. package/src/lib/entities/resource-meter.entity.js +48 -0
  70. package/src/lib/entities/resource-meter.entity.js.map +1 -0
  71. package/src/lib/entities/resource-metering.entity.d.ts +69 -0
  72. package/src/lib/entities/resource-metering.entity.js +204 -0
  73. package/src/lib/entities/resource-metering.entity.js.map +1 -0
  74. package/src/lib/entities/resource-usage-lifecycle-attempt.entity.js +3 -1
  75. package/src/lib/entities/resource-usage-lifecycle-attempt.entity.js.map +1 -1
  76. package/src/lib/entities/resource.entity.d.ts +22 -21
  77. package/src/lib/entities/resource.entity.js +104 -93
  78. package/src/lib/entities/resource.entity.js.map +1 -1
  79. package/src/lib/entities/resourceFlowEdge.d.ts +5 -2
  80. package/src/lib/entities/resourceFlowEdge.js +28 -3
  81. package/src/lib/entities/resourceFlowEdge.js.map +1 -1
  82. package/src/lib/entities/resourceFlowNode.d.ts +18 -377
  83. package/src/lib/entities/resourceFlowNode.js +76 -310
  84. package/src/lib/entities/resourceFlowNode.js.map +1 -1
  85. package/src/lib/entities/resourceIntroduction.entity.js +1 -0
  86. package/src/lib/entities/resourceIntroduction.entity.js.map +1 -1
  87. package/src/lib/entities/resourceUsage.entity.d.ts +14 -9
  88. package/src/lib/entities/resourceUsage.entity.js +59 -50
  89. package/src/lib/entities/resourceUsage.entity.js.map +1 -1
  90. package/src/lib/entities/{nfcCard.entity.js → rfidCard.entity.js} +1 -1
  91. package/src/lib/entities/rfidCard.entity.js.map +1 -0
  92. package/src/lib/entities/session.entity.d.ts +6 -0
  93. package/src/lib/entities/session.entity.js +33 -1
  94. package/src/lib/entities/session.entity.js.map +1 -1
  95. package/src/lib/entities/ssoProvider.oidc.d.ts +7 -0
  96. package/src/lib/entities/ssoProvider.oidc.js +43 -1
  97. package/src/lib/entities/ssoProvider.oidc.js.map +1 -1
  98. package/src/lib/entities/ssoProvider.saml.d.ts +3 -0
  99. package/src/lib/entities/ssoProvider.saml.js +26 -0
  100. package/src/lib/entities/ssoProvider.saml.js.map +1 -1
  101. package/src/lib/entities/user.entity.d.ts +19 -18
  102. package/src/lib/entities/user.entity.js +75 -70
  103. package/src/lib/entities/user.entity.js.map +1 -1
  104. package/src/lib/entities-index.d.ts +138 -52
  105. package/src/lib/entities-index.js +321 -215
  106. package/src/lib/entities-index.js.map +1 -1
  107. package/src/lib/types/sso-session-context.d.ts +32 -0
  108. package/src/lib/types/sso-session-context.js +3 -0
  109. package/src/lib/types/sso-session-context.js.map +1 -0
  110. package/src/lib/entities/nfcCard.entity.js.map +0 -1
  111. /package/src/lib/entities/{nfcCard.entity.d.ts → rfidCard.entity.d.ts} +0 -0
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getNodeDataSchema = getNodeDataSchema;
4
+ exports.getExternalEffectFailureBehavior = getExternalEffectFailureBehavior;
5
+ const node_type_1 = require("./node-type");
6
+ const http_schema_1 = require("./http-schema");
7
+ const mqtt_schemas_1 = require("./mqtt-schemas");
8
+ const processing_schemas_1 = require("./processing-schemas");
9
+ const resource_schemas_1 = require("./resource-schemas");
10
+ const variable_schemas_1 = require("./variable-schemas");
11
+ const health_schemas_1 = require("./health-schemas");
12
+ const companion_schemas_1 = require("./companion-schemas");
13
+ const metering_schemas_1 = require("./metering-schemas");
14
+ const nodeDataSchemas = {
15
+ [node_type_1.ResourceFlowNodeType.INPUT_BUTTON]: processing_schemas_1.ButtonNodeDataSchema,
16
+ [node_type_1.ResourceFlowNodeType.INPUT_RESOURCE_USAGE_STARTED]: processing_schemas_1.NodeWithoutDataSchema,
17
+ [node_type_1.ResourceFlowNodeType.INPUT_RESOURCE_USAGE_STOPPED]: processing_schemas_1.NodeWithoutDataSchema,
18
+ [node_type_1.ResourceFlowNodeType.INPUT_RESOURCE_USAGE_TAKEOVER]: processing_schemas_1.NodeWithoutDataSchema,
19
+ [node_type_1.ResourceFlowNodeType.INPUT_RESOURCE_DOOR_UNLOCKED]: processing_schemas_1.NodeWithoutDataSchema,
20
+ [node_type_1.ResourceFlowNodeType.INPUT_RESOURCE_DOOR_LOCKED]: processing_schemas_1.NodeWithoutDataSchema,
21
+ [node_type_1.ResourceFlowNodeType.INPUT_RESOURCE_DOOR_UNLATCHED]: processing_schemas_1.NodeWithoutDataSchema,
22
+ [node_type_1.ResourceFlowNodeType.INPUT_MQTT_MESSAGE_RECEIVED]: mqtt_schemas_1.MqttMessageReceivedNodeDataSchema,
23
+ [node_type_1.ResourceFlowNodeType.INPUT_RESOURCE_ACTIVITY_NO_ACTIVITY]: resource_schemas_1.InputResourceActivityNoActivityNodeDataSchema,
24
+ [node_type_1.ResourceFlowNodeType.OUTPUT_RESOURCE_BILLING_SET_ADDITIONAL_ITEMS]: resource_schemas_1.BillingTransactionItemCreateSchema,
25
+ [node_type_1.ResourceFlowNodeType.OUTPUT_HTTP_SEND_REQUEST]: http_schema_1.HttpRequestNodeDataSchema,
26
+ [node_type_1.ResourceFlowNodeType.OUTPUT_MQTT_SEND_MESSAGE]: mqtt_schemas_1.MqttSendMessageNodeDataSchema,
27
+ [node_type_1.ResourceFlowNodeType.PROCESSING_WAIT]: processing_schemas_1.WaitNodeDataSchema,
28
+ [node_type_1.ResourceFlowNodeType.PROCESSING_IF]: processing_schemas_1.IfNodeDataSchema,
29
+ [node_type_1.ResourceFlowNodeType.PROCESSING_SET_PAYLOAD]: processing_schemas_1.SetPayloadNodeDataSchema,
30
+ [node_type_1.ResourceFlowNodeType.PROCESSING_MQTT_WAIT_FOR_MESSAGE]: mqtt_schemas_1.MqttWaitForMessageNodeDataSchema,
31
+ [node_type_1.ResourceFlowNodeType.PROCESSING_ERROR]: processing_schemas_1.ErrorNodeDataSchema,
32
+ [node_type_1.ResourceFlowNodeType.OUTPUT_RESOURCE_USAGE_END_SESSION]: resource_schemas_1.ResourceUsageEndSessionNodeDataSchema,
33
+ [node_type_1.ResourceFlowNodeType.OUTPUT_RESOURCE_ACTIVITY_TRACK_ACTIVITY]: resource_schemas_1.ResourceActivityTrackActivityNodeDataSchema,
34
+ [node_type_1.ResourceFlowNodeType.OUTPUT_RESOURCE_ACTIVITY_OPERATING]: resource_schemas_1.ResourceOperatingTransitionNodeDataSchema,
35
+ [node_type_1.ResourceFlowNodeType.OUTPUT_RESOURCE_ACTIVITY_IDLE]: resource_schemas_1.ResourceOperatingTransitionNodeDataSchema,
36
+ [node_type_1.ResourceFlowNodeType.OUTPUT_RESOURCE_HEALTH_HEARTBEAT]: health_schemas_1.ResourceHealthHeartbeatNodeDataSchema,
37
+ [node_type_1.ResourceFlowNodeType.OUTPUT_RESOURCE_HEALTH_SET]: health_schemas_1.ResourceHealthSetNodeDataSchema,
38
+ [node_type_1.ResourceFlowNodeType.PROCESSING_SET_VARIABLES]: variable_schemas_1.SetVariablesNodeDataSchema,
39
+ [node_type_1.ResourceFlowNodeType.PROCESSING_GET_VARIABLES]: variable_schemas_1.GetVariablesNodeDataSchema,
40
+ [node_type_1.ResourceFlowNodeType.INPUT_VARIABLE_CHANGED]: variable_schemas_1.VariableChangedNodeDataSchema,
41
+ [node_type_1.ResourceFlowNodeType.INPUT_RESOURCE_HEALTH_CHANGED]: processing_schemas_1.NodeWithoutDataSchema,
42
+ [node_type_1.ResourceFlowNodeType.INPUT_RESOURCE_MAINTENANCE_CREATED]: processing_schemas_1.NodeWithoutDataSchema,
43
+ [node_type_1.ResourceFlowNodeType.INPUT_RESOURCE_MAINTENANCE_FINISHED]: processing_schemas_1.NodeWithoutDataSchema,
44
+ [node_type_1.ResourceFlowNodeType.INPUT_RESOURCE_MAINTENANCE_REQUEST_CREATED]: processing_schemas_1.NodeWithoutDataSchema,
45
+ [node_type_1.ResourceFlowNodeType.OUTPUT_COMPANION_LOCK_PC]: companion_schemas_1.CompanionLockNodeDataSchema,
46
+ [node_type_1.ResourceFlowNodeType.OUTPUT_COMPANION_UNLOCK_PC]: companion_schemas_1.CompanionLockNodeDataSchema,
47
+ [node_type_1.ResourceFlowNodeType.INPUT_COMPANION_IDLE]: companion_schemas_1.CompanionIdleActiveNodeDataSchema,
48
+ [node_type_1.ResourceFlowNodeType.INPUT_COMPANION_ACTIVE]: companion_schemas_1.CompanionIdleActiveNodeDataSchema,
49
+ [node_type_1.ResourceFlowNodeType.INPUT_COMPANION_FOREGROUND_APP_CHANGED]: companion_schemas_1.CompanionForegroundAppNodeDataSchema,
50
+ [node_type_1.ResourceFlowNodeType.INPUT_COMPANION_USB_DEVICE_CONNECTED]: companion_schemas_1.CompanionUsbDeviceNodeDataSchema,
51
+ [node_type_1.ResourceFlowNodeType.INPUT_COMPANION_USB_DEVICE_DISCONNECTED]: companion_schemas_1.CompanionUsbDeviceNodeDataSchema,
52
+ [node_type_1.ResourceFlowNodeType.INPUT_METERING_START]: metering_schemas_1.MeteringStartNodeDataSchema,
53
+ [node_type_1.ResourceFlowNodeType.INPUT_METERING_COLLECT]: metering_schemas_1.MeteringCollectNodeDataSchema,
54
+ [node_type_1.ResourceFlowNodeType.OUTPUT_METERING_READY]: metering_schemas_1.MeteringReadyNodeDataSchema,
55
+ [node_type_1.ResourceFlowNodeType.OUTPUT_METERING_REPORT]: metering_schemas_1.MeteringReportNodeDataSchema,
56
+ };
57
+ function getNodeDataSchema(nodeType) {
58
+ if (!Object.hasOwn(nodeDataSchemas, nodeType))
59
+ throw new Error(`Unknown node type: ${nodeType}`);
60
+ return nodeDataSchemas[nodeType];
61
+ }
62
+ function getExternalEffectFailureBehavior(nodeType, data) {
63
+ var _a, _b, _c, _d;
64
+ if (typeof data !== 'object' || data === null || !('failureBehavior' in data)) {
65
+ return undefined;
66
+ }
67
+ switch (nodeType) {
68
+ case node_type_1.ResourceFlowNodeType.OUTPUT_HTTP_SEND_REQUEST:
69
+ return (_a = http_schema_1.HttpRequestNodeDataSchema.safeParse(data).data) === null || _a === void 0 ? void 0 : _a.failureBehavior;
70
+ case node_type_1.ResourceFlowNodeType.OUTPUT_MQTT_SEND_MESSAGE:
71
+ return (_b = mqtt_schemas_1.MqttSendMessageNodeDataSchema.safeParse(data).data) === null || _b === void 0 ? void 0 : _b.failureBehavior;
72
+ case node_type_1.ResourceFlowNodeType.PROCESSING_MQTT_WAIT_FOR_MESSAGE:
73
+ return (_c = mqtt_schemas_1.MqttWaitForMessageNodeDataSchema.safeParse(data).data) === null || _c === void 0 ? void 0 : _c.failureBehavior;
74
+ case node_type_1.ResourceFlowNodeType.OUTPUT_RESOURCE_USAGE_END_SESSION:
75
+ return (_d = resource_schemas_1.ResourceUsageEndSessionNodeDataSchema.safeParse(data).data) === null || _d === void 0 ? void 0 : _d.failureBehavior;
76
+ default:
77
+ return undefined;
78
+ }
79
+ }
80
+ //# sourceMappingURL=schema-registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-registry.js","sourceRoot":"","sources":["../../../../../../../libs/database-entities/src/lib/entities/resource-flow-node/schema-registry.ts"],"names":[],"mappings":";;AAuFA,8CAGC;AAED,4EAoBC;AA/GD,2CAAmD;AAEnD,+CAA0D;AAC1D,iDAIwB;AACxB,6DAO8B;AAC9B,yDAM4B;AAC5B,yDAI4B;AAC5B,qDAA0G;AAC1G,2DAK6B;AAC7B,yDAK4B;AAE5B,MAAM,eAAe,GAAG;IACtB,CAAC,gCAAoB,CAAC,YAAY,CAAC,EAAE,yCAAoB;IACzD,CAAC,gCAAoB,CAAC,4BAA4B,CAAC,EAAE,0C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,IAAa;;IAEb,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,CAAC,iBAAiB,IAAI,IAAI,CAAC,EAAE,CAAC;QAC9E,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,gCAAoB,CAAC,wBAAwB;YAChD,OAAO,MAAA,uCAAyB,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,IAAI,0CAAE,eAAe,CAAC;QACzE,KAAK,gCAAoB,CAAC,wBAAwB;YAChD,OAAO,MAAA,4CAA6B,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,IAAI,0CAAE,eAAe,CAAC;QAC7E,KAAK,gCAAoB,CAAC,gCAAgC;YACxD,OAAO,MAAA,+CAAgC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,IAAI,0CAAE,eAAe,CAAC;QAChF,KAAK,gCAAoB,CAAC,iCAAiC;YACzD,OAAO,MAAA,wDAAqC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,IAAI,0CAAE,eAAe,CAAC;QACrF;YACE,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { z } from 'zod';
2
+ export declare const VariableScopeSchema: z.ZodEnum<{
3
+ resource: "resource";
4
+ global: "global";
5
+ }>;
6
+ export declare const SetVariablesNodeDataSchema: z.ZodObject<{
7
+ variables: z.ZodArray<z.ZodObject<{
8
+ key: z.ZodString;
9
+ value: z.ZodDefault<z.ZodOptional<z.ZodString>>;
10
+ scope: z.ZodEnum<{
11
+ resource: "resource";
12
+ global: "global";
13
+ }>;
14
+ }, z.core.$strip>>;
15
+ }, z.core.$strip>;
16
+ export declare const GetVariablesNodeDataSchema: z.ZodObject<{
17
+ variables: z.ZodArray<z.ZodObject<{
18
+ key: z.ZodString;
19
+ scope: z.ZodEnum<{
20
+ resource: "resource";
21
+ global: "global";
22
+ }>;
23
+ payloadPath: z.ZodString;
24
+ }, z.core.$strip>>;
25
+ }, z.core.$strip>;
26
+ export declare const VariableChangedNodeDataSchema: z.ZodObject<{
27
+ watches: z.ZodArray<z.ZodObject<{
28
+ key: z.ZodString;
29
+ scope: z.ZodEnum<{
30
+ resource: "resource";
31
+ global: "global";
32
+ }>;
33
+ }, z.core.$strip>>;
34
+ source: z.ZodDefault<z.ZodEnum<{
35
+ any: "any";
36
+ "exclude-self": "exclude-self";
37
+ }>>;
38
+ }, z.core.$strip>;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VariableChangedNodeDataSchema = exports.GetVariablesNodeDataSchema = exports.SetVariablesNodeDataSchema = exports.VariableScopeSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.VariableScopeSchema = zod_1.z.enum(['resource', 'global']);
6
+ const VariableKeySchema = zod_1.z.string().min(1, 'Key is required');
7
+ exports.SetVariablesNodeDataSchema = zod_1.z.object({
8
+ variables: zod_1.z
9
+ .array(zod_1.z.object({
10
+ key: VariableKeySchema,
11
+ value: zod_1.z.string().optional().default('').meta({ stringVariant: 'multiline' }),
12
+ scope: exports.VariableScopeSchema,
13
+ }))
14
+ .min(1, 'At least one variable is required'),
15
+ });
16
+ exports.GetVariablesNodeDataSchema = zod_1.z.object({
17
+ variables: zod_1.z
18
+ .array(zod_1.z.object({
19
+ key: VariableKeySchema,
20
+ scope: exports.VariableScopeSchema,
21
+ payloadPath: zod_1.z.string().min(1, 'Payload path is required'),
22
+ }))
23
+ .min(1, 'At least one variable is required'),
24
+ });
25
+ exports.VariableChangedNodeDataSchema = zod_1.z.object({
26
+ watches: zod_1.z
27
+ .array(zod_1.z.object({ key: VariableKeySchema, scope: exports.VariableScopeSchema }))
28
+ .min(1, 'At least one watch is required'),
29
+ source: zod_1.z.enum(['any', 'exclude-self']).default('any'),
30
+ });
31
+ //# sourceMappingURL=variable-schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variable-schemas.js","sourceRoot":"","sources":["../../../../../../../libs/database-entities/src/lib/entities/resource-flow-node/variable-schemas.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,mBAAmB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AAElE,MAAM,iBAAiB,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAC;AAElD,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,SAAS,EAAE,OAAC;SACT,KAAK,CACJ,OAAC,CAAC,MAAM,CAAC;QACP,GAAG,EAAE,iBAAiB;QACtB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,CAAC;QAC7E,KAAK,EAAE,2BAAmB;KAC3B,CAAC,CACH;SACA,GAAG,CAAC,CAAC,EAAE,mCAAmC,CAAC;CAC/C,CAAC,CAAC;AAEU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,SAAS,EAAE,OAAC;SACT,KAAK,CACJ,OAAC,CAAC,MAAM,CAAC;QACP,GAAG,EAAE,iBAAiB;QACtB,KAAK,EAAE,2BAAmB;QAC1B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,0BAA0B,CAAC;KAC3D,CAAC,CACH;SACA,GAAG,CAAC,CAAC,EAAE,mCAAmC,CAAC;CAC/C,CAAC,CAAC;AAEU,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,OAAO,EAAE,OAAC;SACP,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,iBAAiB,EAAE,KAAK,EAAE,2BAAmB,EAAE,CAAC,CAAC;SACvE,GAAG,CAAC,CAAC,EAAE,gCAAgC,CAAC;IAC3C,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;CACvD,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { Resource } from './resource.entity';
2
+ /** A user-defined counter. Values use fixed-point billionths, with no physical unit. */
3
+ export declare class ResourceMeter {
4
+ id: number;
5
+ resourceId: number;
6
+ resource: Resource;
7
+ name: string;
8
+ creditsPerUnit: number;
9
+ lifetimeValue: string;
10
+ counterValue: string | null;
11
+ latestObservedAt: Date | null;
12
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResourceMeter = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const typeorm_1 = require("typeorm");
6
+ const resource_entity_1 = require("./resource.entity");
7
+ /** A user-defined counter. Values use fixed-point billionths, with no physical unit. */
8
+ let ResourceMeter = class ResourceMeter {
9
+ };
10
+ exports.ResourceMeter = ResourceMeter;
11
+ tslib_1.__decorate([
12
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
13
+ tslib_1.__metadata("design:type", Number)
14
+ ], ResourceMeter.prototype, "id", void 0);
15
+ tslib_1.__decorate([
16
+ (0, typeorm_1.Column)({ type: 'integer' }),
17
+ tslib_1.__metadata("design:type", Number)
18
+ ], ResourceMeter.prototype, "resourceId", void 0);
19
+ tslib_1.__decorate([
20
+ (0, typeorm_1.ManyToOne)(() => resource_entity_1.Resource, { onDelete: 'CASCADE' }),
21
+ (0, typeorm_1.JoinColumn)({ name: 'resourceId' }),
22
+ tslib_1.__metadata("design:type", resource_entity_1.Resource)
23
+ ], ResourceMeter.prototype, "resource", void 0);
24
+ tslib_1.__decorate([
25
+ (0, typeorm_1.Column)({ type: 'varchar' }),
26
+ tslib_1.__metadata("design:type", String)
27
+ ], ResourceMeter.prototype, "name", void 0);
28
+ tslib_1.__decorate([
29
+ (0, typeorm_1.Column)({ type: 'integer', default: 0 }),
30
+ tslib_1.__metadata("design:type", Number)
31
+ ], ResourceMeter.prototype, "creditsPerUnit", void 0);
32
+ tslib_1.__decorate([
33
+ (0, typeorm_1.Column)({ type: 'varchar', default: '0' }),
34
+ tslib_1.__metadata("design:type", String)
35
+ ], ResourceMeter.prototype, "lifetimeValue", void 0);
36
+ tslib_1.__decorate([
37
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
38
+ tslib_1.__metadata("design:type", String)
39
+ ], ResourceMeter.prototype, "counterValue", void 0);
40
+ tslib_1.__decorate([
41
+ (0, typeorm_1.Column)({ type: 'datetime', nullable: true }),
42
+ tslib_1.__metadata("design:type", Date)
43
+ ], ResourceMeter.prototype, "latestObservedAt", void 0);
44
+ exports.ResourceMeter = ResourceMeter = tslib_1.__decorate([
45
+ (0, typeorm_1.Entity)(),
46
+ (0, typeorm_1.Index)('IDX_resource_meter_name', ['resourceId', 'name'], { unique: true })
47
+ ], ResourceMeter);
48
+ //# sourceMappingURL=resource-meter.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource-meter.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/resource-meter.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAA+F;AAC/F,uDAA6C;AAE7C,wFAAwF;AAGjF,IAAM,aAAa,GAAnB,MAAM,aAAa;CAyBzB,CAAA;AAzBY,sCAAa;AAExB;IADC,IAAA,gCAAsB,GAAE;;yCACb;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;iDACR;AAIpB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAQ,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAClD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;sCACxB,0BAAQ;+CAAC;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;2CACd;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDAChB;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC;;oDACnB;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACf;AAG7B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC1B,IAAI;uDAAQ;wBAxBpB,aAAa;IAFzB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,yBAAyB,EAAE,CAAC,YAAY,EAAE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GAC9D,aAAa,CAyBzB"}
@@ -0,0 +1,69 @@
1
+ import { ResourceMeter } from './resource-meter.entity';
2
+ import { Resource } from './resource.entity';
3
+ import { ResourceUsage } from './resourceUsage.entity';
4
+ export declare enum ResourceMeteringSessionStatus {
5
+ /** Metering is initialized; the usage is running (or being started). */
6
+ Active = "active",
7
+ /** The final total was collected and the meter charge is part of the usage bill. */
8
+ Settled = "settled",
9
+ /** The usage ended but no valid final total is available yet; retryable. */
10
+ Pending = "pending",
11
+ /** The final total can no longer be obtained (or was rejected); needs an operator decision. */
12
+ Failed = "failed",
13
+ /** An operator decided not to charge meter for this usage. */
14
+ Waived = "waived"
15
+ }
16
+ export type ResourceMeteringOperationKind = 'start' | 'interim' | 'final';
17
+ export type ResourceMeteringOperationStatus = 'pending' | 'completed' | 'failed' | 'expired';
18
+ /** Logical metering session: one per usage and meter. Meter values are integer billionths stored as text. */
19
+ export declare class ResourceMeteringSession {
20
+ id: string;
21
+ resourceId: number;
22
+ resource: Resource;
23
+ usageId: number;
24
+ usage: ResourceUsage;
25
+ status: ResourceMeteringSessionStatus;
26
+ meterId: number;
27
+ meter: ResourceMeter;
28
+ meterName: string;
29
+ /** Collection strategy captured at start, independent of later flow edits. */
30
+ collectionMode: 'requested' | 'increment';
31
+ /** Rate captured when the session started. */
32
+ creditsPerUnit: number;
33
+ /** Set when the start branch reported a lifetime-counter reading to subtract from later totals. */
34
+ baselineValue: string | null;
35
+ source: string | null;
36
+ /** Highest accepted total since the reset, used to reject counter decreases. */
37
+ latestValue: string | null;
38
+ latestObservedAt: Date | null;
39
+ consumedValue: string | null;
40
+ chargeCredits: number | null;
41
+ finalOperationId: string | null;
42
+ failureReason: string | null;
43
+ /** Set when the physical meter may have been reset for a different session; the total is unreliable. */
44
+ compromisedReason: string | null;
45
+ settledAt: Date | null;
46
+ createdAt: Date;
47
+ updatedAt: Date;
48
+ }
49
+ /** One request/reply to the flow-defined meter; the audit trail behind a charge. */
50
+ export declare class ResourceMeteringOperation {
51
+ id: string;
52
+ meterId: number;
53
+ meter: ResourceMeter;
54
+ sessionId: string | null;
55
+ session: ResourceMeteringSession;
56
+ resourceId: number;
57
+ kind: ResourceMeteringOperationKind;
58
+ status: ResourceMeteringOperationStatus;
59
+ requestedAt: Date;
60
+ completedAt: Date | null;
61
+ reportedValue: string | null;
62
+ readingMode: 'total' | 'increment' | null;
63
+ /** Total consumed since the session's reset (baseline already subtracted). */
64
+ totalValue: string | null;
65
+ observedAt: Date | null;
66
+ source: string | null;
67
+ error: string | null;
68
+ createdAt: Date;
69
+ }
@@ -0,0 +1,204 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResourceMeteringOperation = exports.ResourceMeteringSession = exports.ResourceMeteringSessionStatus = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const typeorm_1 = require("typeorm");
6
+ const resource_meter_entity_1 = require("./resource-meter.entity");
7
+ const resource_entity_1 = require("./resource.entity");
8
+ const resourceUsage_entity_1 = require("./resourceUsage.entity");
9
+ var ResourceMeteringSessionStatus;
10
+ (function (ResourceMeteringSessionStatus) {
11
+ /** Metering is initialized; the usage is running (or being started). */
12
+ ResourceMeteringSessionStatus["Active"] = "active";
13
+ /** The final total was collected and the meter charge is part of the usage bill. */
14
+ ResourceMeteringSessionStatus["Settled"] = "settled";
15
+ /** The usage ended but no valid final total is available yet; retryable. */
16
+ ResourceMeteringSessionStatus["Pending"] = "pending";
17
+ /** The final total can no longer be obtained (or was rejected); needs an operator decision. */
18
+ ResourceMeteringSessionStatus["Failed"] = "failed";
19
+ /** An operator decided not to charge meter for this usage. */
20
+ ResourceMeteringSessionStatus["Waived"] = "waived";
21
+ })(ResourceMeteringSessionStatus || (exports.ResourceMeteringSessionStatus = ResourceMeteringSessionStatus = {}));
22
+ /** Logical metering session: one per usage and meter. Meter values are integer billionths stored as text. */
23
+ let ResourceMeteringSession = class ResourceMeteringSession {
24
+ };
25
+ exports.ResourceMeteringSession = ResourceMeteringSession;
26
+ tslib_1.__decorate([
27
+ (0, typeorm_1.PrimaryColumn)({ type: 'varchar' }),
28
+ tslib_1.__metadata("design:type", String)
29
+ ], ResourceMeteringSession.prototype, "id", void 0);
30
+ tslib_1.__decorate([
31
+ (0, typeorm_1.Column)({ type: 'integer' }),
32
+ tslib_1.__metadata("design:type", Number)
33
+ ], ResourceMeteringSession.prototype, "resourceId", void 0);
34
+ tslib_1.__decorate([
35
+ (0, typeorm_1.ManyToOne)(() => resource_entity_1.Resource, { onDelete: 'CASCADE' }),
36
+ (0, typeorm_1.JoinColumn)({ name: 'resourceId' }),
37
+ tslib_1.__metadata("design:type", resource_entity_1.Resource)
38
+ ], ResourceMeteringSession.prototype, "resource", void 0);
39
+ tslib_1.__decorate([
40
+ (0, typeorm_1.Column)({ type: 'integer' }),
41
+ tslib_1.__metadata("design:type", Number)
42
+ ], ResourceMeteringSession.prototype, "usageId", void 0);
43
+ tslib_1.__decorate([
44
+ (0, typeorm_1.ManyToOne)(() => resourceUsage_entity_1.ResourceUsage, { onDelete: 'CASCADE' }),
45
+ (0, typeorm_1.JoinColumn)({ name: 'usageId' }),
46
+ tslib_1.__metadata("design:type", resourceUsage_entity_1.ResourceUsage)
47
+ ], ResourceMeteringSession.prototype, "usage", void 0);
48
+ tslib_1.__decorate([
49
+ (0, typeorm_1.Column)({ type: 'varchar' }),
50
+ tslib_1.__metadata("design:type", String)
51
+ ], ResourceMeteringSession.prototype, "status", void 0);
52
+ tslib_1.__decorate([
53
+ (0, typeorm_1.Column)({ type: 'integer' }),
54
+ tslib_1.__metadata("design:type", Number)
55
+ ], ResourceMeteringSession.prototype, "meterId", void 0);
56
+ tslib_1.__decorate([
57
+ (0, typeorm_1.ManyToOne)(() => resource_meter_entity_1.ResourceMeter, { onDelete: 'CASCADE' }),
58
+ (0, typeorm_1.JoinColumn)({ name: 'meterId' }),
59
+ tslib_1.__metadata("design:type", resource_meter_entity_1.ResourceMeter)
60
+ ], ResourceMeteringSession.prototype, "meter", void 0);
61
+ tslib_1.__decorate([
62
+ (0, typeorm_1.Column)({ type: 'varchar' }),
63
+ tslib_1.__metadata("design:type", String)
64
+ ], ResourceMeteringSession.prototype, "meterName", void 0);
65
+ tslib_1.__decorate([
66
+ (0, typeorm_1.Column)({ type: 'varchar', default: 'requested' }),
67
+ tslib_1.__metadata("design:type", String)
68
+ ], ResourceMeteringSession.prototype, "collectionMode", void 0);
69
+ tslib_1.__decorate([
70
+ (0, typeorm_1.Column)({ type: 'integer' }),
71
+ tslib_1.__metadata("design:type", Number)
72
+ ], ResourceMeteringSession.prototype, "creditsPerUnit", void 0);
73
+ tslib_1.__decorate([
74
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
75
+ tslib_1.__metadata("design:type", String)
76
+ ], ResourceMeteringSession.prototype, "baselineValue", void 0);
77
+ tslib_1.__decorate([
78
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
79
+ tslib_1.__metadata("design:type", String)
80
+ ], ResourceMeteringSession.prototype, "source", void 0);
81
+ tslib_1.__decorate([
82
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
83
+ tslib_1.__metadata("design:type", String)
84
+ ], ResourceMeteringSession.prototype, "latestValue", void 0);
85
+ tslib_1.__decorate([
86
+ (0, typeorm_1.Column)({ type: 'datetime', nullable: true }),
87
+ tslib_1.__metadata("design:type", Date)
88
+ ], ResourceMeteringSession.prototype, "latestObservedAt", void 0);
89
+ tslib_1.__decorate([
90
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
91
+ tslib_1.__metadata("design:type", String)
92
+ ], ResourceMeteringSession.prototype, "consumedValue", void 0);
93
+ tslib_1.__decorate([
94
+ (0, typeorm_1.Column)({ type: 'integer', nullable: true }),
95
+ tslib_1.__metadata("design:type", Number)
96
+ ], ResourceMeteringSession.prototype, "chargeCredits", void 0);
97
+ tslib_1.__decorate([
98
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
99
+ tslib_1.__metadata("design:type", String)
100
+ ], ResourceMeteringSession.prototype, "finalOperationId", void 0);
101
+ tslib_1.__decorate([
102
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
103
+ tslib_1.__metadata("design:type", String)
104
+ ], ResourceMeteringSession.prototype, "failureReason", void 0);
105
+ tslib_1.__decorate([
106
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
107
+ tslib_1.__metadata("design:type", String)
108
+ ], ResourceMeteringSession.prototype, "compromisedReason", void 0);
109
+ tslib_1.__decorate([
110
+ (0, typeorm_1.Column)({ type: 'datetime', nullable: true }),
111
+ tslib_1.__metadata("design:type", Date)
112
+ ], ResourceMeteringSession.prototype, "settledAt", void 0);
113
+ tslib_1.__decorate([
114
+ (0, typeorm_1.CreateDateColumn)(),
115
+ tslib_1.__metadata("design:type", Date)
116
+ ], ResourceMeteringSession.prototype, "createdAt", void 0);
117
+ tslib_1.__decorate([
118
+ (0, typeorm_1.UpdateDateColumn)(),
119
+ tslib_1.__metadata("design:type", Date)
120
+ ], ResourceMeteringSession.prototype, "updatedAt", void 0);
121
+ exports.ResourceMeteringSession = ResourceMeteringSession = tslib_1.__decorate([
122
+ (0, typeorm_1.Entity)(),
123
+ (0, typeorm_1.Index)('IDX_resource_metering_session_usage', ['usageId', 'meterId'], { unique: true }),
124
+ (0, typeorm_1.Index)('IDX_resource_metering_session_resource', ['resourceId'])
125
+ ], ResourceMeteringSession);
126
+ /** One request/reply to the flow-defined meter; the audit trail behind a charge. */
127
+ let ResourceMeteringOperation = class ResourceMeteringOperation {
128
+ };
129
+ exports.ResourceMeteringOperation = ResourceMeteringOperation;
130
+ tslib_1.__decorate([
131
+ (0, typeorm_1.PrimaryColumn)({ type: 'varchar' }),
132
+ tslib_1.__metadata("design:type", String)
133
+ ], ResourceMeteringOperation.prototype, "id", void 0);
134
+ tslib_1.__decorate([
135
+ (0, typeorm_1.Column)({ type: 'integer' }),
136
+ tslib_1.__metadata("design:type", Number)
137
+ ], ResourceMeteringOperation.prototype, "meterId", void 0);
138
+ tslib_1.__decorate([
139
+ (0, typeorm_1.ManyToOne)(() => resource_meter_entity_1.ResourceMeter, { onDelete: 'CASCADE' }),
140
+ (0, typeorm_1.JoinColumn)({ name: 'meterId' }),
141
+ tslib_1.__metadata("design:type", resource_meter_entity_1.ResourceMeter)
142
+ ], ResourceMeteringOperation.prototype, "meter", void 0);
143
+ tslib_1.__decorate([
144
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
145
+ tslib_1.__metadata("design:type", String)
146
+ ], ResourceMeteringOperation.prototype, "sessionId", void 0);
147
+ tslib_1.__decorate([
148
+ (0, typeorm_1.ManyToOne)(() => ResourceMeteringSession, { onDelete: 'CASCADE' }),
149
+ (0, typeorm_1.JoinColumn)({ name: 'sessionId' }),
150
+ tslib_1.__metadata("design:type", ResourceMeteringSession)
151
+ ], ResourceMeteringOperation.prototype, "session", void 0);
152
+ tslib_1.__decorate([
153
+ (0, typeorm_1.Column)({ type: 'integer' }),
154
+ tslib_1.__metadata("design:type", Number)
155
+ ], ResourceMeteringOperation.prototype, "resourceId", void 0);
156
+ tslib_1.__decorate([
157
+ (0, typeorm_1.Column)({ type: 'varchar' }),
158
+ tslib_1.__metadata("design:type", String)
159
+ ], ResourceMeteringOperation.prototype, "kind", void 0);
160
+ tslib_1.__decorate([
161
+ (0, typeorm_1.Column)({ type: 'varchar' }),
162
+ tslib_1.__metadata("design:type", String)
163
+ ], ResourceMeteringOperation.prototype, "status", void 0);
164
+ tslib_1.__decorate([
165
+ (0, typeorm_1.Column)({ type: 'datetime' }),
166
+ tslib_1.__metadata("design:type", Date)
167
+ ], ResourceMeteringOperation.prototype, "requestedAt", void 0);
168
+ tslib_1.__decorate([
169
+ (0, typeorm_1.Column)({ type: 'datetime', nullable: true }),
170
+ tslib_1.__metadata("design:type", Date)
171
+ ], ResourceMeteringOperation.prototype, "completedAt", void 0);
172
+ tslib_1.__decorate([
173
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
174
+ tslib_1.__metadata("design:type", String)
175
+ ], ResourceMeteringOperation.prototype, "reportedValue", void 0);
176
+ tslib_1.__decorate([
177
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
178
+ tslib_1.__metadata("design:type", String)
179
+ ], ResourceMeteringOperation.prototype, "readingMode", void 0);
180
+ tslib_1.__decorate([
181
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
182
+ tslib_1.__metadata("design:type", String)
183
+ ], ResourceMeteringOperation.prototype, "totalValue", void 0);
184
+ tslib_1.__decorate([
185
+ (0, typeorm_1.Column)({ type: 'datetime', nullable: true }),
186
+ tslib_1.__metadata("design:type", Date)
187
+ ], ResourceMeteringOperation.prototype, "observedAt", void 0);
188
+ tslib_1.__decorate([
189
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
190
+ tslib_1.__metadata("design:type", String)
191
+ ], ResourceMeteringOperation.prototype, "source", void 0);
192
+ tslib_1.__decorate([
193
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
194
+ tslib_1.__metadata("design:type", String)
195
+ ], ResourceMeteringOperation.prototype, "error", void 0);
196
+ tslib_1.__decorate([
197
+ (0, typeorm_1.CreateDateColumn)(),
198
+ tslib_1.__metadata("design:type", Date)
199
+ ], ResourceMeteringOperation.prototype, "createdAt", void 0);
200
+ exports.ResourceMeteringOperation = ResourceMeteringOperation = tslib_1.__decorate([
201
+ (0, typeorm_1.Entity)(),
202
+ (0, typeorm_1.Index)('IDX_resource_metering_operation_session', ['sessionId'])
203
+ ], ResourceMeteringOperation);
204
+ //# sourceMappingURL=resource-metering.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource-metering.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/resource-metering.entity.ts"],"names":[],"mappings":";;;;AAAA,qCASiB;AACjB,mEAAwD;AACxD,uDAA6C;AAC7C,iEAAuD;AAEvD,IAAY,6BAWX;AAXD,WAAY,6BAA6B;IACvC,wEAAwE;IACxE,kDAAiB,CAAA;IACjB,oFAAoF;IACpF,oDAAmB,CAAA;IACnB,4EAA4E;IAC5E,oDAAmB,CAAA;IACnB,+FAA+F;IAC/F,kDAAiB,CAAA;IACjB,8DAA8D;IAC9D,kDAAiB,CAAA;AACnB,CAAC,EAXW,6BAA6B,6CAA7B,6BAA6B,QAWxC;AAKD,6GAA6G;AAItG,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CA6EnC,CAAA;AA7EY,0DAAuB;AAElC;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;mDACvB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;2DACR;AAIpB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAQ,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAClD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;sCACxB,0BAAQ;yDAAC;AAGpB;IADC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E,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAChC,IAAI;6DAAQ;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACrB;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACnB;AAGtB;IADC,IAAA,0BAAgB,GAAE;sCACP,IAAI;4DAAC;oCArDN,yBAAyB;IAFrC,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,yCAAyC,EAAE,CAAC,WAAW,CAAC,CAAC;GACnD,yBAAyB,CAsDrC"}
@@ -51,6 +51,8 @@ tslib_1.__decorate([
51
51
  ], ResourceUsageLifecycleAttempt.prototype, "createdAt", void 0);
52
52
  exports.ResourceUsageLifecycleAttempt = ResourceUsageLifecycleAttempt = tslib_1.__decorate([
53
53
  (0, typeorm_1.Entity)(),
54
- (0, typeorm_1.Index)('IDX_resource_usage_lifecycle_attempt_resource', ['resourceId'], { unique: true })
54
+ (0, typeorm_1.Index)('IDX_resource_usage_lifecycle_attempt_resource', ['resourceId']),
55
+ (0, typeorm_1.Index)('IDX_resource_usage_lifecycle_attempt_candidate', ['candidateUsageId'], { unique: true }),
56
+ (0, typeorm_1.Index)('IDX_resource_usage_lifecycle_attempt_previous', ['previousUsageId'], { unique: true })
55
57
  ], ResourceUsageLifecycleAttempt);
56
58
  //# sourceMappingURL=resource-usage-lifecycle-attempt.entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resource-usage-lifecycle-attempt.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/resource-usage-lifecycle-attempt.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAAwG;AACxG,uDAA6C;AAS7C,sGAAsG;AAG/F,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;CA+BzC,CAAA;AA/BY,sEAA6B;AAExC;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;yDACvB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;iEACR;AAIpB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAQ,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAClD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;sCACxB,0BAAQ;+DAAC;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;2DACQ;AAGpC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uEACX;AAGjC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sEACZ;AAGhC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;sCACZ,IAAI;qEAAC;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;sEACG;AAGnC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;mEACM;AAGtC;IADC,IAAA,0BAAgB,GAAE;sCACP,IAAI;gEAAC;wCA9BN,6BAA6B;IAFzC,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,+CAA+C,EAAE,CAAC,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GAC5E,6BAA6B,CA+BzC"}
1
+ {"version":3,"file":"resource-usage-lifecycle-attempt.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/resource-usage-lifecycle-attempt.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAAwG;AACxG,uDAA6C;AAS7C,sGAAsG;AAK/F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C,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACjF,6BAA6B,CA+BzC"}
@@ -1,30 +1,22 @@
1
- import { ResourceIntroduction } from './resourceIntroduction.entity';
2
- import { ResourceUsage } from './resourceUsage.entity';
3
- import { ResourceIntroducer } from './resourceIntroducer.entity';
4
- import { ResourceGroup } from './resourceGroup.entity';
5
1
  import { DocumentationType } from '../types/documentationType.enum';
6
- import { ResourceFlowNode } from './resourceFlowNode';
7
- import { ResourceFlowEdge } from './resourceFlowEdge';
8
- import { ResourceFlowVariable } from './resourceFlowVariable';
9
2
  import { Attractap } from './attractap.entity';
10
- import { ResourceMaintenance } from './resource.maintenance';
11
- import { ResourceMaintenanceSchedule } from './resource-maintenance-schedule.entity';
12
- import { ResourceType } from './resource.type';
13
- import { SupervisionMode, AutoIntroductionTarget } from './resource.supervision';
14
- import { ResourceBillingConfiguration } from './resource-billing-configuration.entity';
15
3
  import { Form } from './form';
4
+ import { ResourceBillingConfiguration } from './resource-billing-configuration.entity';
5
+ import { ResourceMaintenanceSchedule } from './resource-maintenance-schedule.entity';
16
6
  import { ResourceOperatingInterval } from './resource-operating-interval.entity';
7
+ import { ResourceMaintenance } from './resource.maintenance';
8
+ import { ResourceType } from './resource.type';
9
+ import { ResourceFlowEdge } from './resourceFlowEdge';
10
+ import { ResourceFlowNode } from './resourceFlowNode';
11
+ import { ResourceFlowVariable } from './resourceFlowVariable';
12
+ import { ResourceGroup } from './resourceGroup.entity';
13
+ import { ResourceIntroducer } from './resourceIntroducer.entity';
14
+ import { ResourceIntroduction } from './resourceIntroduction.entity';
15
+ import { ResourceUsage } from './resourceUsage.entity';
16
+ import { AutoIntroductionTarget, SupervisionMode } from './resource.supervision';
17
17
  export declare class Resource {
18
- id: number;
19
- name: string;
20
- type: ResourceType;
21
- separateUnlockAndUnlatch: boolean | null;
22
- description: string | null;
23
- imageFilename: string | null;
24
- documentationType: DocumentationType | null;
25
- documentationMarkdown: string | null;
26
- documentationUrl: string | null;
27
18
  allowTakeOver: boolean;
19
+ maxParallelSessions: number;
28
20
  retrainingMaxAgeDays: number | null;
29
21
  retrainingMaxInactivityDays: number | null;
30
22
  retrainingBlocksAccess: boolean;
@@ -33,6 +25,15 @@ export declare class Resource {
33
25
  autoIntroductionTarget: AutoIntroductionTarget | null;
34
26
  autoIntroductionGroupId: number | null;
35
27
  autoIntroductionGroup: ResourceGroup | null;
28
+ id: number;
29
+ name: string;
30
+ type: ResourceType;
31
+ separateUnlockAndUnlatch: boolean | null;
32
+ description: string | null;
33
+ imageFilename: string | null;
34
+ documentationType: DocumentationType | null;
35
+ documentationMarkdown: string | null;
36
+ documentationUrl: string | null;
36
37
  metadata: Record<string, unknown> | null;
37
38
  createdAt: Date;
38
39
  updatedAt: Date;