n8n-nodes-academyfive-api-beta 0.0.1-beta

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.
Files changed (120) hide show
  1. package/LICENSE.md +19 -0
  2. package/README.md +9 -0
  3. package/dist/credentials/AcademyFiveCredentialsApi.credentials.d.ts +10 -0
  4. package/dist/credentials/AcademyFiveCredentialsApi.credentials.js +53 -0
  5. package/dist/credentials/AcademyFiveCredentialsApi.credentials.js.map +1 -0
  6. package/dist/credentials/simovative.svg +5 -0
  7. package/dist/nodes/AcademyFive/AcademyFive.node.d.ts +10 -0
  8. package/dist/nodes/AcademyFive/AcademyFive.node.js +184 -0
  9. package/dist/nodes/AcademyFive/AcademyFive.node.js.map +1 -0
  10. package/dist/nodes/AcademyFive/AcademyFive.node.json +6 -0
  11. package/dist/nodes/AcademyFive/MapToRequestUtils.d.ts +24 -0
  12. package/dist/nodes/AcademyFive/MapToRequestUtils.js +245 -0
  13. package/dist/nodes/AcademyFive/MapToRequestUtils.js.map +1 -0
  14. package/dist/nodes/AcademyFive/NodeConfigUtils.d.ts +5 -0
  15. package/dist/nodes/AcademyFive/NodeConfigUtils.js +50 -0
  16. package/dist/nodes/AcademyFive/NodeConfigUtils.js.map +1 -0
  17. package/dist/nodes/AcademyFive/SchemaResolver.d.ts +12 -0
  18. package/dist/nodes/AcademyFive/SchemaResolver.js +205 -0
  19. package/dist/nodes/AcademyFive/SchemaResolver.js.map +1 -0
  20. package/dist/nodes/AcademyFive/SpecGeneratorUtils.d.ts +11 -0
  21. package/dist/nodes/AcademyFive/SpecGeneratorUtils.js +106 -0
  22. package/dist/nodes/AcademyFive/SpecGeneratorUtils.js.map +1 -0
  23. package/dist/nodes/AcademyFive/SpecMapper.d.ts +61 -0
  24. package/dist/nodes/AcademyFive/SpecMapper.js +385 -0
  25. package/dist/nodes/AcademyFive/SpecMapper.js.map +1 -0
  26. package/dist/nodes/AcademyFive/simovative.svg +5 -0
  27. package/dist/nodes/AcademyFive/types.d.ts +34 -0
  28. package/dist/nodes/AcademyFive/types.js +19 -0
  29. package/dist/nodes/AcademyFive/types.js.map +1 -0
  30. package/dist/package.json +66 -0
  31. package/dist/specs/ac5.json +1 -0
  32. package/dist/specs/schemas/src/Api/AccessGroups/Schema/AccessGroupsGetPaginatedSchema.json +94 -0
  33. package/dist/specs/schemas/src/Api/AccessGroups/Schema/AccessGroupsGetSchema.json +66 -0
  34. package/dist/specs/schemas/src/Api/Bookings/Handler/BookingsPatchSchema.json +150 -0
  35. package/dist/specs/schemas/src/Api/Bookings/StatisticAustria/Handler/BookingStatisticAustriaPatchSchema.json +111 -0
  36. package/dist/specs/schemas/src/Api/Bookings/StatisticAustria/Handler/BookingStatisticAustriaPostSchema.json +113 -0
  37. package/dist/specs/schemas/src/Api/Cohorts/Schema/CohortsGetPaginatedSchema.json +83 -0
  38. package/dist/specs/schemas/src/Api/Colors/Schema/ColorsListGetSchema.json +50 -0
  39. package/dist/specs/schemas/src/Api/Common/Model/Validation/ValidationErrorSchema.json +29 -0
  40. package/dist/specs/schemas/src/Api/Company/Handler/CompanyPostSchema.json +77 -0
  41. package/dist/specs/schemas/src/Api/Company/Handler/CompanyPutSchema.json +84 -0
  42. package/dist/specs/schemas/src/Api/CourseSeriesLecturer/Handler/CourseSeriesLecturerPostSchema.json +113 -0
  43. package/dist/specs/schemas/src/Api/CourseTicket/Handler/CourseTicketsPostV2Schema.json +162 -0
  44. package/dist/specs/schemas/src/Api/DataSourceAreas/Handler/DataSourceAreasPatchSchema.json +84 -0
  45. package/dist/specs/schemas/src/Api/DataSourceAreas/Handler/DataSourceAreasPostSchema.json +151 -0
  46. package/dist/specs/schemas/src/Api/DataSourceFieldOptionGroupRestrictions/Handler/DataSourceFieldOptionGroupRestrictionsPatchSchema.json +107 -0
  47. package/dist/specs/schemas/src/Api/DataSourceFieldOptionGroupRestrictions/Handler/DataSourceFieldOptionGroupRestrictionsPostSchema.json +107 -0
  48. package/dist/specs/schemas/src/Api/DataSourceFieldOptionGroups/Handler/DataSourceFieldOptionGroupsPatchSchema.json +88 -0
  49. package/dist/specs/schemas/src/Api/DataSourceFieldOptionGroups/Handler/DataSourceFieldOptionGroupsPostSchema.json +89 -0
  50. package/dist/specs/schemas/src/Api/DataSourceFieldOptionValues/Handler/DataSourceFieldOptionValuesPatchSchema.json +54 -0
  51. package/dist/specs/schemas/src/Api/DataSourceFieldOptionValues/Handler/DataSourceFieldOptionValuesPostSchema.json +87 -0
  52. package/dist/specs/schemas/src/Api/DataSourceFields/Handler/DataSourceFieldsPatchSchema.json +242 -0
  53. package/dist/specs/schemas/src/Api/DataSourceFields/Handler/DataSourceFieldsPostSchema.json +357 -0
  54. package/dist/specs/schemas/src/Api/DataSourceRecords/Handler/DataSourceRecordsDeleteSchema.json +16 -0
  55. package/dist/specs/schemas/src/Api/DataSourceRecords/Handler/DataSourceRecordsPutBulkSchema.json +42 -0
  56. package/dist/specs/schemas/src/Api/DataSourceTabs/Handler/DataSourceTabsPostSchema.json +85 -0
  57. package/dist/specs/schemas/src/Api/DataSources/Handler/DataSourcesPostSchema.json +61 -0
  58. package/dist/specs/schemas/src/Api/Documents/Handler/DocumentsPostSchema.json +61 -0
  59. package/dist/specs/schemas/src/Api/EventSeries/Handler/EventDatePatchSchema.json +159 -0
  60. package/dist/specs/schemas/src/Api/EventSeries/Handler/EventDatePostSchema.json +335 -0
  61. package/dist/specs/schemas/src/Api/EventSeries/Handler/EventSeriesCustomPatchSchema.json +837 -0
  62. package/dist/specs/schemas/src/Api/EventSeries/Handler/EventSeriesCustomPostSchema.json +288 -0
  63. package/dist/specs/schemas/src/Api/EventSeries/Handler/EventSeriesPostSchema.json +514 -0
  64. package/dist/specs/schemas/src/Api/GkvPendingMessages/Handler/GkvPendingMessagesPatchBulkSchema.json +64 -0
  65. package/dist/specs/schemas/src/Api/GkvPendingMessages/Handler/GkvPendingMessagesPatchSchema.json +120 -0
  66. package/dist/specs/schemas/src/Api/GkvPendingMessages/Handler/GkvPendingMessagesPostSchema.json +117 -0
  67. package/dist/specs/schemas/src/Api/GkvPendingMessages/Handler/GkvPendingMessagesSelectProfileSchema.json +47 -0
  68. package/dist/specs/schemas/src/Api/GlobalFileSyncs/Handler/GlobalFileSyncsPatchSchema.json +63 -0
  69. package/dist/specs/schemas/src/Api/GradeAnnotation/Handler/GradeAnnotationPostSchema.json +98 -0
  70. package/dist/specs/schemas/src/Api/GradeAnnotation/Handler/GradeAnnotationPutSchema.json +105 -0
  71. package/dist/specs/schemas/src/Api/Grades/GradeAnnotationRelations/Handler/GradeAnnotationRelationsPostSchema.json +102 -0
  72. package/dist/specs/schemas/src/Api/Grades/ModuleGradeRecalculation/Schema/ModuleGradeRecalculationJobsGetSchema.json +89 -0
  73. package/dist/specs/schemas/src/Api/Grades/ModuleGradeRecalculation/Schema/ModuleGradeRecalculationJobsPostSchema.json +54 -0
  74. package/dist/specs/schemas/src/Api/Grades/Schema/GradesAttributeSchema.json +400 -0
  75. package/dist/specs/schemas/src/Api/Grades/Schema/GradesGetSchema.json +108 -0
  76. package/dist/specs/schemas/src/Api/Grades/Schema/GradesPatchSchema.json +112 -0
  77. package/dist/specs/schemas/src/Api/Grades/Schema/GradesPostSchema.json +950 -0
  78. package/dist/specs/schemas/src/Api/Grades/Schema/GradesRelationshipSchema.json +547 -0
  79. package/dist/specs/schemas/src/Api/HealthInsuranceInstitutes/Handler/HealthInsuranceInstitutesPatchSchema.json +71 -0
  80. package/dist/specs/schemas/src/Api/HealthInsuranceInstitutes/Handler/HealthInsuranceInstitutesPostSchema.json +73 -0
  81. package/dist/specs/schemas/src/Api/HealthInsuranceProfile/Handler/HealthInsuranceProfilePatchSchema.json +83 -0
  82. package/dist/specs/schemas/src/Api/HealthInsuranceProfile/Handler/HealthInsuranceProfilePostSchema.json +38 -0
  83. package/dist/specs/schemas/src/Api/HealthInsuranceProfileCommunicationLog/Handler/HealthInsuranceProfileCommunicationLogPatchSchema.json +101 -0
  84. package/dist/specs/schemas/src/Api/HealthInsuranceProfileCommunicationLog/Handler/HealthInsuranceProfileCommunicationLogPostSchema.json +99 -0
  85. package/dist/specs/schemas/src/Api/Icons/Schema/IconsListGetSchema.json +50 -0
  86. package/dist/specs/schemas/src/Api/InvoiceCollections/Handler/InvoiceCollectionsFromInstallmentsPostSchema.json +49 -0
  87. package/dist/specs/schemas/src/Api/InvoiceQueueEntries/Handler/InvoiceQueueEntriesPostSchema.json +49 -0
  88. package/dist/specs/schemas/src/Api/Invoices/Handler/InvoicesPostSchema.json +182 -0
  89. package/dist/specs/schemas/src/Api/Invoices/Handler/InvoicesStatusChangePostSchema.json +55 -0
  90. package/dist/specs/schemas/src/Api/LecturerContractEmploymentAvailabilities/Handler/LecturerContractEmploymentAvailabilitiesPatchSchema.json +87 -0
  91. package/dist/specs/schemas/src/Api/LecturerContractEmploymentAvailabilities/Handler/LecturerContractEmploymentAvailabilitiesPostSchema.json +84 -0
  92. package/dist/specs/schemas/src/Api/LecturerContractEmployments/Handler/LecturerContractEmploymentsPatchSchema.json +103 -0
  93. package/dist/specs/schemas/src/Api/LecturerContractEmployments/Handler/LecturerContractEmploymentsPostSchema.json +153 -0
  94. package/dist/specs/schemas/src/Api/LecturerContracts/Handler/LecturerContractsPatchSchema.json +154 -0
  95. package/dist/specs/schemas/src/Api/LecturerContracts/Handler/LecturerContractsPostSchema.json +215 -0
  96. package/dist/specs/schemas/src/Api/OnlineExamEnrolments/Handler/OnlineExamEnrolmentsPostSchema.json +180 -0
  97. package/dist/specs/schemas/src/Api/Payment/Command/PaymentAddCommandSchema.json +51 -0
  98. package/dist/specs/schemas/src/Api/ProfessionalBackground/Handler/ProfessionalBackgroundPostSchema.json +104 -0
  99. package/dist/specs/schemas/src/Api/ProfessionalBackground/Handler/ProfessionalBackgroundPutSchema.json +113 -0
  100. package/dist/specs/schemas/src/Api/ProfileBankDetails/Handler/ProfileBankDetailsPatchSchema.json +56 -0
  101. package/dist/specs/schemas/src/Api/ProfileBankDetails/Handler/ProfileBankDetailsPostSchema.json +56 -0
  102. package/dist/specs/schemas/src/Api/Profiles/Handler/ProfilesPatchSchema.json +45 -0
  103. package/dist/specs/schemas/src/Api/Profiles/Schema/ProfilesGetSchema.json +0 -0
  104. package/dist/specs/schemas/src/Api/RequestFormProfileComments/Schema/RequestFormProfileCommentsPostSchema.json +98 -0
  105. package/dist/specs/schemas/src/Api/RequestFormProfiles/Schema/RequestFromProfilesPatchSchema.json +45 -0
  106. package/dist/specs/schemas/src/Api/RevenueAccounts/Handler/RevenueAccountsPatchSchema.json +151 -0
  107. package/dist/specs/schemas/src/Api/RevenueAccounts/Handler/RevenueAccountsPostSchema.json +151 -0
  108. package/dist/specs/schemas/src/Api/StatisticAustria/Handler/StatisticAustriaPatchSchema.json +115 -0
  109. package/dist/specs/schemas/src/Api/StatisticAustria/Handler/StatisticAustriaPostSchema.json +115 -0
  110. package/dist/specs/schemas/src/Api/StatisticValidations/Handler/StatisticValidationsPostSchema.json +37 -0
  111. package/dist/specs/schemas/src/Api/Submissions/StatusChange/Handler/SubmissionsStatusChangePostSchema.json +42 -0
  112. package/dist/specs/schemas/src/Api/TaskTypes/Schema/TaskTypesGetSchema.json +213 -0
  113. package/dist/specs/schemas/src/Api/TaskTypes/Schema/TaskTypesPatchSchema.json +195 -0
  114. package/dist/specs/schemas/src/Api/TaskTypes/Schema/TaskTypesPostSchema.json +208 -0
  115. package/dist/specs/schemas/src/Api/TranslationPlaceholders/Schema/TranslationPlaceholdersGetSchema.json +57 -0
  116. package/dist/specs/schemas/src/Api/ZensusSettings/Handler/ZensusSettingsPatchSchema.json +176 -0
  117. package/dist/specs/schemas/src/Api/ZensusSettings/Handler/ZensusSettingsPostSchema.json +170 -0
  118. package/dist/tsconfig.tsbuildinfo +1 -0
  119. package/index.js +0 -0
  120. package/package.json +66 -0
