@learningsuite/n8n-nodes-learningsuite 1.2.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/LICENSE +21 -0
- package/README.de.md +555 -0
- package/README.md +427 -0
- package/dist/credentials/LearningSuiteApi.credentials.d.ts +10 -0
- package/dist/credentials/LearningSuiteApi.credentials.js +49 -0
- package/dist/credentials/learningsuite.svg +1 -0
- package/dist/nodes/LearningSuite/LearningSuite.node.d.ts +65 -0
- package/dist/nodes/LearningSuite/LearningSuite.node.js +221 -0
- package/dist/nodes/LearningSuite/LearningSuiteTrigger.node.d.ts +66 -0
- package/dist/nodes/LearningSuite/LearningSuiteTrigger.node.js +433 -0
- package/dist/nodes/LearningSuite/descriptions/ai.properties.d.ts +2 -0
- package/dist/nodes/LearningSuite/descriptions/ai.properties.js +141 -0
- package/dist/nodes/LearningSuite/descriptions/apiCall.properties.d.ts +2 -0
- package/dist/nodes/LearningSuite/descriptions/apiCall.properties.js +87 -0
- package/dist/nodes/LearningSuite/descriptions/bundle.properties.d.ts +2 -0
- package/dist/nodes/LearningSuite/descriptions/bundle.properties.js +32 -0
- package/dist/nodes/LearningSuite/descriptions/community.properties.d.ts +2 -0
- package/dist/nodes/LearningSuite/descriptions/community.properties.js +229 -0
- package/dist/nodes/LearningSuite/descriptions/course.properties.d.ts +2 -0
- package/dist/nodes/LearningSuite/descriptions/course.properties.js +248 -0
- package/dist/nodes/LearningSuite/descriptions/customFields.properties.d.ts +2 -0
- package/dist/nodes/LearningSuite/descriptions/customFields.properties.js +452 -0
- package/dist/nodes/LearningSuite/descriptions/group.properties.d.ts +2 -0
- package/dist/nodes/LearningSuite/descriptions/group.properties.js +165 -0
- package/dist/nodes/LearningSuite/descriptions/hub.properties.d.ts +2 -0
- package/dist/nodes/LearningSuite/descriptions/hub.properties.js +167 -0
- package/dist/nodes/LearningSuite/descriptions/member.properties.d.ts +2 -0
- package/dist/nodes/LearningSuite/descriptions/member.properties.js +625 -0
- package/dist/nodes/LearningSuite/descriptions/module.properties.d.ts +2 -0
- package/dist/nodes/LearningSuite/descriptions/module.properties.js +84 -0
- package/dist/nodes/LearningSuite/descriptions/popup.properties.d.ts +2 -0
- package/dist/nodes/LearningSuite/descriptions/popup.properties.js +73 -0
- package/dist/nodes/LearningSuite/descriptions/resource.selector.d.ts +2 -0
- package/dist/nodes/LearningSuite/descriptions/resource.selector.js +87 -0
- package/dist/nodes/LearningSuite/descriptions/role.properties.d.ts +2 -0
- package/dist/nodes/LearningSuite/descriptions/role.properties.js +14 -0
- package/dist/nodes/LearningSuite/descriptions/teamMember.properties.d.ts +2 -0
- package/dist/nodes/LearningSuite/descriptions/teamMember.properties.js +74 -0
- package/dist/nodes/LearningSuite/descriptions/trigger.instant.properties.d.ts +2 -0
- package/dist/nodes/LearningSuite/descriptions/trigger.instant.properties.js +542 -0
- package/dist/nodes/LearningSuite/descriptions/user.properties.d.ts +2 -0
- package/dist/nodes/LearningSuite/descriptions/user.properties.js +135 -0
- package/dist/nodes/LearningSuite/descriptions/webhook.properties.d.ts +2 -0
- package/dist/nodes/LearningSuite/descriptions/webhook.properties.js +672 -0
- package/dist/nodes/LearningSuite/descriptions/webhook.sampleData.properties.d.ts +2 -0
- package/dist/nodes/LearningSuite/descriptions/webhook.sampleData.properties.js +401 -0
- package/dist/nodes/LearningSuite/exec.types.d.ts +5 -0
- package/dist/nodes/LearningSuite/exec.types.js +2 -0
- package/dist/nodes/LearningSuite/execute/ai.handlers.d.ts +4 -0
- package/dist/nodes/LearningSuite/execute/ai.handlers.js +23 -0
- package/dist/nodes/LearningSuite/execute/apiCall.handlers.d.ts +4 -0
- package/dist/nodes/LearningSuite/execute/apiCall.handlers.js +46 -0
- package/dist/nodes/LearningSuite/execute/bundle.handlers.d.ts +5 -0
- package/dist/nodes/LearningSuite/execute/bundle.handlers.js +12 -0
- package/dist/nodes/LearningSuite/execute/community.handlers.d.ts +11 -0
- package/dist/nodes/LearningSuite/execute/community.handlers.js +94 -0
- package/dist/nodes/LearningSuite/execute/course.handlers.d.ts +10 -0
- package/dist/nodes/LearningSuite/execute/course.handlers.js +87 -0
- package/dist/nodes/LearningSuite/execute/customFields.handlers.d.ts +16 -0
- package/dist/nodes/LearningSuite/execute/customFields.handlers.js +342 -0
- package/dist/nodes/LearningSuite/execute/group.handlers.d.ts +15 -0
- package/dist/nodes/LearningSuite/execute/group.handlers.js +99 -0
- package/dist/nodes/LearningSuite/execute/hub.handlers.d.ts +9 -0
- package/dist/nodes/LearningSuite/execute/hub.handlers.js +65 -0
- package/dist/nodes/LearningSuite/execute/member.handlers.d.ts +23 -0
- package/dist/nodes/LearningSuite/execute/member.handlers.js +244 -0
- package/dist/nodes/LearningSuite/execute/module.handlers.d.ts +6 -0
- package/dist/nodes/LearningSuite/execute/module.handlers.js +36 -0
- package/dist/nodes/LearningSuite/execute/popup.handlers.d.ts +7 -0
- package/dist/nodes/LearningSuite/execute/popup.handlers.js +24 -0
- package/dist/nodes/LearningSuite/execute/registry.d.ts +2 -0
- package/dist/nodes/LearningSuite/execute/registry.js +35 -0
- package/dist/nodes/LearningSuite/execute/role.handlers.d.ts +4 -0
- package/dist/nodes/LearningSuite/execute/role.handlers.js +6 -0
- package/dist/nodes/LearningSuite/execute/teamMember.handlers.d.ts +6 -0
- package/dist/nodes/LearningSuite/execute/teamMember.handlers.js +21 -0
- package/dist/nodes/LearningSuite/execute/user.handlers.d.ts +4 -0
- package/dist/nodes/LearningSuite/execute/user.handlers.js +32 -0
- package/dist/nodes/LearningSuite/execute/webhook.handlers.d.ts +9 -0
- package/dist/nodes/LearningSuite/execute/webhook.handlers.js +306 -0
- package/dist/nodes/LearningSuite/icons/learningsuite-icon-dark.svg +1 -0
- package/dist/nodes/LearningSuite/icons/learningsuite-icon-light.svg +1 -0
- package/dist/nodes/LearningSuite/index.d.ts +1 -0
- package/dist/nodes/LearningSuite/index.js +17 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/apiCall.loadOptions.d.ts +1 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/apiCall.loadOptions.js +2 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/bundle.loadOptions.d.ts +2 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/bundle.loadOptions.js +7 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/common.d.ts +7 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/common.js +22 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/community.loadOptions.d.ts +5 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/community.loadOptions.js +80 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/course.loadOptions.d.ts +5 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/course.loadOptions.js +58 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/customFields.loadOptions.d.ts +12 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/customFields.loadOptions.js +55 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/group.loadOptions.d.ts +2 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/group.loadOptions.js +7 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/hub.loadOptions.d.ts +3 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/hub.loadOptions.js +11 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/member.loadOptions.d.ts +9 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/member.loadOptions.js +27 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/module.loadOptions.d.ts +5 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/module.loadOptions.js +29 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/popup.loadOptions.d.ts +2 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/popup.loadOptions.js +7 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/role.loadOptions.d.ts +2 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/role.loadOptions.js +7 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/teamMember.loadOptions.d.ts +9 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/teamMember.loadOptions.js +35 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/webhook.loadOptions.d.ts +6 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/webhook.loadOptions.js +18 -0
- package/dist/nodes/LearningSuite/methods/resourceMappers/customFields.resourceMapper.d.ts +2 -0
- package/dist/nodes/LearningSuite/methods/resourceMappers/customFields.resourceMapper.js +35 -0
- package/dist/nodes/LearningSuite/methods/resourceMappers/hub.resourceMapper.d.ts +2 -0
- package/dist/nodes/LearningSuite/methods/resourceMappers/hub.resourceMapper.js +34 -0
- package/dist/nodes/LearningSuite/shared/customFields.helpers.d.ts +4 -0
- package/dist/nodes/LearningSuite/shared/customFields.helpers.js +56 -0
- package/dist/nodes/LearningSuite/shared/customFields.shared.d.ts +42 -0
- package/dist/nodes/LearningSuite/shared/customFields.shared.js +101 -0
- package/dist/nodes/LearningSuite/shared/customFields.upload.d.ts +13 -0
- package/dist/nodes/LearningSuite/shared/customFields.upload.js +198 -0
- package/dist/nodes/LearningSuite/shared/errors.d.ts +1 -0
- package/dist/nodes/LearningSuite/shared/errors.js +16 -0
- package/dist/nodes/LearningSuite/shared/getScopedParam.d.ts +2 -0
- package/dist/nodes/LearningSuite/shared/getScopedParam.js +39 -0
- package/dist/nodes/LearningSuite/shared/index.d.ts +4 -0
- package/dist/nodes/LearningSuite/shared/index.js +20 -0
- package/dist/nodes/LearningSuite/shared/parsing.d.ts +1 -0
- package/dist/nodes/LearningSuite/shared/parsing.js +15 -0
- package/dist/nodes/LearningSuite/shared/request.d.ts +13 -0
- package/dist/nodes/LearningSuite/shared/request.js +53 -0
- package/dist/nodes/LearningSuitePollingTrigger/LearningSuitePollingTrigger.node.d.ts +11 -0
- package/dist/nodes/LearningSuitePollingTrigger/LearningSuitePollingTrigger.node.js +278 -0
- package/dist/nodes/LearningSuitePollingTrigger/descriptions/trigger.polling.properties.d.ts +2 -0
- package/dist/nodes/LearningSuitePollingTrigger/descriptions/trigger.polling.properties.js +193 -0
- package/package.json +65 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hubProperties = void 0;
|
|
4
|
+
exports.hubProperties = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
default: 'getAll',
|
|
11
|
+
displayOptions: { show: { resource: ['hub'] } },
|
|
12
|
+
options: [
|
|
13
|
+
{ name: 'Create Hub', value: 'create', description: 'Create a new hub from a template', action: 'Create a hub' },
|
|
14
|
+
{
|
|
15
|
+
name: 'Get Hub Template Variables',
|
|
16
|
+
value: 'getTemplateVariables',
|
|
17
|
+
description: 'List variables required by the selected hub template',
|
|
18
|
+
action: 'Get hub template variables',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'Get Hub Templates',
|
|
22
|
+
value: 'getTemplates',
|
|
23
|
+
description: 'List hub templates',
|
|
24
|
+
action: 'Get hub templates',
|
|
25
|
+
},
|
|
26
|
+
{ name: 'Get Many', value: 'getAll', description: 'List published hubs', action: 'Get many hubs' },
|
|
27
|
+
{
|
|
28
|
+
name: 'Give Hub Access',
|
|
29
|
+
value: 'addAccess',
|
|
30
|
+
description: 'Grant hub access to selected members, groups, or bundles',
|
|
31
|
+
action: 'Add hub access',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'Remove Hub Access',
|
|
35
|
+
value: 'removeAccess',
|
|
36
|
+
description: 'Remove hub access for selected members, groups, or bundles',
|
|
37
|
+
action: 'Remove hub access',
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
displayName: 'Hub Name or ID',
|
|
43
|
+
name: 'hubId',
|
|
44
|
+
type: 'options',
|
|
45
|
+
displayOptions: { show: { resource: ['hub'], operation: ['addAccess', 'removeAccess'] } },
|
|
46
|
+
typeOptions: { loadOptionsMethod: 'hub_getHubs' },
|
|
47
|
+
default: '',
|
|
48
|
+
required: true,
|
|
49
|
+
description: 'ID of the hub. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
displayName: 'You can grant/remove access via <b>Members</b>, <b>Groups</b>, or <b>Bundles</b> – or in combination. At least one selection is required.',
|
|
53
|
+
name: 'notice',
|
|
54
|
+
type: 'notice',
|
|
55
|
+
displayOptions: { show: { resource: ['hub'], operation: ['addAccess', 'removeAccess'] } },
|
|
56
|
+
default: '',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
displayName: 'Hub Name',
|
|
60
|
+
name: 'name',
|
|
61
|
+
type: 'string',
|
|
62
|
+
displayOptions: { show: { resource: ['hub'], operation: ['create'] } },
|
|
63
|
+
default: '',
|
|
64
|
+
required: true,
|
|
65
|
+
description: 'Name of the hub',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
displayName: 'Hub Description',
|
|
69
|
+
name: 'description',
|
|
70
|
+
type: 'string',
|
|
71
|
+
default: '',
|
|
72
|
+
description: 'Description of the hub',
|
|
73
|
+
displayOptions: { show: { resource: ['hub'], operation: ['create'] } },
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
displayName: 'Template Name or ID',
|
|
77
|
+
name: 'templateId',
|
|
78
|
+
type: 'options',
|
|
79
|
+
noDataExpression: true,
|
|
80
|
+
typeOptions: {
|
|
81
|
+
loadOptionsMethod: 'hub_getTemplates',
|
|
82
|
+
},
|
|
83
|
+
displayOptions: {
|
|
84
|
+
show: {
|
|
85
|
+
resource: ['hub'],
|
|
86
|
+
operation: ['create', 'getTemplateVariables'],
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
default: '',
|
|
90
|
+
required: true,
|
|
91
|
+
description: 'ID of the hub template. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
displayName: 'Template Variables',
|
|
95
|
+
name: 'templateVariables',
|
|
96
|
+
type: 'resourceMapper',
|
|
97
|
+
noDataExpression: true,
|
|
98
|
+
required: true,
|
|
99
|
+
displayOptions: {
|
|
100
|
+
show: {
|
|
101
|
+
resource: ['hub'],
|
|
102
|
+
operation: ['create'],
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
default: {
|
|
106
|
+
mappingMode: 'defineBelow',
|
|
107
|
+
value: null,
|
|
108
|
+
},
|
|
109
|
+
typeOptions: {
|
|
110
|
+
loadOptionsDependsOn: ['templateId'],
|
|
111
|
+
resourceMapper: {
|
|
112
|
+
resourceMapperMethod: 'getTemplateVariablesResourceMapperFields',
|
|
113
|
+
mode: 'add',
|
|
114
|
+
fieldWords: {
|
|
115
|
+
singular: 'variable',
|
|
116
|
+
plural: 'variables',
|
|
117
|
+
},
|
|
118
|
+
addAllFields: true,
|
|
119
|
+
multiKeyMatch: false,
|
|
120
|
+
supportAutoMap: false,
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
displayName: 'Publish Hub',
|
|
126
|
+
name: 'publish',
|
|
127
|
+
type: 'boolean',
|
|
128
|
+
default: true,
|
|
129
|
+
description: 'Whether to publish the hub immediately',
|
|
130
|
+
displayOptions: { show: { resource: ['hub'], operation: ['create'] } },
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
displayName: 'Sort Index',
|
|
134
|
+
name: 'sortIndex',
|
|
135
|
+
type: 'number',
|
|
136
|
+
default: 50,
|
|
137
|
+
description: 'Sort index of the hub',
|
|
138
|
+
displayOptions: { show: { resource: ['hub'], operation: ['create'] } },
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
displayName: 'Group Names or IDs',
|
|
142
|
+
name: 'groupIds',
|
|
143
|
+
type: 'multiOptions',
|
|
144
|
+
typeOptions: { loadOptionsMethod: 'group_getGroups' },
|
|
145
|
+
displayOptions: { show: { resource: ['hub'], operation: ['addAccess', 'removeAccess'] } },
|
|
146
|
+
default: [],
|
|
147
|
+
description: 'Comma-separated list of group IDs. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
displayName: 'Bundle Names or IDs',
|
|
151
|
+
name: 'bundleIds',
|
|
152
|
+
type: 'multiOptions',
|
|
153
|
+
typeOptions: { loadOptionsMethod: 'bundle_getBundles' },
|
|
154
|
+
displayOptions: { show: { resource: ['hub'], operation: ['addAccess', 'removeAccess'] } },
|
|
155
|
+
default: [],
|
|
156
|
+
description: 'Select bundles to grant/remove access. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
displayName: 'Member Names or IDs',
|
|
160
|
+
name: 'memberIds',
|
|
161
|
+
type: 'multiOptions',
|
|
162
|
+
typeOptions: { loadOptionsMethod: 'member_getMembers' },
|
|
163
|
+
displayOptions: { show: { resource: ['hub'], operation: ['addAccess', 'removeAccess'] } },
|
|
164
|
+
default: [],
|
|
165
|
+
description: 'Select members to grant/remove access. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
166
|
+
},
|
|
167
|
+
];
|