@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.
- package/dist/nodes/LearningSuite/LearningSuite.node.js +0 -4
- package/dist/nodes/LearningSuite/LearningSuiteTrigger.node.js +1 -1
- package/dist/nodes/LearningSuite/descriptions/member.properties.js +1 -1
- package/dist/nodes/LearningSuite/descriptions/module.properties.js +1 -1
- package/dist/nodes/LearningSuite/descriptions/trigger.instant.properties.js +3 -3
- package/dist/nodes/LearningSuite/descriptions/webhook.properties.js +2 -2
- package/dist/nodes/LearningSuite/exec.types.d.ts +2 -2
- package/dist/nodes/LearningSuite/execute/user.handlers.js +1 -1
- package/dist/nodes/LearningSuite/execute/webhook.handlers.js +1 -1
- package/dist/nodes/LearningSuite/methods/loadOptions/teamMember.loadOptions.js +1 -1
- package/package.json +1 -1
|
@@ -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 (
|
|
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, //
|
|
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
|
{
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.instantProperties = void 0;
|
|
4
4
|
exports.instantProperties = [
|
|
5
|
-
// Event
|
|
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 (
|
|
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 (
|
|
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
|
-
// ======
|
|
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 (
|
|
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
|
-
/**
|
|
2
|
+
/** Unified function type for all execute handlers. */
|
|
3
3
|
export type ExecuteHandler = (ctx: IExecuteFunctions, itemIndex: number) => Promise<IDataObject | IDataObject[]>;
|
|
4
|
-
/** Registry
|
|
4
|
+
/** Registry type: resource -> operation -> handler */
|
|
5
5
|
export type HandlersRegistry = Record<string, Record<string, ExecuteHandler>>;
|
|
@@ -161,7 +161,7 @@ function buildDesiredFilter(ctx, i, eventType) {
|
|
|
161
161
|
filter.groupId = String(col.groupId);
|
|
162
162
|
break;
|
|
163
163
|
}
|
|
164
|
-
// ---------------- Lesson Completed (
|
|
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(' ') || '
|
|
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(' - ');
|