@attraccess/database-entities 1.10.0 → 1.11.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -2
- package/src/index.d.ts +1 -0
- package/src/lib/entities/attractap-credential-event.entity.d.ts +14 -0
- package/src/lib/entities/attractap-credential-event.entity.js +58 -0
- package/src/lib/entities/attractap-credential-event.entity.js.map +1 -0
- package/src/lib/entities/attractap-installation.entity.d.ts +12 -0
- package/src/lib/entities/attractap-installation.entity.js +45 -0
- package/src/lib/entities/attractap-installation.entity.js.map +1 -0
- package/src/lib/entities/attractap-secure-boot-key.entity.d.ts +21 -0
- package/src/lib/entities/attractap-secure-boot-key.entity.js +53 -0
- package/src/lib/entities/attractap-secure-boot-key.entity.js.map +1 -0
- package/src/lib/entities/attractap.entity.d.ts +12 -0
- package/src/lib/entities/attractap.entity.js +88 -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 +26 -1
- 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 +23 -0
- package/src/lib/entities/billing-transaction-item.entity.js +24 -0
- package/src/lib/entities/billing-transaction-item.entity.js.map +1 -1
- package/src/lib/entities/billing-transaction.entity.d.ts +2 -0
- package/src/lib/entities/billing-transaction.entity.js +13 -0
- package/src/lib/entities/billing-transaction.entity.js.map +1 -1
- package/src/lib/entities/csv-export-template.entity.d.ts +23 -0
- package/src/lib/entities/csv-export-template.entity.js +110 -0
- package/src/lib/entities/csv-export-template.entity.js.map +1 -0
- 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/flow.entity.d.ts +19 -0
- package/src/lib/entities/flow.entity.js +62 -0
- package/src/lib/entities/flow.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/nfcCardPendingChange.entity.d.ts +20 -0
- package/src/lib/entities/nfcCardPendingChange.entity.js +55 -0
- package/src/lib/entities/nfcCardPendingChange.entity.js.map +1 -0
- 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/reader-ui-settings.entity.d.ts +32 -0
- package/src/lib/entities/reader-ui-settings.entity.js +101 -0
- package/src/lib/entities/reader-ui-settings.entity.js.map +1 -0
- package/src/lib/entities/resource-flow-node/companion-schemas.d.ts +15 -0
- package/src/lib/entities/resource-flow-node/companion-schemas.js +27 -0
- package/src/lib/entities/resource-flow-node/companion-schemas.js.map +1 -0
- package/src/lib/entities/resource-flow-node/external-effect-policy.d.ts +19 -0
- package/src/lib/entities/resource-flow-node/external-effect-policy.js +24 -0
- package/src/lib/entities/resource-flow-node/external-effect-policy.js.map +1 -0
- package/src/lib/entities/resource-flow-node/health-schemas.d.ts +18 -0
- package/src/lib/entities/resource-flow-node/health-schemas.js +34 -0
- package/src/lib/entities/resource-flow-node/health-schemas.js.map +1 -0
- package/src/lib/entities/resource-flow-node/http-schema.d.ts +25 -0
- package/src/lib/entities/resource-flow-node/http-schema.js +20 -0
- package/src/lib/entities/resource-flow-node/http-schema.js.map +1 -0
- package/src/lib/entities/resource-flow-node/metering-schemas.d.ts +28 -0
- package/src/lib/entities/resource-flow-node/metering-schemas.js +48 -0
- package/src/lib/entities/resource-flow-node/metering-schemas.js.map +1 -0
- package/src/lib/entities/resource-flow-node/mqtt-schemas.d.ts +33 -0
- package/src/lib/entities/resource-flow-node/mqtt-schemas.js +43 -0
- package/src/lib/entities/resource-flow-node/mqtt-schemas.js.map +1 -0
- package/src/lib/entities/resource-flow-node/node-type.d.ts +43 -0
- package/src/lib/entities/resource-flow-node/node-type.js +48 -0
- package/src/lib/entities/resource-flow-node/node-type.js.map +1 -0
- package/src/lib/entities/resource-flow-node/processing-schemas.d.ts +35 -0
- package/src/lib/entities/resource-flow-node/processing-schemas.js +32 -0
- package/src/lib/entities/resource-flow-node/processing-schemas.js.map +1 -0
- package/src/lib/entities/resource-flow-node/resource-schemas.d.ts +27 -0
- package/src/lib/entities/resource-flow-node/resource-schemas.js +44 -0
- package/src/lib/entities/resource-flow-node/resource-schemas.js.map +1 -0
- package/src/lib/entities/resource-flow-node/schema-registry.d.ts +180 -0
- package/src/lib/entities/resource-flow-node/schema-registry.js +80 -0
- package/src/lib/entities/resource-flow-node/schema-registry.js.map +1 -0
- package/src/lib/entities/resource-flow-node/variable-schemas.d.ts +38 -0
- package/src/lib/entities/resource-flow-node/variable-schemas.js +31 -0
- package/src/lib/entities/resource-flow-node/variable-schemas.js.map +1 -0
- package/src/lib/entities/resource-meter.entity.d.ts +16 -0
- package/src/lib/entities/resource-meter.entity.js +52 -0
- package/src/lib/entities/resource-meter.entity.js.map +1 -0
- package/src/lib/entities/resource-metering.entity.d.ts +102 -0
- package/src/lib/entities/resource-metering.entity.js +271 -0
- package/src/lib/entities/resource-metering.entity.js.map +1 -0
- package/src/lib/entities/resource-usage-lifecycle-attempt.entity.js +3 -1
- package/src/lib/entities/resource-usage-lifecycle-attempt.entity.js.map +1 -1
- package/src/lib/entities/resource.entity.d.ts +22 -21
- package/src/lib/entities/resource.entity.js +104 -93
- package/src/lib/entities/resource.entity.js.map +1 -1
- package/src/lib/entities/resourceFlowEdge.d.ts +5 -2
- package/src/lib/entities/resourceFlowEdge.js +28 -3
- package/src/lib/entities/resourceFlowEdge.js.map +1 -1
- package/src/lib/entities/resourceFlowNode.d.ts +18 -377
- package/src/lib/entities/resourceFlowNode.js +76 -310
- package/src/lib/entities/resourceFlowNode.js.map +1 -1
- package/src/lib/entities/resourceIntroduction.entity.js +1 -0
- package/src/lib/entities/resourceIntroduction.entity.js.map +1 -1
- package/src/lib/entities/resourceUsage.entity.d.ts +15 -9
- package/src/lib/entities/resourceUsage.entity.js +59 -50
- package/src/lib/entities/resourceUsage.entity.js.map +1 -1
- package/src/lib/entities/{nfcCard.entity.js → rfidCard.entity.js} +1 -1
- package/src/lib/entities/rfidCard.entity.js.map +1 -0
- package/src/lib/entities/session.entity.d.ts +6 -0
- package/src/lib/entities/session.entity.js +33 -1
- package/src/lib/entities/session.entity.js.map +1 -1
- package/src/lib/entities/ssoProvider.oidc.d.ts +7 -0
- package/src/lib/entities/ssoProvider.oidc.js +43 -1
- package/src/lib/entities/ssoProvider.oidc.js.map +1 -1
- package/src/lib/entities/ssoProvider.saml.d.ts +3 -0
- package/src/lib/entities/ssoProvider.saml.js +26 -0
- package/src/lib/entities/ssoProvider.saml.js.map +1 -1
- package/src/lib/entities/user.entity.d.ts +19 -18
- package/src/lib/entities/user.entity.js +75 -70
- package/src/lib/entities/user.entity.js.map +1 -1
- package/src/lib/entities-index.d.ts +156 -52
- package/src/lib/entities-index.js +344 -215
- package/src/lib/entities-index.js.map +1 -1
- package/src/lib/types/sso-session-context.d.ts +32 -0
- package/src/lib/types/sso-session-context.js +3 -0
- package/src/lib/types/sso-session-context.js.map +1 -0
- package/src/lib/entities/nfcCard.entity.js.map +0 -1
- /package/src/lib/entities/{nfcCard.entity.d.ts → rfidCard.entity.d.ts} +0 -0
|
@@ -94,6 +94,19 @@ tslib_1.__decorate([
|
|
|
94
94
|
(0, swagger_1.ApiProperty)({ description: 'The billing transaction that is being refunded', type: () => BillingTransaction }),
|
|
95
95
|
tslib_1.__metadata("design:type", BillingTransaction)
|
|
96
96
|
], BillingTransaction.prototype, "refundOf", void 0);
|
|
97
|
+
tslib_1.__decorate([
|
|
98
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
99
|
+
(0, swagger_1.ApiProperty)({
|
|
100
|
+
description: 'The billing transaction this one corrects; the corrected transaction itself is never changed',
|
|
101
|
+
nullable: true,
|
|
102
|
+
}),
|
|
103
|
+
tslib_1.__metadata("design:type", Number)
|
|
104
|
+
], BillingTransaction.prototype, "correctionOfId", void 0);
|
|
105
|
+
tslib_1.__decorate([
|
|
106
|
+
(0, typeorm_1.ManyToOne)(() => BillingTransaction, { onDelete: 'CASCADE', nullable: true }),
|
|
107
|
+
(0, typeorm_1.JoinColumn)({ name: 'correctionOfId' }),
|
|
108
|
+
tslib_1.__metadata("design:type", BillingTransaction)
|
|
109
|
+
], BillingTransaction.prototype, "correctionOf", void 0);
|
|
97
110
|
tslib_1.__decorate([
|
|
98
111
|
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
99
112
|
(0, swagger_1.ApiProperty)({ description: 'The external reference e.g. sumup transaction ID' }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing-transaction.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/billing-transaction.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAUiB;AACjB,6CAA8C;AAC9C,+CAAqC;AACrC,iEAAuD;AACvD,uFAAsG;AAEtG,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,+CAAmB,CAAA;IACnB,mDAAuB,CAAA;IACvB,6CAAiB,CAAA;AACnB,CAAC,EAJW,wBAAwB,wCAAxB,wBAAwB,QAInC;AAGM,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;
|
|
1
|
+
{"version":3,"file":"billing-transaction.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/billing-transaction.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAUiB;AACjB,6CAA8C;AAC9C,+CAAqC;AACrC,iEAAuD;AACvD,uFAAsG;AAEtG,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,+CAAmB,CAAA;IACnB,mDAAuB,CAAA;IACvB,6CAAiB,CAAA;AACnB,CAAC,EAJW,wBAAwB,wCAAxB,wBAAwB,QAInC;AAGM,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAmG9B,CAAA;AAnGY,gDAAkB;AAM7B;IALC,IAAA,gCAAsB,GAAE;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,kDAAkD;QAC/D,OAAO,EAAE,CAAC;KACX,CAAC;;8CACU;AAOZ;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC3B,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,oBAAoB;QACjC,OAAO,EAAE,CAAC;KACX,CAAC;;kDACc;AAOhB;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,mBAAmB,EAAE;QACzD,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAC9B,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,iDAAiD,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC;sCAC3F,kBAAI;gDAAC;AAIZ;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,uDAAuD,EAAE,CAAC;sCAC1E,IAAI;qDAAC;AAIjB;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,4DAA4D,EAAE,CAAC;sCAC/E,IAAI;qDAAC;AAIjB;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC3B,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,6EAA6E,EAAE,CAAC;;kDAC5F;AAIhB;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,4DAA4D,EAAE,CAAC;;uDAC/D;AAO5B;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,4BAA4B,EAAE;QAClE,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;IACnC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,gDAAgD,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC;sCACrF,kBAAI;qDAAQ;AAIxB;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,iFAAiF,EAAE,CAAC;;2DAChF;AAOhC;IALC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,oCAAa,EAAE,CAAC,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,kBAAkB,EAAE;QAClF,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;IACvC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,wDAAwD,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,oCAAa,EAAE,CAAC;sCAClG,oCAAa;yDAAQ;AAIrC;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,8EAA8E,EAAE,CAAC;;sDAClF;AAO3B;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAkB,EAAE,CAAC,kBAAkB,EAAE,EAAE,CAAC,kBAAkB,CAAC,QAAQ,EAAE;QACxF,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;IAClC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,gDAAgD,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAkB,EAAE,CAAC;sCACpG,kBAAkB;oDAAQ;AAOrC;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,8FAA8F;QAC3G,QAAQ,EAAE,IAAI;KACf,CAAC;;0DAC6B;AAI/B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAkB,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5E,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;sCACxB,kBAAkB;wDAAQ;AAIzC;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACxC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,kDAAkD,EAAE,CAAC;;6DAC/C;AAQlC;IANC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC;IAC/D,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,uCAAuC;QACpD,IAAI,EAAE,wBAAwB;QAC9B,QAAQ,EAAE,0BAA0B;KACrC,CAAC;;kDACgC;AAUlC;IARC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wDAAuB,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,kBAAkB,EAAE;QACvF,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,6CAA6C;QAC1D,IAAI,EAAE,GAAG,EAAE,CAAC,wDAAuB;QACnC,OAAO,EAAE,IAAI;KACd,CAAC;;iDACgC;6BAlGvB,kBAAkB;IAD9B,IAAA,gBAAM,GAAE;GACI,kBAAkB,CAmG9B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare enum CsvExportType {
|
|
2
|
+
RESOURCE_USAGE_HOURS = "resourceUsageHours",
|
|
3
|
+
BILLING_TRANSACTIONS = "billingTransactions",
|
|
4
|
+
RESOURCE_HOURS_SUMMARY = "resourceHoursSummary"
|
|
5
|
+
}
|
|
6
|
+
export declare enum CsvExportTemplateColumnType {
|
|
7
|
+
FIELD = "field",
|
|
8
|
+
CONSTANT = "constant"
|
|
9
|
+
}
|
|
10
|
+
export declare class CsvExportTemplateColumn {
|
|
11
|
+
type: CsvExportTemplateColumnType;
|
|
12
|
+
header: string;
|
|
13
|
+
fieldKey?: string | null;
|
|
14
|
+
value?: string | null;
|
|
15
|
+
}
|
|
16
|
+
export declare class CsvExportTemplate {
|
|
17
|
+
id: number;
|
|
18
|
+
name: string;
|
|
19
|
+
exportType: CsvExportType;
|
|
20
|
+
columns: CsvExportTemplateColumn[];
|
|
21
|
+
createdAt: Date;
|
|
22
|
+
updatedAt: Date;
|
|
23
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CsvExportTemplate = exports.CsvExportTemplateColumn = exports.CsvExportTemplateColumnType = exports.CsvExportType = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
7
|
+
var CsvExportType;
|
|
8
|
+
(function (CsvExportType) {
|
|
9
|
+
CsvExportType["RESOURCE_USAGE_HOURS"] = "resourceUsageHours";
|
|
10
|
+
CsvExportType["BILLING_TRANSACTIONS"] = "billingTransactions";
|
|
11
|
+
CsvExportType["RESOURCE_HOURS_SUMMARY"] = "resourceHoursSummary";
|
|
12
|
+
})(CsvExportType || (exports.CsvExportType = CsvExportType = {}));
|
|
13
|
+
var CsvExportTemplateColumnType;
|
|
14
|
+
(function (CsvExportTemplateColumnType) {
|
|
15
|
+
CsvExportTemplateColumnType["FIELD"] = "field";
|
|
16
|
+
CsvExportTemplateColumnType["CONSTANT"] = "constant";
|
|
17
|
+
})(CsvExportTemplateColumnType || (exports.CsvExportTemplateColumnType = CsvExportTemplateColumnType = {}));
|
|
18
|
+
class CsvExportTemplateColumn {
|
|
19
|
+
}
|
|
20
|
+
exports.CsvExportTemplateColumn = CsvExportTemplateColumn;
|
|
21
|
+
tslib_1.__decorate([
|
|
22
|
+
(0, swagger_1.ApiProperty)({
|
|
23
|
+
description: 'Whether this column outputs a data field or a constant value',
|
|
24
|
+
enum: CsvExportTemplateColumnType,
|
|
25
|
+
enumName: 'CsvExportTemplateColumnType',
|
|
26
|
+
example: CsvExportTemplateColumnType.FIELD,
|
|
27
|
+
}),
|
|
28
|
+
tslib_1.__metadata("design:type", String)
|
|
29
|
+
], CsvExportTemplateColumn.prototype, "type", void 0);
|
|
30
|
+
tslib_1.__decorate([
|
|
31
|
+
(0, swagger_1.ApiProperty)({
|
|
32
|
+
description: "The header written to the first CSV row. Empty means: use the field's default label.",
|
|
33
|
+
example: 'Machine',
|
|
34
|
+
maxLength: 255,
|
|
35
|
+
}),
|
|
36
|
+
tslib_1.__metadata("design:type", String)
|
|
37
|
+
], CsvExportTemplateColumn.prototype, "header", void 0);
|
|
38
|
+
tslib_1.__decorate([
|
|
39
|
+
(0, swagger_1.ApiProperty)({
|
|
40
|
+
description: 'The key of the data field to output (only for type "field"). Field keys are stable identifiers, they are persisted and must not be renamed.',
|
|
41
|
+
example: 'resourceName',
|
|
42
|
+
required: false,
|
|
43
|
+
nullable: true,
|
|
44
|
+
maxLength: 255,
|
|
45
|
+
}),
|
|
46
|
+
tslib_1.__metadata("design:type", String)
|
|
47
|
+
], CsvExportTemplateColumn.prototype, "fieldKey", void 0);
|
|
48
|
+
tslib_1.__decorate([
|
|
49
|
+
(0, swagger_1.ApiProperty)({
|
|
50
|
+
description: 'The constant value written to every row (only for type "constant", may be an empty string)',
|
|
51
|
+
example: 'makerspace-bocholt',
|
|
52
|
+
required: false,
|
|
53
|
+
nullable: true,
|
|
54
|
+
maxLength: 1024,
|
|
55
|
+
}),
|
|
56
|
+
tslib_1.__metadata("design:type", String)
|
|
57
|
+
], CsvExportTemplateColumn.prototype, "value", void 0);
|
|
58
|
+
let CsvExportTemplate = class CsvExportTemplate {
|
|
59
|
+
};
|
|
60
|
+
exports.CsvExportTemplate = CsvExportTemplate;
|
|
61
|
+
tslib_1.__decorate([
|
|
62
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
63
|
+
(0, swagger_1.ApiProperty)({
|
|
64
|
+
description: 'The unique identifier of the CSV export template',
|
|
65
|
+
example: 1,
|
|
66
|
+
}),
|
|
67
|
+
tslib_1.__metadata("design:type", Number)
|
|
68
|
+
], CsvExportTemplate.prototype, "id", void 0);
|
|
69
|
+
tslib_1.__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
71
|
+
(0, swagger_1.ApiProperty)({
|
|
72
|
+
description: 'The display name of the template (unique per export type)',
|
|
73
|
+
example: 'Accounting upload',
|
|
74
|
+
maxLength: 120,
|
|
75
|
+
}),
|
|
76
|
+
tslib_1.__metadata("design:type", String)
|
|
77
|
+
], CsvExportTemplate.prototype, "name", void 0);
|
|
78
|
+
tslib_1.__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
80
|
+
(0, swagger_1.ApiProperty)({
|
|
81
|
+
description: 'The export type this template applies to',
|
|
82
|
+
enum: CsvExportType,
|
|
83
|
+
enumName: 'CsvExportType',
|
|
84
|
+
example: CsvExportType.RESOURCE_USAGE_HOURS,
|
|
85
|
+
}),
|
|
86
|
+
tslib_1.__metadata("design:type", String)
|
|
87
|
+
], CsvExportTemplate.prototype, "exportType", void 0);
|
|
88
|
+
tslib_1.__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({ type: 'json' }),
|
|
90
|
+
(0, swagger_1.ApiProperty)({
|
|
91
|
+
description: 'The ordered column configuration of the template',
|
|
92
|
+
type: [CsvExportTemplateColumn],
|
|
93
|
+
}),
|
|
94
|
+
tslib_1.__metadata("design:type", Array)
|
|
95
|
+
], CsvExportTemplate.prototype, "columns", void 0);
|
|
96
|
+
tslib_1.__decorate([
|
|
97
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
98
|
+
(0, swagger_1.ApiProperty)({ description: 'When the template was created' }),
|
|
99
|
+
tslib_1.__metadata("design:type", Date)
|
|
100
|
+
], CsvExportTemplate.prototype, "createdAt", void 0);
|
|
101
|
+
tslib_1.__decorate([
|
|
102
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
103
|
+
(0, swagger_1.ApiProperty)({ description: 'When the template was last updated' }),
|
|
104
|
+
tslib_1.__metadata("design:type", Date)
|
|
105
|
+
], CsvExportTemplate.prototype, "updatedAt", void 0);
|
|
106
|
+
exports.CsvExportTemplate = CsvExportTemplate = tslib_1.__decorate([
|
|
107
|
+
(0, typeorm_1.Entity)(),
|
|
108
|
+
(0, typeorm_1.Unique)('csv_export_template_name_per_type', ['exportType', 'name'])
|
|
109
|
+
], CsvExportTemplate);
|
|
110
|
+
//# sourceMappingURL=csv-export-template.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"csv-export-template.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/csv-export-template.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAA6G;AAC7G,6CAA8C;AAE9C,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,4DAA2C,CAAA;IAC3C,6DAA4C,CAAA;IAC5C,gEAA+C,CAAA;AACjD,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;AAED,IAAY,2BAGX;AAHD,WAAY,2BAA2B;IACrC,8CAAe,CAAA;IACf,oDAAqB,CAAA;AACvB,CAAC,EAHW,2BAA2B,2CAA3B,2BAA2B,QAGtC;AAED,MAAa,uBAAuB;CAkCnC;AAlCD,0DAkCC;AA3BC;IANC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,8DAA8D;QAC3E,IAAI,EAAE,2BAA2B;QACjC,QAAQ,EAAE,6BAA6B;QACvC,OAAO,EAAE,2BAA2B,CAAC,KAAK;KAC3C,CAAC;;qDACiC;AAOnC;IALC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,sFAAsF;QACnG,OAAO,EAAE,SAAS;QAClB,SAAS,EAAE,GAAG;KACf,CAAC;;uDACc;AAUhB;IARC,IAAA,qBAAW,EAAC;QACX,WAAW,EACT,6IAA6I;QAC/I,OAAO,EAAE,cAAc;QACvB,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,IAAI;QACd,SAAS,EAAE,GAAG;KACf,CAAC;;yDACuB;AASzB;IAPC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,4FAA4F;QACzG,OAAO,EAAE,oBAAoB;QAC7B,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,IAAI;QACd,SAAS,EAAE,IAAI;KAChB,CAAC;;sDACoB;AAKjB,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAuC7B,CAAA;AAvCY,8CAAiB;AAM5B;IALC,IAAA,gCAAsB,GAAE;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,kDAAkD;QAC/D,OAAO,EAAE,CAAC;KACX,CAAC;;6CACU;AAQZ;IANC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,2DAA2D;QACxE,OAAO,EAAE,mBAAmB;QAC5B,SAAS,EAAE,GAAG;KACf,CAAC;;+CACY;AASd;IAPC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,0CAA0C;QACvD,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,eAAe;QACzB,OAAO,EAAE,aAAa,CAAC,oBAAoB;KAC5C,CAAC;;qDACyB;AAO3B;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,kDAAkD;QAC/D,IAAI,EAAE,CAAC,uBAAuB,CAAC;KAChC,CAAC;;kDACkC;AAIpC;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,+BAA+B,EAAE,CAAC;sCAClD,IAAI;oDAAC;AAIjB;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,oCAAoC,EAAE,CAAC;sCACvD,IAAI;oDAAC;4BAtCN,iBAAiB;IAF7B,IAAA,gBAAM,GAAE;IACR,IAAA,gBAAM,EAAC,mCAAmC,EAAE,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;GACvD,iBAAiB,CAuC7B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { User } from './user.entity';
|
|
2
|
+
export type DashboardPinItemType = 'page' | 'resource' | 'widget';
|
|
3
|
+
export type DashboardPinSize = 'small' | 'medium' | 'large';
|
|
4
|
+
/** One entry on a user's personal dashboard: a page path, a resource id or a widget id, in the user's order. */
|
|
5
|
+
export declare class DashboardPin {
|
|
6
|
+
id: number;
|
|
7
|
+
userId: number;
|
|
8
|
+
itemType: DashboardPinItemType;
|
|
9
|
+
/** The route path of a page pin, the decimal id of a resource pin, or the id of a widget pin. */
|
|
10
|
+
itemId: string;
|
|
11
|
+
position: number;
|
|
12
|
+
/** The tile size the user chose. Null shows the item's default size. */
|
|
13
|
+
size: DashboardPinSize | null;
|
|
14
|
+
user: User;
|
|
15
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DashboardPin = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const user_entity_1 = require("./user.entity");
|
|
7
|
+
/** One entry on a user's personal dashboard: a page path, a resource id or a widget id, in the user's order. */
|
|
8
|
+
let DashboardPin = class DashboardPin {
|
|
9
|
+
};
|
|
10
|
+
exports.DashboardPin = DashboardPin;
|
|
11
|
+
tslib_1.__decorate([
|
|
12
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
13
|
+
tslib_1.__metadata("design:type", Number)
|
|
14
|
+
], DashboardPin.prototype, "id", void 0);
|
|
15
|
+
tslib_1.__decorate([
|
|
16
|
+
(0, typeorm_1.Column)({ type: 'integer' }),
|
|
17
|
+
tslib_1.__metadata("design:type", Number)
|
|
18
|
+
], DashboardPin.prototype, "userId", void 0);
|
|
19
|
+
tslib_1.__decorate([
|
|
20
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
21
|
+
tslib_1.__metadata("design:type", String)
|
|
22
|
+
], DashboardPin.prototype, "itemType", void 0);
|
|
23
|
+
tslib_1.__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
25
|
+
tslib_1.__metadata("design:type", String)
|
|
26
|
+
], DashboardPin.prototype, "itemId", void 0);
|
|
27
|
+
tslib_1.__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'integer' }),
|
|
29
|
+
tslib_1.__metadata("design:type", Number)
|
|
30
|
+
], DashboardPin.prototype, "position", void 0);
|
|
31
|
+
tslib_1.__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
33
|
+
tslib_1.__metadata("design:type", String)
|
|
34
|
+
], DashboardPin.prototype, "size", void 0);
|
|
35
|
+
tslib_1.__decorate([
|
|
36
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { onDelete: 'CASCADE' }),
|
|
37
|
+
(0, typeorm_1.JoinColumn)({ name: 'userId' }),
|
|
38
|
+
tslib_1.__metadata("design:type", user_entity_1.User)
|
|
39
|
+
], DashboardPin.prototype, "user", void 0);
|
|
40
|
+
exports.DashboardPin = DashboardPin = tslib_1.__decorate([
|
|
41
|
+
(0, typeorm_1.Entity)(),
|
|
42
|
+
(0, typeorm_1.Index)('IDX_dashboard_pin_user_position', ['userId', 'position'], { unique: true }),
|
|
43
|
+
(0, typeorm_1.Index)('IDX_dashboard_pin_user_item', ['userId', 'itemType', 'itemId'], { unique: true })
|
|
44
|
+
], DashboardPin);
|
|
45
|
+
//# sourceMappingURL=dashboard-pin.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard-pin.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/dashboard-pin.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAA+F;AAC/F,+CAAqC;AAKrC,gHAAgH;AAIzG,IAAM,YAAY,GAAlB,MAAM,YAAY;CAwBxB,CAAA;AAxBY,oCAAY;AAEvB;IADC,IAAA,gCAAsB,GAAE;;wCACb;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;4CACZ;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CACO;AAIhC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACT;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;8CACV;AAIlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACV;AAI/B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC9C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;sCACxB,kBAAI;0CAAC;uBAvBD,YAAY;IAHxB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,iCAAiC,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAClF,IAAA,eAAK,EAAC,6BAA6B,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GAC5E,YAAY,CAwBxB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ResourceFlowNode } from './resourceFlowNode';
|
|
2
|
+
import { ResourceFlowEdge } from './resourceFlowEdge';
|
|
3
|
+
/** Which kind of flow an owner is: bound to one resource, or reacting to events of every resource. */
|
|
4
|
+
export type FlowScope = 'resource' | 'global';
|
|
5
|
+
/**
|
|
6
|
+
* A named flow that is not tied to one resource. Its nodes and edges point here through `flowId`
|
|
7
|
+
* (with `resourceId` NULL); resource flows keep using `resourceId` alone.
|
|
8
|
+
*/
|
|
9
|
+
export declare class Flow {
|
|
10
|
+
id: number;
|
|
11
|
+
name: string;
|
|
12
|
+
description: string | null;
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
scope: FlowScope;
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
nodes: ResourceFlowNode[];
|
|
18
|
+
edges: ResourceFlowEdge[];
|
|
19
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Flow = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
7
|
+
const resourceFlowNode_1 = require("./resourceFlowNode");
|
|
8
|
+
const resourceFlowEdge_1 = require("./resourceFlowEdge");
|
|
9
|
+
/**
|
|
10
|
+
* A named flow that is not tied to one resource. Its nodes and edges point here through `flowId`
|
|
11
|
+
* (with `resourceId` NULL); resource flows keep using `resourceId` alone.
|
|
12
|
+
*/
|
|
13
|
+
let Flow = class Flow {
|
|
14
|
+
};
|
|
15
|
+
exports.Flow = Flow;
|
|
16
|
+
tslib_1.__decorate([
|
|
17
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
18
|
+
(0, swagger_1.ApiProperty)({ description: 'The unique identifier of the flow', example: 1 }),
|
|
19
|
+
tslib_1.__metadata("design:type", Number)
|
|
20
|
+
], Flow.prototype, "id", void 0);
|
|
21
|
+
tslib_1.__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: 'varchar' }),
|
|
23
|
+
(0, swagger_1.ApiProperty)({ description: 'The name of the flow', example: 'Notify on starts' }),
|
|
24
|
+
tslib_1.__metadata("design:type", String)
|
|
25
|
+
], Flow.prototype, "name", void 0);
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
28
|
+
(0, swagger_1.ApiProperty)({ description: 'Optional description of what the flow does', nullable: true, type: String }),
|
|
29
|
+
tslib_1.__metadata("design:type", String)
|
|
30
|
+
], Flow.prototype, "description", void 0);
|
|
31
|
+
tslib_1.__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
33
|
+
(0, swagger_1.ApiProperty)({ description: 'Disabled flows never run', example: true }),
|
|
34
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
35
|
+
], Flow.prototype, "enabled", void 0);
|
|
36
|
+
tslib_1.__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'varchar', default: 'global' }),
|
|
38
|
+
(0, swagger_1.ApiProperty)({ description: 'The kind of flow', enum: ['resource', 'global'], example: 'global' }),
|
|
39
|
+
tslib_1.__metadata("design:type", String)
|
|
40
|
+
], Flow.prototype, "scope", void 0);
|
|
41
|
+
tslib_1.__decorate([
|
|
42
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
43
|
+
(0, swagger_1.ApiProperty)({ type: String, format: 'date-time' }),
|
|
44
|
+
tslib_1.__metadata("design:type", Date)
|
|
45
|
+
], Flow.prototype, "createdAt", void 0);
|
|
46
|
+
tslib_1.__decorate([
|
|
47
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
48
|
+
(0, swagger_1.ApiProperty)({ type: String, format: 'date-time' }),
|
|
49
|
+
tslib_1.__metadata("design:type", Date)
|
|
50
|
+
], Flow.prototype, "updatedAt", void 0);
|
|
51
|
+
tslib_1.__decorate([
|
|
52
|
+
(0, typeorm_1.OneToMany)(() => resourceFlowNode_1.ResourceFlowNode, (node) => node.flow),
|
|
53
|
+
tslib_1.__metadata("design:type", Array)
|
|
54
|
+
], Flow.prototype, "nodes", void 0);
|
|
55
|
+
tslib_1.__decorate([
|
|
56
|
+
(0, typeorm_1.OneToMany)(() => resourceFlowEdge_1.ResourceFlowEdge, (edge) => edge.flow),
|
|
57
|
+
tslib_1.__metadata("design:type", Array)
|
|
58
|
+
], Flow.prototype, "edges", void 0);
|
|
59
|
+
exports.Flow = Flow = tslib_1.__decorate([
|
|
60
|
+
(0, typeorm_1.Entity)()
|
|
61
|
+
], Flow);
|
|
62
|
+
//# sourceMappingURL=flow.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/flow.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAAgH;AAChH,6CAA8C;AAC9C,yDAAsD;AACtD,yDAAsD;AAKtD;;;GAGG;AAEI,IAAM,IAAI,GAAV,MAAM,IAAI;CAkChB,CAAA;AAlCY,oBAAI;AAGf;IAFC,IAAA,gCAAsB,GAAE;IACxB,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,mCAAmC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gCAClE;AAIZ;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC3B,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,sBAAsB,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;;kCACpE;AAId;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACxC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,4CAA4C,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yCAC7E;AAI5B;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC1C,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,0BAA0B,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;qCACtD;AAIlB;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;IAC9C,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;;mCAChF;AAIlB;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;sCACvC,IAAI;uCAAC;AAIjB;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;sCACvC,IAAI;uCAAC;AAGjB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAgB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC;;mCAC5B;AAG3B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAgB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC;;mCAC5B;eAjChB,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CAkChB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.McpOAuthClient = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
/** A public OAuth client registered through Dynamic Client Registration (RFC 7591). */
|
|
7
|
+
let McpOAuthClient = class McpOAuthClient {
|
|
8
|
+
};
|
|
9
|
+
exports.McpOAuthClient = McpOAuthClient;
|
|
10
|
+
tslib_1.__decorate([
|
|
11
|
+
(0, typeorm_1.PrimaryColumn)({ type: 'text' }),
|
|
12
|
+
tslib_1.__metadata("design:type", String)
|
|
13
|
+
], McpOAuthClient.prototype, "clientId", void 0);
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
16
|
+
tslib_1.__metadata("design:type", String)
|
|
17
|
+
], McpOAuthClient.prototype, "clientName", void 0);
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'simple-json' }),
|
|
20
|
+
tslib_1.__metadata("design:type", Array)
|
|
21
|
+
], McpOAuthClient.prototype, "redirectUris", void 0);
|
|
22
|
+
tslib_1.__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
24
|
+
tslib_1.__metadata("design:type", String)
|
|
25
|
+
], McpOAuthClient.prototype, "registeredIp", void 0);
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
28
|
+
tslib_1.__metadata("design:type", Date)
|
|
29
|
+
], McpOAuthClient.prototype, "createdAt", void 0);
|
|
30
|
+
exports.McpOAuthClient = McpOAuthClient = tslib_1.__decorate([
|
|
31
|
+
(0, typeorm_1.Entity)('mcp_oauth_client')
|
|
32
|
+
], McpOAuthClient);
|
|
33
|
+
//# sourceMappingURL=mcp-oauth-client.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-oauth-client.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/mcp-oauth-client.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAA0E;AAE1E,uFAAuF;AAEhF,IAAM,cAAc,GAApB,MAAM,cAAc;CAe1B,CAAA;AAfY,wCAAc;AAEzB;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACd;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kDACL;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;oDACR;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACZ;AAG7B;IADC,IAAA,0BAAgB,GAAE;sCACP,IAAI;iDAAC;yBAdN,cAAc;IAD1B,IAAA,gBAAM,EAAC,kBAAkB,CAAC;GACd,cAAc,CAe1B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { User } from './user.entity';
|
|
2
|
+
/**
|
|
3
|
+
* A user's consent for one MCP client. It is the root of a refresh-token family: revoking it
|
|
4
|
+
* invalidates every access and refresh token issued under it.
|
|
5
|
+
*/
|
|
6
|
+
export declare class McpOAuthGrant {
|
|
7
|
+
id: string;
|
|
8
|
+
userId: number;
|
|
9
|
+
clientId: string;
|
|
10
|
+
/** Permissions the user approved. The effective permissions are this list intersected with the user's current ones. */
|
|
11
|
+
permissionKeys: string[];
|
|
12
|
+
/** Canonical URL of the MCP resource the tokens are bound to (RFC 8707). */
|
|
13
|
+
resource: string;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
/** Absolute lifetime of the grant; refresh tokens cannot extend it. */
|
|
16
|
+
expiresAt: Date;
|
|
17
|
+
lastUsedAt: Date | null;
|
|
18
|
+
revokedAt: Date | null;
|
|
19
|
+
user: User;
|
|
20
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.McpOAuthGrant = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const user_entity_1 = require("./user.entity");
|
|
7
|
+
/**
|
|
8
|
+
* A user's consent for one MCP client. It is the root of a refresh-token family: revoking it
|
|
9
|
+
* invalidates every access and refresh token issued under it.
|
|
10
|
+
*/
|
|
11
|
+
let McpOAuthGrant = class McpOAuthGrant {
|
|
12
|
+
};
|
|
13
|
+
exports.McpOAuthGrant = McpOAuthGrant;
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, typeorm_1.PrimaryColumn)({ type: 'text' }),
|
|
16
|
+
tslib_1.__metadata("design:type", String)
|
|
17
|
+
], McpOAuthGrant.prototype, "id", void 0);
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'integer' }),
|
|
20
|
+
tslib_1.__metadata("design:type", Number)
|
|
21
|
+
], McpOAuthGrant.prototype, "userId", void 0);
|
|
22
|
+
tslib_1.__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
24
|
+
tslib_1.__metadata("design:type", String)
|
|
25
|
+
], McpOAuthGrant.prototype, "clientId", void 0);
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'simple-json' }),
|
|
28
|
+
tslib_1.__metadata("design:type", Array)
|
|
29
|
+
], McpOAuthGrant.prototype, "permissionKeys", void 0);
|
|
30
|
+
tslib_1.__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
32
|
+
tslib_1.__metadata("design:type", String)
|
|
33
|
+
], McpOAuthGrant.prototype, "resource", void 0);
|
|
34
|
+
tslib_1.__decorate([
|
|
35
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
36
|
+
tslib_1.__metadata("design:type", Date)
|
|
37
|
+
], McpOAuthGrant.prototype, "createdAt", void 0);
|
|
38
|
+
tslib_1.__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'datetime' }),
|
|
40
|
+
tslib_1.__metadata("design:type", Date)
|
|
41
|
+
], McpOAuthGrant.prototype, "expiresAt", void 0);
|
|
42
|
+
tslib_1.__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'datetime', nullable: true }),
|
|
44
|
+
tslib_1.__metadata("design:type", Date)
|
|
45
|
+
], McpOAuthGrant.prototype, "lastUsedAt", void 0);
|
|
46
|
+
tslib_1.__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'datetime', nullable: true }),
|
|
48
|
+
tslib_1.__metadata("design:type", Date)
|
|
49
|
+
], McpOAuthGrant.prototype, "revokedAt", void 0);
|
|
50
|
+
tslib_1.__decorate([
|
|
51
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { onDelete: 'CASCADE' }),
|
|
52
|
+
tslib_1.__metadata("design:type", user_entity_1.User)
|
|
53
|
+
], McpOAuthGrant.prototype, "user", void 0);
|
|
54
|
+
exports.McpOAuthGrant = McpOAuthGrant = tslib_1.__decorate([
|
|
55
|
+
(0, typeorm_1.Entity)('mcp_oauth_grant'),
|
|
56
|
+
(0, typeorm_1.Index)(['userId'])
|
|
57
|
+
], McpOAuthGrant);
|
|
58
|
+
//# sourceMappingURL=mcp-oauth-grant.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-oauth-grant.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/mcp-oauth-grant.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAA4F;AAC5F,+CAAqC;AAErC;;;GAGG;AAGI,IAAM,aAAa,GAAnB,MAAM,aAAa;CAiCzB,CAAA;AAjCY,sCAAa;AAExB;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yCACpB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;6CACZ;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+CACP;AAIlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;qDACN;AAI1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+CACP;AAGlB;IADC,IAAA,0BAAgB,GAAE;sCACP,IAAI;gDAAC;AAIjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;sCACjB,IAAI;gDAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAChC,IAAI;iDAAQ;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjC,IAAI;gDAAQ;AAGxB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;sCACxC,kBAAI;2CAAC;wBAhCD,aAAa;IAFzB,IAAA,gBAAM,EAAC,iBAAiB,CAAC;IACzB,IAAA,eAAK,EAAC,CAAC,QAAQ,CAAC,CAAC;GACL,aAAa,CAiCzB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { McpOAuthGrant } from './mcp-oauth-grant.entity';
|
|
2
|
+
export type McpOAuthTokenKind = 'request' | 'code' | 'access' | 'refresh';
|
|
3
|
+
/**
|
|
4
|
+
* Pending authorization requests, authorization codes, access tokens and refresh tokens.
|
|
5
|
+
* Only the SHA-256 of the secret value is stored.
|
|
6
|
+
*/
|
|
7
|
+
export declare class McpOAuthToken {
|
|
8
|
+
tokenHash: string;
|
|
9
|
+
kind: McpOAuthTokenKind;
|
|
10
|
+
grantId: string | null;
|
|
11
|
+
/** Request and code parameters (client, redirect URI, PKCE challenge, state, scope, resource). */
|
|
12
|
+
payload: Record<string, unknown> | null;
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
expiresAt: Date;
|
|
15
|
+
/** Set when a single-use value (request, code, refresh token) has been consumed. */
|
|
16
|
+
usedAt: Date | null;
|
|
17
|
+
grant: McpOAuthGrant | null;
|
|
18
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.McpOAuthToken = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
const mcp_oauth_grant_entity_1 = require("./mcp-oauth-grant.entity");
|
|
7
|
+
/**
|
|
8
|
+
* Pending authorization requests, authorization codes, access tokens and refresh tokens.
|
|
9
|
+
* Only the SHA-256 of the secret value is stored.
|
|
10
|
+
*/
|
|
11
|
+
let McpOAuthToken = class McpOAuthToken {
|
|
12
|
+
};
|
|
13
|
+
exports.McpOAuthToken = McpOAuthToken;
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, typeorm_1.PrimaryColumn)({ type: 'text' }),
|
|
16
|
+
tslib_1.__metadata("design:type", String)
|
|
17
|
+
], McpOAuthToken.prototype, "tokenHash", void 0);
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
20
|
+
tslib_1.__metadata("design:type", String)
|
|
21
|
+
], McpOAuthToken.prototype, "kind", void 0);
|
|
22
|
+
tslib_1.__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
24
|
+
tslib_1.__metadata("design:type", String)
|
|
25
|
+
], McpOAuthToken.prototype, "grantId", void 0);
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'simple-json', nullable: true }),
|
|
28
|
+
tslib_1.__metadata("design:type", Object)
|
|
29
|
+
], McpOAuthToken.prototype, "payload", void 0);
|
|
30
|
+
tslib_1.__decorate([
|
|
31
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
32
|
+
tslib_1.__metadata("design:type", Date)
|
|
33
|
+
], McpOAuthToken.prototype, "createdAt", void 0);
|
|
34
|
+
tslib_1.__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'datetime' }),
|
|
36
|
+
tslib_1.__metadata("design:type", Date)
|
|
37
|
+
], McpOAuthToken.prototype, "expiresAt", void 0);
|
|
38
|
+
tslib_1.__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'datetime', nullable: true }),
|
|
40
|
+
tslib_1.__metadata("design:type", Date)
|
|
41
|
+
], McpOAuthToken.prototype, "usedAt", void 0);
|
|
42
|
+
tslib_1.__decorate([
|
|
43
|
+
(0, typeorm_1.ManyToOne)(() => mcp_oauth_grant_entity_1.McpOAuthGrant, { onDelete: 'CASCADE', nullable: true }),
|
|
44
|
+
tslib_1.__metadata("design:type", mcp_oauth_grant_entity_1.McpOAuthGrant)
|
|
45
|
+
], McpOAuthToken.prototype, "grant", void 0);
|
|
46
|
+
exports.McpOAuthToken = McpOAuthToken = tslib_1.__decorate([
|
|
47
|
+
(0, typeorm_1.Entity)('mcp_oauth_token'),
|
|
48
|
+
(0, typeorm_1.Index)(['grantId']),
|
|
49
|
+
(0, typeorm_1.Index)(['expiresAt'])
|
|
50
|
+
], McpOAuthToken);
|
|
51
|
+
//# sourceMappingURL=mcp-oauth-token.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-oauth-token.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/mcp-oauth-token.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAA4F;AAC5F,qEAAyD;AAIzD;;;GAGG;AAII,IAAM,aAAa,GAAnB,MAAM,aAAa;CA0BzB,CAAA;AA1BY,sCAAa;AAExB;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACb;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2CACA;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACjB;AAIxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACP;AAGzC;IADC,IAAA,0BAAgB,GAAE;sCACP,IAAI;gDAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;sCACjB,IAAI;gDAAC;AAIjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACpC,IAAI;6CAAQ;AAGrB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sCAAa,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAChE,sCAAa;4CAAQ;wBAzBlB,aAAa;IAHzB,IAAA,gBAAM,EAAC,iBAAiB,CAAC;IACzB,IAAA,eAAK,EAAC,CAAC,SAAS,CAAC,CAAC;IAClB,IAAA,eAAK,EAAC,CAAC,WAAW,CAAC,CAAC;GACR,aAAa,CA0BzB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A card key change the server started but has not seen confirmed yet. Written before the first
|
|
3
|
+
* command that changes a key reaches the card, so a tap after an interruption (card pulled, reader
|
|
4
|
+
* offline, API restart) can finish the work: authenticate with the recorded key (enroll) or with the
|
|
5
|
+
* factory key (reset). The key is stored encrypted like NFCCard.key.
|
|
6
|
+
*/
|
|
7
|
+
export declare class NFCCardPendingChange {
|
|
8
|
+
id: number;
|
|
9
|
+
uid: string;
|
|
10
|
+
kind: 'enroll' | 'reset';
|
|
11
|
+
/** Enroll: the user the card is being enrolled for. */
|
|
12
|
+
userId: number | null;
|
|
13
|
+
/** Reset: the card record that is being wiped. */
|
|
14
|
+
cardId: number | null;
|
|
15
|
+
keyNo: number;
|
|
16
|
+
/** Enroll: the new key being written (encrypted). Reset: empty. */
|
|
17
|
+
key: string | null;
|
|
18
|
+
actorId: number | null;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NFCCardPendingChange = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const typeorm_1 = require("typeorm");
|
|
6
|
+
/**
|
|
7
|
+
* A card key change the server started but has not seen confirmed yet. Written before the first
|
|
8
|
+
* command that changes a key reaches the card, so a tap after an interruption (card pulled, reader
|
|
9
|
+
* offline, API restart) can finish the work: authenticate with the recorded key (enroll) or with the
|
|
10
|
+
* factory key (reset). The key is stored encrypted like NFCCard.key.
|
|
11
|
+
*/
|
|
12
|
+
let NFCCardPendingChange = class NFCCardPendingChange {
|
|
13
|
+
};
|
|
14
|
+
exports.NFCCardPendingChange = NFCCardPendingChange;
|
|
15
|
+
tslib_1.__decorate([
|
|
16
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
17
|
+
tslib_1.__metadata("design:type", Number)
|
|
18
|
+
], NFCCardPendingChange.prototype, "id", void 0);
|
|
19
|
+
tslib_1.__decorate([
|
|
20
|
+
(0, typeorm_1.Index)('IDX_nfc_card_pending_change_uid'),
|
|
21
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: false }),
|
|
22
|
+
tslib_1.__metadata("design:type", String)
|
|
23
|
+
], NFCCardPendingChange.prototype, "uid", void 0);
|
|
24
|
+
tslib_1.__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 16, nullable: false }),
|
|
26
|
+
tslib_1.__metadata("design:type", String)
|
|
27
|
+
], NFCCardPendingChange.prototype, "kind", void 0);
|
|
28
|
+
tslib_1.__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
30
|
+
tslib_1.__metadata("design:type", Number)
|
|
31
|
+
], NFCCardPendingChange.prototype, "userId", void 0);
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
34
|
+
tslib_1.__metadata("design:type", Number)
|
|
35
|
+
], NFCCardPendingChange.prototype, "cardId", void 0);
|
|
36
|
+
tslib_1.__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: false }),
|
|
38
|
+
tslib_1.__metadata("design:type", Number)
|
|
39
|
+
], NFCCardPendingChange.prototype, "keyNo", void 0);
|
|
40
|
+
tslib_1.__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
42
|
+
tslib_1.__metadata("design:type", String)
|
|
43
|
+
], NFCCardPendingChange.prototype, "key", void 0);
|
|
44
|
+
tslib_1.__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true }),
|
|
46
|
+
tslib_1.__metadata("design:type", Number)
|
|
47
|
+
], NFCCardPendingChange.prototype, "actorId", void 0);
|
|
48
|
+
tslib_1.__decorate([
|
|
49
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
50
|
+
tslib_1.__metadata("design:type", Date)
|
|
51
|
+
], NFCCardPendingChange.prototype, "createdAt", void 0);
|
|
52
|
+
exports.NFCCardPendingChange = NFCCardPendingChange = tslib_1.__decorate([
|
|
53
|
+
(0, typeorm_1.Entity)()
|
|
54
|
+
], NFCCardPendingChange);
|
|
55
|
+
//# sourceMappingURL=nfcCardPendingChange.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nfcCardPendingChange.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/nfcCardPendingChange.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAA0F;AAE1F;;;;;GAKG;AAEI,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CA+BhC,CAAA;AA/BY,oDAAoB;AAE/B;IADC,IAAA,gCAAsB,GAAE;;gDACb;AAIZ;IAFC,IAAA,eAAK,EAAC,iCAAiC,CAAC;IACxC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;iDAC7B;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;kDAC/B;AAI1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACrB;AAIvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACrB;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;mDAC9B;AAIf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACrB;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACpB;AAGxB;IADC,IAAA,0BAAgB,GAAE;sCACP,IAAI;uDAAC;+BA9BN,oBAAoB;IADhC,IAAA,gBAAM,GAAE;GACI,oBAAoB,CA+BhC"}
|