@attraccess/plugin-reservations 0.2.0-nightly.1197.2 → 0.2.0-nightly.1201.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/dist/index.js +6 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -534,7 +534,7 @@ var DirectoryService = class {
|
|
|
534
534
|
return this.context.hostData.resources.getNames(resourceIds);
|
|
535
535
|
}
|
|
536
536
|
getUserNames(userIds) {
|
|
537
|
-
return this.context.hostData.users.
|
|
537
|
+
return this.context.hostData.users.getDisplayNames(userIds);
|
|
538
538
|
}
|
|
539
539
|
};
|
|
540
540
|
DirectoryService = __decorateClass([
|
|
@@ -759,7 +759,7 @@ var reservationsStorage = (0, import_plugins_backend_sdk7.definePluginStorage)({
|
|
|
759
759
|
steps: Object.entries(tables).map(([name, definition]) => import_plugins_backend_sdk7.step.createTable(name, definition))
|
|
760
760
|
}
|
|
761
761
|
],
|
|
762
|
-
adoption: { legacyMigrations: RESERVATIONS_LEGACY_MIGRATIONS }
|
|
762
|
+
adoption: { legacyMigrations: RESERVATIONS_LEGACY_MIGRATIONS, namespace: "reservations" }
|
|
763
763
|
});
|
|
764
764
|
var opened = /* @__PURE__ */ new WeakMap();
|
|
765
765
|
function tablesOf(context) {
|
|
@@ -5786,8 +5786,8 @@ function wrap(condition, inner) {
|
|
|
5786
5786
|
return `<mj-raw>{{#${kind} ${path}}}</mj-raw>${inner}<mj-raw>{{/${kind}}}</mj-raw>`;
|
|
5787
5787
|
}
|
|
5788
5788
|
var paragraph = ([key, en, , condition]) => wrap(condition, `<mj-text padding="0 0 12px 0">${tCall(key, en)}</mj-text>`);
|
|
5789
|
-
function body(spec) {
|
|
5790
|
-
const greeting = `<mj-text padding="0 0 12px 0">{{t "greeting" "${GREETING.en}" name
|
|
5789
|
+
function body(spec, greetingName = "user.displayName") {
|
|
5790
|
+
const greeting = `<mj-text padding="0 0 12px 0">{{t "greeting" "${GREETING.en}" name=${greetingName}}}</mj-text>`;
|
|
5791
5791
|
const buttons = (spec.buttons ?? []).map(
|
|
5792
5792
|
(b) => wrap(
|
|
5793
5793
|
b.condition,
|
|
@@ -5818,6 +5818,8 @@ function toTemplate(spec) {
|
|
|
5818
5818
|
variables: variablesOf(subject, html),
|
|
5819
5819
|
subject,
|
|
5820
5820
|
body: html,
|
|
5821
|
+
// Installed templates still greeting by username move to the display name unless an admin edited them.
|
|
5822
|
+
previousBodies: [body(spec, "user.username")],
|
|
5821
5823
|
translations: { de }
|
|
5822
5824
|
};
|
|
5823
5825
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@attraccess/plugin-reservations",
|
|
3
|
-
"version": "0.2.0-nightly.
|
|
3
|
+
"version": "0.2.0-nightly.1201.1",
|
|
4
4
|
"description": "Official Attraccess plugin to reserve resources for a specific time window.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"repository": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"backend": "^2.0.0-0",
|
|
62
62
|
"frontend": "^2.0.0-0"
|
|
63
63
|
},
|
|
64
|
-
"publishedCommit": "
|
|
64
|
+
"publishedCommit": "03074997ebb07ccb647ed8df862202dd3dfe4a03"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "03074997ebb07ccb647ed8df862202dd3dfe4a03"
|
|
67
67
|
}
|