@@ -0,0 +1,385 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SpecMapper = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const types_1 = require("./types");
6
+ const SchemaResolver_1 = require("./SchemaResolver");
7
+ class SpecMapper {
8
+ static mapOpenApiQueryParameterToNodePropertyOption(queryParameter) {
9
+ var _a, _b;
10
+ const originalName = queryParameter.name;
11
+ const sanitizedName = originalName.replace(/\[/, '(').replace(/]/, ')');
12
+ const schema = queryParameter.schema;
13
+ if ((schema === null || schema === void 0 ? void 0 : schema.type) === 'array') {
14
+ const itemSchema = schema.items || {};
15
+ const itemType = Array.isArray(itemSchema.type)
16
+ ? itemSchema.type.find((t) => t && t !== 'null') ||
17
+ itemSchema.type[0]
18
+ : itemSchema.type;
19
+ const childType = itemType === 'integer' ? 'number' : itemType;
20
+ return {
21
+ displayName: originalName,
22
+ name: sanitizedName,
23
+ type: 'fixedCollection',
24
+ placeholder: `Add ${originalName}`,
25
+ noDataExpression: false,
26
+ default: {},
27
+ typeOptions: {
28
+ multipleValues: true,
29
+ isQueryParam: true,
30
+ originalName,
31
+ },
32
+ options: [
33
+ {
34
+ name: `${sanitizedName}Values`,
35
+ displayName: `${originalName} Values`,
36
+ values: [
37
+ {
38
+ displayName: 'Value',
39
+ name: 'value',
40
+ type: childType,
41
+ default: '',
42
+ typeOptions: {
43
+ originalName,
44
+ isQueryParam: true,
45
+ },
46
+ routing: {
47
+ request: {
48
+ qs: {
49
+ [originalName]: '={{$value}}',
50
+ },
51
+ },
52
+ },
53
+ },
54
+ ],
55
+ },
56
+ ],
57
+ };
58
+ }
59
+ return {
60
+ displayName: originalName,
61
+ name: sanitizedName,
62
+ type: ((_b = (_a = queryParameter === null || queryParameter === void 0 ? void 0 : queryParameter.schema) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.replace('integer', 'number')) || 'string',
63
+ description: queryParameter.description || '',
64
+ default: '',
65
+ typeOptions: {
66
+ originalName,
67
+ isQueryParam: true,
68
+ },
69
+ routing: {
70
+ request: {
71
+ qs: {
72
+ [queryParameter.name]: `={{$parameter["additionalFields"]["${sanitizedName}"]}}`,
73
+ },
74
+ },
75
+ },
76
+ };
77
+ }
78
+ static mapOpenApiRequestBodyToNodePropertyOption(requestBody) {
79
+ var _a, _b;
80
+ return (_b = (_a = requestBody.content) === null || _a === void 0 ? void 0 : _a['application/json']) === null || _b === void 0 ? void 0 : _b.schema;
81
+ }
82
+ static mapOpenApiPathParameterToNodePropertyOption(pathParameter) {
83
+ var _a, _b, _c;
84
+ return {
85
+ displayName: pathParameter.name,
86
+ name: pathParameter.name,
87
+ type: ((_b = (_a = pathParameter.schema) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.replace('integer', 'number')) || 'string',
88
+ default: '',
89
+ required: (_c = pathParameter.required) !== null && _c !== void 0 ? _c : false,
90
+ description: pathParameter.description || `Path parameter ${pathParameter.name}`,
91
+ typeOptions: {
92
+ isPathParam: true,
93
+ originalName: pathParameter.name,
94
+ },
95
+ };
96
+ }
97
+ static getSchemaFromRef(spec, ref) {
98
+ var _a, _b;
99
+ const nameSchema = ref.substring(ref.lastIndexOf('/') + 1);
100
+ const specSchema = SchemaResolver_1.SchemaResolver.resolveJsonPointer(spec, ref);
101
+ if (specSchema) {
102
+ return specSchema;
103
+ }
104
+ if (nameSchema.endsWith('.json')) {
105
+ const cleanPath = ref.startsWith('/') ? ref.substring(1) : ref;
106
+ if (this.externalSchemas.has(cleanPath)) {
107
+ return this.externalSchemas.get(cleanPath);
108
+ }
109
+ const externalSchema = SchemaResolver_1.SchemaResolver.getExternalSchema(cleanPath);
110
+ this.externalSchemas.set(cleanPath, externalSchema);
111
+ return externalSchema;
112
+ }
113
+ return (_b = (_a = spec.components) === null || _a === void 0 ? void 0 : _a.schemas) === null || _b === void 0 ? void 0 : _b[nameSchema];
114
+ }
115
+ static mapSchemaPropertiesToNodeOptions(schemaName, schema, spec, tag, operationValue, generateCollection, showDisplayOption, isInsideArray, isRequired = undefined) {
116
+ var _a, _b, _c, _d, _e;
117
+ if (!schema) {
118
+ return [];
119
+ }
120
+ const options = [];
121
+ let schemaResolved;
122
+ if ((0, types_1.isReferenceObject)(schema)) {
123
+ schemaResolved = this.getSchemaFromRef(spec, schema.$ref);
124
+ }
125
+ else {
126
+ schemaResolved = schema;
127
+ }
128
+ if (!schemaResolved) {
129
+ n8n_workflow_1.LoggerProxy.error(`schema not found for property ${schemaResolved}`);
130
+ return [];
131
+ }
132
+ const isRoot = !generateCollection && showDisplayOption;
133
+ const schemaType = Array.isArray(schemaResolved.type)
134
+ ? schemaResolved.type.find((type) => type && type != 'null') ||
135
+ schemaResolved.type[0]
136
+ : schemaResolved.type;
137
+ if (schemaType === 'object' && schemaResolved.properties) {
138
+ const requiredFields = schemaResolved.required || [];
139
+ let nestedOptions = Object.entries(schemaResolved.properties)
140
+ .map(([propertyName, propertySchema]) => {
141
+ const isRequired = requiredFields.includes(propertyName);
142
+ return this.mapSchemaPropertiesToNodeOptions(propertyName, propertySchema, spec, tag, operationValue, true, isRoot, false, isRequired);
143
+ })
144
+ .flat();
145
+ if (!nestedOptions.length) {
146
+ return [];
147
+ }
148
+ if (!generateCollection) {
149
+ return nestedOptions;
150
+ }
151
+ else {
152
+ options.push({
153
+ displayName: schemaName,
154
+ name: schemaName,
155
+ type: 'fixedCollection',
156
+ placeholder: `Add ${schemaName}`,
157
+ noDataExpression: false,
158
+ required: isRequired,
159
+ default: {},
160
+ typeOptions: {
161
+ multipleValues: false,
162
+ },
163
+ description: `${schemaResolved.description || schemaName}${isRequired ? ' (required)' : ''}`,
164
+ options: [
165
+ {
166
+ name: `${schemaName}Values`,
167
+ displayName: `${schemaName} Values`,
168
+ values: nestedOptions,
169
+ },
170
+ ],
171
+ routing: {
172
+ request: {
173
+ body: {
174
+ [schemaName]: {
175
+ nestInPropertyName: !isRoot,
176
+ nullable: (_a = schemaResolved.nullable) !== null && _a !== void 0 ? _a : true,
177
+ },
178
+ },
179
+ },
180
+ },
181
+ displayOptions: !showDisplayOption
182
+ ? undefined
183
+ : {
184
+ show: {
185
+ resource: [tag],
186
+ operation: [operationValue],
187
+ },
188
+ },
189
+ });
190
+ }
191
+ }
192
+ else if (schemaType === 'array' && schemaResolved.items) {
193
+ const itemsSchema = (0, types_1.isReferenceObject)(schemaResolved.items)
194
+ ? this.getSchemaFromRef(spec, schemaResolved.items.$ref)
195
+ : schemaResolved.items;
196
+ const itemType = Array.isArray(itemsSchema === null || itemsSchema === void 0 ? void 0 : itemsSchema.type)
197
+ ? itemsSchema.type.find((t) => t && t !== 'null') ||
198
+ itemsSchema.type[0]
199
+ : itemsSchema === null || itemsSchema === void 0 ? void 0 : itemsSchema.type;
200
+ if (itemType && ['integer', 'number', 'string', 'boolean'].includes(itemType)) {
201
+ const nodeType = itemType === 'integer' ? 'number' : itemType;
202
+ options.push({
203
+ displayName: schemaName,
204
+ name: schemaName,
205
+ type: 'fixedCollection',
206
+ placeholder: `Add ${schemaName}`,
207
+ noDataExpression: false,
208
+ required: isRequired,
209
+ default: {},
210
+ typeOptions: {
211
+ multipleValues: true,
212
+ },
213
+ description: `${schemaResolved.description || schemaName}${isRequired ? ' (required)' : ''}`,
214
+ options: [
215
+ {
216
+ name: `${schemaName}Values`,
217
+ displayName: `${schemaName} Values`,
218
+ values: [
219
+ {
220
+ displayName: 'Value',
221
+ name: 'value',
222
+ type: nodeType,
223
+ default: itemType === 'string' ? '' : itemType === 'boolean' ? false : 0,
224
+ routing: {
225
+ request: {
226
+ body: {
227
+ [schemaName]: '={{$value}}',
228
+ },
229
+ },
230
+ },
231
+ },
232
+ ],
233
+ },
234
+ ],
235
+ routing: {
236
+ request: {
237
+ body: {
238
+ [schemaName]: {
239
+ nestInPropertyName: !isRoot,
240
+ nullable: (_b = schemaResolved.nullable) !== null && _b !== void 0 ? _b : true,
241
+ },
242
+ },
243
+ },
244
+ },
245
+ displayOptions: !showDisplayOption
246
+ ? undefined
247
+ : {
248
+ show: {
249
+ resource: [tag],
250
+ operation: [operationValue],
251
+ },
252
+ },
253
+ });
254
+ }
255
+ else {
256
+ const children = this.mapSchemaPropertiesToNodeOptions(schemaName, schemaResolved.items, spec, tag, operationValue, false, false, true);
257
+ options.push({
258
+ displayName: schemaName,
259
+ name: schemaName,
260
+ type: 'fixedCollection',
261
+ placeholder: `Add ${schemaName}`,
262
+ noDataExpression: false,
263
+ required: isRequired,
264
+ default: {},
265
+ typeOptions: {
266
+ multipleValues: true,
267
+ },
268
+ description: `${schemaResolved.description || schemaName}${isRequired ? ' (required)' : ''}`,
269
+ options: [
270
+ {
271
+ name: `${schemaName}Values`,
272
+ displayName: `${schemaName} Values`,
273
+ values: children,
274
+ },
275
+ ],
276
+ routing: {
277
+ request: {
278
+ body: {
279
+ [schemaName]: {
280
+ nestInPropertyName: !isRoot,
281
+ nullable: (_c = schemaResolved.nullable) !== null && _c !== void 0 ? _c : true,
282
+ },
283
+ },
284
+ },
285
+ },
286
+ displayOptions: !showDisplayOption
287
+ ? undefined
288
+ : {
289
+ show: {
290
+ resource: [tag],
291
+ operation: [operationValue],
292
+ },
293
+ },
294
+ });
295
+ }
296
+ }
297
+ else if (schemaType === 'integer' || schemaType === 'number' || schemaType === 'string') {
298
+ options.push({
299
+ displayName: schemaName,
300
+ name: schemaName,
301
+ type: (schemaType === 'integer' ? 'number' : schemaType),
302
+ required: isRequired,
303
+ default: schemaResolved.default,
304
+ description: `${schemaResolved.description || ''}${isRequired ? ' (required)' : ''}`,
305
+ routing: {
306
+ request: {
307
+ body: {
308
+ [schemaName]: {
309
+ nestInPropertyName: !isRoot,
310
+ },
311
+ },
312
+ },
313
+ },
314
+ displayOptions: !showDisplayOption
315
+ ? undefined
316
+ : {
317
+ show: {
318
+ resource: [tag],
319
+ operation: [operationValue],
320
+ },
321
+ },
322
+ });
323
+ }
324
+ else if (schemaType === 'boolean') {
325
+ options.push({
326
+ displayName: schemaName,
327
+ name: schemaName,
328
+ type: 'boolean',
329
+ required: isRequired,
330
+ default: schemaResolved.default || false,
331
+ description: `${schemaResolved.description || ''}${isRequired ? ' (required)' : ''}`,
332
+ routing: {
333
+ request: {
334
+ body: {
335
+ [schemaName]: {
336
+ nestInPropertyName: !isRoot,
337
+ nullable: (_d = schemaResolved.nullable) !== null && _d !== void 0 ? _d : true,
338
+ },
339
+ },
340
+ },
341
+ },
342
+ displayOptions: !showDisplayOption
343
+ ? undefined
344
+ : {
345
+ show: {
346
+ resource: [tag],
347
+ operation: [operationValue],
348
+ },
349
+ },
350
+ });
351
+ }
352
+ else {
353
+ options.push({
354
+ displayName: schemaName,
355
+ name: schemaName,
356
+ type: 'json',
357
+ required: isRequired,
358
+ default: schemaResolved.default,
359
+ description: `${schemaResolved.description || ''}${isRequired ? ' (required)' : ''}`,
360
+ routing: {
361
+ request: {
362
+ body: {
363
+ [schemaName]: {
364
+ nestInPropertyName: !isInsideArray,
365
+ nullable: (_e = schemaResolved.nullable) !== null && _e !== void 0 ? _e : true,
366
+ },
367
+ },
368
+ },
369
+ },
370
+ displayOptions: !showDisplayOption
371
+ ? undefined
372
+ : {
373
+ show: {
374
+ resource: [tag],
375
+ operation: [operationValue],
376
+ },
377
+ },
378
+ });
379
+ }
380
+ return options;
381
+ }
382
+ }
383
+ exports.SpecMapper = SpecMapper;
384
+ SpecMapper.externalSchemas = new Map();
385
+ //# sourceMappingURL=SpecMapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpecMapper.js","sourceRoot":"","sources":["../../../nodes/AcademyFive/SpecMapper.ts"],"names":[],"mappings":";;;AAAA,+CAAyF;AACzF,mCAA4C;AAQ5C,qDAAkD;AAElD,MAAa,UAAU;IAGtB,MAAM,CAAC,4CAA4C,CAAC,cAA+B;;QAClF,MAAM,YAAY,GAAG,cAAc,CAAC,IAAI,CAAC;QACzC,MAAM,aAAa,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QAExE,MAAM,MAAM,GAAG,cAAc,CAAC,MAAsB,CAAC;QACrD,IAAI,CAAA,MAAM,aAAN,MAAM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CAAC,CAAC,CAAC,EAAE,EAAE;gBACpF,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,IAAI,EAAE;4BACL,CAAC,UAAU,CAAC,EAAE;gCACb,kBAAkB,EAAE,CAAC,aAAa;gCAClC,QAAQ,EAAE,MAAA,cAAc,CAAC,QAAQ,mCAAI,IAAI;6BACzC;yBACD;qBACD;iBACD;gBACD,cAAc,EAAE,CAAC,iBAAiB;oBACjC,CAAC,CAAC,SAAS;oBACX,CAAC,CAAC;wBACA,IAAI,EAAE;4BACL,QAAQ,EAAE,CAAC,GAAG,CAAC;4BACf,SAAS,EAAE,CAAC,cAAc,CAAC;yBAC3B;qBACD;aACH,CAAC,CAAC;QACJ,CAAC;QAED,OAAO,OAAO,CAAC;IAChB,CAAC;;AA/aF,gCAgbC;AA/aO,0BAAe,GAAG,IAAI,GAAG,EAAwB,CAAC"}
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg id="Ebene_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 640 640">
3
+ <!-- Generator: Adobe Illustrator 29.7.1, SVG Export Plug-In . SVG Version: 2.1.1 Build 8) -->
4
+ <path d="M435.64,527.82c1.6-1.6,6.4-4.2,13.8-7,7.7-2.9,16.6-7,26.9-12.5,10.2-5.1,21.1-11.8,32.6-19.8s22.4-18.2,32.3-30.7c10.2-12.2,18.6-26.9,25.9-44.2,7-17,11.2-37.1,12.2-59.8-3.8-17.3-9.3-28.2-16.3-33.3-7.4-4.8-16.6-4.2-28.2,1.9-11.6,6.1-25,17.6-40.6,34.2s-33.6,37.8-53.8,63.4c-2.2-.3-4.8-7.4-6.7-20.8-2.2-13.4-3.8-32.3-5.1-56.6s-1.9-53.4-1.9-87.7,1-72,3.2-113.9l187.8-25.3c11.5,0,18.6,2.2,21.4,6.4s.6,11.8-6.7,22.4c-9.6-1.3-22.1-1.6-38.1,0-16,1.3-33,2.9-50.2,5.4-17.6,2.2-34.2,5.1-50.2,8.3s-28.5,6.1-37.4,8.3c-1,33.9-1.6,63-1.6,86.4v58.6c0,15.4.3,27.2.6,34.9s.6,12.8.6,14.7c8-9,16-17.9,23.4-26.6s15.4-16.3,23.7-23.4,17.6-12.5,27.2-16.3c9.6-4.2,20.8-6.1,33.6-6.1,7.7,0,14.4,2.2,19.8,6.4s9.9,9.6,13.1,16.3,5.8,13.8,7.4,21.1,2.2,14.7,2.2,21.1c-.3,26.6-5.4,50.6-15,72s-22.4,40.3-38.1,56.6c-15.4,16.3-33,30.4-52.8,41.6-19.5,11.5-39,20.5-58.6,26.9-1.9-.6-3.8-1.9-5.1-4.2s-2.2-4.2-2.9-6.7-.6-5.1,0-7.4c.3-2.2,1-4.2,1.9-5.1h0l-.3.5ZM357.84,548.02c-4.2-6.4-7-15-8-25.3s-1.6-21.4-1.9-33v-34.2c0-11.2-.6-20.8-2.6-28.8-14.4,31.7-28.2,56.3-41,74.2-12.8,17.6-24.6,30.4-35.2,37.8s-20.2,10.9-28.8,10.2-16-3.8-22.1-9.3-10.6-12.2-14.1-19.8c-3.5-8-5.1-15.4-5.4-22.4-2.2-11.8-2.2-25.9,0-42.2,1.9-16.3,5.4-33.6,10.6-51.2s11.5-34.6,19.5-51.5,16.6-31.4,26.9-43.5c9.9-12.2,20.8-21.4,32-27.5,11.5-6.1,23.4-7,35.5-2.9,6.1-.6,11.2-.3,15.4.6s7.7,3.2,10.2,6.7c2.9,3.5,4.8,8,6.1,14.1s2.2,13.8,2.9,23c-.6,29.8,0,55.4,2.6,76.2,2.2,20.8,5.1,39.4,8,55.4,3.2,16,6.1,30.4,9,43.5s4.8,26.2,5.4,40.3c0,4.8-1.3,8.6-3.8,11.2s-5.1,4.2-8.3,5.1c-3.2.6-6.1.6-8.6-.6s-4.2-3.2-4.5-5.4h0l.2-.7ZM331.34,314.72c-7.4-9.9-15.4-14.1-24-12.5s-17.3,7-25.6,16c-8.6,9-16.6,20.8-24.3,35.5s-14.4,30.4-19.8,46.7c-5.4,16.6-9.6,33.3-12.2,49.6-2.6,16.6-3.2,31-1.6,43.5,4.2,13.8,9.6,22.1,15.7,25s12.8,1.9,19.8-2.9,14.4-12.5,21.8-23,14.4-21.8,21.1-33.9,12.8-24.3,18.2-36.5c5.4-12.2,9.9-22.4,13.1-30.7l-2.2-77.1h0v.3ZM200.14,276.92c25.6-25.6,57-39,93.4-39,16.3,0,31.7,2.6,45.8,7.7,1-3.8,1.3-8,0-12.2-3.5-16-52.2-52.2-52.2-52.2,0,0,51.2-67.5,63.4-94.4,1-2.2-6.1-2.2-8.6-1.6-70.4,22.7-224.6,88.6-224.6,88.6,0,0-3.8,1.6-116.2,152.6,0,0-6.7,8.3,8.6,5.4,0,28.8.6,96,.6,96,0,0-6.7,12.2-8.3,19.2,6.4,15,5.8,15.7,13.4,21.1,8.6-6.4,7.7-6.4,14.1-21.4-1-6.1-9-18.9-9-18.9l-.6-99.8,107.5-45.8s11.8,73.3,31.7,79.4c.6-1.6,1.6-2.9,2.6-4.2,2.6-30.7,15-57.6,37.8-80.3"/>
5
+ </svg>
@@ -0,0 +1,34 @@
1
+ import { INodePropertyOptions, NodePropertyTypes } from 'n8n-workflow';
2
+ import { ParameterObject, SchemaObject, ReferenceObject } from 'openapi3-ts/oas30';
3
+ export interface NodePropertyValues {
4
+ option: INodePropertyOptions;
5
+ default: any;
6
+ queryParameters?: any;
7
+ requestBody?: any;
8
+ pathParameters?: any;
9
+ }
10
+ export interface CustomNodePropertyOption {
11
+ displayName: string;
12
+ name: string;
13
+ type: NodePropertyTypes;
14
+ default: any;
15
+ required?: boolean;
16
+ description?: string;
17
+ placeholder?: string;
18
+ typeOptions?: {
19
+ multipleValues?: boolean;
20
+ };
21
+ options?: CustomNodePropertyOption[];
22
+ routing?: {
23
+ request?: {
24
+ body?: Record<string, string>;
25
+ };
26
+ };
27
+ isRequired?: boolean;
28
+ }
29
+ export declare function isParameterObject(param: any): param is ParameterObject;
30
+ export declare function isSchemaObject(schema: any): schema is SchemaObject;
31
+ export declare function isReferenceObject(obj: any): obj is ReferenceObject;
32
+ export declare function hasProperties(schema: SchemaObject): schema is SchemaObject & {
33
+ properties: Record<string, SchemaObject | ReferenceObject>;
34
+ };
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isParameterObject = isParameterObject;
4
+ exports.isSchemaObject = isSchemaObject;
5
+ exports.isReferenceObject = isReferenceObject;
6
+ exports.hasProperties = hasProperties;
7
+ function isParameterObject(param) {
8
+ return param && typeof param === 'object' && 'name' in param && 'in' in param;
9
+ }
10
+ function isSchemaObject(schema) {
11
+ return schema && typeof schema === 'object' && !('$ref' in schema);
12
+ }
13
+ function isReferenceObject(obj) {
14
+ return obj && typeof obj === 'object' && '$ref' in obj;
15
+ }
16
+ function hasProperties(schema) {
17
+ return 'properties' in schema && schema.properties !== undefined;
18
+ }
19
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../nodes/AcademyFive/types.ts"],"names":[],"mappings":";;AAgCA,8CAEC;AAED,wCAEC;AAED,8CAEC;AAED,sCAIC;AAhBD,SAAgB,iBAAiB,CAAC,KAAU;IAC3C,OAAO,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,CAAC;AAC/E,CAAC;AAED,SAAgB,cAAc,CAAC,MAAW;IACzC,OAAO,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,CAAC,CAAC,MAAM,IAAI,MAAM,CAAC,CAAC;AACpE,CAAC;AAED,SAAgB,iBAAiB,CAAC,GAAQ;IACzC,OAAO,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,MAAM,IAAI,GAAG,CAAC;AACxD,CAAC;AAED,SAAgB,aAAa,CAC5B,MAAoB;IAEpB,OAAO,YAAY,IAAI,MAAM,IAAI,MAAM,CAAC,UAAU,KAAK,SAAS,CAAC;AAClE,CAAC"}
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "n8n-nodes-academyfive-api-beta",
3
+ "version": "0.0.1-beta",
4
+ "description": "n8n nodes for Academy Five API integration",
5
+ "keywords": [
6
+ "n8n-community-node-package"
7
+ ],
8
+ "license": "MIT",
9
+ "homepage": "https://www.simovative.com/",
10
+ "author": {
11
+ "name": "Simovative GmbH",
12
+ "email": "service@simovative.com"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/Simovative/n8n-a5-integration.git"
17
+ },
18
+ "engines": {
19
+ "node": ">=20.15"
20
+ },
21
+ "main": "index.js",
22
+ "scripts": {
23
+ "get-schemas": "node scripts/download-referenced-schemas.js",
24
+ "build": "npx rimraf dist && tsc && gulp build:all",
25
+ "build-beta": "npm run get-schemas https://ac5.a5cloud-preview.net && npm run build",
26
+ "build-prod": "npm run get-schemas https://ac5.a5cloud-production.net && npm run build",
27
+ "dev": "tsc --watch",
28
+ "format": "prettier nodes credentials --write",
29
+ "lint": "eslint nodes credentials package.json",
30
+ "lintfix": "eslint nodes credentials package.json --fix",
31
+ "generate-docker-image": "docker build -t n8n-simovative:latest -f docker/Dockerfile .",
32
+ "start-dev-container": "docker compose -f docker-compose.yml -f docker-compose.development.yml -p n8n-nodes-simovative-dev up --force-recreate -d --build",
33
+ "start-staging-container": "docker compose -f docker-compose.yml -p n8n-nodes-simovative-staging up --force-recreate -d --build",
34
+ "test": "jest"
35
+ },
36
+ "files": [
37
+ "dist"
38
+ ],
39
+ "n8n": {
40
+ "n8nNodesApiVersion": 1,
41
+ "credentials": [
42
+ "dist/credentials/AcademyFiveCredentialsApi.credentials.js"
43
+ ],
44
+ "nodes": [
45
+ "dist/nodes/AcademyFive/AcademyFive.node.js"
46
+ ]
47
+ },
48
+ "devDependencies": {
49
+ "@types/lodash": "^4.17.20",
50
+ "@types/jest": "^30.0.0",
51
+ "@types/node": "^24.2.0",
52
+ "@typescript-eslint/parser": "~8.32.0",
53
+ "eslint": "^8.57.0",
54
+ "eslint-plugin-n8n-nodes-base": "^1.16.3",
55
+ "gulp": "^5.0.0",
56
+ "jest": "^29.4.1",
57
+ "openapi3-ts": "^4.5.0",
58
+ "prettier": "^3.5.3",
59
+ "ts-jest": "^29.4.1",
60
+ "ts-node": "^10.9.2",
61
+ "typescript": "^5.8.2"
62
+ },
63
+ "peerDependencies": {
64
+ "n8n-workflow": "*"
65
+ }
66
+ }