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,85 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "DataSourceTab",
4
+ "type": "object",
5
+ "properties": {
6
+ "data": {
7
+ "type": "object",
8
+ "properties": {
9
+ "type": {
10
+ "type": "string",
11
+ "const": "data-source-tabs",
12
+ "examples": [
13
+ "data-source-tabs"
14
+ ]
15
+ },
16
+ "attributes": {
17
+ "type": "object",
18
+ "properties": {
19
+ "labelDe": {
20
+ "type": "string",
21
+ "minLength": 1,
22
+ "maxLength": 64,
23
+ "example": "Beispiel Bezeichnung"
24
+ },
25
+ "labelEn": {
26
+ "type": "string",
27
+ "minLength": 1,
28
+ "maxLength": 64,
29
+ "example": "Example label"
30
+ }
31
+ },
32
+ "required": [
33
+ "labelDe",
34
+ "labelEn"
35
+ ]
36
+ },
37
+ "relationships": {
38
+ "type": "object",
39
+ "properties": {
40
+ "dataSource": {
41
+ "type": "object",
42
+ "properties": {
43
+ "data": {
44
+ "type": "object",
45
+ "properties": {
46
+ "type": {
47
+ "type": "string",
48
+ "const": "data-sources",
49
+ "examples": [
50
+ "data-sources"
51
+ ]
52
+ },
53
+ "id": {
54
+ "type": "string",
55
+ "minLength": 1,
56
+ "maxLength": 20,
57
+ "minimum": 1,
58
+ "example": "345",
59
+ "description": "The id of the data source. The data source must exist."
60
+ }
61
+ },
62
+ "required": [
63
+ "type",
64
+ "id"
65
+ ]
66
+ }
67
+ },
68
+ "required": [
69
+ "data"
70
+ ]
71
+ }
72
+ },
73
+ "required": []
74
+ }
75
+ },
76
+ "required": [
77
+ "type",
78
+ "attributes"
79
+ ]
80
+ }
81
+ },
82
+ "required": [
83
+ "data"
84
+ ]
85
+ }
@@ -0,0 +1,61 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "DataSource",
4
+ "type": "object",
5
+ "properties": {
6
+ "data": {
7
+ "type": "object",
8
+ "properties": {
9
+ "type": {
10
+ "type": "string",
11
+ "const": "data-sources",
12
+ "examples": [
13
+ "data-sources"
14
+ ]
15
+ },
16
+ "attributes": {
17
+ "type": "object",
18
+ "properties": {
19
+ "name": {
20
+ "type": "string",
21
+ "minLength": 1,
22
+ "maxLength": 255,
23
+ "example": "My data source"
24
+ },
25
+ "tableName": {
26
+ "type": "string",
27
+ "minLength": 4,
28
+ "maxLength": 255,
29
+ "example": "table_name",
30
+ "pattern": "^[a-zA-Z0-9_]+$"
31
+ },
32
+ "usage": {
33
+ "type": "string",
34
+ "minLength": 1,
35
+ "maxLength": 255,
36
+ "example": "newOnlineApplication",
37
+ "enum": [
38
+ "courseOffer",
39
+ "financeData",
40
+ "internalApplicationData",
41
+ "newOnlineApplication",
42
+ "submission"
43
+ ]
44
+ }
45
+ },
46
+ "required": [
47
+ "name",
48
+ "tableName"
49
+ ]
50
+ }
51
+ },
52
+ "required": [
53
+ "type",
54
+ "attributes"
55
+ ]
56
+ }
57
+ },
58
+ "required": [
59
+ "data"
60
+ ]
61
+ }
@@ -0,0 +1,61 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "Document",
4
+ "type": "object",
5
+ "properties": {
6
+ "data": {
7
+ "type": "object",
8
+ "properties": {
9
+ "type": {
10
+ "type": "string",
11
+ "const": "documents",
12
+ "examples": [
13
+ "documents"
14
+ ]
15
+ },
16
+ "id": {
17
+ "type": "string",
18
+ "minLength": 1,
19
+ "maxLength": 255,
20
+ "example": "187"
21
+ },
22
+ "attributes": {
23
+ "type": "object",
24
+ "properties": {
25
+ "targetId": {
26
+ "type": "integer",
27
+ "minLength": 1,
28
+ "maxLength": 255,
29
+ "example": 69
30
+ },
31
+ "subTargetId": {
32
+ "type": "integer",
33
+ "minLength": 1,
34
+ "maxLength": 255,
35
+ "example": 96
36
+ },
37
+ "customProperties": {
38
+ "type": "object",
39
+ "example": {
40
+ "date": "12-01-2024",
41
+ "email": "@simovative.com"
42
+ },
43
+ "description": "if empty, the default values are used"
44
+ }
45
+ },
46
+ "required": [
47
+ "targetId"
48
+ ]
49
+ }
50
+ },
51
+ "required": [
52
+ "type",
53
+ "id",
54
+ "attributes"
55
+ ]
56
+ }
57
+ },
58
+ "required": [
59
+ "data"
60
+ ]
61
+ }
@@ -0,0 +1,159 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "EventDate",
4
+ "type": "object",
5
+ "properties": {
6
+ "data": {
7
+ "type": "object",
8
+ "properties": {
9
+ "type": {
10
+ "type": "string",
11
+ "const": "event-dates",
12
+ "examples": [
13
+ "event-dates"
14
+ ]
15
+ },
16
+ "attributes": {
17
+ "$ref": "#/definitions/eventDate"
18
+ }
19
+ }
20
+ }
21
+ },
22
+ "definitions": {
23
+ "eventDate": {
24
+ "oneOf": [
25
+ {
26
+ "$ref": "#/definitions/lectureEventSchema"
27
+ },
28
+ {
29
+ "$ref": "#/definitions/singleEventSchema"
30
+ },
31
+ {
32
+ "$ref": "#/definitions/examEventSchema"
33
+ },
34
+ {
35
+ "$comment": "this is the none option in the onOrNone construct",
36
+ "$comment2": "this is the none option in the onOrNone construct",
37
+ "description": "Or none of the above",
38
+ "allOf": [
39
+ {
40
+ "not": {
41
+ "$ref": "#/definitions/lectureEventSchema"
42
+ }
43
+ },
44
+ {
45
+ "not": {
46
+ "$ref": "#/definitions/singleEventSchema"
47
+ }
48
+ },
49
+ {
50
+ "not": {
51
+ "$ref": "#/definitions/examEventSchema"
52
+ }
53
+ }
54
+ ]
55
+ }
56
+ ],
57
+ "allOf": [
58
+ {
59
+ "$ref": "EventDatePostSchema.json#/definitions/_baseSchema"
60
+ },
61
+ {
62
+ "$ref": "#/definitions/datePicker"
63
+ }
64
+ ]
65
+ },
66
+ "datePicker": {
67
+ "properties": {
68
+ "allDay": {
69
+ "type": "boolean",
70
+ "enum": [
71
+ false,
72
+ true
73
+ ],
74
+ "description": "If true the start and end time are automatically set to 00:00:00 and 23:59:00 respectively",
75
+ "examples": [
76
+ false,
77
+ true
78
+ ]
79
+ },
80
+ "startTime": {
81
+ "type": "string",
82
+ "format": "time",
83
+ "description": "The start time of the event, for example 12:00:00",
84
+ "examples": [
85
+ "12:00:00",
86
+ "12:15:00"
87
+ ]
88
+ },
89
+ "endTime": {
90
+ "type": "string",
91
+ "format": "time",
92
+ "description": "The end time of the event, for example 14:00:00",
93
+ "examples": [
94
+ "14:00:00",
95
+ "14:15:00"
96
+ ]
97
+ }
98
+ }
99
+ },
100
+ "lectureEventSchema": {
101
+ "properties": {
102
+ "teachingUnits": {
103
+ "type": "number",
104
+ "minimum": 0,
105
+ "description": "Amount of teaching units for this event",
106
+ "examples": [
107
+ 1.0,
108
+ 2.5,
109
+ 3.0
110
+ ]
111
+ }
112
+ },
113
+ "required": [
114
+ "teachingUnits"
115
+ ]
116
+ },
117
+ "singleEventSchema": {
118
+ "properties": {
119
+ "title": {
120
+ "type": "string",
121
+ "description": "Title of the event, only needed if event is not based on a lecture or exam",
122
+ "examples": [
123
+ "Rehearsal of the singing club"
124
+ ]
125
+ }
126
+ },
127
+ "required": [
128
+ "title"
129
+ ]
130
+ },
131
+ "examEventSchema": {
132
+ "properties": {
133
+ "assessorIds": {
134
+ "type": "array",
135
+ "items": {
136
+ "type": "integer",
137
+ "minimum": 1
138
+ },
139
+ "description": "ProfileIds of the assessors",
140
+ "examples": [
141
+ [
142
+ 1,
143
+ 2,
144
+ 3
145
+ ],
146
+ [
147
+ 9,
148
+ 8,
149
+ 7
150
+ ]
151
+ ]
152
+ }
153
+ },
154
+ "required": [
155
+ "assessorIds"
156
+ ]
157
+ }
158
+ }
159
+ }
@@ -0,0 +1,335 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "EventDate",
4
+ "type": "object",
5
+ "properties": {
6
+ "data": {
7
+ "type": "object",
8
+ "properties": {
9
+ "type": {
10
+ "type": "string",
11
+ "const": "event-dates",
12
+ "examples": [
13
+ "event-dates"
14
+ ]
15
+ },
16
+ "attributes": {
17
+ "$ref": "#/definitions/eventDate"
18
+ }
19
+ }
20
+ }
21
+ },
22
+ "definitions": {
23
+ "eventDate": {
24
+ "oneOf": [
25
+ {
26
+ "$ref": "#/definitions/lectureEventSchema"
27
+ },
28
+ {
29
+ "$ref": "#/definitions/singleEventSchema"
30
+ }
31
+ ],
32
+ "allOf": [
33
+ {
34
+ "$ref": "#/definitions/baseSchema"
35
+ }
36
+ ]
37
+ },
38
+ "baseSchema": {
39
+ "allOf": [
40
+ {
41
+ "$ref": "#/definitions/_baseSchema"
42
+ }
43
+ ],
44
+ "required": [
45
+ "date",
46
+ "customEventTypeId",
47
+ "planningStatusId"
48
+ ]
49
+ },
50
+ "_baseSchema": {
51
+ "properties": {
52
+ "planningStatusId": {
53
+ "type": "integer",
54
+ "minimum": 1,
55
+ "description": "Id of the in AC5 configured planing statuses",
56
+ "examples": [
57
+ 21,
58
+ 42
59
+ ]
60
+ },
61
+ "customEventTypeId": {
62
+ "type": "integer",
63
+ "minimum": 1,
64
+ "description": "Custom event type, configured in AC5",
65
+ "examples": [
66
+ 1,
67
+ 2,
68
+ 3
69
+ ]
70
+ },
71
+ "date": {
72
+ "type": "string",
73
+ "format": "date",
74
+ "description": "Date of event",
75
+ "examples": [
76
+ "2000-02-14"
77
+ ]
78
+ },
79
+ "roomIds": {
80
+ "type": "array",
81
+ "items": {
82
+ "type": "integer",
83
+ "minimum": 1
84
+ },
85
+ "description": "Ids of the rooms, configured in AC5",
86
+ "examples": [
87
+ [
88
+ 1,
89
+ 2,
90
+ 3
91
+ ],
92
+ [
93
+ 21,
94
+ 23,
95
+ 42
96
+ ]
97
+ ]
98
+ },
99
+ "lecturerIds": {
100
+ "type": "array",
101
+ "items": {
102
+ "type": "integer",
103
+ "minimum": 1
104
+ },
105
+ "description": "ProfileIds of the lecturers",
106
+ "examples": [
107
+ [
108
+ 1,
109
+ 2,
110
+ 3
111
+ ],
112
+ [
113
+ 9,
114
+ 8,
115
+ 7
116
+ ]
117
+ ]
118
+ },
119
+ "planningGroupIds": {
120
+ "type": "array",
121
+ "items": {
122
+ "type": "integer",
123
+ "minimum": 1
124
+ },
125
+ "description": "Ids of the planning groups, configured in AC5",
126
+ "examples": [
127
+ [
128
+ 1,
129
+ 2,
130
+ 3
131
+ ],
132
+ [
133
+ 9,
134
+ 8,
135
+ 7
136
+ ]
137
+ ]
138
+ },
139
+ "comment": {
140
+ "type": "string",
141
+ "description": "Free text field",
142
+ "examples": [
143
+ "Bacon ipsum dolor amet t-bone bresaola short loin shank, strip steak ribeye swine jowl."
144
+ ]
145
+ },
146
+ "comment2": {
147
+ "type": "string",
148
+ "description": "Free text field",
149
+ "examples": [
150
+ "Bacon ipsum dolor amet t-bone bresaola short loin shank, strip steak ribeye swine jowl."
151
+ ]
152
+ },
153
+ "customId": {
154
+ "type": "string",
155
+ "description": "Custom id",
156
+ "maxLength": 255,
157
+ "examples": [
158
+ "ID47"
159
+ ]
160
+ },
161
+ "link": {
162
+ "type": "string",
163
+ "description": "Free text field",
164
+ "examples": [
165
+ "https://www.simovative.com"
166
+ ]
167
+ },
168
+ "linkLabel": {
169
+ "type": "string",
170
+ "description": "the label for the link",
171
+ "examples": [
172
+ "zoomlink"
173
+ ]
174
+ }
175
+ }
176
+ },
177
+ "allDaySchema": {
178
+ "allOf": [
179
+ {
180
+ "$ref": "#/definitions/_allDaySchema"
181
+ }
182
+ ],
183
+ "required": [
184
+ "allDay"
185
+ ]
186
+ },
187
+ "_allDaySchema": {
188
+ "properties": {
189
+ "allDay": {
190
+ "type": "boolean",
191
+ "enum": [
192
+ true
193
+ ],
194
+ "description": "If true the start and end time are automatically set to 00:00:00 and 23:59:00 respectively",
195
+ "examples": [
196
+ true
197
+ ]
198
+ }
199
+ }
200
+ },
201
+ "specificTimeSchema": {
202
+ "allOf": [
203
+ {
204
+ "$ref": "#/definitions/_specificTimeSchema"
205
+ }
206
+ ],
207
+ "required": [
208
+ "startTime",
209
+ "endTime",
210
+ "allDay"
211
+ ]
212
+ },
213
+ "_specificTimeSchema": {
214
+ "properties": {
215
+ "allDay": {
216
+ "type": "boolean",
217
+ "enum": [
218
+ false
219
+ ],
220
+ "description": "If false the start and end time is required",
221
+ "examples": [
222
+ false
223
+ ]
224
+ },
225
+ "startTime": {
226
+ "type": "string",
227
+ "format": "time",
228
+ "description": "The start time of the event, for example 12:00:00",
229
+ "examples": [
230
+ "12:00:00",
231
+ "12:15:00"
232
+ ]
233
+ },
234
+ "endTime": {
235
+ "type": "string",
236
+ "format": "time",
237
+ "description": "The end time of the event, for example 14:00:00",
238
+ "examples": [
239
+ "14:00:00",
240
+ "14:15:00"
241
+ ]
242
+ }
243
+ }
244
+ },
245
+ "lectureEventSchema": {
246
+ "oneOf": [
247
+ {
248
+ "$ref": "#/definitions/specificTimeSchema"
249
+ },
250
+ {
251
+ "$ref": "#/definitions/allDaySchema"
252
+ }
253
+ ],
254
+ "properties": {
255
+ "teachingUnits": {
256
+ "type": "number",
257
+ "minimum": 0,
258
+ "description": "Amount of teaching units for this event",
259
+ "examples": [
260
+ 1.0,
261
+ 2.5,
262
+ 3.0
263
+ ]
264
+ },
265
+ "lectureSeriesPartId": {
266
+ "type": "integer",
267
+ "minimum": 1,
268
+ "examples": [
269
+ 1,
270
+ 2,
271
+ 3
272
+ ],
273
+ "description": "Id of the corresponding lectureSeriesPart. Note: The corresponding EventSeries needs to be of the type lecture. If the lectureSeries is split into parts, this field is required."
274
+ }
275
+ },
276
+ "required": [
277
+ "teachingUnits"
278
+ ]
279
+ },
280
+ "singleEventSchema": {
281
+ "oneOf": [
282
+ {
283
+ "$ref": "#/definitions/specificTimeSchema"
284
+ },
285
+ {
286
+ "$ref": "#/definitions/allDaySchema"
287
+ }
288
+ ],
289
+ "properties": {
290
+ "title": {
291
+ "type": "string",
292
+ "description": "Title of the event, only needed if event is not based on a lecture or exam",
293
+ "examples": [
294
+ "Rehearsal of the singing club"
295
+ ]
296
+ }
297
+ },
298
+ "required": [
299
+ "title"
300
+ ]
301
+ },
302
+ "examEventSchema": {
303
+ "oneOf": [
304
+ {
305
+ "$ref": "#/definitions/specificTimeSchema"
306
+ },
307
+ {
308
+ "$ref": "#/definitions/allDaySchema"
309
+ }
310
+ ],
311
+ "properties": {
312
+ "assessorIds": {
313
+ "type": "array",
314
+ "items": {
315
+ "type": "integer",
316
+ "minimum": 1
317
+ },
318
+ "description": "ProfileIds of the assessors",
319
+ "examples": [
320
+ [
321
+ 1,
322
+ 2,
323
+ 3
324
+ ],
325
+ [
326
+ 9,
327
+ 8,
328
+ 7
329
+ ]
330
+ ]
331
+ }
332
+ }
333
+ }
334
+ }
335
+ }