@attraccess/database-entities 1.11.0-beta.1 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@attraccess/database-entities",
3
- "version": "1.11.0-beta.1",
3
+ "version": "1.11.0-beta.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Attraccess/Attraccess.git",
@@ -3,6 +3,17 @@ export declare class Permission {
3
3
  label: string;
4
4
  description: string;
5
5
  category: string;
6
+ pluginName: string | null;
7
+ labelDe: string | null;
8
+ descriptionDe: string | null;
9
+ categoryLabel: string | null;
10
+ categoryLabelDe: string | null;
11
+ /**
12
+ * False while the declaring plugin is not loaded (uninstalled, quarantined, failed, or a newer version dropped the
13
+ * key). The row and its role and API-token grants stay, so they come back when the plugin loads again; until then
14
+ * the key is hidden from the catalog and grants nothing. Core permissions are always available.
15
+ */
16
+ available: boolean;
6
17
  createdAt: Date;
7
18
  updatedAt: Date;
8
19
  }
@@ -39,6 +39,60 @@ tslib_1.__decorate([
39
39
  }),
40
40
  tslib_1.__metadata("design:type", String)
41
41
  ], Permission.prototype, "category", void 0);
42
+ tslib_1.__decorate([
43
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
44
+ (0, swagger_1.ApiProperty)({
45
+ description: 'Name of the plugin that declared this permission; null for core permissions',
46
+ example: 'matter',
47
+ nullable: true,
48
+ type: String,
49
+ }),
50
+ tslib_1.__metadata("design:type", String)
51
+ ], Permission.prototype, "pluginName", void 0);
52
+ tslib_1.__decorate([
53
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
54
+ (0, swagger_1.ApiProperty)({
55
+ description: 'German label of a plugin permission; core permissions are translated by the frontend',
56
+ nullable: true,
57
+ type: String,
58
+ }),
59
+ tslib_1.__metadata("design:type", String)
60
+ ], Permission.prototype, "labelDe", void 0);
61
+ tslib_1.__decorate([
62
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
63
+ (0, swagger_1.ApiProperty)({
64
+ description: 'German description of a plugin permission; core permissions are translated by the frontend',
65
+ nullable: true,
66
+ type: String,
67
+ }),
68
+ tslib_1.__metadata("design:type", String)
69
+ ], Permission.prototype, "descriptionDe", void 0);
70
+ tslib_1.__decorate([
71
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
72
+ (0, swagger_1.ApiProperty)({
73
+ description: 'English label of the category group of a plugin permission',
74
+ nullable: true,
75
+ type: String,
76
+ }),
77
+ tslib_1.__metadata("design:type", String)
78
+ ], Permission.prototype, "categoryLabel", void 0);
79
+ tslib_1.__decorate([
80
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
81
+ (0, swagger_1.ApiProperty)({
82
+ description: 'German label of the category group of a plugin permission',
83
+ nullable: true,
84
+ type: String,
85
+ }),
86
+ tslib_1.__metadata("design:type", String)
87
+ ], Permission.prototype, "categoryLabelDe", void 0);
88
+ tslib_1.__decorate([
89
+ (0, typeorm_1.Column)({ type: 'boolean', default: true }),
90
+ (0, swagger_1.ApiProperty)({
91
+ description: 'Whether the permission currently grants anything; false while its plugin is not loaded',
92
+ example: true,
93
+ }),
94
+ tslib_1.__metadata("design:type", Boolean)
95
+ ], Permission.prototype, "available", void 0);
42
96
  tslib_1.__decorate([
43
97
  (0, typeorm_1.CreateDateColumn)(),
44
98
  tslib_1.__metadata("design:type", Date)
@@ -1 +1 @@
1
- {"version":3,"file":"permission.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/permission.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAA4F;AAC5F,6CAA8C;AAGvC,IAAM,UAAU,GAAhB,MAAM,UAAU;CAkCtB,CAAA;AAlCY,gCAAU;AAMrB;IALC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC/B,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,+CAA+C;QAC5D,OAAO,EAAE,gBAAgB;KAC1B,CAAC;;uCACW;AAOb;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,0CAA0C;QACvD,OAAO,EAAE,gBAAgB;KAC1B,CAAC;;yCACa;AAOf;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,4CAA4C;QACzD,OAAO,EAAE,qCAAqC;KAC/C,CAAC;;+CACmB;AAOrB;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,uCAAuC;QACpD,OAAO,EAAE,WAAW;KACrB,CAAC;;4CACgB;AAGlB;IADC,IAAA,0BAAgB,GAAE;sCACP,IAAI;6CAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;sCACP,IAAI;6CAAC;qBAjCN,UAAU;IADtB,IAAA,gBAAM,EAAC,YAAY,CAAC;GACR,UAAU,CAkCtB"}
1
+ {"version":3,"file":"permission.entity.js","sourceRoot":"","sources":["../../../../../../libs/database-entities/src/lib/entities/permission.entity.ts"],"names":[],"mappings":";;;;AAAA,qCAA4F;AAC5F,6CAA8C;AAGvC,IAAM,UAAU,GAAhB,MAAM,UAAU;CAuFtB,CAAA;AAvFY,gCAAU;AAMrB;IALC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC/B,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,+CAA+C;QAC5D,OAAO,EAAE,gBAAgB;KAC1B,CAAC;;uCACW;AAOb;IALC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,0CAA0C;QACvD,OAAO,EAAE,gBAAgB;KAC1B,CAAC;;yCACa;AAOf;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