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,55 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "InvoicesStatusChange",
4
+ "type": "object",
5
+ "properties": {
6
+ "data": {
7
+ "type": "object",
8
+ "properties": {
9
+ "type": {
10
+ "type": "string",
11
+ "const": "invoicesStatusChange",
12
+ "examples": [
13
+ "invoicesStatusChange"
14
+ ]
15
+ },
16
+ "attributes": {
17
+ "type": "object",
18
+ "properties": {
19
+ "statusId": {
20
+ "type": "integer",
21
+ "const": 1,
22
+ "example": 1
23
+ },
24
+ "sendMail": {
25
+ "type": "boolean",
26
+ "example": false
27
+ },
28
+ "invoiceIds": {
29
+ "type": "array",
30
+ "uniqueItems": true,
31
+ "items": {
32
+ "type": "integer"
33
+ },
34
+ "example":
35
+ [1, 2]
36
+
37
+ }
38
+ },
39
+ "required": [
40
+ "statusId",
41
+ "sendMail",
42
+ "invoiceIds"
43
+ ]
44
+ }
45
+ },
46
+ "required": [
47
+ "type",
48
+ "attributes"
49
+ ]
50
+ }
51
+ },
52
+ "required": [
53
+ "data"
54
+ ]
55
+ }
@@ -0,0 +1,87 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "LecturerContractEmploymentAvailability",
4
+ "type": "object",
5
+ "properties": {
6
+ "data": {
7
+ "type": "object",
8
+ "properties": {
9
+ "type": {
10
+ "type": "string",
11
+ "const": "lecturer-contract-employment-availabilities",
12
+ "examples": [
13
+ "lecturer-contract-employment-availabilities"
14
+ ]
15
+ },
16
+ "id": {
17
+ "type": "string",
18
+ "minimum": 1,
19
+ "maxLength": 20,
20
+ "minLength": 1,
21
+ "example": "1"
22
+ },
23
+ "attributes": {
24
+ "type": "object",
25
+ "properties": {
26
+ "dayOfWeek": {
27
+ "type": "integer",
28
+ "example": 1,
29
+ "minimum": 1,
30
+ "maximum": 7
31
+ },
32
+ "startTime": {
33
+ "type": "string",
34
+ "format": "time",
35
+ "example": "10:00:00"
36
+ },
37
+ "endTime": {
38
+ "type": "string",
39
+ "format": "time",
40
+ "example": "12:00:00"
41
+ }
42
+ }
43
+ },
44
+ "relationships": {
45
+ "type": "object",
46
+ "properties": {
47
+ "lecturerContract": {
48
+ "type": "object",
49
+ "properties": {
50
+ "data": {
51
+ "types": ["null", "object"],
52
+ "properties": {
53
+ "type": {
54
+ "type": "string",
55
+ "const": "lecturer-contracts",
56
+ "examples": [
57
+ "lecturer-contracts"
58
+ ]
59
+ },
60
+ "id": {
61
+ "type": "string",
62
+ "minimum": 1,
63
+ "example": "10",
64
+ "description": "The id of the lecturer contract."
65
+ }
66
+ }
67
+ }
68
+ },
69
+ "required": [
70
+ "data"
71
+ ]
72
+ }
73
+ },
74
+ "required": []
75
+ }
76
+ },
77
+ "required": [
78
+ "type",
79
+ "id",
80
+ "attributes"
81
+ ]
82
+ }
83
+ },
84
+ "required": [
85
+ "data"
86
+ ]
87
+ }
@@ -0,0 +1,84 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "LecturerContractEmploymentAvailability",
4
+ "type": "object",
5
+ "properties": {
6
+ "data": {
7
+ "type": "object",
8
+ "properties": {
9
+ "type": {
10
+ "type": "string",
11
+ "const": "lecturer-contract-employment-availabilities",
12
+ "examples": [
13
+ "lecturer-contract-employment-availabilities"
14
+ ]
15
+ },
16
+ "attributes": {
17
+ "type": "object",
18
+ "properties": {
19
+ "dayOfWeek": {
20
+ "type": "integer",
21
+ "example": 1,
22
+ "minimum": 1,
23
+ "maximum": 7
24
+ },
25
+ "startTime": {
26
+ "type": "string",
27
+ "format": "time",
28
+ "example": "10:00:00"
29
+ },
30
+ "endTime": {
31
+ "type": "string",
32
+ "format": "time",
33
+ "example": "12:00:00"
34
+ }
35
+ },
36
+ "required": [
37
+ "dayOfWeek",
38
+ "startTime",
39
+ "endTime"
40
+ ]
41
+ },
42
+ "relationships": {
43
+ "type": "object",
44
+ "properties": {
45
+ "lecturerContract": {
46
+ "type": "object",
47
+ "properties": {
48
+ "data": {
49
+ "types": ["null", "object"],
50
+ "properties": {
51
+ "type": {
52
+ "type": "string",
53
+ "const": "lecturer-contracts",
54
+ "examples": [
55
+ "lecturer-contracts"
56
+ ]
57
+ },
58
+ "id": {
59
+ "type": "string",
60
+ "minimum": 1,
61
+ "example": "10",
62
+ "description": "The id of the lecturer contract."
63
+ }
64
+ }
65
+ }
66
+ },
67
+ "required": [
68
+ "data"
69
+ ]
70
+ }
71
+ },
72
+ "required": []
73
+ }
74
+ },
75
+ "required": [
76
+ "type",
77
+ "attributes"
78
+ ]
79
+ }
80
+ },
81
+ "required": [
82
+ "data"
83
+ ]
84
+ }
@@ -0,0 +1,103 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "LecturerContractEmployment",
4
+ "type": "object",
5
+ "properties": {
6
+ "data": {
7
+ "type": "object",
8
+ "properties": {
9
+ "type": {
10
+ "type": "string",
11
+ "const": "lecturer-contract-employments",
12
+ "examples": [
13
+ "lecturer-contract-employments"
14
+ ]
15
+ },
16
+ "id": {
17
+ "type": "string",
18
+ "minimum": 1,
19
+ "maxLength": 20
20
+ },
21
+ "attributes": {
22
+ "type": "object",
23
+ "properties": {
24
+ "teachingUnits": {
25
+ "type": "number",
26
+ "minimum": 1,
27
+ "example": 12.5
28
+ },
29
+ "startDate": {
30
+ "type": "string",
31
+ "format": "date",
32
+ "example": "2020-10-10"
33
+ },
34
+ "endDate": {
35
+ "type": "string",
36
+ "format": "date",
37
+ "example": "2020-11-11"
38
+ },
39
+ "occupationTypeId": {
40
+ "type": "integer",
41
+ "minimum": 1,
42
+ "maximum": 2,
43
+ "example": 1,
44
+ "description": "1 = Internal, 2 = External"
45
+ },
46
+ "capacity": {
47
+ "type": "number",
48
+ "minimum": 0,
49
+ "maximum": 100,
50
+ "example": 21.5
51
+ }
52
+ }
53
+ },
54
+ "relationships": {
55
+ "type": "object",
56
+ "properties": {
57
+ "lecturerContractEmploymentStatus": {
58
+ "type": "object",
59
+ "properties": {
60
+ "data": {
61
+ "type": "object",
62
+ "properties": {
63
+ "type": {
64
+ "type": "string",
65
+ "const": "lecturer-contract-employment-status",
66
+ "examples": [
67
+ "lecturer-contract-employment-status"
68
+ ]
69
+ },
70
+ "id": {
71
+ "type": "string",
72
+ "minLength": 1,
73
+ "maxLength": 20,
74
+ "minimum": 1,
75
+ "example": "2",
76
+ "description": "The id of the lecturer contract employment status. Can be found in a5 under Settings -> Lecturer contracts -> Status values employments"
77
+ }
78
+ },
79
+ "required": [
80
+ "type",
81
+ "id"
82
+ ]
83
+ }
84
+ },
85
+ "required": [
86
+ "data"
87
+ ]
88
+ }
89
+ }
90
+ }
91
+ },
92
+ "required": [
93
+ "type",
94
+ "id",
95
+ "attributes",
96
+ "relationships"
97
+ ]
98
+ }
99
+ },
100
+ "required": [
101
+ "data"
102
+ ]
103
+ }
@@ -0,0 +1,153 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "LecturerContractEmployment",
4
+ "type": "object",
5
+ "properties": {
6
+ "data": {
7
+ "type": "object",
8
+ "properties": {
9
+ "type": {
10
+ "type": "string",
11
+ "const": "lecturer-contract-employments",
12
+ "examples": [
13
+ "lecturer-contract-employments"
14
+ ]
15
+ },
16
+ "attributes": {
17
+ "type": "object",
18
+ "properties": {
19
+ "teachingUnits": {
20
+ "type": "number",
21
+ "minimum": 1,
22
+ "example": 12.5
23
+ },
24
+ "startDate": {
25
+ "type": "string",
26
+ "format": "date",
27
+ "example": "2020-10-10"
28
+ },
29
+ "endDate": {
30
+ "type": "string",
31
+ "format": "date",
32
+ "example": "2020-11-11"
33
+ },
34
+ "occupationTypeId": {
35
+ "type": "integer",
36
+ "minimum": 1,
37
+ "maximum": 2,
38
+ "example": 1,
39
+ "description": "1 = Internal, 2 = External"
40
+ },
41
+ "capacity": {
42
+ "type": "number",
43
+ "minimum": 0,
44
+ "maximum": 100,
45
+ "example": 21.5
46
+ }
47
+ },
48
+ "required": [
49
+ "teachingUnits",
50
+ "startDate",
51
+ "endDate",
52
+ "occupationTypeId"
53
+ ],
54
+ "if": {
55
+ "properties": {
56
+ "occupationTypeId": {
57
+ "enum": [
58
+ 1
59
+ ]
60
+ }
61
+ }
62
+ },
63
+ "then": {
64
+ "required": [
65
+ "capacity"
66
+ ]
67
+ }
68
+ },
69
+ "relationships": {
70
+ "type": "object",
71
+ "properties": {
72
+ "lecturerContract": {
73
+ "type": "object",
74
+ "properties": {
75
+ "data": {
76
+ "type": "object",
77
+ "properties": {
78
+ "type": {
79
+ "type": "string",
80
+ "const": "lecturer-contracts",
81
+ "examples": [
82
+ "lecturer-contracts"
83
+ ]
84
+ },
85
+ "id": {
86
+ "type": "string",
87
+ "minLength": 1,
88
+ "maxLength": 20,
89
+ "minimum": 1,
90
+ "example": "1",
91
+ "description": "The id of the lecturer contract."
92
+ }
93
+ },
94
+ "required": [
95
+ "type",
96
+ "id"
97
+ ]
98
+ }
99
+ },
100
+ "required": [
101
+ "data"
102
+ ]
103
+ },
104
+ "lecturerContractEmploymentStatus": {
105
+ "type": "object",
106
+ "properties": {
107
+ "data": {
108
+ "type": "object",
109
+ "properties": {
110
+ "type": {
111
+ "type": "string",
112
+ "const": "lecturer-contract-employment-status",
113
+ "examples": [
114
+ "lecturer-contract-employment-status"
115
+ ]
116
+ },
117
+ "id": {
118
+ "type": "string",
119
+ "minLength": 1,
120
+ "maxLength": 20,
121
+ "minimum": 1,
122
+ "example": "2",
123
+ "description": "The id of the lecturer contract employment status. Can be found in a5 under Settings -> Lecturer contracts -> Status values employments"
124
+ }
125
+ },
126
+ "required": [
127
+ "type",
128
+ "id"
129
+ ]
130
+ }
131
+ },
132
+ "required": [
133
+ "data"
134
+ ]
135
+ }
136
+ },
137
+ "required": [
138
+ "lecturerContract",
139
+ "lecturerContractEmploymentStatus"
140
+ ]
141
+ }
142
+ },
143
+ "required": [
144
+ "type",
145
+ "attributes",
146
+ "relationships"
147
+ ]
148
+ }
149
+ },
150
+ "required": [
151
+ "data"
152
+ ]
153
+ }
@@ -0,0 +1,154 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "LecturerContract",
4
+ "type": "object",
5
+ "properties": {
6
+ "data": {
7
+ "type": "object",
8
+ "properties": {
9
+ "type": {
10
+ "type": "string",
11
+ "const": "lecturer-contracts",
12
+ "examples": [
13
+ "lecturer-contracts"
14
+ ]
15
+ },
16
+ "id": {
17
+ "type": "string",
18
+ "minimum": 1,
19
+ "maxLength": 20,
20
+ "minLength": 1
21
+ },
22
+ "attributes": {
23
+ "type": "object",
24
+ "properties": {
25
+ "personnelNumber": {
26
+ "type": "string",
27
+ "maxLength": 32,
28
+ "example": "ABC123456"
29
+ },
30
+ "contractNumber": {
31
+ "type": "string",
32
+ "maxLength": 32,
33
+ "example": "ABC123456"
34
+ },
35
+ "bisSocialInsuranceNumber": {
36
+ "oneOf": [
37
+ {
38
+ "type": "string",
39
+ "pattern": "^([0-9]{4})$",
40
+ "minLength": 4,
41
+ "maxLength": 4,
42
+ "example": "1234"
43
+ },
44
+ {
45
+ "type": "string",
46
+ "pattern": "^([0-9]{10})$",
47
+ "minLength": 10,
48
+ "maxLength": 10,
49
+ "example": "1234010180"
50
+ },
51
+ {
52
+ "type": "string",
53
+ "maxLength": 0,
54
+ "example": ""
55
+ }
56
+ ]
57
+ },
58
+ "bankName": {
59
+ "type": "string",
60
+ "maxLength": 255,
61
+ "example": "Simovative Bank"
62
+ },
63
+ "iban": {
64
+ "oneOf": [
65
+ {
66
+ "type": "string",
67
+ "minLength": 14,
68
+ "maxLength": 34,
69
+ "pattern": "^([A-Z]{2})([0-9]{2})([A-Z0-9]{9,30})$",
70
+ "example": "DE89370400440532013000"
71
+ },
72
+ {
73
+ "type": "string",
74
+ "maxLength": 0,
75
+ "example": ""
76
+ }
77
+ ]
78
+ },
79
+ "bic": {
80
+ "oneOf": [
81
+ {
82
+ "type": "string",
83
+ "minLength": 8,
84
+ "maxLength": 11,
85
+ "pattern": "^[A-Z]{6}[A-Z0-9]*$",
86
+ "example": "SIMMDEMM"
87
+ },
88
+ {
89
+ "type": "string",
90
+ "maxLength": 0,
91
+ "example": ""
92
+ }
93
+ ]
94
+ },
95
+ "isFullTime": {
96
+ "type": "boolean",
97
+ "example": true
98
+ },
99
+ "hasHabilitation": {
100
+ "type": "boolean",
101
+ "example": false
102
+ }
103
+ }
104
+ },
105
+ "relationships": {
106
+ "type": "object",
107
+ "properties": {
108
+ "lecturerContractStatus": {
109
+ "type": "object",
110
+ "properties": {
111
+ "data": {
112
+ "type": "object",
113
+ "properties": {
114
+ "type": {
115
+ "type": "string",
116
+ "const": "lecturer-contract-status",
117
+ "examples": [
118
+ "lecturer-contract-status"
119
+ ]
120
+ },
121
+ "id": {
122
+ "type": "string",
123
+ "minLength": 1,
124
+ "maxLength": 20,
125
+ "minimum": 1,
126
+ "example": "2",
127
+ "description": "The id of the lecturer contract status. Can be found in a5 under Settings -> Lecturer contracts -> Status values contracts"
128
+ }
129
+ },
130
+ "required": [
131
+ "type",
132
+ "id"
133
+ ]
134
+ }
135
+ },
136
+ "required": [
137
+ "data"
138
+ ]
139
+ }
140
+ }
141
+ }
142
+ },
143
+ "required": [
144
+ "type",
145
+ "id",
146
+ "attributes",
147
+ "relationships"
148
+ ]
149
+ }
150
+ },
151
+ "required": [
152
+ "data"
153
+ ]
154
+ }