@attraccess/database-entities 1.11.0-beta.0 → 1.11.0-beta.2
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.
- package/package.json +2 -2
- package/src/lib/entities/attractap.entity.d.ts +1 -0
- package/src/lib/entities/attractap.entity.js +9 -0
- package/src/lib/entities/attractap.entity.js.map +1 -1
- package/src/lib/entities/attractapCrashReport.entity.d.ts +5 -0
- package/src/lib/entities/attractapCrashReport.entity.js +24 -0
- package/src/lib/entities/attractapCrashReport.entity.js.map +1 -1
- package/src/lib/entities/audit-log.entity.d.ts +4 -1
- package/src/lib/entities/audit-log.entity.js +3 -1
- package/src/lib/entities/audit-log.entity.js.map +1 -1
- package/src/lib/entities/billing-transaction-item.entity.d.ts +21 -0
- package/src/lib/entities/billing-transaction-item.entity.js +10 -0
- package/src/lib/entities/billing-transaction-item.entity.js.map +1 -1
- package/src/lib/entities/dashboard-pin.entity.d.ts +15 -0
- package/src/lib/entities/dashboard-pin.entity.js +45 -0
- package/src/lib/entities/dashboard-pin.entity.js.map +1 -0
- package/src/lib/entities/mcp-oauth-client.entity.d.ts +8 -0
- package/src/lib/entities/mcp-oauth-client.entity.js +33 -0
- package/src/lib/entities/mcp-oauth-client.entity.js.map +1 -0
- package/src/lib/entities/mcp-oauth-grant.entity.d.ts +20 -0
- package/src/lib/entities/mcp-oauth-grant.entity.js +58 -0
- package/src/lib/entities/mcp-oauth-grant.entity.js.map +1 -0
- package/src/lib/entities/mcp-oauth-token.entity.d.ts +18 -0
- package/src/lib/entities/mcp-oauth-token.entity.js +51 -0
- package/src/lib/entities/mcp-oauth-token.entity.js.map +1 -0
- package/src/lib/entities/permission.entity.d.ts +11 -0
- package/src/lib/entities/permission.entity.js +54 -0
- package/src/lib/entities/permission.entity.js.map +1 -1
- package/src/lib/entities/plugin-ble-endpoint.entity.d.ts +19 -0
- package/src/lib/entities/plugin-ble-endpoint.entity.js +63 -0
- package/src/lib/entities/plugin-ble-endpoint.entity.js.map +1 -0
- package/src/lib/entities/resource-flow-node/metering-schemas.d.ts +1 -0
- package/src/lib/entities/resource-flow-node/metering-schemas.js +3 -0
- package/src/lib/entities/resource-flow-node/metering-schemas.js.map +1 -1
- package/src/lib/entities/resource-flow-node/schema-registry.d.ts +1 -0
- package/src/lib/entities/resource-meter.entity.d.ts +4 -0
- package/src/lib/entities/resource-meter.entity.js +4 -0
- package/src/lib/entities/resource-meter.entity.js.map +1 -1
- package/src/lib/entities/resource-metering.entity.d.ts +34 -1
- package/src/lib/entities/resource-metering.entity.js +68 -1
- package/src/lib/entities/resource-metering.entity.js.map +1 -1
- package/src/lib/entities/resourceUsage.entity.d.ts +1 -0
- package/src/lib/entities/resourceUsage.entity.js.map +1 -1
- package/src/lib/entities-index.d.ts +24 -6
- package/src/lib/entities-index.js +26 -3
- package/src/lib/entities-index.js.map +1 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PluginBleEndpointEntity = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const attractap_entity_1 = require("./attractap.entity");
|
|
7
|
+
/**
|
|
8
|
+
* A logical BLE endpoint owned by exactly one backend plugin: a reader, a device address and a profile the
|
|
9
|
+
* plugin registered. Host detail of the plugin BLE transport; plugins see it only as the SDK's
|
|
10
|
+
* `PluginBleEndpoint` through `context.ble` and must not touch these rows through repository access.
|
|
11
|
+
* The one-address-one-plugin rule is enforced by the service, not by the schema.
|
|
12
|
+
*/
|
|
13
|
+
let PluginBleEndpointEntity = class PluginBleEndpointEntity {
|
|
14
|
+
};
|
|
15
|
+
exports.PluginBleEndpointEntity = PluginBleEndpointEntity;
|
|
16
|
+
tslib_1.__decorate([
|
|
17
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
18
|
+
tslib_1.__metadata("design:type", String)
|
|
19
|
+
], PluginBleEndpointEntity.prototype, "id", void 0);
|
|
20
|
+
tslib_1.__decorate([
|
|
21
|
+
(0, typeorm_1.Index)('IDX_plugin_ble_endpoint_plugin'),
|
|
22
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
23
|
+
tslib_1.__metadata("design:type", String)
|
|
24
|
+
], PluginBleEndpointEntity.prototype, "pluginId", void 0);
|
|
25
|
+
tslib_1.__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'integer' }),
|
|
27
|
+
tslib_1.__metadata("design:type", Number)
|
|
28
|
+
], PluginBleEndpointEntity.prototype, "readerId", void 0);
|
|
29
|
+
tslib_1.__decorate([
|
|
30
|
+
(0, typeorm_1.ManyToOne)(() => attractap_entity_1.Attractap, { onDelete: 'CASCADE', nullable: false }),
|
|
31
|
+
(0, typeorm_1.JoinColumn)({ name: 'readerId' }),
|
|
32
|
+
tslib_1.__metadata("design:type", attractap_entity_1.Attractap)
|
|
33
|
+
], PluginBleEndpointEntity.prototype, "reader", void 0);
|
|
34
|
+
tslib_1.__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
36
|
+
tslib_1.__metadata("design:type", String)
|
|
37
|
+
], PluginBleEndpointEntity.prototype, "address", void 0);
|
|
38
|
+
tslib_1.__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
40
|
+
tslib_1.__metadata("design:type", String)
|
|
41
|
+
], PluginBleEndpointEntity.prototype, "addressType", void 0);
|
|
42
|
+
tslib_1.__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
44
|
+
tslib_1.__metadata("design:type", String)
|
|
45
|
+
], PluginBleEndpointEntity.prototype, "profileId", void 0);
|
|
46
|
+
tslib_1.__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
48
|
+
tslib_1.__metadata("design:type", String)
|
|
49
|
+
], PluginBleEndpointEntity.prototype, "label", void 0);
|
|
50
|
+
tslib_1.__decorate([
|
|
51
|
+
(0, typeorm_1.CreateDateColumn)({ type: 'datetime' }),
|
|
52
|
+
tslib_1.__metadata("design:type", Date)
|
|
53
|
+
], PluginBleEndpointEntity.prototype, "createdAt", void 0);
|
|
54
|
+
tslib_1.__decorate([
|
|
55
|
+
(0, typeorm_1.UpdateDateColumn)({ type: 'datetime' }),
|
|
56
|
+
tslib_1.__metadata("design:type", Date)
|
|
57
|
+
], PluginBleEndpointEntity.prototype, "updatedAt", void 0);
|
|
58
|
+
exports.PluginBleEndpointEntity = PluginBleEndpointEntity = tslib_1.__decorate([
|
|
59
|
+
(0, typeorm_1.Entity)('plugin_ble_endpoint'),
|
|
60
|
+
(0, typeorm_1.Index)('UQ_plugin_ble_endpoint_plugin_reader_address', ['pluginId', 'readerId', 'address'], { unique: true }),
|
|
61
|
+
(0, typeorm_1.Index)('IDX_plugin_ble_endpoint_address', ['address'])
|
|
62
|
+
], PluginBleEndpointEntity);
|
|
63
|
+
//# sourceMappingURL=plugin-ble-endpoint.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-ble-endpoint.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/plugin-ble-endpoint.entity.ts"],"names":[],"mappings":";;;;AAAA,qCASiB;AACjB,yDAA+C;AAE/C;;;;;GAKG;AAII,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAgCnC,CAAA;AAhCY,0DAAuB;AAElC;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;mDACnB;AAIZ;IAFC,IAAA,eAAK,EAAC,gCAAgC,CAAC;IACvC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yDACP;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;yDACV;AAIlB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,4BAAS,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACpE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;sCACxB,4BAAS;uDAAC;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wDACR;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4DACS;AAGlC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0DACN;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACnB;AAGtB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;sCAC3B,IAAI;0DAAC;AAGjB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;sCAC3B,IAAI;0DAAC;kCA/BN,uBAAuB;IAHnC,IAAA,gBAAM,EAAC,qBAAqB,CAAC;IAC7B,IAAA,eAAK,EAAC,8CAA8C,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC5G,IAAA,eAAK,EAAC,iCAAiC,EAAE,CAAC,SAAS,CAAC,CAAC;GACzC,uBAAuB,CAgCnC"}
|
|
@@ -41,5 +41,8 @@ exports.MeteringReportNodeDataSchema = zod_1.z.object({
|
|
|
41
41
|
.meta({ helpText: 'Non-negative measured value (template). No unit or conversion is applied.' }),
|
|
42
42
|
observedAt: zod_1.z.string().optional(),
|
|
43
43
|
source: zod_1.z.string().optional(),
|
|
44
|
+
usageId: zod_1.z.string().optional().meta({
|
|
45
|
+
helpText: 'Session the reading belongs to (template), for a meter measured per session when the flow does not run in a session lifecycle. Leave empty otherwise.',
|
|
46
|
+
}),
|
|
44
47
|
});
|
|
45
48
|
//# sourceMappingURL=metering-schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metering-schemas.js","sourceRoot":"","sources":["../../../../../../../libs/database-entities/src/lib/entities/resource-flow-node/metering-schemas.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,4BAA4B,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC;IACzF,QAAQ,EAAE,2EAA2E;CACtF,CAAC,CAAC;AAEH,MAAM,aAAa,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,6CAA6C,EAAE,CAAC,CAAC;AAEvG,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,OAAO,EAAE,aAAa;IACtB,cAAc,EAAE,4BAA4B;CAC7C,CAAC,CAAC;AAEU,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,OAAO,EAAE,aAAa;IACtB,cAAc,EAAE,4BAA4B;IAC5C,sBAAsB,EAAE,OAAC;SACtB,MAAM,EAAE;SACR,GAAG,EAAE;SACL,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,IAAI,CAAC;SACT,OAAO,CAAC,CAAC,CAAC;SACV,IAAI,CAAC,EAAE,QAAQ,EAAE,8FAA8F,EAAE,CAAC;IACrH,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IACzD,sBAAsB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;CACpE,CAAC,CAAC;AAEU,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,OAAO,EAAE,aAAa;IACtB,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC;QACxC,QAAQ,EAAE,kGAAkG;KAC7G,CAAC;IACF,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAEU,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,OAAO,EAAE,aAAa;IACtB,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC;QACzD,QAAQ,EACN,0GAA0G;KAC7G,CAAC;IACF,KAAK,EAAE,OAAC;SACL,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,mBAAmB,CAAC;SAC3B,IAAI,CAAC,EAAE,QAAQ,EAAE,2EAA2E,EAAE,CAAC;IAClG,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"file":"metering-schemas.js","sourceRoot":"","sources":["../../../../../../../libs/database-entities/src/lib/entities/resource-flow-node/metering-schemas.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,4BAA4B,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC;IACzF,QAAQ,EAAE,2EAA2E;CACtF,CAAC,CAAC;AAEH,MAAM,aAAa,GAAG,OAAC,CAAC,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AC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC;QACzD,QAAQ,EACN,0GAA0G;KAC7G,CAAC;IACF,KAAK,EAAE,OAAC;SACL,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,mBAAmB,CAAC;SAC3B,IAAI,CAAC,EAAE,QAAQ,EAAE,2EAA2E,EAAE,CAAC;IAClG,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC;QAClC,QAAQ,EACN,uJAAuJ;KAC1J,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -175,5 +175,6 @@ export declare function getNodeDataSchema(nodeType: ResourceFlowNodeType): z.Zod
|
|
|
175
175
|
value: z.ZodString;
|
|
176
176
|
observedAt: z.ZodOptional<z.ZodString>;
|
|
177
177
|
source: z.ZodOptional<z.ZodString>;
|
|
178
|
+
usageId: z.ZodOptional<z.ZodString>;
|
|
178
179
|
}, z.core.$strip>;
|
|
179
180
|
export declare function getExternalEffectFailureBehavior(nodeType: ResourceFlowNodeType, data: unknown): ExternalEffectFailureBehavior | undefined;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { Resource } from './resource.entity';
|
|
2
|
+
/** How a meter's consumption is assigned when several sessions run on the machine at once. */
|
|
3
|
+
export type ResourceMeterAllocation = 'shared' | 'per-session';
|
|
2
4
|
/** A user-defined counter. Values use fixed-point billionths, with no physical unit. */
|
|
3
5
|
export declare class ResourceMeter {
|
|
4
6
|
id: number;
|
|
@@ -6,6 +8,8 @@ export declare class ResourceMeter {
|
|
|
6
8
|
resource: Resource;
|
|
7
9
|
name: string;
|
|
8
10
|
creditsPerUnit: number;
|
|
11
|
+
/** `shared`: every start and stop opens a time segment whose consumption is split equally. `per-session`: a flow measures each session. */
|
|
12
|
+
allocation: ResourceMeterAllocation;
|
|
9
13
|
lifetimeValue: string;
|
|
10
14
|
counterValue: string | null;
|
|
11
15
|
latestObservedAt: Date | null;
|
|
@@ -29,6 +29,10 @@ tslib_1.__decorate([
|
|
|
29
29
|
(0, typeorm_1.Column)({ type: 'integer', default: 0 }),
|
|
30
30
|
tslib_1.__metadata("design:type", Number)
|
|
31
31
|
], ResourceMeter.prototype, "creditsPerUnit", void 0);
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'varchar', default: 'shared' }),
|
|
34
|
+
tslib_1.__metadata("design:type", String)
|
|
35
|
+
], ResourceMeter.prototype, "allocation", void 0);
|
|
32
36
|
tslib_1.__decorate([
|
|
33
37
|
(0, typeorm_1.Column)({ type: 'varchar', default: '0' }),
|
|
34
38
|
tslib_1.__metadata("design:type", String)
|
|
@@ -1 +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;
|
|
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;AAK7C,wFAAwF;AAGjF,IAAM,aAAa,GAAnB,MAAM,aAAa;CA6BzB,CAAA;AA7BY,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;AAIxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;;iDACV;AAGrC;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;wBA5BpB,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,CA6BzB"}
|
|
@@ -13,7 +13,8 @@ export declare enum ResourceMeteringSessionStatus {
|
|
|
13
13
|
/** An operator decided not to charge meter for this usage. */
|
|
14
14
|
Waived = "waived"
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
/** `boundary` is a reading at a session start or stop of a shared meter: it closes a time segment without resetting the meter. */
|
|
17
|
+
export type ResourceMeteringOperationKind = 'start' | 'interim' | 'final' | 'boundary';
|
|
17
18
|
export type ResourceMeteringOperationStatus = 'pending' | 'completed' | 'failed' | 'expired';
|
|
18
19
|
/** Logical metering session: one per usage and meter. Meter values are integer billionths stored as text. */
|
|
19
20
|
export declare class ResourceMeteringSession {
|
|
@@ -30,6 +31,12 @@ export declare class ResourceMeteringSession {
|
|
|
30
31
|
collectionMode: 'requested' | 'increment';
|
|
31
32
|
/** Rate captured when the session started. */
|
|
32
33
|
creditsPerUnit: number;
|
|
34
|
+
/**
|
|
35
|
+
* `own`: the session accumulates its own total on the meter, because it never overlapped another session.
|
|
36
|
+
* `segmented`: its consumption is the sum of its shares of the meter's shared time segments.
|
|
37
|
+
* `per-session`: a measuring point of its own, read and settled independently of other sessions.
|
|
38
|
+
*/
|
|
39
|
+
accounting: 'own' | 'segmented' | 'per-session';
|
|
33
40
|
/** Set when the start branch reported a lifetime-counter reading to subtract from later totals. */
|
|
34
41
|
baselineValue: string | null;
|
|
35
42
|
source: string | null;
|
|
@@ -67,3 +74,29 @@ export declare class ResourceMeteringOperation {
|
|
|
67
74
|
error: string | null;
|
|
68
75
|
createdAt: Date;
|
|
69
76
|
}
|
|
77
|
+
export type ResourceMeteringSegmentStatus = 'open' | 'closed' | 'abandoned';
|
|
78
|
+
/** A session taking part in a shared segment, with the rate it captured for the meter. Earliest started first. */
|
|
79
|
+
export interface ResourceMeteringSegmentParticipant {
|
|
80
|
+
usageId: number;
|
|
81
|
+
creditsPerUnit: number;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* A time span of a shared meter in which the same sessions were active. Its consumption is the difference between
|
|
85
|
+
* the readings at its two boundaries and is split equally among the participants. A segment whose closing reading
|
|
86
|
+
* failed stays open and absorbs the next one, so its participants are everyone who was active at any point in it.
|
|
87
|
+
*/
|
|
88
|
+
export declare class ResourceMeteringSegment {
|
|
89
|
+
id: string;
|
|
90
|
+
resourceId: number;
|
|
91
|
+
resource: Resource;
|
|
92
|
+
meterId: number;
|
|
93
|
+
meter: ResourceMeter;
|
|
94
|
+
status: ResourceMeteringSegmentStatus;
|
|
95
|
+
startedAt: Date;
|
|
96
|
+
endedAt: Date | null;
|
|
97
|
+
/** Meter counter at the opening boundary. Fixed-point billionths as text. */
|
|
98
|
+
startValue: string;
|
|
99
|
+
endValue: string | null;
|
|
100
|
+
participants: ResourceMeteringSegmentParticipant[];
|
|
101
|
+
createdAt: Date;
|
|
102
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ResourceMeteringOperation = exports.ResourceMeteringSession = exports.ResourceMeteringSessionStatus = void 0;
|
|
3
|
+
exports.ResourceMeteringSegment = exports.ResourceMeteringOperation = exports.ResourceMeteringSession = exports.ResourceMeteringSessionStatus = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const typeorm_1 = require("typeorm");
|
|
6
6
|
const resource_meter_entity_1 = require("./resource-meter.entity");
|
|
@@ -70,6 +70,10 @@ tslib_1.__decorate([
|
|
|
70
70
|
(0, typeorm_1.Column)({ type: 'integer' }),
|
|
71
71
|
tslib_1.__metadata("design:type", Number)
|
|
72
72
|
], ResourceMeteringSession.prototype, "creditsPerUnit", void 0);
|
|
73
|
+
tslib_1.__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: 'varchar', default: 'own' }),
|
|
75
|
+
tslib_1.__metadata("design:type", String)
|
|
76
|
+
], ResourceMeteringSession.prototype, "accounting", void 0);
|
|
73
77
|
tslib_1.__decorate([
|
|
74
78
|
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
75
79
|
tslib_1.__metadata("design:type", String)
|
|
@@ -201,4 +205,67 @@ exports.ResourceMeteringOperation = ResourceMeteringOperation = tslib_1.__decora
|
|
|
201
205
|
(0, typeorm_1.Entity)(),
|
|
202
206
|
(0, typeorm_1.Index)('IDX_resource_metering_operation_session', ['sessionId'])
|
|
203
207
|
], ResourceMeteringOperation);
|
|
208
|
+
/**
|
|
209
|
+
* A time span of a shared meter in which the same sessions were active. Its consumption is the difference between
|
|
210
|
+
* the readings at its two boundaries and is split equally among the participants. A segment whose closing reading
|
|
211
|
+
* failed stays open and absorbs the next one, so its participants are everyone who was active at any point in it.
|
|
212
|
+
*/
|
|
213
|
+
let ResourceMeteringSegment = class ResourceMeteringSegment {
|
|
214
|
+
};
|
|
215
|
+
exports.ResourceMeteringSegment = ResourceMeteringSegment;
|
|
216
|
+
tslib_1.__decorate([
|
|
217
|
+
(0, typeorm_1.PrimaryColumn)({ type: 'varchar' }),
|
|
218
|
+
tslib_1.__metadata("design:type", String)
|
|
219
|
+
], ResourceMeteringSegment.prototype, "id", void 0);
|
|
220
|
+
tslib_1.__decorate([
|
|
221
|
+
(0, typeorm_1.Column)({ type: 'integer' }),
|
|
222
|
+
tslib_1.__metadata("design:type", Number)
|
|
223
|
+
], ResourceMeteringSegment.prototype, "resourceId", void 0);
|
|
224
|
+
tslib_1.__decorate([
|
|
225
|
+
(0, typeorm_1.ManyToOne)(() => resource_entity_1.Resource, { onDelete: 'CASCADE' }),
|
|
226
|
+
(0, typeorm_1.JoinColumn)({ name: 'resourceId' }),
|
|
227
|
+
tslib_1.__metadata("design:type", resource_entity_1.Resource)
|
|
228
|
+
], ResourceMeteringSegment.prototype, "resource", void 0);
|
|
229
|
+
tslib_1.__decorate([
|
|
230
|
+
(0, typeorm_1.Column)({ type: 'integer' }),
|
|
231
|
+
tslib_1.__metadata("design:type", Number)
|
|
232
|
+
], ResourceMeteringSegment.prototype, "meterId", void 0);
|
|
233
|
+
tslib_1.__decorate([
|
|
234
|
+
(0, typeorm_1.ManyToOne)(() => resource_meter_entity_1.ResourceMeter, { onDelete: 'CASCADE' }),
|
|
235
|
+
(0, typeorm_1.JoinColumn)({ name: 'meterId' }),
|
|
236
|
+
tslib_1.__metadata("design:type", resource_meter_entity_1.ResourceMeter)
|
|
237
|
+
], ResourceMeteringSegment.prototype, "meter", void 0);
|
|
238
|
+
tslib_1.__decorate([
|
|
239
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
240
|
+
tslib_1.__metadata("design:type", String)
|
|
241
|
+
], ResourceMeteringSegment.prototype, "status", void 0);
|
|
242
|
+
tslib_1.__decorate([
|
|
243
|
+
(0, typeorm_1.Column)({ type: 'datetime' }),
|
|
244
|
+
tslib_1.__metadata("design:type", Date)
|
|
245
|
+
], ResourceMeteringSegment.prototype, "startedAt", void 0);
|
|
246
|
+
tslib_1.__decorate([
|
|
247
|
+
(0, typeorm_1.Column)({ type: 'datetime', nullable: true }),
|
|
248
|
+
tslib_1.__metadata("design:type", Date)
|
|
249
|
+
], ResourceMeteringSegment.prototype, "endedAt", void 0);
|
|
250
|
+
tslib_1.__decorate([
|
|
251
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
252
|
+
tslib_1.__metadata("design:type", String)
|
|
253
|
+
], ResourceMeteringSegment.prototype, "startValue", void 0);
|
|
254
|
+
tslib_1.__decorate([
|
|
255
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
256
|
+
tslib_1.__metadata("design:type", String)
|
|
257
|
+
], ResourceMeteringSegment.prototype, "endValue", void 0);
|
|
258
|
+
tslib_1.__decorate([
|
|
259
|
+
(0, typeorm_1.Column)({ type: 'simple-json' }),
|
|
260
|
+
tslib_1.__metadata("design:type", Array)
|
|
261
|
+
], ResourceMeteringSegment.prototype, "participants", void 0);
|
|
262
|
+
tslib_1.__decorate([
|
|
263
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
264
|
+
tslib_1.__metadata("design:type", Date)
|
|
265
|
+
], ResourceMeteringSegment.prototype, "createdAt", void 0);
|
|
266
|
+
exports.ResourceMeteringSegment = ResourceMeteringSegment = tslib_1.__decorate([
|
|
267
|
+
(0, typeorm_1.Entity)(),
|
|
268
|
+
(0, typeorm_1.Index)('IDX_resource_metering_segment_meter', ['meterId', 'status']),
|
|
269
|
+
(0, typeorm_1.Index)('IDX_resource_metering_segment_meter_ended', ['meterId', 'endedAt'])
|
|
270
|
+
], ResourceMeteringSegment);
|
|
204
271
|
//# sourceMappingURL=resource-metering.entity.js.map
|
|
@@ -1 +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;
|
|
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;AAMD,6GAA6G;AAItG,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAqFnC,CAAA;AArFY,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,E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AAC;sCACxB,qCAAa;sDAAC;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;uDACW;AAGvC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;sCACjB,IAAI;0DAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACnC,IAAI;wDAAQ;AAItB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;2DACR;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACnB;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;6DACoB;AAGpD;IADC,IAAA,0BAAgB,GAAE;sCACP,IAAI;0DAAC;kCAtCN,uBAAuB;IAHnC,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,qCAAqC,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IACnE,IAAA,eAAK,EAAC,2CAA2C,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;GAC9D,uBAAuB,CAuCnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resourceUsage.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/resourceUsage.entity.ts"],"names":[],"mappings":";;;;AAAA,6CAA8C;AAE9C,qCAUiB;AAEjB,6EAAkE;AAElE,iCAAwC;AAExC,uCAAoC;AAEpC,uDAA6C;AAE7C,6DAA2D;AAE3D,+CAAqC;AAO9B,IAAM,aAAa,GAAnB,MAAM,aAAa;CAyMzB,CAAA;AAzMY,sCAAa;AAOxB;IANC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,uEAAuE;QACpF,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;;sEAC8C;AAQhD;IANC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,sFAAsF;QACnG,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;;wEACgD;AAQlD;IANC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,wEAAwE;QACrF,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,KAAK;KAChB,CAAC;;sDAC8B;AAQhC;IANC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,gFAAgF;QAC7F,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,KAAK;KAChB,CAAC;;oDAC4B;AAQ9B;IANC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC/C,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,KAAK;KAChB,CAAC;;
|
|
1
|
+
{"version":3,"file":"resourceUsage.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/resourceUsage.entity.ts"],"names":[],"mappings":";;;;AAAA,6CAA8C;AAE9C,qCAUiB;AAEjB,6EAAkE;AAElE,iCAAwC;AAExC,uCAAoC;AAEpC,uDAA6C;AAE7C,6DAA2D;AAE3D,+CAAqC;AA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permission.entity';
|
|
2
2
|
export { ApiToken } from './entities/api-token.entity';
|
|
3
|
+
export { McpOAuthClient } from './entities/mcp-oauth-client.entity';
|
|
4
|
+
export { McpOAuthGrant } from './entities/mcp-oauth-grant.entity';
|
|
5
|
+
export { McpOAuthToken } from './entities/mcp-oauth-token.entity';
|
|
6
|
+
export type { McpOAuthTokenKind } from './entities/mcp-oauth-token.entity';
|
|
3
7
|
export { Attractap, AttractapFirmwareVersion } from './entities/attractap.entity';
|
|
4
|
-
export { AttractapCrashReport } from './entities/attractapCrashReport.entity';
|
|
8
|
+
export { AttractapCrashReport, type CoredumpStatus } from './entities/attractapCrashReport.entity';
|
|
5
9
|
export { AttractapCredentialEvent } from './entities/attractap-credential-event.entity';
|
|
10
|
+
export { PluginBleEndpointEntity } from './entities/plugin-ble-endpoint.entity';
|
|
6
11
|
export { AttractapInstallation } from './entities/attractap-installation.entity';
|
|
7
12
|
export { AttractapSecureBootKey } from './entities/attractap-secure-boot-key.entity';
|
|
8
13
|
export type { SecureBootKeyRole } from './entities/attractap-secure-boot-key.entity';
|
|
9
14
|
export { ReaderUiAlert, ReaderUiPluginSettings, ReaderUiReaderSettings, ReaderUiResourceSettings, } from './entities/reader-ui-settings.entity';
|
|
10
15
|
export type { ReaderUiAlertKind } from './entities/reader-ui-settings.entity';
|
|
11
|
-
export { AuditLog } from './entities/audit-log.entity';
|
|
16
|
+
export { AuditLog, AUTHENTICATION_METHODS } from './entities/audit-log.entity';
|
|
17
|
+
export type { AuthenticationMethod } from './entities/audit-log.entity';
|
|
12
18
|
export { AuthenticationDetail } from './entities/authenticationDetail.entity';
|
|
13
|
-
export { BillingTransactionItem } from './entities/billing-transaction-item.entity';
|
|
19
|
+
export { BillingTransactionItem, BillingItemAllocation, BillingItemAllocationSegment, } from './entities/billing-transaction-item.entity';
|
|
14
20
|
export { BillingTransaction, BillingTransactionStatus } from './entities/billing-transaction.entity';
|
|
15
21
|
export { CompanionDevice } from './entities/companion-device.entity';
|
|
16
22
|
export { ConversationParticipant } from './entities/conversation-participant.entity';
|
|
@@ -22,6 +28,7 @@ export { Form, FormField, FormFieldType, FormSubmission, ResourceFormAction } fr
|
|
|
22
28
|
export { Message, MessageReferenceType } from './entities/message.entity';
|
|
23
29
|
export { MqttServer } from './entities/mqttServer.entity';
|
|
24
30
|
export { NotificationPreference } from './entities/notification-preference.entity';
|
|
31
|
+
export { DashboardPin, type DashboardPinItemType, type DashboardPinSize } from './entities/dashboard-pin.entity';
|
|
25
32
|
export { Passkey, PasskeyChallenge } from './entities/passkey.entity';
|
|
26
33
|
export { PasswordHistory } from './entities/password-history.entity';
|
|
27
34
|
export { PASSWORD_POLICY_ROLES, PasswordPolicyOverride, PasswordPolicyRole, } from './entities/password-policy-override.entity';
|
|
@@ -37,9 +44,9 @@ export { ResourceMaintenanceScheduleTimeIntervalConfig } from './entities/resour
|
|
|
37
44
|
export { ResourceMaintenanceScheduleUsageCountConfig } from './entities/resource-maintenance-schedule-usage-count-config.entity';
|
|
38
45
|
export { ResourceMaintenanceScheduleUsageHoursConfig } from './entities/resource-maintenance-schedule-usage-hours-config.entity';
|
|
39
46
|
export { ResourceMaintenanceSchedule, ResourceMaintenanceScheduleDurationBasis, ResourceMaintenanceScheduleTriggerType, } from './entities/resource-maintenance-schedule.entity';
|
|
40
|
-
export { ResourceMeter } from './entities/resource-meter.entity';
|
|
47
|
+
export { ResourceMeter, ResourceMeterAllocation } from './entities/resource-meter.entity';
|
|
41
48
|
export { CsvExportTemplate, CsvExportTemplateColumn, CsvExportTemplateColumnType, CsvExportType, } from './entities/csv-export-template.entity';
|
|
42
|
-
export { ResourceMeteringOperation, ResourceMeteringOperationKind, ResourceMeteringOperationStatus, ResourceMeteringSession, ResourceMeteringSessionStatus, } from './entities/resource-metering.entity';
|
|
49
|
+
export { ResourceMeteringOperation, ResourceMeteringOperationKind, ResourceMeteringOperationStatus, ResourceMeteringSession, ResourceMeteringSessionStatus, ResourceMeteringSegment, ResourceMeteringSegmentParticipant, ResourceMeteringSegmentStatus, } from './entities/resource-metering.entity';
|
|
43
50
|
export { ResourceOperatingInterval } from './entities/resource-operating-interval.entity';
|
|
44
51
|
export { LifecycleBillingItem, ResourceUsageLifecycleAttempt, } from './entities/resource-usage-lifecycle-attempt.entity';
|
|
45
52
|
export { Resource } from './entities/resource.entity';
|
|
@@ -71,9 +78,13 @@ export { User } from './entities/user.entity';
|
|
|
71
78
|
export { UsageDurationUnit } from './types/usageDurationUnit.enum';
|
|
72
79
|
import { ApiTokenPermission } from './entities/api-token-permission.entity';
|
|
73
80
|
import { ApiToken } from './entities/api-token.entity';
|
|
81
|
+
import { McpOAuthClient } from './entities/mcp-oauth-client.entity';
|
|
82
|
+
import { McpOAuthGrant } from './entities/mcp-oauth-grant.entity';
|
|
83
|
+
import { McpOAuthToken } from './entities/mcp-oauth-token.entity';
|
|
74
84
|
import { Attractap } from './entities/attractap.entity';
|
|
75
85
|
import { AttractapCrashReport } from './entities/attractapCrashReport.entity';
|
|
76
86
|
import { AttractapCredentialEvent } from './entities/attractap-credential-event.entity';
|
|
87
|
+
import { PluginBleEndpointEntity } from './entities/plugin-ble-endpoint.entity';
|
|
77
88
|
import { AttractapInstallation } from './entities/attractap-installation.entity';
|
|
78
89
|
import { AttractapSecureBootKey } from './entities/attractap-secure-boot-key.entity';
|
|
79
90
|
import { ReaderUiAlert, ReaderUiPluginSettings, ReaderUiReaderSettings, ReaderUiResourceSettings } from './entities/reader-ui-settings.entity';
|
|
@@ -90,6 +101,7 @@ import { Form, FormField, FormSubmission } from './entities/form';
|
|
|
90
101
|
import { Message } from './entities/message.entity';
|
|
91
102
|
import { MqttServer } from './entities/mqttServer.entity';
|
|
92
103
|
import { NotificationPreference } from './entities/notification-preference.entity';
|
|
104
|
+
import { DashboardPin } from './entities/dashboard-pin.entity';
|
|
93
105
|
import { Passkey, PasskeyChallenge } from './entities/passkey.entity';
|
|
94
106
|
import { PasswordHistory } from './entities/password-history.entity';
|
|
95
107
|
import { PasswordPolicyOverride } from './entities/password-policy-override.entity';
|
|
@@ -107,7 +119,7 @@ import { ResourceMaintenanceScheduleUsageHoursConfig } from './entities/resource
|
|
|
107
119
|
import { ResourceMaintenanceSchedule } from './entities/resource-maintenance-schedule.entity';
|
|
108
120
|
import { ResourceMeter } from './entities/resource-meter.entity';
|
|
109
121
|
import { CsvExportTemplate } from './entities/csv-export-template.entity';
|
|
110
|
-
import { ResourceMeteringOperation, ResourceMeteringSession } from './entities/resource-metering.entity';
|
|
122
|
+
import { ResourceMeteringOperation, ResourceMeteringSegment, ResourceMeteringSession } from './entities/resource-metering.entity';
|
|
111
123
|
import { ResourceOperatingInterval } from './entities/resource-operating-interval.entity';
|
|
112
124
|
import { ResourceUsageLifecycleAttempt } from './entities/resource-usage-lifecycle-attempt.entity';
|
|
113
125
|
import { Resource } from './entities/resource.entity';
|
|
@@ -153,6 +165,7 @@ export declare const entities: {
|
|
|
153
165
|
Attractap: typeof Attractap;
|
|
154
166
|
AttractapCrashReport: typeof AttractapCrashReport;
|
|
155
167
|
AttractapCredentialEvent: typeof AttractapCredentialEvent;
|
|
168
|
+
PluginBleEndpointEntity: typeof PluginBleEndpointEntity;
|
|
156
169
|
AttractapInstallation: typeof AttractapInstallation;
|
|
157
170
|
AttractapSecureBootKey: typeof AttractapSecureBootKey;
|
|
158
171
|
ReaderUiAlert: typeof ReaderUiAlert;
|
|
@@ -189,6 +202,7 @@ export declare const entities: {
|
|
|
189
202
|
ConversationParticipant: typeof ConversationParticipant;
|
|
190
203
|
Message: typeof Message;
|
|
191
204
|
NotificationPreference: typeof NotificationPreference;
|
|
205
|
+
DashboardPin: typeof DashboardPin;
|
|
192
206
|
PushSubscription: typeof PushSubscription;
|
|
193
207
|
Passkey: typeof Passkey;
|
|
194
208
|
PasskeyChallenge: typeof PasskeyChallenge;
|
|
@@ -199,10 +213,14 @@ export declare const entities: {
|
|
|
199
213
|
UserRole: typeof UserRole;
|
|
200
214
|
ApiToken: typeof ApiToken;
|
|
201
215
|
ApiTokenPermission: typeof ApiTokenPermission;
|
|
216
|
+
McpOAuthClient: typeof McpOAuthClient;
|
|
217
|
+
McpOAuthGrant: typeof McpOAuthGrant;
|
|
218
|
+
McpOAuthToken: typeof McpOAuthToken;
|
|
202
219
|
ResourceOperatingInterval: typeof ResourceOperatingInterval;
|
|
203
220
|
ResourceUsageLifecycleAttempt: typeof ResourceUsageLifecycleAttempt;
|
|
204
221
|
ResourceMeteringSession: typeof ResourceMeteringSession;
|
|
205
222
|
ResourceMeteringOperation: typeof ResourceMeteringOperation;
|
|
223
|
+
ResourceMeteringSegment: typeof ResourceMeteringSegment;
|
|
206
224
|
ResourceMeter: typeof ResourceMeter;
|
|
207
225
|
CsvExportTemplate: typeof CsvExportTemplate;
|
|
208
226
|
};
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.entities = exports.UsageDurationUnit = exports.User = exports.UserRoleSource = exports.UserRole = exports.SSOProviderSAMLConfiguration = exports.MAX_PERMISSION_SYNC_TTL_MINUTES = exports.SSOProviderOIDCConfiguration = exports.SSOProviderType = exports.SSOProvider = exports.Setting = exports.Session = exports.Role = exports.RolePermission = exports.NFCCardPendingChange = exports.NFCCard = exports.ResourceUsageAction = exports.ResourceUsage = exports.ResourceIntroductionHistoryItem = exports.IntroductionHistoryAction = exports.ResourceIntroduction = exports.ResourceIntroducerType = exports.ResourceIntroducer = exports.ResourceHealthStatus = exports.ResourceHealthState = exports.ResourceHealthSource = exports.ResourceGroup = exports.ResourceFlowVariableScope = exports.ResourceFlowVariable = exports.WaitNodeDataSchema = exports.VariableScopeSchema = exports.VariableChangedNodeDataSchema = exports.SetVariablesNodeDataSchema = exports.SetPayloadNodeDataSchema = exports.ResourceUsageEndSessionNodeDataSchema = exports.ResourceOperatingTransitionNodeDataSchema = exports.ResourceHealthSetNodeDataSchema = void 0;
|
|
3
|
+
exports.ProjectInvitation = exports.Project = exports.Permission = exports.PasswordPolicy = exports.PASSWORD_POLICY_SINGLETON_ID = exports.PasswordPolicyRole = exports.PasswordPolicyOverride = exports.PASSWORD_POLICY_ROLES = exports.PasswordHistory = exports.PasskeyChallenge = exports.Passkey = exports.DashboardPin = exports.NotificationPreference = exports.MqttServer = exports.MessageReferenceType = exports.Message = exports.ResourceFormAction = exports.FormSubmission = exports.FormFieldType = exports.FormField = exports.Form = exports.EmailTemplate = exports.EmailTemplateTranslation = exports.EmailLayout = exports.EMAIL_LAYOUT_SINGLETON_ID = exports.Conversation = exports.ConversationParticipant = exports.CompanionDevice = exports.BillingTransactionStatus = exports.BillingTransaction = exports.BillingTransactionItem = exports.AuthenticationDetail = exports.AUTHENTICATION_METHODS = exports.AuditLog = exports.ReaderUiResourceSettings = exports.ReaderUiReaderSettings = exports.ReaderUiPluginSettings = exports.ReaderUiAlert = exports.AttractapSecureBootKey = exports.AttractapInstallation = exports.PluginBleEndpointEntity = exports.AttractapCredentialEvent = exports.AttractapCrashReport = exports.AttractapFirmwareVersion = exports.Attractap = exports.McpOAuthToken = exports.McpOAuthGrant = exports.McpOAuthClient = exports.ApiToken = exports.ApiTokenPermission = void 0;
|
|
4
|
+
exports.MeteringStartNodeDataSchema = exports.MeteringReportNodeDataSchema = exports.MeteringReadyNodeDataSchema = exports.MeteringCollectNodeDataSchema = exports.InputResourceActivityNoActivityNodeDataSchema = exports.IfNodeDataSchema = exports.HttpRequestNodeDataSchema = exports.HealthStateOptionEnum = exports.GetVariablesNodeDataSchema = exports.getNodeDataSchema = exports.getExternalEffectFailureBehavior = exports.EventNodeDataSchema = exports.ErrorNodeDataSchema = exports.CompanionUsbDeviceNodeDataSchema = exports.CompanionLockNodeDataSchema = exports.CompanionIdleActiveNodeDataSchema = exports.CompanionForegroundAppNodeDataSchema = exports.ButtonNodeDataSchema = exports.BillingTransactionItemCreateSchema = exports.Flow = exports.ResourceFlowEdge = exports.ResourceType = exports.SupervisionMode = exports.AutoIntroductionTarget = exports.ResourceMaintenance = exports.Resource = exports.ResourceUsageLifecycleAttempt = exports.ResourceOperatingInterval = exports.ResourceMeteringSegment = exports.ResourceMeteringSessionStatus = exports.ResourceMeteringSession = exports.ResourceMeteringOperation = exports.CsvExportType = exports.CsvExportTemplateColumnType = exports.CsvExportTemplateColumn = exports.CsvExportTemplate = exports.ResourceMeter = exports.ResourceMaintenanceScheduleTriggerType = exports.ResourceMaintenanceScheduleDurationBasis = exports.ResourceMaintenanceSchedule = exports.ResourceMaintenanceScheduleUsageHoursConfig = exports.ResourceMaintenanceScheduleUsageCountConfig = exports.ResourceMaintenanceScheduleTimeIntervalConfig = exports.ResourceMaintenanceRequest = exports.MaintenanceRequestStatus = exports.ResourceBillingConfiguration = exports.PushSubscription = exports.ProjectMemberRole = exports.ProjectMember = exports.ProjectInvitationStatus = void 0;
|
|
5
|
+
exports.entities = exports.UsageDurationUnit = exports.User = exports.UserRoleSource = exports.UserRole = exports.SSOProviderSAMLConfiguration = exports.MAX_PERMISSION_SYNC_TTL_MINUTES = exports.SSOProviderOIDCConfiguration = exports.SSOProviderType = exports.SSOProvider = exports.Setting = exports.Session = exports.Role = exports.RolePermission = exports.NFCCardPendingChange = exports.NFCCard = exports.ResourceUsageAction = exports.ResourceUsage = exports.ResourceIntroductionHistoryItem = exports.IntroductionHistoryAction = exports.ResourceIntroduction = exports.ResourceIntroducerType = exports.ResourceIntroducer = exports.ResourceHealthStatus = exports.ResourceHealthState = exports.ResourceHealthSource = exports.ResourceGroup = exports.ResourceFlowVariableScope = exports.ResourceFlowVariable = exports.WaitNodeDataSchema = exports.VariableScopeSchema = exports.VariableChangedNodeDataSchema = exports.SetVariablesNodeDataSchema = exports.SetPayloadNodeDataSchema = exports.ResourceUsageEndSessionNodeDataSchema = exports.ResourceOperatingTransitionNodeDataSchema = exports.ResourceHealthSetNodeDataSchema = exports.ResourceHealthHeartbeatNodeDataSchema = exports.ResourceFlowNodeType = exports.ResourceFlowNode = exports.ResourceActivityTrackActivityNodeDataSchema = exports.MqttWaitForMessageNodeDataSchema = exports.MqttSendMessageNodeDataSchema = exports.MqttMessageReceivedNodeDataSchema = void 0;
|
|
6
6
|
var api_token_permission_entity_1 = require("./entities/api-token-permission.entity");
|
|
7
7
|
Object.defineProperty(exports, "ApiTokenPermission", { enumerable: true, get: function () { return api_token_permission_entity_1.ApiTokenPermission; } });
|
|
8
8
|
var api_token_entity_1 = require("./entities/api-token.entity");
|
|
9
9
|
Object.defineProperty(exports, "ApiToken", { enumerable: true, get: function () { return api_token_entity_1.ApiToken; } });
|
|
10
|
+
var mcp_oauth_client_entity_1 = require("./entities/mcp-oauth-client.entity");
|
|
11
|
+
Object.defineProperty(exports, "McpOAuthClient", { enumerable: true, get: function () { return mcp_oauth_client_entity_1.McpOAuthClient; } });
|
|
12
|
+
var mcp_oauth_grant_entity_1 = require("./entities/mcp-oauth-grant.entity");
|
|
13
|
+
Object.defineProperty(exports, "McpOAuthGrant", { enumerable: true, get: function () { return mcp_oauth_grant_entity_1.McpOAuthGrant; } });
|
|
14
|
+
var mcp_oauth_token_entity_1 = require("./entities/mcp-oauth-token.entity");
|
|
15
|
+
Object.defineProperty(exports, "McpOAuthToken", { enumerable: true, get: function () { return mcp_oauth_token_entity_1.McpOAuthToken; } });
|
|
10
16
|
var attractap_entity_1 = require("./entities/attractap.entity");
|
|
11
17
|
Object.defineProperty(exports, "Attractap", { enumerable: true, get: function () { return attractap_entity_1.Attractap; } });
|
|
12
18
|
Object.defineProperty(exports, "AttractapFirmwareVersion", { enumerable: true, get: function () { return attractap_entity_1.AttractapFirmwareVersion; } });
|
|
@@ -14,6 +20,8 @@ var attractapCrashReport_entity_1 = require("./entities/attractapCrashReport.ent
|
|
|
14
20
|
Object.defineProperty(exports, "AttractapCrashReport", { enumerable: true, get: function () { return attractapCrashReport_entity_1.AttractapCrashReport; } });
|
|
15
21
|
var attractap_credential_event_entity_1 = require("./entities/attractap-credential-event.entity");
|
|
16
22
|
Object.defineProperty(exports, "AttractapCredentialEvent", { enumerable: true, get: function () { return attractap_credential_event_entity_1.AttractapCredentialEvent; } });
|
|
23
|
+
var plugin_ble_endpoint_entity_1 = require("./entities/plugin-ble-endpoint.entity");
|
|
24
|
+
Object.defineProperty(exports, "PluginBleEndpointEntity", { enumerable: true, get: function () { return plugin_ble_endpoint_entity_1.PluginBleEndpointEntity; } });
|
|
17
25
|
var attractap_installation_entity_1 = require("./entities/attractap-installation.entity");
|
|
18
26
|
Object.defineProperty(exports, "AttractapInstallation", { enumerable: true, get: function () { return attractap_installation_entity_1.AttractapInstallation; } });
|
|
19
27
|
var attractap_secure_boot_key_entity_1 = require("./entities/attractap-secure-boot-key.entity");
|
|
@@ -25,6 +33,7 @@ Object.defineProperty(exports, "ReaderUiReaderSettings", { enumerable: true, get
|
|
|
25
33
|
Object.defineProperty(exports, "ReaderUiResourceSettings", { enumerable: true, get: function () { return reader_ui_settings_entity_1.ReaderUiResourceSettings; } });
|
|
26
34
|
var audit_log_entity_1 = require("./entities/audit-log.entity");
|
|
27
35
|
Object.defineProperty(exports, "AuditLog", { enumerable: true, get: function () { return audit_log_entity_1.AuditLog; } });
|
|
36
|
+
Object.defineProperty(exports, "AUTHENTICATION_METHODS", { enumerable: true, get: function () { return audit_log_entity_1.AUTHENTICATION_METHODS; } });
|
|
28
37
|
var authenticationDetail_entity_1 = require("./entities/authenticationDetail.entity");
|
|
29
38
|
Object.defineProperty(exports, "AuthenticationDetail", { enumerable: true, get: function () { return authenticationDetail_entity_1.AuthenticationDetail; } });
|
|
30
39
|
var billing_transaction_item_entity_1 = require("./entities/billing-transaction-item.entity");
|
|
@@ -58,6 +67,8 @@ var mqttServer_entity_1 = require("./entities/mqttServer.entity");
|
|
|
58
67
|
Object.defineProperty(exports, "MqttServer", { enumerable: true, get: function () { return mqttServer_entity_1.MqttServer; } });
|
|
59
68
|
var notification_preference_entity_1 = require("./entities/notification-preference.entity");
|
|
60
69
|
Object.defineProperty(exports, "NotificationPreference", { enumerable: true, get: function () { return notification_preference_entity_1.NotificationPreference; } });
|
|
70
|
+
var dashboard_pin_entity_1 = require("./entities/dashboard-pin.entity");
|
|
71
|
+
Object.defineProperty(exports, "DashboardPin", { enumerable: true, get: function () { return dashboard_pin_entity_1.DashboardPin; } });
|
|
61
72
|
var passkey_entity_1 = require("./entities/passkey.entity");
|
|
62
73
|
Object.defineProperty(exports, "Passkey", { enumerable: true, get: function () { return passkey_entity_1.Passkey; } });
|
|
63
74
|
Object.defineProperty(exports, "PasskeyChallenge", { enumerable: true, get: function () { return passkey_entity_1.PasskeyChallenge; } });
|
|
@@ -108,6 +119,7 @@ var resource_metering_entity_1 = require("./entities/resource-metering.entity");
|
|
|
108
119
|
Object.defineProperty(exports, "ResourceMeteringOperation", { enumerable: true, get: function () { return resource_metering_entity_1.ResourceMeteringOperation; } });
|
|
109
120
|
Object.defineProperty(exports, "ResourceMeteringSession", { enumerable: true, get: function () { return resource_metering_entity_1.ResourceMeteringSession; } });
|
|
110
121
|
Object.defineProperty(exports, "ResourceMeteringSessionStatus", { enumerable: true, get: function () { return resource_metering_entity_1.ResourceMeteringSessionStatus; } });
|
|
122
|
+
Object.defineProperty(exports, "ResourceMeteringSegment", { enumerable: true, get: function () { return resource_metering_entity_1.ResourceMeteringSegment; } });
|
|
111
123
|
var resource_operating_interval_entity_1 = require("./entities/resource-operating-interval.entity");
|
|
112
124
|
Object.defineProperty(exports, "ResourceOperatingInterval", { enumerable: true, get: function () { return resource_operating_interval_entity_1.ResourceOperatingInterval; } });
|
|
113
125
|
var resource_usage_lifecycle_attempt_entity_1 = require("./entities/resource-usage-lifecycle-attempt.entity");
|
|
@@ -210,9 +222,13 @@ var usageDurationUnit_enum_1 = require("./types/usageDurationUnit.enum");
|
|
|
210
222
|
Object.defineProperty(exports, "UsageDurationUnit", { enumerable: true, get: function () { return usageDurationUnit_enum_1.UsageDurationUnit; } });
|
|
211
223
|
const api_token_permission_entity_2 = require("./entities/api-token-permission.entity");
|
|
212
224
|
const api_token_entity_2 = require("./entities/api-token.entity");
|
|
225
|
+
const mcp_oauth_client_entity_2 = require("./entities/mcp-oauth-client.entity");
|
|
226
|
+
const mcp_oauth_grant_entity_2 = require("./entities/mcp-oauth-grant.entity");
|
|
227
|
+
const mcp_oauth_token_entity_2 = require("./entities/mcp-oauth-token.entity");
|
|
213
228
|
const attractap_entity_2 = require("./entities/attractap.entity");
|
|
214
229
|
const attractapCrashReport_entity_2 = require("./entities/attractapCrashReport.entity");
|
|
215
230
|
const attractap_credential_event_entity_2 = require("./entities/attractap-credential-event.entity");
|
|
231
|
+
const plugin_ble_endpoint_entity_2 = require("./entities/plugin-ble-endpoint.entity");
|
|
216
232
|
const attractap_installation_entity_2 = require("./entities/attractap-installation.entity");
|
|
217
233
|
const attractap_secure_boot_key_entity_2 = require("./entities/attractap-secure-boot-key.entity");
|
|
218
234
|
const reader_ui_settings_entity_2 = require("./entities/reader-ui-settings.entity");
|
|
@@ -229,6 +245,7 @@ const form_2 = require("./entities/form");
|
|
|
229
245
|
const message_entity_2 = require("./entities/message.entity");
|
|
230
246
|
const mqttServer_entity_2 = require("./entities/mqttServer.entity");
|
|
231
247
|
const notification_preference_entity_2 = require("./entities/notification-preference.entity");
|
|
248
|
+
const dashboard_pin_entity_2 = require("./entities/dashboard-pin.entity");
|
|
232
249
|
const passkey_entity_2 = require("./entities/passkey.entity");
|
|
233
250
|
const password_history_entity_2 = require("./entities/password-history.entity");
|
|
234
251
|
const password_policy_override_entity_2 = require("./entities/password-policy-override.entity");
|
|
@@ -292,6 +309,7 @@ exports.entities = {
|
|
|
292
309
|
Attractap: attractap_entity_2.Attractap,
|
|
293
310
|
AttractapCrashReport: attractapCrashReport_entity_2.AttractapCrashReport,
|
|
294
311
|
AttractapCredentialEvent: attractap_credential_event_entity_2.AttractapCredentialEvent,
|
|
312
|
+
PluginBleEndpointEntity: plugin_ble_endpoint_entity_2.PluginBleEndpointEntity,
|
|
295
313
|
AttractapInstallation: attractap_installation_entity_2.AttractapInstallation,
|
|
296
314
|
AttractapSecureBootKey: attractap_secure_boot_key_entity_2.AttractapSecureBootKey,
|
|
297
315
|
ReaderUiAlert: reader_ui_settings_entity_2.ReaderUiAlert,
|
|
@@ -328,6 +346,7 @@ exports.entities = {
|
|
|
328
346
|
ConversationParticipant: conversation_participant_entity_2.ConversationParticipant,
|
|
329
347
|
Message: message_entity_2.Message,
|
|
330
348
|
NotificationPreference: notification_preference_entity_2.NotificationPreference,
|
|
349
|
+
DashboardPin: dashboard_pin_entity_2.DashboardPin,
|
|
331
350
|
PushSubscription: push_subscription_entity_2.PushSubscription,
|
|
332
351
|
Passkey: passkey_entity_2.Passkey,
|
|
333
352
|
PasskeyChallenge: passkey_entity_2.PasskeyChallenge,
|
|
@@ -338,10 +357,14 @@ exports.entities = {
|
|
|
338
357
|
UserRole: user_role_entity_2.UserRole,
|
|
339
358
|
ApiToken: api_token_entity_2.ApiToken,
|
|
340
359
|
ApiTokenPermission: api_token_permission_entity_2.ApiTokenPermission,
|
|
360
|
+
McpOAuthClient: mcp_oauth_client_entity_2.McpOAuthClient,
|
|
361
|
+
McpOAuthGrant: mcp_oauth_grant_entity_2.McpOAuthGrant,
|
|
362
|
+
McpOAuthToken: mcp_oauth_token_entity_2.McpOAuthToken,
|
|
341
363
|
ResourceOperatingInterval: resource_operating_interval_entity_2.ResourceOperatingInterval,
|
|
342
364
|
ResourceUsageLifecycleAttempt: resource_usage_lifecycle_attempt_entity_2.ResourceUsageLifecycleAttempt,
|
|
343
365
|
ResourceMeteringSession: resource_metering_entity_2.ResourceMeteringSession,
|
|
344
366
|
ResourceMeteringOperation: resource_metering_entity_2.ResourceMeteringOperation,
|
|
367
|
+
ResourceMeteringSegment: resource_metering_entity_2.ResourceMeteringSegment,
|
|
345
368
|
ResourceMeter: resource_meter_entity_2.ResourceMeter,
|
|
346
369
|
CsvExportTemplate: csv_export_template_entity_2.CsvExportTemplate,
|
|
347
370
|
};
|