@learningsuite/n8n-nodes-learningsuite 1.2.5 → 1.2.6

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.
@@ -129,10 +129,6 @@ class LearningSuite {
129
129
  description: 'LearningSuite API Test',
130
130
  },
131
131
  ],
132
- requestDefaults: {
133
- baseURL: '={{$credentials.baseUrl}}',
134
- headers: { Accept: 'application/json', 'Content-Type': 'application/json' },
135
- },
136
132
  properties: [
137
133
  resource_selector_1.resourceSelector,
138
134
  ...ai_properties_1.aiProperties,
@@ -221,7 +221,7 @@ function buildDesiredFilter(event) {
221
221
  filter.groupId = String(col.groupId);
222
222
  break;
223
223
  }
224
- // ---------------- Lesson Completed (kaskadiert)
224
+ // ---------------- Lesson Completed (cascading)
225
225
  case 'lesson.completed': {
226
226
  const col = getCol('additionalLessonCompleted');
227
227
  if (col.courseId)
@@ -207,7 +207,7 @@ exports.memberProperties = [
207
207
  displayName: 'Do Not Require Password Change',
208
208
  name: 'doNotRequirePasswordChange',
209
209
  type: 'boolean',
210
- default: false, // Beispiel sagt false
210
+ default: false, // <- Example says false
211
211
  description: 'Whether the member is not prompted to change their password upon first login, if this option is enabled. This option should only be used if the member has not set a password and should log in using SSO. The default setting is "true," so for privacy reasons, only the member knows their password.',
212
212
  },
213
213
  {
@@ -30,7 +30,7 @@ exports.moduleProperties = [
30
30
  },
31
31
  ],
32
32
  },
33
- // (neu) optionaler Kurs-Filter erleichtert die Modulauswahl
33
+ // (new) optional course filter - makes module selection easier
34
34
  {
35
35
  displayName: 'Course Name or ID',
36
36
  name: 'courseId',
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.instantProperties = void 0;
4
4
  exports.instantProperties = [
5
- // Event-Auswahl (nur Instant)
5
+ // Event selection (instant only)
6
6
  {
7
7
  displayName: 'Event',
8
8
  name: 'event',
@@ -333,7 +333,7 @@ exports.instantProperties = [
333
333
  },
334
334
  ],
335
335
  },
336
- // Feedback (nur courseInstanceId)
336
+ // Feedback (courseInstanceId only)
337
337
  {
338
338
  displayName: 'Feedback Options',
339
339
  name: 'additionalFeedbackOptions',
@@ -423,7 +423,7 @@ exports.instantProperties = [
423
423
  },
424
424
  ],
425
425
  },
426
- // Lesson Completed (kaskadierende LoadOptions)
426
+ // Lesson Completed (cascading load options)
427
427
  {
428
428
  displayName: 'Lesson Completed Options',
429
429
  name: 'additionalLessonCompleted',
@@ -126,7 +126,7 @@ exports.webhookProperties = [
126
126
  { name: 'User Activation Status Changed Events', value: 'user-activation-status-changed-events' },
127
127
  ],
128
128
  },
129
- // ====== Optionen pro Event (identisch zu instantProperties) ======
129
+ // ====== Options per event (identical to instantProperties) ======
130
130
  // Login Options
131
131
  {
132
132
  displayName: 'Login Options',
@@ -532,7 +532,7 @@ exports.webhookProperties = [
532
532
  },
533
533
  ],
534
534
  },
535
- // Lesson Completed (kaskadiert)
535
+ // Lesson Completed (cascading)
536
536
  {
537
537
  displayName: 'Lesson Completed Options',
538
538
  name: 'additionalLessonCompleted',
@@ -1,5 +1,5 @@
1
1
  import type { IDataObject, IExecuteFunctions } from 'n8n-workflow';
2
- /** Einheitlicher Funktions-Typ für alle Execute-Handler. */
2
+ /** Unified function type for all execute handlers. */
3
3
  export type ExecuteHandler = (ctx: IExecuteFunctions, itemIndex: number) => Promise<IDataObject | IDataObject[]>;
4
- /** Registry-Typ: resource -> operation -> handler */
4
+ /** Registry type: resource -> operation -> handler */
5
5
  export type HandlersRegistry = Record<string, Record<string, ExecuteHandler>>;
@@ -28,5 +28,5 @@ const sendPushNotification = async (ctx, i) => {
28
28
  });
29
29
  };
30
30
  exports.userHandlers = {
31
- sendPushNotification, // 👈 KEY muss exakt dem operation value entsprechen
31
+ sendPushNotification, // 👈 KEY must exactly match the operation value
32
32
  };
@@ -161,7 +161,7 @@ function buildDesiredFilter(ctx, i, eventType) {
161
161
  filter.groupId = String(col.groupId);
162
162
  break;
163
163
  }
164
- // ---------------- Lesson Completed (kaskadiert)
164
+ // ---------------- Lesson Completed (cascading)
165
165
  case 'lesson.completed': {
166
166
  const col = getCol(ctx, i, 'additionalLessonCompleted');
167
167
  if (col.courseId)
@@ -6,7 +6,7 @@ const shared_1 = require("../../shared");
6
6
  const common_1 = require("./common");
7
7
  function buildLabel(m) {
8
8
  var _a, _b;
9
- const fullName = (m === null || m === void 0 ? void 0 : m.fullName) || [m === null || m === void 0 ? void 0 : m.firstName, m === null || m === void 0 ? void 0 : m.lastName].filter(Boolean).join(' ') || 'Unbekannt';
9
+ const fullName = (m === null || m === void 0 ? void 0 : m.fullName) || [m === null || m === void 0 ? void 0 : m.firstName, m === null || m === void 0 ? void 0 : m.lastName].filter(Boolean).join(' ') || 'Unknown';
10
10
  const role = (_a = m === null || m === void 0 ? void 0 : m.roleId) !== null && _a !== void 0 ? _a : '—';
11
11
  const email = (_b = m === null || m === void 0 ? void 0 : m.email) !== null && _b !== void 0 ? _b : '';
12
12
  return [fullName, role, email].filter(Boolean).join(' - ');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@learningsuite/n8n-nodes-learningsuite",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "n8n node for LearningSuite API",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",