diff --git a/ansible/roles/schulcloud-server-init/templates/configmap_file_init.yml.j2 b/ansible/roles/schulcloud-server-init/templates/configmap_file_init.yml.j2 index 43c876279ae..f191ce69ca8 100644 --- a/ansible/roles/schulcloud-server-init/templates/configmap_file_init.yml.j2 +++ b/ansible/roles/schulcloud-server-init/templates/configmap_file_init.yml.j2 @@ -517,6 +517,11 @@ data: # ========== Start of the CTL seed data configuration section. echo "Inserting ctl seed data secrets to external-tools..." + + # Encrypt secrets of external tools that contain an lti11 config. + $CTL_SEED_SECRET_ONLINE_DIA_MATHE=$(node scripts/secret.js -s $AES_KEY -e $CTL_SEED_SECRET_ONLINE_DIA_MATHE) + $CTL_SEED_SECRET_ONLINE_DIA_DEUTSCH=$(node scripts/secret.js -s $AES_KEY -e $CTL_SEED_SECRET_ONLINE_DIA_DEUTSCH) + mongosh $DATABASE__URL --quiet --eval 'db.getCollection("external-tools").updateOne( { "name": "Product Test Onlinediagnose Grundschule - Mathematik", diff --git a/ansible/roles/schulcloud-server-tspsync/defaults/main.yml b/ansible/roles/schulcloud-server-tspsync/defaults/main.yml new file mode 100644 index 00000000000..3d8c26f28b4 --- /dev/null +++ b/ansible/roles/schulcloud-server-tspsync/defaults/main.yml @@ -0,0 +1 @@ +SERVER_TSP_SYNC_CRONJOB_SCHEDULE: "9 3 * * *" \ No newline at end of file diff --git a/ansible/roles/schulcloud-server-tspsync/tasks/main.yml b/ansible/roles/schulcloud-server-tspsync/tasks/main.yml index 3f323efb681..05ea93d07ef 100644 --- a/ansible/roles/schulcloud-server-tspsync/tasks/main.yml +++ b/ansible/roles/schulcloud-server-tspsync/tasks/main.yml @@ -81,3 +81,33 @@ when: not WITH_TSP tags: - cronjob + + - name: API TSP Sync CronJob + kubernetes.core.k8s: + kubeconfig: ~/.kube/config + namespace: "{{ NAMESPACE }}" + template: api-tsp-sync-cronjob.yml.j2 + when: WITH_TSP_SYNC + tags: + - cronjob + + - name: remove API TSP Sync CronJob + kubernetes.core.k8s: + kubeconfig: ~/.kube/config + state: absent + api_version: batch/v1 + kind: CronJob + namespace: "{{ NAMESPACE }}" + name: api-tsp-sync-cronjob + when: not WITH_TSP_SYNC + tags: + - cronjob + + - name: API TSP Sync CronJob ConfigMap + kubernetes.core.k8s: + kubeconfig: ~/.kube/config + namespace: "{{ NAMESPACE }}" + template: api-tsp-sync-cronjob-configmap.yml.j2 + state: "{{ 'present' if WITH_TSP_SYNC|bool else 'absent'}}" + tags: + - configmap diff --git a/ansible/roles/schulcloud-server-tspsync/templates/api-tsp-sync-cronjob-configmap.yml.j2 b/ansible/roles/schulcloud-server-tspsync/templates/api-tsp-sync-cronjob-configmap.yml.j2 new file mode 100644 index 00000000000..c93af4d7c2e --- /dev/null +++ b/ansible/roles/schulcloud-server-tspsync/templates/api-tsp-sync-cronjob-configmap.yml.j2 @@ -0,0 +1,18 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + namespace: {{ NAMESPACE }} + name: api-tsp-sync-cronjob-configmap + labels: + app: api-tsp-sync-cronjob +data: + NODE_OPTIONS: "--max-old-space-size=3072" + NEST_LOG_LEVEL: "error" + EXIT_ON_ERROR: "true" + FEATURE_IDENTITY_MANAGEMENT_ENABLED: "{{ FEATURE_IDENTITY_MANAGEMENT_ENABLED }}" + FEATURE_IDENTITY_MANAGEMENT_STORE_ENABLED: "{{ FEATURE_IDENTITY_MANAGEMENT_STORE_ENABLED }}" + FEATURE_IDENTITY_MANAGEMENT_LOGIN_ENABLED: "{{ FEATURE_IDENTITY_MANAGEMENT_LOGIN_ENABLED }}" + IDENTITY_MANAGEMENT__INTERNAL_URI: "{{ IDENTITY_MANAGEMENT__INTERNAL_URI }}" + IDENTITY_MANAGEMENT__EXTERNAL_URI: "{{ IDENTITY_MANAGEMENT__EXTERNAL_URI }}" + IDENTITY_MANAGEMENT__TENANT: "{{ IDENTITY_MANAGEMENT__TENANT }}" + IDENTITY_MANAGEMENT__CLIENTID: "{{ IDENTITY_MANAGEMENT__CLIENTID }}" \ No newline at end of file diff --git a/ansible/roles/schulcloud-server-tspsync/templates/api-tsp-sync-cronjob.yml.j2 b/ansible/roles/schulcloud-server-tspsync/templates/api-tsp-sync-cronjob.yml.j2 new file mode 100644 index 00000000000..0a526e4028c --- /dev/null +++ b/ansible/roles/schulcloud-server-tspsync/templates/api-tsp-sync-cronjob.yml.j2 @@ -0,0 +1,109 @@ +apiVersion: batch/v1 +kind: CronJob +metadata: + namespace: {{ NAMESPACE }} + labels: + app: api-tsp-sync-cronjob + app.kubernetes.io/part-of: schulcloud-verbund + app.kubernetes.io/version: {{ SCHULCLOUD_SERVER_IMAGE_TAG }} + app.kubernetes.io/name: api-tsp-sync-cronjob + app.kubernetes.io/component: sync + app.kubernetes.io/managed-by: ansible + git.branch: {{ SCHULCLOUD_SERVER_BRANCH_NAME }} + git.repo: {{ SCHULCLOUD_SERVER_REPO_NAME }} + name: api-tsp-sync-cronjob +spec: + concurrencyPolicy: Forbid + schedule: "{{ SERVER_TSP_SYNC_CRONJOB_SCHEDULE }}" + jobTemplate: + metadata: + labels: + app: api-tsp-sync-cronjob + app.kubernetes.io/part-of: schulcloud-verbund + app.kubernetes.io/version: {{ SCHULCLOUD_SERVER_IMAGE_TAG }} + app.kubernetes.io/name: api-tsp-sync-cronjob + app.kubernetes.io/component: sync + app.kubernetes.io/managed-by: ansible + git.branch: {{ SCHULCLOUD_SERVER_BRANCH_NAME }} + git.repo: {{ SCHULCLOUD_SERVER_REPO_NAME }} + spec: + template: + metadata: + labels: + app: api-tsp-sync-cronjob + app.kubernetes.io/part-of: schulcloud-verbund + app.kubernetes.io/version: {{ SCHULCLOUD_SERVER_IMAGE_TAG }} + app.kubernetes.io/name: api-tsp-sync-cronjob + app.kubernetes.io/component: sync + app.kubernetes.io/managed-by: ansible + git.branch: {{ SCHULCLOUD_SERVER_BRANCH_NAME }} + git.repo: {{ SCHULCLOUD_SERVER_REPO_NAME }} + spec: + securityContext: + runAsUser: 1000 + runAsGroup: 1000 + fsGroup: 1000 + runAsNonRoot: true + containers: + - name: api-tsp-sync-cronjob + image: {{ SCHULCLOUD_SERVER_IMAGE }}:{{ SCHULCLOUD_SERVER_IMAGE_TAG }} + envFrom: + - configMapRef: + name: api-tsp-sync-cronjob-configmap + - secretRef: + name: api-secret + command: ['/bin/sh', '-c'] + args: ['npm run nest:start:sync tsp'] + resources: + limits: + cpu: {{ API_CPU_LIMITS|default("2000m", true) }} + memory: {{ API_MEMORY_LIMITS|default("2Gi", true) }} + requests: + cpu: {{ API_CPU_REQUESTS|default("100m", true) }} + memory: {{ API_MEMORY_REQUESTS|default("150Mi", true) }} + restartPolicy: OnFailure +{% if AFFINITY_ENABLE is defined and AFFINITY_ENABLE|bool %} + affinity: + podAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 20 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: app.kubernetes.io/part-of + operator: In + values: + - schulcloud-verbund + topologyKey: "kubernetes.io/hostname" + namespaceSelector: {} + - weight: 10 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: git.repo + operator: In + values: + - {{ SCHULCLOUD_SERVER_REPO_NAME }} + topologyKey: "kubernetes.io/hostname" + namespaceSelector: {} + - weight: 10 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: git.branch + operator: In + values: + - {{ SCHULCLOUD_SERVER_BRANCH_NAME }} + topologyKey: "kubernetes.io/hostname" + namespaceSelector: {} + - weight: 10 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: app.kubernetes.io/version + operator: In + values: + - {{ SCHULCLOUD_SERVER_IMAGE_TAG }} + topologyKey: "kubernetes.io/hostname" + namespaceSelector: {} +{% endif %} diff --git a/apps/server/src/apps/server.app.ts b/apps/server/src/apps/server.app.ts index b3394bf7567..2409153fc89 100644 --- a/apps/server/src/apps/server.app.ts +++ b/apps/server/src/apps/server.app.ts @@ -7,6 +7,7 @@ import { AccountService } from '@modules/account'; import { SystemRule } from '@modules/authorization/domain/rules'; import { ColumnBoardService } from '@modules/board'; +import { ContextExternalToolService } from '@src/modules/tool/context-external-tool'; import { CollaborativeStorageUc } from '@modules/collaborative-storage/uc/collaborative-storage.uc'; import { GroupService } from '@modules/group'; import { InternalServerModule } from '@modules/internal-server'; @@ -94,6 +95,8 @@ async function bootstrap() { // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access feathersExpress.services['nest-column-board-service'] = nestApp.get(ColumnBoardService); // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access + feathersExpress.services['nest-context-external-tool-service'] = nestApp.get(ContextExternalToolService); + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access feathersExpress.services['nest-system-rule'] = nestApp.get(SystemRule); // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-assignment feathersExpress.services['nest-orm'] = orm; diff --git a/apps/server/src/infra/schulconnex-client/index.ts b/apps/server/src/infra/schulconnex-client/index.ts index e31b5de998f..ef1cc753c41 100644 --- a/apps/server/src/infra/schulconnex-client/index.ts +++ b/apps/server/src/infra/schulconnex-client/index.ts @@ -1,6 +1,4 @@ export { SchulconnexRestClientOptions } from './schulconnex-rest-client-options'; -export { SchulconnexClientModule } from './schulconnex-client.module'; export { SchulconnexRestClient } from './schulconnex-rest-client'; export * from './response'; -export { schulconnexResponseFactory, schulconnexPoliciesInfoResponseFactory } from './testing'; export { SchulconnexClientConfig } from './schulconnex-client-config'; diff --git a/apps/server/src/infra/schulconnex-client/response/policies-info/index.ts b/apps/server/src/infra/schulconnex-client/response/policies-info/index.ts index d2d85b0601f..4cdc0c9a497 100644 --- a/apps/server/src/infra/schulconnex-client/response/policies-info/index.ts +++ b/apps/server/src/infra/schulconnex-client/response/policies-info/index.ts @@ -2,3 +2,7 @@ export { SchulconnexPoliciesInfoTargetResponse } from './schulconnex-policies-in export { SchulconnexPoliciesInfoResponse } from './schulconnex-policies-info-response'; export { SchulconnexPoliciesInfoActionType } from './schulconnex-policies-info-action-type'; export { SchulconnexPoliciesInfoPermissionResponse } from './schulconnex-policies-info-permission-response'; +export { SchulconnexPoliciesInfoAccessControlResponse } from './schulconnex-policies-info-access-control-response'; +export { SchulconnexPoliciesInfoErrorDescriptionResponse } from './schulconnex-policies-info-error-description-response'; +export { SchulconnexPoliciesInfoLicenseResponse } from './schulconnex-policies-info-license-response'; +export { SchulconnexPoliciesInfoErrorResponse } from './schulconnex-policies-info-error-response'; diff --git a/apps/server/src/infra/schulconnex-client/response/policies-info/schulconnex-policies-info-access-control-response.ts b/apps/server/src/infra/schulconnex-client/response/policies-info/schulconnex-policies-info-access-control-response.ts new file mode 100644 index 00000000000..41d99231c15 --- /dev/null +++ b/apps/server/src/infra/schulconnex-client/response/policies-info/schulconnex-policies-info-access-control-response.ts @@ -0,0 +1,13 @@ +import { Type } from 'class-transformer'; +import { IsObject, IsString, ValidateNested } from 'class-validator'; +import { SchulconnexPoliciesInfoErrorDescriptionResponse } from './schulconnex-policies-info-error-description-response'; + +export class SchulconnexPoliciesInfoAccessControlResponse { + @IsString() + '@type'!: string; + + @IsObject() + @ValidateNested() + @Type(() => SchulconnexPoliciesInfoErrorDescriptionResponse) + error!: SchulconnexPoliciesInfoErrorDescriptionResponse; +} diff --git a/apps/server/src/infra/schulconnex-client/response/policies-info/schulconnex-policies-info-error-description-response.ts b/apps/server/src/infra/schulconnex-client/response/policies-info/schulconnex-policies-info-error-description-response.ts new file mode 100644 index 00000000000..c5237b3e6fd --- /dev/null +++ b/apps/server/src/infra/schulconnex-client/response/policies-info/schulconnex-policies-info-error-description-response.ts @@ -0,0 +1,9 @@ +import { IsString } from 'class-validator'; + +export class SchulconnexPoliciesInfoErrorDescriptionResponse { + @IsString() + code!: string; + + @IsString() + value!: string; +} diff --git a/apps/server/src/infra/schulconnex-client/response/policies-info/schulconnex-policies-info-error-response.ts b/apps/server/src/infra/schulconnex-client/response/policies-info/schulconnex-policies-info-error-response.ts new file mode 100644 index 00000000000..bc7250a77bb --- /dev/null +++ b/apps/server/src/infra/schulconnex-client/response/policies-info/schulconnex-policies-info-error-response.ts @@ -0,0 +1,10 @@ +import { Type } from 'class-transformer'; +import { IsObject, ValidateNested } from 'class-validator'; +import { SchulconnexPoliciesInfoAccessControlResponse } from './schulconnex-policies-info-access-control-response'; + +export class SchulconnexPoliciesInfoErrorResponse { + @IsObject() + @ValidateNested() + @Type(() => SchulconnexPoliciesInfoAccessControlResponse) + access_control!: SchulconnexPoliciesInfoAccessControlResponse; +} diff --git a/apps/server/src/infra/schulconnex-client/response/policies-info/schulconnex-policies-info-license-response.ts b/apps/server/src/infra/schulconnex-client/response/policies-info/schulconnex-policies-info-license-response.ts new file mode 100644 index 00000000000..8d34dd7dbd9 --- /dev/null +++ b/apps/server/src/infra/schulconnex-client/response/policies-info/schulconnex-policies-info-license-response.ts @@ -0,0 +1,16 @@ +import { Type } from 'class-transformer'; +import { IsArray, IsObject, ValidateNested } from 'class-validator'; +import { SchulconnexPoliciesInfoPermissionResponse } from './schulconnex-policies-info-permission-response'; +import { SchulconnexPoliciesInfoTargetResponse } from './schulconnex-policies-info-target-response'; + +export class SchulconnexPoliciesInfoLicenseResponse { + @IsObject() + @ValidateNested() + @Type(() => SchulconnexPoliciesInfoTargetResponse) + target!: SchulconnexPoliciesInfoTargetResponse; + + @IsArray() + @ValidateNested({ each: true }) + @Type(() => SchulconnexPoliciesInfoPermissionResponse) + permission!: SchulconnexPoliciesInfoPermissionResponse[]; +} diff --git a/apps/server/src/infra/schulconnex-client/response/policies-info/schulconnex-policies-info-permission-response.ts b/apps/server/src/infra/schulconnex-client/response/policies-info/schulconnex-policies-info-permission-response.ts index 7e929d22957..68aa696bcd4 100644 --- a/apps/server/src/infra/schulconnex-client/response/policies-info/schulconnex-policies-info-permission-response.ts +++ b/apps/server/src/infra/schulconnex-client/response/policies-info/schulconnex-policies-info-permission-response.ts @@ -1,7 +1,8 @@ -import { IsArray } from 'class-validator'; +import { IsArray, IsString } from 'class-validator'; import { SchulconnexPoliciesInfoActionType } from './schulconnex-policies-info-action-type'; export class SchulconnexPoliciesInfoPermissionResponse { @IsArray() + @IsString({ each: true }) action!: SchulconnexPoliciesInfoActionType[]; } diff --git a/apps/server/src/infra/schulconnex-client/response/policies-info/schulconnex-policies-info-response.ts b/apps/server/src/infra/schulconnex-client/response/policies-info/schulconnex-policies-info-response.ts index 304d444efd5..454fda96a22 100644 --- a/apps/server/src/infra/schulconnex-client/response/policies-info/schulconnex-policies-info-response.ts +++ b/apps/server/src/infra/schulconnex-client/response/policies-info/schulconnex-policies-info-response.ts @@ -1,16 +1,19 @@ -import { Type } from 'class-transformer'; -import { IsArray, IsObject, ValidateNested } from 'class-validator'; -import { SchulconnexPoliciesInfoPermissionResponse } from './schulconnex-policies-info-permission-response'; -import { SchulconnexPoliciesInfoTargetResponse } from './schulconnex-policies-info-target-response'; +import { PolymorphicArrayTransform } from '@shared/controller'; +import { ClassConstructor } from 'class-transformer'; +import { IsArray, ValidateNested } from 'class-validator'; +import { SchulconnexPoliciesInfoErrorResponse } from './schulconnex-policies-info-error-response'; +import { SchulconnexPoliciesInfoLicenseResponse } from './schulconnex-policies-info-license-response'; -export class SchulconnexPoliciesInfoResponse { - @IsObject() - @ValidateNested() - @Type(() => SchulconnexPoliciesInfoTargetResponse) - target!: SchulconnexPoliciesInfoTargetResponse; +const policiesInfoDiscriminator = ( + obj: unknown +): ClassConstructor => + typeof obj === 'object' && obj !== null && 'target' in obj && 'permission' in obj + ? SchulconnexPoliciesInfoLicenseResponse + : SchulconnexPoliciesInfoErrorResponse; +export class SchulconnexPoliciesInfoResponse { @IsArray() @ValidateNested({ each: true }) - @Type(() => SchulconnexPoliciesInfoPermissionResponse) - permission!: SchulconnexPoliciesInfoPermissionResponse[]; + @PolymorphicArrayTransform(policiesInfoDiscriminator) + data!: (SchulconnexPoliciesInfoLicenseResponse | SchulconnexPoliciesInfoErrorResponse)[]; } diff --git a/apps/server/src/infra/schulconnex-client/response/schulconnex-person-response.ts b/apps/server/src/infra/schulconnex-client/response/schulconnex-person-response.ts index 2bbf3057ce6..922d80b5106 100644 --- a/apps/server/src/infra/schulconnex-client/response/schulconnex-person-response.ts +++ b/apps/server/src/infra/schulconnex-client/response/schulconnex-person-response.ts @@ -2,6 +2,7 @@ import { Type } from 'class-transformer'; import { IsObject, IsOptional, ValidateNested } from 'class-validator'; import { SchulconnexGeburtResponse } from './schulconnex-geburt-response'; import { SchulconnexNameResponse } from './schulconnex-name-response'; +import 'reflect-metadata'; export class SchulconnexPersonResponse { @IsObject() diff --git a/apps/server/src/infra/schulconnex-client/schulconnex-api.interface.ts b/apps/server/src/infra/schulconnex-client/schulconnex-api.interface.ts index 45d90ff3a17..dfc859546e8 100644 --- a/apps/server/src/infra/schulconnex-client/schulconnex-api.interface.ts +++ b/apps/server/src/infra/schulconnex-client/schulconnex-api.interface.ts @@ -6,5 +6,5 @@ export interface SchulconnexApiInterface { getPersonenInfo(params: SchulconnexPersonenInfoParams): Promise; - getPoliciesInfo(accessToken: string, options?: { overrideUrl: string }): Promise; + getPoliciesInfo(accessToken: string, options?: { overrideUrl: string }): Promise; } diff --git a/apps/server/src/infra/schulconnex-client/schulconnex-rest-client.spec.ts b/apps/server/src/infra/schulconnex-client/schulconnex-rest-client.spec.ts index 89d5b2f6711..7d802924304 100644 --- a/apps/server/src/infra/schulconnex-client/schulconnex-rest-client.spec.ts +++ b/apps/server/src/infra/schulconnex-client/schulconnex-rest-client.spec.ts @@ -5,10 +5,14 @@ import { axiosResponseFactory } from '@shared/testing'; import { Logger } from '@src/core/logger'; import { of } from 'rxjs'; import { SchulconnexConfigurationMissingLoggable } from './loggable'; -import { SchulconnexPoliciesInfoResponse, SchulconnexResponse } from './response'; +import { + SchulconnexPoliciesInfoLicenseResponse, + SchulconnexPoliciesInfoResponse, + SchulconnexResponse, +} from './response'; import { SchulconnexRestClient } from './schulconnex-rest-client'; import { SchulconnexRestClientOptions } from './schulconnex-rest-client-options'; -import { schulconnexPoliciesInfoResponseFactory, schulconnexResponseFactory } from './testing'; +import { schulconnexPoliciesInfoLicenseResponseFactory, schulconnexResponseFactory } from './testing'; describe(SchulconnexRestClient.name, () => { let client: SchulconnexRestClient; @@ -199,7 +203,8 @@ describe(SchulconnexRestClient.name, () => { describe('when requesting policies-info', () => { const setup = () => { const accessToken = 'accessToken'; - const response: SchulconnexPoliciesInfoResponse[] = schulconnexPoliciesInfoResponseFactory.buildList(1); + const response: SchulconnexPoliciesInfoLicenseResponse[] = + schulconnexPoliciesInfoLicenseResponseFactory.buildList(1); httpService.get.mockReturnValueOnce(of(axiosResponseFactory.build({ data: response }))); @@ -224,7 +229,7 @@ describe(SchulconnexRestClient.name, () => { it('should return the response', async () => { const { accessToken } = setup(); - const result: SchulconnexPoliciesInfoResponse[] = await client.getPoliciesInfo(accessToken); + const result: SchulconnexPoliciesInfoResponse = await client.getPoliciesInfo(accessToken); expect(result).toBeDefined(); }); @@ -234,7 +239,8 @@ describe(SchulconnexRestClient.name, () => { const setup = () => { const accessToken = 'accessToken'; const customUrl = 'https://override.url/policies-info'; - const response: SchulconnexPoliciesInfoResponse[] = schulconnexPoliciesInfoResponseFactory.buildList(1); + const response: SchulconnexPoliciesInfoLicenseResponse[] = + schulconnexPoliciesInfoLicenseResponseFactory.buildList(1); httpService.get.mockReturnValueOnce(of(axiosResponseFactory.build({ data: response }))); diff --git a/apps/server/src/infra/schulconnex-client/schulconnex-rest-client.ts b/apps/server/src/infra/schulconnex-client/schulconnex-rest-client.ts index 5bc86efd21e..317bd1eca38 100644 --- a/apps/server/src/infra/schulconnex-client/schulconnex-rest-client.ts +++ b/apps/server/src/infra/schulconnex-client/schulconnex-rest-client.ts @@ -8,7 +8,12 @@ import QueryString from 'qs'; import { lastValueFrom, Observable } from 'rxjs'; import { SchulconnexConfigurationMissingLoggable } from './loggable'; import { SchulconnexPersonenInfoParams } from './request'; -import { SchulconnexPoliciesInfoResponse, SchulconnexResponse } from './response'; +import { + SchulconnexPoliciesInfoErrorResponse, + SchulconnexPoliciesInfoLicenseResponse, + SchulconnexPoliciesInfoResponse, + SchulconnexResponse, +} from './response'; import { SchulconnexApiInterface } from './schulconnex-api.interface'; import { SchulconnexRestClientOptions } from './schulconnex-rest-client-options'; @@ -51,15 +56,18 @@ export class SchulconnexRestClient implements SchulconnexApiInterface { public async getPoliciesInfo( accessToken: string, options?: { overrideUrl: string } - ): Promise { + ): Promise { const url: URL = new URL(options?.overrideUrl ?? `${this.SCHULCONNEX_API_BASE_URL}/policies-info`); - const response: Promise = this.getRequest( - url, - accessToken - ); + const response: (SchulconnexPoliciesInfoLicenseResponse | SchulconnexPoliciesInfoErrorResponse)[] = + await this.getRequest<(SchulconnexPoliciesInfoLicenseResponse | SchulconnexPoliciesInfoErrorResponse)[]>( + url, + accessToken + ); - return response; + const responseObject: SchulconnexPoliciesInfoResponse = { data: response }; + + return responseObject; } private checkOptions(): boolean { diff --git a/apps/server/src/infra/schulconnex-client/testing/index.ts b/apps/server/src/infra/schulconnex-client/testing/index.ts index 7ab3afe2ff1..d60a7b3488e 100644 --- a/apps/server/src/infra/schulconnex-client/testing/index.ts +++ b/apps/server/src/infra/schulconnex-client/testing/index.ts @@ -1,2 +1,6 @@ export { schulconnexResponseFactory } from './schulconnex-response-factory'; -export { schulconnexPoliciesInfoResponseFactory } from './schulconnex-policies-info-response-factory'; +export { + schulconnexPoliciesInfoLicenseResponseFactory, + schulconnexPoliciesInfoErrorResponseFactory, + schulconnexPoliciesInfoResponseFactory, +} from './schulconnex-policies-info-response.factory'; diff --git a/apps/server/src/infra/schulconnex-client/testing/schulconnex-policies-info-response-factory.ts b/apps/server/src/infra/schulconnex-client/testing/schulconnex-policies-info-response-factory.ts deleted file mode 100644 index 38541e9e4cf..00000000000 --- a/apps/server/src/infra/schulconnex-client/testing/schulconnex-policies-info-response-factory.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Factory } from 'fishery'; -import { SchulconnexPoliciesInfoActionType, SchulconnexPoliciesInfoResponse } from '../response'; - -export const schulconnexPoliciesInfoResponseFactory = Factory.define(() => { - return { - target: { - uid: 'bildungscloud', - partOf: '', - }, - permission: [ - { - action: [SchulconnexPoliciesInfoActionType.EXECUTE], - }, - ], - }; -}); diff --git a/apps/server/src/infra/schulconnex-client/testing/schulconnex-policies-info-response.factory.ts b/apps/server/src/infra/schulconnex-client/testing/schulconnex-policies-info-response.factory.ts new file mode 100644 index 00000000000..92963e99972 --- /dev/null +++ b/apps/server/src/infra/schulconnex-client/testing/schulconnex-policies-info-response.factory.ts @@ -0,0 +1,41 @@ +import { Factory } from 'fishery'; +import { + SchulconnexPoliciesInfoActionType, + SchulconnexPoliciesInfoErrorResponse, + SchulconnexPoliciesInfoLicenseResponse, + SchulconnexPoliciesInfoResponse, +} from '../response'; + +export const schulconnexPoliciesInfoLicenseResponseFactory = Factory.define( + () => { + return { + target: { + uid: 'bildungscloud', + partOf: '', + }, + permission: [ + { + action: [SchulconnexPoliciesInfoActionType.EXECUTE], + }, + ], + }; + } +); + +export const schulconnexPoliciesInfoErrorResponseFactory = Factory.define(() => { + return { + access_control: { + '@type': 'bilo error mock', + error: { + code: '500', + value: 'something went wrong', + }, + }, + }; +}); + +export const schulconnexPoliciesInfoResponseFactory = Factory.define(() => { + return { + data: [schulconnexPoliciesInfoLicenseResponseFactory.build(), schulconnexPoliciesInfoErrorResponseFactory.build()], + }; +}); diff --git a/apps/server/src/infra/tsp-client/README.md b/apps/server/src/infra/tsp-client/README.md index 5f4e66829b7..f88fb33859b 100644 --- a/apps/server/src/infra/tsp-client/README.md +++ b/apps/server/src/infra/tsp-client/README.md @@ -29,6 +29,12 @@ export class MyNewService { ## How the code generation works +> IMPORTANT: Currently we are using the `openapi.json` and not the spec from +> https://test2.schulportal-thueringen.de/tip-ms/api/swagger.json, because we have to patch the security schemas +> manually into to the specification so the generator can generate them correctly. The provided +> specification does not contain all necessary definitions. Only the `Export` endpoints are +> decorated with the security definitions. + We are using the openapi-generator-cli to generate apis, models and supporting files in the `generated` directory. **DO NOT** modify anything in the `generated` folder, because it will be deleted on the next client generation. diff --git a/apps/server/src/infra/tsp-client/generated/api/export-api.ts b/apps/server/src/infra/tsp-client/generated/api/export-api.ts index c1b2f2b1579..3aaf7761827 100644 --- a/apps/server/src/infra/tsp-client/generated/api/export-api.ts +++ b/apps/server/src/infra/tsp-client/generated/api/export-api.ts @@ -61,6 +61,9 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication Bearer required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + if (dtLetzteAenderung !== undefined) { localVarQueryParameter['dtLetzteAenderung'] = dtLetzteAenderung; } @@ -96,6 +99,9 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication Bearer required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + if (dtLetzteAenderung !== undefined) { localVarQueryParameter['dtLetzteAenderung'] = dtLetzteAenderung; } @@ -130,6 +136,9 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication Bearer required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -161,6 +170,9 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication Bearer required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + if (dtLetzteAenderung !== undefined) { localVarQueryParameter['dtLetzteAenderung'] = dtLetzteAenderung; } @@ -195,6 +207,9 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication Bearer required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -226,6 +241,9 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication Bearer required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + if (dtLetzteAenderung !== undefined) { localVarQueryParameter['dtLetzteAenderung'] = dtLetzteAenderung; } @@ -260,6 +278,9 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication Bearer required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); diff --git a/apps/server/src/infra/tsp-client/index.ts b/apps/server/src/infra/tsp-client/index.ts index 66f5a6ebced..54d121063e1 100644 --- a/apps/server/src/infra/tsp-client/index.ts +++ b/apps/server/src/infra/tsp-client/index.ts @@ -1,3 +1,5 @@ -export * from './generated/api'; -export * from './generated/models'; -export { TspClientFactory } from './tsp-client-factory'; +export * from './generated/api'; +export * from './generated/models'; +export * from './tsp-client-config'; +export * from './tsp-client-factory'; +export * from './tsp-client.module'; diff --git a/apps/server/src/infra/tsp-client/openapi.json b/apps/server/src/infra/tsp-client/openapi.json new file mode 100644 index 00000000000..384e129af10 --- /dev/null +++ b/apps/server/src/infra/tsp-client/openapi.json @@ -0,0 +1,4780 @@ +{ + "swagger": "2.0", + "info": { "description": "TIP-Rest Api v1", "version": "1.0.0", "title": "" }, + "basePath": "/tip-ms/api", + "tags": [ + { "name": "Zugangsdaten prüfen und verwalten" }, + { "name": "geschaeftspartneradmin_aktuellestammdatenbearbeitung" }, + { "name": "geschaeftspartneradmin_benutzergruppezuordnung" }, + { "name": "geschaeftspartneradmin_benutzerrollezuordnung" }, + { "name": "geschaeftspartneradmin_kommunikation" }, + { "name": "geschaeftspartneradmin_zugangsdaten" }, + { "name": "Ilea" }, + { "name": "klasse_detail" }, + { "name": "klasse_personalzuordnung" }, + { "name": "klasse_schuelerzuordnung" }, + { "name": "Klassenbildung" }, + { "name": "Klassenuebersicht" }, + { "name": "kurs_detail" }, + { "name": "kurs_personalzuordnung" }, + { "name": "kurs_schuelerzuordnung" }, + { "name": "Kursbildung" }, + { "name": "schueler_detail" }, + { "name": "schueler_uebernahme" }, + { "name": "Schueleruebersicht" }, + { "name": "backend_schule_tsc_sso_links" }, + { "name": "backend_stammdaten_ilea_aufgabenpaketjahrgang" }, + { "name": "backend_stammdaten_tooltipbearbeiten" }, + { "name": "backend_systempflege_protokolleintrag" }, + { "name": "Mediotheksexport" }, + { "name": "Berechtigungen" }, + { "name": "Export" }, + { "name": "Klassenverwaltung" }, + { "name": "Schulpersonalverwaltung" } + ], + "schemes": ["https"], + "securityDefinitions": { + "Bearer": { + "type": "apiKey", + "name": "Authorization", + "in": "header" + } + }, + "consumes": ["application/json"], + "produces": ["application/json"], + "paths": { + "/info": { + "get": { + "operationId": "getInfo", + "produces": ["text/plain"], + "parameters": [], + "responses": { "200": { "description": "successful operation", "headers": {}, "schema": { "type": "string" } } } + } + }, + "/authentication": { + "post": { + "tags": ["Zugangsdaten prüfen und verwalten"], + "summary": "Zugangsdaten hinzufügen", + "description": "", + "operationId": "insertZugang", + "parameters": [ + { + "name": "benutzername", + "in": "formData", + "description": "benutzername", + "required": true, + "type": "string" + }, + { "name": "kennwort", "in": "formData", "description": "kennwort", "required": true, "type": "string" }, + { + "name": "kennwortWiederholung", + "in": "formData", + "description": "kennwortWiederholung", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } } } + }, + "put": { + "tags": ["Zugangsdaten prüfen und verwalten"], + "summary": "Zugangsdaten ändern", + "description": "", + "operationId": "updateZugang", + "parameters": [ + { + "name": "benutzername", + "in": "formData", + "description": "benutzername", + "required": true, + "type": "string" + }, + { + "name": "currentBenutzername", + "in": "formData", + "description": "currentBenutzername", + "required": true, + "type": "string" + }, + { + "name": "currentKennwort", + "in": "formData", + "description": "Aktuelles Kennwort", + "required": true, + "type": "string" + }, + { "name": "kennwort", "in": "formData", "description": "kennwort", "required": true, "type": "string" }, + { + "name": "kennwortWiederholung", + "in": "formData", + "description": "kennwortWiederholung", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "200": { "description": "successful operation", "schema": { "type": "boolean" } } } + } + }, + "/authentication/loginId": { + "get": { + "tags": ["Zugangsdaten prüfen und verwalten"], + "summary": "Liefert den aktuellen Benutzername", + "description": "", + "operationId": "getCurrentUser", + "parameters": [ + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } } } + } + }, + "/backend_geschaeftspartneradmin_aktuellestammdatenbearbeitung/standortzuordnungen": { + "get": { + "tags": ["geschaeftspartneradmin_aktuellestammdatenbearbeitung"], + "summary": "liefert die Stammdaten eines Geschäftspartners", + "description": "", + "operationId": "getStandortZuordnungen", + "produces": ["application/json"], + "parameters": [ + { + "name": "gepaId", + "in": "query", + "description": "ID des Geschäftspartners", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjStandortZuordnung" } } + } + } + } + }, + "/backend_geschaeftspartneradmin_aktuellestammdatenbearbeitung/dienststellen": { + "get": { + "tags": ["geschaeftspartneradmin_aktuellestammdatenbearbeitung"], + "summary": "liefert die Dienststellenliste", + "description": "", + "operationId": "getListDienststelle", + "produces": ["application/json"], + "parameters": [ + { + "name": "dienststelleNummer", + "in": "query", + "description": "Nummer der Dienststelle eingeben", + "required": false, + "type": "string" + }, + { + "name": "dienststelleName", + "in": "query", + "description": "Name der Dienststelle eingeben", + "required": false, + "type": "string" + }, + { + "name": "strasse", + "in": "query", + "description": "Straße der Dienststelle eingeben", + "required": false, + "type": "string" + }, + { + "name": "postleitzahl", + "in": "query", + "description": "Postleitzahl der Dienststelle eingeben", + "required": false, + "type": "string" + }, + { + "name": "ort", + "in": "query", + "description": "Ort der Dienststelle eingeben", + "required": false, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjDienststelle" } } + } + } + } + }, + "/backend_geschaeftspartneradmin_aktuellestammdatenbearbeitung": { + "post": { + "tags": ["geschaeftspartneradmin_aktuellestammdatenbearbeitung"], + "summary": "Setze neue Stammdienststelle", + "description": "", + "operationId": "insertStammdienststelle", + "consumes": ["application/x-www-form-urlencoded"], + "parameters": [ + { + "name": "gepaId", + "in": "formData", + "description": "ID des Geschäftspartners", + "required": true, + "type": "string" + }, + { + "name": "dienId", + "in": "formData", + "description": "ID der neuen Stammdienststelle", + "required": true, + "type": "string" + }, + { + "name": "persUser", + "in": "formData", + "description": "User der zu ändernden Person", + "required": true, + "type": "string" + }, + { + "name": "persXPts", + "in": "formData", + "description": "XPts der zu ändernden Person", + "required": true, + "type": "string" + }, + { + "name": "altPestId", + "in": "formData", + "description": "ID der letzen Person-Standort-Zuordnung", + "required": false, + "type": "string" + }, + { + "name": "altPestUser", + "in": "formData", + "description": "User der letzen Person-Standort-Zuordnung", + "required": false, + "type": "string" + }, + { + "name": "altPestXPts", + "in": "formData", + "description": "XPts der letzen Person-Standort-Zuordnung", + "required": false, + "type": "string" + }, + { + "name": "altAnscId", + "in": "formData", + "description": "ID der letzen Anschrift", + "required": false, + "type": "string" + }, + { + "name": "altAnscUser", + "in": "formData", + "description": "User der letzen Anschrift", + "required": false, + "type": "string" + }, + { + "name": "altAnscXPts", + "in": "formData", + "description": "XPts der letzen Anschrift", + "required": false, + "type": "string" + }, + { + "name": "neuPestId", + "in": "formData", + "description": "ID der neuen Person-Standort-Zuordnung", + "required": false, + "type": "string" + }, + { + "name": "neuPestUser", + "in": "formData", + "description": "User der neuen Person-Standort-Zuordnung", + "required": false, + "type": "string" + }, + { + "name": "neuPestXPts", + "in": "formData", + "description": "XPts der neuen Person-Standort-Zuordnung", + "required": false, + "type": "string" + }, + { + "name": "neuAnscId", + "in": "formData", + "description": "ID der neuen Anschrift", + "required": false, + "type": "string" + }, + { + "name": "neuAnscUser", + "in": "formData", + "description": "User der neuen Anschrift", + "required": false, + "type": "string" + }, + { + "name": "neuAnscXPts", + "in": "formData", + "description": "XPts der neuen Anschrift", + "required": false, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "default": { "description": "successful operation" } } + } + }, + "/backend_geschaeftspartneradmin_aktuellestammdatenbearbeitung/person": { + "get": { + "tags": ["geschaeftspartneradmin_aktuellestammdatenbearbeitung"], + "summary": "liefert die Stammdaten eines Geschäftspartners", + "description": "", + "operationId": "getPerson", + "produces": ["application/json"], + "parameters": [ + { + "name": "gepaId", + "in": "query", + "description": "ID des Geschäftspartners", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { "description": "successful operation", "schema": { "$ref": "#/definitions/RobjPerson" } } + } + } + }, + "/backend_geschaeftspartneradmin_benutzergruppezuordnung/zuordnungen": { + "get": { + "tags": ["geschaeftspartneradmin_benutzergruppezuordnung"], + "summary": "liefert die Gruppenzuordnungen eines Geschäftspartners", + "description": "", + "operationId": "getListBenutzergruppeZuordnungByGepa", + "produces": ["application/json"], + "parameters": [ + { + "name": "gepaId", + "in": "query", + "description": "ID des Geschäftspartners", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjBenutzergruppeZuordnung" } } + } + } + } + }, + "/backend_geschaeftspartneradmin_benutzergruppezuordnung/gruppen": { + "get": { + "tags": ["geschaeftspartneradmin_benutzergruppezuordnung"], + "summary": "liefert die Gruppen ohne die, die dem übergebenen Geschäftspartner zugeordnet sind", + "description": "", + "operationId": "getListBenutzergruppeOhneGepaGruppen", + "produces": ["application/json"], + "parameters": [ + { + "name": "gepaId", + "in": "query", + "description": "ID des Geschäftspartners", + "required": true, + "type": "string" + }, + { + "name": "benutzergruppeName", + "in": "query", + "description": "Name der Benutzergruppe", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjBenutzergruppe" } } + } + } + } + }, + "/backend_geschaeftspartneradmin_benutzergruppezuordnung/save": { + "put": { + "tags": ["geschaeftspartneradmin_benutzergruppezuordnung"], + "summary": "ermöglicht das Einfügen, Updaten, Löschen von Benutzergruppenzuordnungen eines Geschäftspartners", + "description": "", + "operationId": "insertGruppenzuordnungen", + "produces": ["application/json"], + "parameters": [ + { + "name": "jsonZuordnung", + "in": "formData", + "description": "Daten der Benutzergruppenzuordnungen im JSON Format", + "required": true, + "type": "string" + }, + { + "name": "gepaId", + "in": "query", + "description": "ID des Geschäftspartners", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "default": { "description": "successful operation" } } + } + }, + "/backend_geschaeftspartneradmin_benutzerrollezuordnung/auswahl_klasse": { + "get": { + "tags": ["geschaeftspartneradmin_benutzerrollezuordnung"], + "summary": "liefert die Klassenliste", + "description": "", + "operationId": "getListAuswahlKlassen", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjKlasse" } } + } + } + } + }, + "/backend_geschaeftspartneradmin_benutzerrollezuordnung/schulen": { + "get": { + "tags": ["geschaeftspartneradmin_benutzerrollezuordnung"], + "summary": "liefert die Schulenliste", + "description": "", + "operationId": "getListSchulen", + "produces": ["application/json"], + "parameters": [ + { + "name": "dienststellennummer", + "in": "query", + "description": "Nummer der Schule eingeben", + "required": false, + "type": "string" + }, + { + "name": "name", + "in": "query", + "description": "Name der Schule eingeben", + "required": false, + "type": "string" + }, + { + "name": "strasse", + "in": "query", + "description": "Straße der Schule eingeben", + "required": false, + "type": "string" + }, + { + "name": "postleitzahl", + "in": "query", + "description": "Postleitzahl der Schule eingeben", + "required": false, + "type": "string" + }, + { + "name": "ort", + "in": "query", + "description": "Ort der Schule eingeben", + "required": false, + "type": "string" + }, + { + "name": "schulartId", + "in": "query", + "description": "ID der Schulart eingeben", + "required": false, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjSchule" } } + } + } + } + }, + "/backend_geschaeftspartneradmin_benutzerrollezuordnung/save": { + "put": { + "tags": ["geschaeftspartneradmin_benutzerrollezuordnung"], + "summary": "ermöglicht das Einfügen, Updaten, Löschen von Benutzerrollenzuordnungen eines Geschäftspartners", + "description": "", + "operationId": "updateBenutzerrolleZuordnung", + "produces": ["application/json"], + "parameters": [ + { + "name": "jsonZuordnung", + "in": "formData", + "description": "Daten der Benutzerrollenzuordnungen im JSON Format", + "required": true, + "type": "string" + }, + { + "name": "gepaId", + "in": "query", + "description": "ID des Geschäftspartners", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "default": { "description": "successful operation" } } + } + }, + "/backend_geschaeftspartneradmin_benutzerrollezuordnung/listeRolleZuordnung": { + "get": { + "tags": ["geschaeftspartneradmin_benutzerrollezuordnung"], + "summary": "liefert die Rollenzuordnungen eines Geschäftspartners", + "description": "", + "operationId": "getListBenutzerrolleZuordnungByGepa", + "produces": ["application/json"], + "parameters": [ + { + "name": "gepaId", + "in": "query", + "description": "GepaId des Geschäftspartners", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjBenutzerrolleZuordnung" } } + } + } + } + }, + "/backend_geschaeftspartneradmin_kommunikation": { + "get": { + "tags": ["geschaeftspartneradmin_kommunikation"], + "summary": "liefert die Kommunikationsverbindungen eines Geschäftspartners", + "description": "", + "operationId": "getListeKommunikationByGepaId", + "produces": ["application/json"], + "parameters": [ + { + "name": "gepaId", + "in": "query", + "description": "GepaId des Geschäftspartners", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjKommunikation" } } + } + } + }, + "put": { + "tags": ["geschaeftspartneradmin_kommunikation"], + "summary": "ermöglicht das Einfügen und Löschen von Kommunikationsverbindungen eines Geschäftspartners", + "description": "", + "operationId": "updateGepaKommunikation", + "parameters": [ + { "name": "gepaId", "in": "formData", "required": false, "type": "string" }, + { "name": "kommunikationJson", "in": "formData", "required": false, "type": "string" }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "default": { "description": "successful operation" } } + } + }, + "/backend_geschaeftspartneradmin_kommunikation/auswahl_kommunikationsart": { + "get": { + "tags": ["geschaeftspartneradmin_kommunikation"], + "summary": "liefert die Kommunikationsarten als Auswahlliste", + "description": "", + "operationId": "getAuswahlKommunikationsart", + "produces": ["application/json"], + "parameters": [ + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_geschaeftspartneradmin_zugangsdaten": { + "get": { + "tags": ["geschaeftspartneradmin_zugangsdaten"], + "summary": "liefert die Zugangsdaten eines Geschäftspartners", + "description": "", + "operationId": "getZugangsdaten", + "produces": ["application/json"], + "parameters": [ + { + "name": "gepaId", + "in": "query", + "description": "GepaId des Geschäftspartners", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { "description": "successful operation", "schema": { "$ref": "#/definitions/DobjZugangsdaten" } } + } + }, + "put": { + "tags": ["geschaeftspartneradmin_zugangsdaten"], + "summary": "ändern die Zugangsdaten eines Geschäftspartners", + "description": "", + "operationId": "updateZugangsdaten", + "parameters": [ + { + "name": "jsonZugang", + "in": "formData", + "description": "Zugangsdaten im JSON Format", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "default": { "description": "successful operation" } } + } + }, + "/public_backend_kennwortneu": { + "put": { + "summary": "Zugangsdaten ändern", + "description": "", + "operationId": "updateZugang_1", + "consumes": ["application/x-www-form-urlencoded"], + "produces": ["application/json"], + "parameters": [ + { + "name": "currentBenutzername", + "in": "formData", + "description": "currentBenutzername", + "required": true, + "type": "string" + }, + { + "name": "currentKennwort", + "in": "formData", + "description": "currentKennwort", + "required": true, + "type": "string" + }, + { "name": "kennwort", "in": "formData", "description": "kennwort", "required": true, "type": "string" }, + { + "name": "kennwortWiederholung", + "in": "formData", + "description": "kennwortWiederholung", + "required": true, + "type": "string" + } + ], + "responses": { "200": { "description": "successful operation", "schema": { "type": "boolean" } } } + } + }, + "/public_backend_kennwortneu/getKennwortLaenge": { + "get": { + "summary": "Liefert den zulaessigen Wert für die Kennwortlaenge.", + "description": "", + "operationId": "getKennwortLaenge", + "parameters": [], + "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } } } + } + }, + "/public_backend_report": { + "get": { + "summary": "Liefert einen Kopfzeileninformationen für Reports", + "description": "", + "operationId": "getKopfzeilenInformationen", + "produces": ["application/json"], + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "schema": { "$ref": "#/definitions/DobjKopfzeilenInformationen" } + } + } + } + }, + "/backend_schule_ilea/searchExamen": { + "get": { + "tags": ["Ilea"], + "summary": "liefert alle Examen einer Schule", + "description": "", + "operationId": "getListExamen", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjExamen" } } + } + } + } + }, + "/backend_schule_ilea/examen": { + "get": { + "tags": ["Ilea"], + "summary": "liefert ein Examen samt Teilnehmer einer Schule", + "description": "", + "operationId": "getExamen", + "produces": ["application/json"], + "parameters": [ + { + "name": "examenId", + "in": "query", + "description": "ID des Examen eingeben", + "required": true, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { "description": "successful operation", "schema": { "$ref": "#/definitions/DobjExamen" } } + } + }, + "post": { + "tags": ["Ilea"], + "summary": "Einfügen eines Examen", + "description": "", + "operationId": "insertExam", + "consumes": ["application/x-www-form-urlencoded"], + "produces": ["application/json"], + "parameters": [ + { + "name": "jsonExamen", + "in": "formData", + "description": "Daten des Examen im JSON Format", + "required": true, + "type": "string" + }, + { "name": "schuleId", "in": "query", "description": "Schule ID", "required": true, "type": "string" }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } } } + }, + "delete": { + "tags": ["Ilea"], + "summary": "löscht ein Examen samt aller Unterdaten", + "description": "", + "operationId": "deleteExamen", + "produces": ["application/json"], + "parameters": [ + { + "name": "jsonExamenIds", + "in": "formData", + "description": "ID des Examen eingeben", + "required": true, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "default": { "description": "successful operation" } } + } + }, + "/backend_schule_ilea/teilnehmer": { + "get": { + "tags": ["Ilea"], + "summary": "liefert alle Teilnehmer eines Examen", + "description": "", + "operationId": "getListExamenTeilnehmer", + "produces": ["application/json"], + "parameters": [ + { "name": "schuleId", "in": "query", "description": "ID der Schule", "required": true, "type": "string" }, + { "name": "examenId", "in": "query", "description": "ID des Examen", "required": true, "type": "string" }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjSchueler" } } + } + } + } + }, + "/backend_schule_ilea/schueler": { + "get": { + "tags": ["Ilea"], + "summary": "liefert alle Schueler einer Klasse", + "description": "", + "operationId": "getListSchueler", + "produces": ["application/json"], + "parameters": [ + { "name": "schuleId", "in": "query", "description": "ID der Schule", "required": true, "type": "string" }, + { "name": "kursId", "in": "query", "description": "ID der Klasse", "required": true, "type": "string" }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjSchueler" } } + } + } + } + }, + "/backend_schule_ilea/auswertung": { + "get": { + "tags": ["Ilea"], + "summary": "liefert ein Examen samt Teilnehmer einer Schule", + "description": "", + "operationId": "getAuswertung", + "produces": ["application/json"], + "parameters": [ + { + "name": "examenId", + "in": "query", + "description": "ID des Examen eingeben", + "required": true, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { "description": "successful operation", "schema": { "$ref": "#/definitions/DobjDatei" } } + } + } + }, + "/backend_schule_ilea/auswahl_kurs": { + "get": { + "tags": ["Ilea"], + "summary": "liefert alle aktiven Kurse der schule", + "description": "", + "operationId": "getListkurs", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { + "name": "ileaPaketCode", + "in": "query", + "description": "ileaPaketCode", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_schule_ilea/aufgaben": { + "get": { + "tags": ["Ilea"], + "summary": "liefert alle aufgaben", + "description": "", + "operationId": "getListAufgaben", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" }, + { "name": "paketCode", "in": "query", "description": "paketCode", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/IleaAufgabe" } } + } + } + } + }, + "/backend_schule_ilea/auswahl_aufgabenpaket": { + "get": { + "tags": ["Ilea"], + "summary": "liefert alle Aufgabenpakete", + "description": "", + "operationId": "getListAufgabenpaket", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAufgabenpaketAuswahl" } } + } + } + } + }, + "/backend_schule_ilea/printExamen": { + "get": { + "tags": ["Ilea"], + "summary": "Liefert Examen im Format PDF zurück.", + "description": "", + "operationId": "print", + "parameters": [ + { + "name": "examenId", + "in": "query", + "description": "ID des Examen eingeben", + "required": true, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "hostname", "in": "query", "description": "hostname", "required": true, "type": "string" }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "default": { "description": "successful operation" } } + } + }, + "/backend_schule_klasse_detail/schueler_vorgaengerklasse": { + "get": { + "tags": ["klasse_detail"], + "summary": "Liefert die Schueler einer bestimmten Klasse.", + "description": "", + "operationId": "getListSchueler_1", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "klasseId", "in": "query", "description": "KlasseID eingeben", "required": true, "type": "string" }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjSchueler" } } + } + } + } + }, + "/backend_schule_klasse_detail/auswahl_halbjahr": { + "get": { + "tags": ["klasse_detail"], + "summary": "liefert die Halbjahreliste", + "description": "", + "operationId": "getListHalbjahr", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjHalbjahr" } } + } + } + } + }, + "/backend_schule_klasse_detail/{id}": { + "get": { + "tags": ["klasse_detail"], + "summary": "liest eine Klasse", + "description": "", + "operationId": "getKlasse", + "produces": ["application/json"], + "parameters": [ + { "name": "id", "in": "path", "description": "ID der Klasse eingeben", "required": true, "type": "string" }, + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { "description": "successful operation", "schema": { "$ref": "#/definitions/DobjKlasse" } } + } + }, + "put": { + "tags": ["klasse_detail"], + "summary": "modifiziert eine Klasse", + "description": "", + "operationId": "updateKlasse", + "produces": ["application/json"], + "parameters": [ + { + "name": "jsonKlasse", + "in": "formData", + "description": "Daten der Klasse im JSON Format", + "required": false, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } } } + }, + "delete": { + "tags": ["klasse_detail"], + "summary": "löscht eine Klasse", + "description": "", + "operationId": "deleteKlasse", + "parameters": [ + { "name": "id", "in": "path", "description": "ID der Klasse", "required": true, "type": "string" }, + { + "name": "version", + "in": "formData", + "description": "Zeitstempel der Klasse", + "required": true, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } } } + } + }, + "/backend_schule_klasse_detail": { + "post": { + "tags": ["klasse_detail"], + "summary": "Einfügen einer Klasse", + "description": "", + "operationId": "insertKlasse", + "consumes": ["application/x-www-form-urlencoded"], + "produces": ["application/json"], + "parameters": [ + { + "name": "jsonKlasse", + "in": "formData", + "description": "Daten der Klasse im JSON Format", + "required": true, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } } } + } + }, + "/backend_schule_klasse_detail/auswahl_vorgaengerKlasse": { + "get": { + "tags": ["klasse_detail"], + "summary": "Liefert die Klassen eines des vorangegangen Halbjahres für eine Auswahlliste.", + "description": "", + "operationId": "getListAuswahlVorgaengerKlassen", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { + "name": "halbjahrId", + "in": "query", + "description": "HalbjahrID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjVorgaengerklasse" } } + } + } + } + }, + "/backend_schule_klasse_personalzuordnung/auswahl_klassenlehrerFunktion": { + "get": { + "tags": ["klasse_personalzuordnung"], + "summary": "Liefert die möglichen Funktionen von Lehrern für eine Auswahlliste", + "description": "", + "operationId": "getListAuswahlKlassenlehrerFunktion", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjKodierung" } } + } + } + } + }, + "/backend_schule_klasse_personalzuordnung/auswahl_klassenlehrer": { + "get": { + "tags": ["klasse_personalzuordnung"], + "summary": "Liefert die Lehrer einer Schule für eine Auswahlliste", + "description": "", + "operationId": "getListAuswahlKlassenlehrer", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjKodierung" } } + } + } + } + }, + "/backend_schule_klasse_personalzuordnung": { + "get": { + "tags": ["klasse_personalzuordnung"], + "summary": "liest die Personalzuordnungen", + "description": "", + "operationId": "getPersonalzuordnung", + "produces": ["application/json"], + "parameters": [ + { + "name": "klasseId", + "in": "query", + "description": "ID der Klasse eingeben", + "required": true, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjKlassenlehrerZuordnung" } } + } + } + }, + "put": { + "tags": ["klasse_personalzuordnung"], + "summary": "modifiziert die Personalzuordnungen", + "description": "", + "operationId": "updatePersonalzuordnung", + "produces": ["application/json"], + "parameters": [ + { + "name": "jsonPersonalzuordnungen", + "in": "formData", + "description": "Daten der Personalzuordnungen im JSON Format", + "required": false, + "type": "string" + }, + { "name": "klasseId", "in": "formData", "description": "ID der Klasse", "required": true, "type": "string" }, + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } } } + } + }, + "/backend_schule_klasse_schuelerzuordnung/auswahl_klasse": { + "get": { + "tags": ["klasse_schuelerzuordnung"], + "summary": "liefert die Klassenliste", + "description": "", + "operationId": "getListAuswahlKlassenByHalbjahr", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { + "name": "halbjahrId", + "in": "query", + "description": "HalbjahrID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjKlasse" } } + } + } + } + }, + "/backend_schule_klasse_schuelerzuordnung/auswahl_halbjahr": { + "get": { + "tags": ["klasse_schuelerzuordnung"], + "summary": "liefert die Halbjahreliste", + "description": "", + "operationId": "getListHalbjahr_1", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjHalbjahr" } } + } + } + } + }, + "/backend_schule_klasse_schuelerzuordnung": { + "get": { + "tags": ["klasse_schuelerzuordnung"], + "summary": "liefert Schülerzuordnungen zu Klassen", + "description": "", + "operationId": "getListSchuelerzuordnung", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuelerNachname", + "in": "query", + "description": "Nachname des Schülers eingeben", + "required": false, + "type": "string" + }, + { + "name": "schuelerVorname", + "in": "query", + "description": "Vorname des Schülers eingeben", + "required": false, + "type": "string" + }, + { + "name": "klasseId", + "in": "query", + "description": "Id der Klasse eingeben", + "required": false, + "type": "string" + }, + { + "name": "halbjahrId", + "in": "query", + "description": "ID des Halbjahres eingeben", + "required": false, + "type": "string" + }, + { "name": "kzAktiv", "in": "query", "description": "Ist Aktiv", "required": false, "type": "string" }, + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" }, + { + "name": "currentKlasseId", + "in": "query", + "description": "ID der aktuellen Klasse", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjSchuelerzuordnung" } } + } + } + }, + "put": { + "tags": ["klasse_schuelerzuordnung"], + "summary": "Überträgt Schüler in eine neue Klasse", + "description": "", + "operationId": "updateSchuelerzuordnung", + "produces": ["application/json"], + "parameters": [ + { + "name": "jsonSchueler", + "in": "formData", + "description": "Daten der Schüler im JSON Format", + "required": true, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { + "name": "zielKlasseId", + "in": "query", + "description": "ID der Zielklasse eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjHalbjahr" } } + } + } + } + }, + "/backend_schule_klassenbildung/auswahl_halbjahr": { + "get": { + "tags": ["Klassenbildung"], + "summary": "liefert die Halbjahreliste", + "description": "", + "operationId": "getListHalbjahr_2", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjHalbjahr" } } + } + } + } + }, + "/backend_schule_klassenbildung": { + "get": { + "tags": ["Klassenbildung"], + "summary": "liefert Klassen", + "description": "", + "operationId": "getListKlasse", + "produces": ["application/json"], + "parameters": [ + { + "name": "name", + "in": "query", + "description": "Name der Klasse eingeben", + "required": false, + "type": "string" + }, + { + "name": "halbjahrId", + "in": "query", + "description": "ID des Halbjahres eingeben", + "required": false, + "type": "string" + }, + { "name": "kzAktiv", "in": "query", "description": "Ist Aktiv", "required": false, "type": "string" }, + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjKlasse" } } + } + } + } + }, + "/backend_schule_klassenbildung/print": { + "get": { + "tags": ["Klassenbildung"], + "summary": "Liefert die Statistik als Dokument im Format PDF zurück.", + "description": "", + "operationId": "print_1", + "produces": ["application/json"], + "parameters": [ + { "name": "schuleId", "in": "query", "description": "schuleId", "required": true, "type": "string" }, + { "name": "name", "in": "query", "description": "name", "required": true, "type": "string" }, + { "name": "halbjahrId", "in": "query", "description": "halbjahrId", "required": true, "type": "string" }, + { "name": "kzAktiv", "in": "query", "description": "kzAktiv", "required": true, "type": "string" }, + { "name": "selectedIds", "in": "query", "description": "selectedIds", "required": true, "type": "string" }, + { "name": "reportTyp", "in": "query", "description": "reportTyp", "required": true, "type": "string" }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { "description": "successful operation", "schema": { "$ref": "#/definitions/DobjDatei" } } + } + } + }, + "/backend_schule_klassenuebersicht/schueler": { + "get": { + "tags": ["Klassenuebersicht"], + "summary": "liest einen Schüler", + "description": "", + "operationId": "getSchueler", + "produces": ["application/json"], + "parameters": [ + { "name": "id", "in": "query", "description": "Schüler ID eingeben", "required": true, "type": "string" }, + { + "name": "klasseId", + "in": "query", + "description": "Klassen ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { "description": "successful operation", "schema": { "$ref": "#/definitions/RobjSchueler" } } + } + } + }, + "/backend_schule_kurs_detail/schueler_klasse": { + "get": { + "tags": ["kurs_detail"], + "summary": "Liefert die Schueler einer bestimmten Kurs.", + "description": "", + "operationId": "getListSchueler_2", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "klasseId", "in": "query", "description": "KlasseId eingeben", "required": true, "type": "string" }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjSchueler" } } + } + } + } + }, + "/backend_schule_kurs_detail/{id}": { + "get": { + "tags": ["kurs_detail"], + "summary": "liest eine Kurs", + "description": "", + "operationId": "getKurs", + "produces": ["application/json"], + "parameters": [ + { "name": "id", "in": "path", "description": "ID der Kurs eingeben", "required": true, "type": "string" }, + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { "description": "successful operation", "schema": { "$ref": "#/definitions/DobjKurs" } } + } + }, + "put": { + "tags": ["kurs_detail"], + "summary": "modifiziert eine Kurs", + "description": "", + "operationId": "updateKurs", + "produces": ["application/json"], + "parameters": [ + { + "name": "jsonKurs", + "in": "formData", + "description": "Daten der Kurs im JSON Format", + "required": false, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } } } + }, + "delete": { + "tags": ["kurs_detail"], + "summary": "löscht eine Kurs", + "description": "", + "operationId": "deleteKurs", + "parameters": [ + { "name": "id", "in": "path", "description": "ID der Kurs", "required": true, "type": "string" }, + { + "name": "version", + "in": "formData", + "description": "Zeitstempel der Kurs", + "required": true, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } } } + } + }, + "/backend_schule_kurs_detail/auswahl_fachrichtung": { + "get": { + "tags": ["kurs_detail"], + "summary": "liefert die Fachrichtungen", + "description": "", + "operationId": "getListFachrichtung", + "produces": ["application/json"], + "parameters": [ + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_schule_kurs_detail/auswahl_stufe": { + "get": { + "tags": ["kurs_detail"], + "summary": "liefert die Stufe", + "description": "", + "operationId": "getListStufe", + "produces": ["application/json"], + "parameters": [ + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_schule_kurs_detail": { + "post": { + "tags": ["kurs_detail"], + "summary": "Einfügen einer Kurs", + "description": "", + "operationId": "insertKurs", + "consumes": ["application/x-www-form-urlencoded"], + "produces": ["application/json"], + "parameters": [ + { + "name": "jsonKurs", + "in": "formData", + "description": "Daten der Kurs im JSON Format", + "required": true, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } } } + } + }, + "/backend_schule_kurs_detail/auswahl_Klasse": { + "get": { + "tags": ["kurs_detail"], + "summary": "Liefert die Kurs eines des vorangegangen Halbjahres für eine Auswahlliste.", + "description": "", + "operationId": "getListAuswahlVorgaengerKurs", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { + "name": "halbjahrId", + "in": "query", + "description": "HalbjahrID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjVorgaengerkurs" } } + } + } + } + }, + "/backend_schule_kurs_detail/auswahl_halbjahr": { + "get": { + "tags": ["kurs_detail"], + "summary": "liefert die Halbjahreliste", + "description": "", + "operationId": "getListHalbjahr_3", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjHalbjahr" } } + } + } + } + }, + "/backend_schule_kurs_personalzuordnung/auswahl_kurslehrer": { + "get": { + "tags": ["kurs_personalzuordnung"], + "summary": "Liefert die Lehrer einer Schule für eine Auswahlliste", + "description": "", + "operationId": "getListAuswahlKurslehrer", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjKodierung" } } + } + } + } + }, + "/backend_schule_kurs_personalzuordnung/auswahl_kurslehrerFunktion": { + "get": { + "tags": ["kurs_personalzuordnung"], + "summary": "Liefert die möglichen Funktionen von Lehrern für eine Auswahlliste", + "description": "", + "operationId": "getListAuswahlKurslehrerFunktion", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjKodierung" } } + } + } + } + }, + "/backend_schule_kurs_personalzuordnung": { + "get": { + "tags": ["kurs_personalzuordnung"], + "summary": "liest die Personalzuordnungen", + "description": "", + "operationId": "getPersonalzuordnung_1", + "produces": ["application/json"], + "parameters": [ + { + "name": "kursId", + "in": "query", + "description": "ID der Kurs eingeben", + "required": true, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjKurslehrerZuordnung" } } + } + } + }, + "put": { + "tags": ["kurs_personalzuordnung"], + "summary": "modifiziert die Personalzuordnungen", + "description": "", + "operationId": "updatePersonalzuordnung_1", + "produces": ["application/json"], + "parameters": [ + { + "name": "jsonPersonalzuordnungen", + "in": "formData", + "description": "Daten der Personalzuordnungen im JSON Format", + "required": false, + "type": "string" + }, + { "name": "kursId", "in": "formData", "description": "ID der Kurs", "required": true, "type": "string" }, + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } } } + } + }, + "/backend_schule_kurs_schuelerzuordnung/suchen_schueler": { + "get": { + "tags": ["kurs_schuelerzuordnung"], + "summary": "liefert Schülerzuordnungen zu Kurs", + "description": "", + "operationId": "getListSchueler_3", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuelerNachname", + "in": "query", + "description": "Nachname des Schülers eingeben", + "required": false, + "type": "string" + }, + { + "name": "schuelerVorname", + "in": "query", + "description": "Vorname des Schülers eingeben", + "required": false, + "type": "string" + }, + { + "name": "kursId", + "in": "query", + "description": "Id der Kurs eingeben", + "required": false, + "type": "string" + }, + { + "name": "klasseId", + "in": "query", + "description": "Id der Klasse eingeben", + "required": false, + "type": "string" + }, + { + "name": "halbjahrId", + "in": "query", + "description": "ID des Halbjahres eingeben", + "required": false, + "type": "string" + }, + { "name": "kzAktiv", "in": "query", "description": "Ist Aktiv", "required": false, "type": "string" }, + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" }, + { + "name": "currentKursId", + "in": "query", + "description": "ID dem aktuellen Kurs", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjSchuelerzuordnung" } } + } + } + } + }, + "/backend_schule_kurs_schuelerzuordnung/auswahl_halbjahr": { + "get": { + "tags": ["kurs_schuelerzuordnung"], + "summary": "liefert die Halbjahreliste", + "description": "", + "operationId": "getListHalbjahr_4", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjHalbjahr" } } + } + } + } + }, + "/backend_schule_kurs_schuelerzuordnung": { + "get": { + "tags": ["kurs_schuelerzuordnung"], + "operationId": "getListSchuelerzuordnung_1", + "consumes": ["text/html"], + "produces": ["application/json"], + "parameters": [ + { "name": "kursId", "in": "query", "description": "Klasse ID eingeben", "required": false, "type": "string" }, + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "headers": {}, + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjSchuelerzuordnung" } } + } + } + }, + "put": { + "tags": ["kurs_schuelerzuordnung"], + "summary": "Überträgt Schüler in einen neuen Kurs", + "description": "", + "operationId": "updateSchuelerzuordnung_1", + "produces": ["application/json"], + "parameters": [ + { + "name": "jsonSchueler", + "in": "formData", + "description": "Daten der Schüler im JSON Format", + "required": true, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { + "name": "zielKursId", + "in": "query", + "description": "ID der Zielkurs eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "default": { "description": "successful operation" } } + } + }, + "/backend_schule_kurs_schuelerzuordnung/auswahl_kurs": { + "get": { + "tags": ["kurs_schuelerzuordnung"], + "summary": "liefert die Kursliste", + "description": "", + "operationId": "getListAuswahlKursByHalbjahr", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { + "name": "halbjahrId", + "in": "query", + "description": "HalbjahrID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjKurs" } } + } + } + } + }, + "/backend_schule_kursbildung": { + "get": { + "tags": ["Kursbildung"], + "summary": "liefert Kurse", + "description": "", + "operationId": "getListKurs_1", + "produces": ["application/json"], + "parameters": [ + { + "name": "name", + "in": "query", + "description": "Name der Kurs eingeben", + "required": false, + "type": "string" + }, + { + "name": "halbjahrId", + "in": "query", + "description": "ID des Halbjahres eingeben", + "required": false, + "type": "string" + }, + { "name": "kzAktiv", "in": "query", "description": "Ist Aktiv", "required": false, "type": "string" }, + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjKurs" } } + } + } + } + }, + "/backend_schule_kursbildung/auswahl_halbjahr": { + "get": { + "tags": ["Kursbildung"], + "summary": "liefert die Halbjahreliste", + "description": "", + "operationId": "getListHalbjahr_5", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjHalbjahr" } } + } + } + } + }, + "/backend_schule_kursbildung/print": { + "get": { + "tags": ["Kursbildung"], + "summary": "Liefert die Statistik als Dokument im Format PDF zurück.", + "description": "", + "operationId": "print_2", + "produces": ["application/json"], + "parameters": [ + { "name": "schuleId", "in": "query", "description": "schuleId", "required": true, "type": "string" }, + { "name": "name", "in": "query", "description": "name", "required": true, "type": "string" }, + { "name": "halbjahrId", "in": "query", "description": "halbjahrId", "required": true, "type": "string" }, + { "name": "kzAktiv", "in": "query", "description": "kzAktiv", "required": true, "type": "string" }, + { "name": "selectedIds", "in": "query", "description": "selectedIds", "required": true, "type": "string" }, + { "name": "reportTyp", "in": "query", "description": "reportTyp", "required": true, "type": "string" }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { "description": "successful operation", "schema": { "$ref": "#/definitions/DobjDatei" } } + } + } + }, + "/backend_schule_schueler_detail/{id}": { + "get": { + "tags": ["schueler_detail"], + "summary": "liest einen Schüler", + "description": "", + "operationId": "getSchueler_1", + "produces": ["application/json"], + "parameters": [ + { "name": "id", "in": "path", "description": "Schüler ID eingeben", "required": true, "type": "string" }, + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { "description": "successful operation", "schema": { "$ref": "#/definitions/DobjSchueler" } } + } + }, + "put": { + "tags": ["schueler_detail"], + "summary": "modifiziert einen Schüler", + "description": "", + "operationId": "updateSchueler", + "produces": ["application/json"], + "parameters": [ + { "name": "id", "in": "path", "description": "Schüler ID", "required": true, "type": "string" }, + { "name": "version", "in": "formData", "description": "Version", "required": true, "type": "string" }, + { + "name": "vorname", + "in": "formData", + "description": "Vorname des Schülers", + "required": true, + "type": "string" + }, + { + "name": "nachname", + "in": "formData", + "description": "Nachname des Schülers", + "required": true, + "type": "string" + }, + { + "name": "geburtsdatum", + "in": "formData", + "description": "geburtsdatum", + "required": true, + "type": "string" + }, + { + "name": "email", + "in": "formData", + "description": "Email des Schülers", + "required": false, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } } } + } + }, + "/backend_schule_schueler_detail/auswahl_halbjahr_aktuell": { + "get": { + "tags": ["schueler_detail"], + "summary": "liefert die Halbjahreliste", + "description": "", + "operationId": "getListHalbjahrAktuell", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjHalbjahr" } } + } + } + } + }, + "/backend_schule_schueler_detail/auswahl_klasse": { + "get": { + "tags": ["schueler_detail"], + "summary": "liefert die Klassenliste", + "description": "", + "operationId": "getListAuswahlKlassenByHalbjahr_1", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { + "name": "halbjahrId", + "in": "query", + "description": "HalbjahrID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjKlasse" } } + } + } + } + }, + "/backend_schule_schueler_detail": { + "post": { + "tags": ["schueler_detail"], + "summary": "Einfügen eines Schülers", + "description": "", + "operationId": "insertSchueler", + "consumes": ["application/x-www-form-urlencoded"], + "parameters": [ + { + "name": "vorname", + "in": "formData", + "description": "Vorname des Schülers", + "required": true, + "type": "string" + }, + { + "name": "nachname", + "in": "formData", + "description": "Nachname des Schülers", + "required": true, + "type": "string" + }, + { + "name": "geburtsdatum", + "in": "formData", + "description": "geburtsdatum", + "required": true, + "type": "string" + }, + { + "name": "klasseId", + "in": "formData", + "description": "Klasse-ID eingeben", + "required": true, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } } } + } + }, + "/backend_schule_schueler_uebernahme/auswahl_halbjahr": { + "get": { + "tags": ["schueler_uebernahme"], + "summary": "liefert die Halbjahreliste", + "description": "", + "operationId": "getListHalbjahr_6", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjHalbjahr" } } + } + } + } + }, + "/backend_schule_schueler_uebernahme/klasse": { + "get": { + "tags": ["schueler_uebernahme"], + "summary": "liefert Klassen", + "description": "", + "operationId": "getListKlasse_1", + "produces": ["application/json"], + "parameters": [ + { + "name": "name", + "in": "query", + "description": "Name der Klasse eingeben", + "required": false, + "type": "string" + }, + { + "name": "halbjahrId", + "in": "query", + "description": "ID des Halbjahres eingeben", + "required": false, + "type": "string" + }, + { "name": "kzAktiv", "in": "query", "description": "Ist Aktiv", "required": false, "type": "string" }, + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjKlasse" } } + } + } + } + }, + "/backend_schule_schueler_uebernahme": { + "get": { + "tags": ["schueler_uebernahme"], + "summary": "liefert freigegebene Schüler", + "description": "", + "operationId": "getListFreigegebeneSchueler", + "consumes": ["text/html"], + "produces": ["application/json"], + "parameters": [ + { + "name": "nachname", + "in": "query", + "description": "Nachname des Schülers", + "required": false, + "type": "string" + }, + { + "name": "vorname", + "in": "query", + "description": "Vorname des Schülers", + "required": false, + "type": "string" + }, + { + "name": "geburtsdatum", + "in": "query", + "description": "Geburtsdatum des Schülers", + "required": false, + "type": "string" + }, + { + "name": "kzAktuellerSchuleZugeordnet", + "in": "query", + "description": "Kennzeichen, dass die Schüler der übergebenen Schule zugeordnet sind", + "required": false, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjSchueler" } } + } + } + }, + "put": { + "tags": ["schueler_uebernahme"], + "summary": "übernimmt Schüler in gewählte Klasse", + "description": "", + "operationId": "transferSchueler", + "produces": ["application/json"], + "parameters": [ + { + "name": "jsonSchueler", + "in": "formData", + "description": "Daten der Schüler im JSON Format", + "required": true, + "type": "string" + }, + { + "name": "zielKlasseId", + "in": "query", + "description": "ID der Zielklasse eingeben", + "required": true, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "default": { "description": "successful operation" } } + } + }, + "/backend_schule_schueleruebersicht/schulen": { + "get": { + "tags": ["Schueleruebersicht"], + "summary": "liefert die Schulenliste", + "description": "", + "operationId": "getListSchulen_1", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { + "name": "schulnummer", + "in": "query", + "description": "Nummer der Schule eingeben", + "required": false, + "type": "string" + }, + { + "name": "schulname", + "in": "query", + "description": "Name der Schule eingeben", + "required": false, + "type": "string" + }, + { + "name": "strasse", + "in": "query", + "description": "Straße der Schule eingeben", + "required": false, + "type": "string" + }, + { + "name": "postleitzahl", + "in": "query", + "description": "Postleitzahl der Schule eingeben", + "required": false, + "type": "string" + }, + { + "name": "ort", + "in": "query", + "description": "Ort der Schule eingeben", + "required": false, + "type": "string" + }, + { + "name": "schulartId", + "in": "query", + "description": "ID der Schulart eingeben", + "required": false, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjSchule" } } + } + } + } + }, + "/backend_schule_schueleruebersicht/auswahl_klasse": { + "get": { + "tags": ["Schueleruebersicht"], + "summary": "liefert die Klassenliste", + "description": "", + "operationId": "getListAuswahlKlassenByHalbjahr_2", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { + "name": "halbjahrId", + "in": "query", + "description": "HalbjahrID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjKlasse" } } + } + } + } + }, + "/backend_schule_schueleruebersicht/auswahl_halbjahr": { + "get": { + "tags": ["Schueleruebersicht"], + "summary": "liefert die Halbjahreliste", + "description": "", + "operationId": "getListHalbjahr_7", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjHalbjahr" } } + } + } + } + }, + "/backend_schule_schueleruebersicht": { + "get": { + "tags": ["Schueleruebersicht"], + "summary": "liefert die Schüler", + "description": "", + "operationId": "getListSchuelerzuordnung_2", + "consumes": ["text/html"], + "produces": ["application/json"], + "parameters": [ + { + "name": "name", + "in": "query", + "description": "Name der Klasse eingeben", + "required": false, + "type": "string" + }, + { + "name": "halbjahrId", + "in": "query", + "description": "ID des Halbjahres eingeben", + "required": false, + "type": "string" + }, + { + "name": "klasseId", + "in": "query", + "description": "Klasse ID eingeben", + "required": false, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjSchuelerzuordnung" } } + } + } + } + }, + "/backend_schule_schueleruebersicht/schuelerfreigabe": { + "put": { + "tags": ["Schueleruebersicht"], + "summary": "Gibt die ausgewählten Schüler zur Übernahme frei.", + "description": "", + "operationId": "schuelerFreigeben", + "produces": ["application/json"], + "parameters": [ + { + "name": "listSchuelerId", + "in": "query", + "description": "Liste der Schüler-IDs", + "required": true, + "type": "array", + "items": { "type": "string" }, + "collectionFormat": "multi" + }, + { + "name": "wunschschuleId", + "in": "formData", + "description": "ID der Wunschschule eingeben", + "required": false, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "default": { "description": "successful operation" } } + } + }, + "/backend_schule_schueleruebersicht/schueler_archivieren": { + "delete": { + "tags": ["Schueleruebersicht"], + "summary": "Archiviert alle ausgewählten Schüler.", + "description": "", + "operationId": "deleteKlasse_1", + "parameters": [ + { + "name": "listSchuelerId", + "in": "query", + "description": "Liste der Schüler-IDs", + "required": true, + "type": "array", + "items": { "type": "string" }, + "collectionFormat": "multi" + }, + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "default": { "description": "successful operation" } } + } + }, + "/backend_schule_schueleruebersicht/print": { + "get": { + "tags": ["Schueleruebersicht"], + "summary": "Liefert die Statistik als Dokument im Format PDF zurück.", + "description": "", + "operationId": "print_3", + "produces": ["application/json"], + "parameters": [ + { "name": "schuleId", "in": "query", "description": "schuleId", "required": true, "type": "string" }, + { "name": "selectedIds", "in": "query", "description": "selectedIds", "required": true, "type": "string" }, + { "name": "reportTyp", "in": "query", "description": "reportTyp", "required": true, "type": "string" }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { "description": "successful operation", "schema": { "$ref": "#/definitions/DobjDatei" } } + } + } + }, + "/backend_schule_tsc_sso_links": { + "get": { + "tags": ["backend_schule_tsc_sso_links"], + "summary": "liest eine Klasse", + "description": "", + "operationId": "getList", + "produces": ["application/json"], + "parameters": [ + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjSsoLink" } } + } + } + } + }, + "/backend_stammdaten_ilea_aufgabenpaketjahrgang/suche": { + "get": { + "tags": ["backend_stammdaten_ilea_aufgabenpaketjahrgang"], + "summary": "Liefert die Ilea-Aufgabenpakete", + "description": "", + "operationId": "getIleaAufgabenpakete", + "produces": ["application/json"], + "parameters": [ + { "name": "jahrgang", "in": "query", "description": "jahrgang", "required": true, "type": "string" }, + { + "name": "listAufgabenpaketCode", + "in": "query", + "description": "aufgabenpaketCode", + "required": true, + "type": "array", + "items": { "type": "string" }, + "collectionFormat": "multi" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjAufgabepaket" } } + } + } + } + }, + "/backend_stammdaten_ilea_aufgabenpaketjahrgang": { + "post": { + "tags": ["backend_stammdaten_ilea_aufgabenpaketjahrgang"], + "summary": "Einfügen eine Aufgabenpaket-Zuordnung", + "description": "", + "operationId": "insertZuordnung", + "consumes": ["application/x-www-form-urlencoded"], + "produces": ["application/json"], + "parameters": [ + { + "name": "jsonAufgabenpaket", + "in": "formData", + "description": "Daten des Aufgabenpakets im JSON Format", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "default": { "description": "successful operation" } } + }, + "delete": { + "tags": ["backend_stammdaten_ilea_aufgabenpaketjahrgang"], + "summary": "Entfernt Aufgabenpaket Zuordnung/en.", + "description": "", + "operationId": "listZuordnungId", + "parameters": [ + { + "name": "listZuordnungId", + "in": "query", + "description": "Liste der Zuordnung-IDs", + "required": true, + "type": "array", + "items": { "type": "string" }, + "collectionFormat": "multi" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "default": { "description": "successful operation" } } + } + }, + "/backend_stammdaten_ilea_aufgabenpaketjahrgang/auswahl_jahrgang": { + "get": { + "tags": ["backend_stammdaten_ilea_aufgabenpaketjahrgang"], + "summary": "liefert die Jahrgänge", + "description": "", + "operationId": "getListJahrgang", + "produces": ["application/json"], + "parameters": [ + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_stammdaten_ilea_aufgabenpaketjahrgang/auswahl_aufgabenpaket": { + "get": { + "tags": ["backend_stammdaten_ilea_aufgabenpaketjahrgang"], + "summary": "liefert alle Aufgabenpakete", + "description": "", + "operationId": "getListAufgabenpaket_1", + "produces": ["application/json"], + "parameters": [ + { + "name": "aufgabenpaket", + "in": "query", + "description": "aufgabenpaket", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAufgabenpaketAuswahl" } } + } + } + } + }, + "/backend_stammdaten_tooltipbearbeiten/suche": { + "get": { + "tags": ["backend_stammdaten_tooltipbearbeiten"], + "summary": "Liefert eine Liste mit Tooltips.", + "description": "", + "operationId": "getListTooltip", + "produces": ["application/json"], + "parameters": [ + { + "name": "komponente", + "in": "query", + "description": "Code der Komponente", + "required": false, + "type": "string" + }, + { "name": "feld", "in": "query", "description": "Name des Feldes", "required": false, "type": "string" }, + { "name": "text", "in": "query", "description": "Text des Tooltips", "required": false, "type": "string" }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjTooltip" } } + } + } + } + }, + "/backend_stammdaten_tooltipbearbeiten/auswahl_komponente": { + "get": { + "tags": ["backend_stammdaten_tooltipbearbeiten"], + "summary": "Liefert eine Auswahlliste der Komponenten für die Tooltipkonfiguration.", + "description": "", + "operationId": "getAuswahlKomponente", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_stammdaten_tooltipbearbeiten/tooltiptext_update": { + "put": { + "tags": ["backend_stammdaten_tooltipbearbeiten"], + "summary": "Ändert den Text eines Tooltips.", + "description": "", + "operationId": "tooltiptextUpdate", + "produces": ["application/json"], + "parameters": [ + { "name": "id", "in": "formData", "description": "ID des Tooltips", "required": true, "type": "string" }, + { "name": "text", "in": "formData", "description": "Text des Tooltips", "required": true, "type": "string" }, + { "name": "version", "in": "formData", "description": "Version", "required": true, "type": "string" }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "default": { "description": "successful operation" } } + } + }, + "/backend_stammdaten_tooltipbearbeiten/{id}": { + "get": { + "tags": ["backend_stammdaten_tooltipbearbeiten"], + "summary": "Liefert die Daten eines Tooltips.", + "description": "", + "operationId": "getTooltip", + "produces": ["application/json"], + "parameters": [ + { "name": "id", "in": "path", "description": "ID des Tooltips", "required": true, "type": "string" }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { "description": "successful operation", "schema": { "$ref": "#/definitions/RobjTooltip" } } + } + } + }, + "/backend_statistik_veranstaltung/auswahl_auswertungstyp": { + "get": { + "summary": "Liefert Auswahlliste Auswertungstyp", + "description": "", + "operationId": "getAuswahlAuswertungstyp", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahlGruppiert" } } + } + } + } + }, + "/backend_statistik_veranstaltung/auswahl_mandant": { + "get": { + "summary": "Liefert Auswahlliste Mandant", + "description": "", + "operationId": "getAuswahlMandant", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_statistik_veranstaltung/auswahl_eigentuemer": { + "get": { + "summary": "Liefert Auswahlliste Eigentümer", + "description": "", + "operationId": "getAuswahlEigentuemer", + "parameters": [ + { "name": "mandId", "in": "query", "description": "mandId", "required": false, "type": "string" }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_statistik_veranstaltung/auswahl_arbeitsbereich": { + "get": { + "summary": "Liefert Auswahlliste Arbeitsbereich", + "description": "", + "operationId": "getAuswahlArbeitsbereich", + "parameters": [ + { "name": "mandId", "in": "query", "description": "mandId", "required": false, "type": "string" }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_statistik_veranstaltung/auswahl_kostenstelle": { + "get": { + "summary": "Liefert Auswahlliste Kostenstelle", + "description": "", + "operationId": "getAuswahlKostenstelle", + "parameters": [ + { "name": "mandId", "in": "query", "description": "mandId", "required": false, "type": "string" }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_statistik_veranstaltung/auswahl_organisationsform": { + "get": { + "summary": "Liefert Auswahlliste Organisationsform", + "description": "", + "operationId": "getAuswahlOrganisationsform", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_statistik_veranstaltung/auswahl_veranstaltungsstatus": { + "get": { + "summary": "Liefert Auswahlliste Veranstaltungsstatus", + "description": "", + "operationId": "getAuswahlVeranstaltungsstatus", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_statistik_veranstaltung/auswahl_zielgruppe": { + "get": { + "summary": "Liefert Auswahlliste Zielgruppe", + "description": "", + "operationId": "getAuswahlZielgruppe", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_statistik_veranstaltung/auswahl_schulart": { + "get": { + "summary": "Liefert Auswahlliste Schulart", + "description": "", + "operationId": "getAuswahlSchulart", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_statistik_veranstaltung/auswahl_gueltigkeitsbereich": { + "get": { + "summary": "Liefert Auswahlliste Gültigkeitsbereich", + "description": "", + "operationId": "getAuswahlGueltigkeitsbereich", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_statistik_veranstaltung/auswahl_fachrichtung": { + "get": { + "summary": "Liefert Auswahlliste Fachrichtung", + "description": "", + "operationId": "getAuswahlFachrichtung", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_statistik_veranstaltung/auswahl_abrechnungsstatus": { + "get": { + "summary": "Liefert Auswahlliste Fachrichtung", + "description": "", + "operationId": "getAuswahlAbrechnungsstatus", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_statistik_veranstaltung/auswahl_fortbildungsart": { + "get": { + "summary": "Liefert Auswahlliste Fortbildungsart", + "description": "", + "operationId": "getAuswahlFortbildungsart", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_statistik_veranstaltung/auswahl_veranstaltungsart": { + "get": { + "summary": "Liefert Auswahlliste Veranstaltungsart", + "description": "", + "operationId": "getAuswahlVeranstaltungsart", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_statistik_veranstaltung/auswahl_schwerpunkt": { + "get": { + "summary": "Liefert Auswahlliste Schwerpunkt", + "description": "", + "operationId": "getAuswahlSchwerpunkt", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_statistik_veranstaltung/auswahl_stichwort": { + "get": { + "summary": "Liefert Auswahlliste Stichwort", + "description": "", + "operationId": "getAuswahlStichwort", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_statistik_veranstaltung/auswahl_dozent": { + "get": { + "summary": "Liefert Auswahlliste Stichwort", + "description": "", + "operationId": "getAuswahlDozent", + "parameters": [ + { "name": "name", "in": "query", "description": "name", "required": true, "type": "string" }, + { "name": "ort", "in": "query", "description": "ort", "required": true, "type": "string" }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_statistik_veranstaltung/auswahl_leitung": { + "get": { + "summary": "Liefert Auswahlliste Stichwort", + "description": "", + "operationId": "getAuswahlLeitung", + "parameters": [ + { "name": "name", "in": "query", "description": "name", "required": true, "type": "string" }, + { "name": "ort", "in": "query", "description": "ort", "required": true, "type": "string" }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_statistik_veranstaltung/spaltenoption": { + "get": { + "summary": "Liefert die Spaltenoptionen für die Ergebnisliste.", + "description": "", + "operationId": "getSpaltenoptionen", + "parameters": [ + { + "name": "auswertungstypGruppeCode", + "in": "query", + "description": "auswertungstypGruppeCode", + "required": true, + "type": "string" + }, + { "name": "resultsetId", "in": "query", "description": "resultsetId", "required": true, "type": "string" }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjSpaltenoption" } } + } + } + } + }, + "/backend_statistik_veranstaltung/print": { + "get": { + "summary": "Liefert die Statistik als Dokument im Format PDF oder Excel zurück.", + "description": "", + "operationId": "print_4", + "produces": ["application/json"], + "parameters": [ + { + "name": "jsonReportBobj", + "in": "query", + "description": "JSON Objekt mit Suchparametern", + "required": false, + "type": "string" + }, + { "name": "reportFormat", "in": "query", "description": "reportFormat", "required": true, "type": "string" }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { "description": "successful operation", "schema": { "$ref": "#/definitions/DobjDatei" } } + } + } + }, + "/backend_statistik_veranstaltung": { + "get": { + "summary": "Liefert Vesg Statistik", + "description": "", + "operationId": "search", + "parameters": [ + { + "name": "jsonSearchBobj", + "in": "query", + "description": "JSON Objekt mit Suchparametern", + "required": false, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { "description": "successful operation", "schema": { "$ref": "#/definitions/DobjStatistik" } } + } + } + }, + "/backend_systempflege_protokolleintrag/auswahl_protokolleintragSchweregrad": { + "get": { + "tags": ["backend_systempflege_protokolleintrag"], + "summary": "Liefert eine Auswahlliste der Schweregrade des Logeintritts.", + "description": "", + "operationId": "getAuswahlProtokolleintragSchweregrad", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/backend_systempflege_protokolleintrag/details": { + "get": { + "tags": ["backend_systempflege_protokolleintrag"], + "summary": "Liefert die Daten eines Fehlereintritts.", + "description": "", + "operationId": "getProtokolleintrag", + "produces": ["application/json"], + "parameters": [ + { + "name": "logUID", + "in": "query", + "description": "Nummer des Fehlereintritts", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { "description": "successful operation", "schema": { "$ref": "#/definitions/RobjProtokolleintrag" } } + } + } + }, + "/backend_systempflege_protokolleintrag/suche": { + "get": { + "tags": ["backend_systempflege_protokolleintrag"], + "summary": "Liefert eine Liste mit Fehlereintritten.", + "description": "", + "operationId": "getListProtokolleintrag", + "produces": ["application/json"], + "parameters": [ + { + "name": "jsonSearchBobj", + "in": "query", + "description": "JSON Objekt mit Suchparametern", + "required": false, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjProtokolleintrag" } } + } + } + } + }, + "/backend_systempflege_protokolleintrag/auswahl_protokolleintragTyp": { + "get": { + "tags": ["backend_systempflege_protokolleintrag"], + "summary": "Liefert eine Auswahlliste der Logeintrittstypen.", + "description": "", + "operationId": "getAuswahlProtokolleintragTyp", + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahl" } } + } + } + } + }, + "/public_backend_tooltip": { + "get": { + "summary": "Liefert einen Tooltip", + "description": "", + "operationId": "get", + "produces": ["application/json"], + "parameters": [{ "name": "key", "in": "query", "description": "key", "required": true, "type": "string" }], + "responses": { "200": { "description": "successful operation", "schema": { "$ref": "#/definitions/Value" } } } + } + }, + "/public_mediothek_metadatenexport/publicMediendatei": { + "get": { + "tags": ["Mediotheksexport"], + "summary": "Liefert alle Metadaten.", + "description": "Sortiert nach letzte Änderung (pts)", + "operationId": "getAll", + "produces": ["application/json"], + "parameters": [ + { + "name": "pts", + "in": "query", + "description": "Letzte Änderung der Datei", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjMediumdatei" } } + } + } + } + }, + "/permission/reload_syei": { + "get": { + "tags": ["Berechtigungen"], + "operationId": "reload_syei", + "parameters": [], + "responses": { "default": { "description": "successful operation" } } + } + }, + "/permission/reload_bere": { + "get": { + "tags": ["Berechtigungen"], + "operationId": "reload_bere", + "parameters": [], + "responses": { "default": { "description": "successful operation" } } + } + }, + "/permission": { + "get": { + "tags": ["Berechtigungen"], + "summary": "Ruft technische Objekte auf Basis eines Präfix ab.", + "description": "", + "operationId": "get_1", + "produces": ["application/json"], + "parameters": [ + { + "name": "prefix", + "in": "query", + "description": "Präfix auf deren Basis die technischen Objekte geholt werden", + "required": false, + "type": "string" + }, + { + "name": "rolleObjektId", + "in": "query", + "description": "Id bei Rollenberechtigungen", + "required": false, + "type": "string" + }, + { + "name": "rolleObjektName", + "in": "query", + "description": "Name bei Rollenberechtigungen", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "$ref": "#/definitions/Objekt zur Beantwortung von Berechtigungsanfragen" } + }, + "401": { + "description": "Fehler mit oder bei der Authentifizierung.", + "schema": { "$ref": "#/definitions/Fehlerantwort" } + }, + "400": { + "description": "Fehlerhafte Authentifizierungsdaten.", + "schema": { "$ref": "#/definitions/Fehlerantwort" } + } + } + } + }, + "/schulverwaltung_export_klasse": { + "get": { + "tags": ["Export"], + "security": [ + { + "Bearer": [] + } + ], + "summary": "liefert eine Liste von allen geändert oder erstellten Klassen seit dem gegebenen Datum", + "description": "", + "operationId": "exportKlasseList", + "produces": ["application/json"], + "parameters": [ + { + "name": "dtLetzteAenderung", + "in": "query", + "description": "Datum der letzten Änderung eingeben", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjExportKlasse" } } + } + } + } + }, + "/schulverwaltung_export_lehrer_migration": { + "get": { + "tags": ["Export"], + "security": [ + { + "Bearer": [] + } + ], + "summary": "liefert eine Liste von allen Lehrern. Zu einem Lehrer wird die alte und die neue uid geliefert.", + "description": "", + "operationId": "exportLehrerListMigration", + "produces": ["application/json"], + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjExportLehrerMigration" } } + } + } + } + }, + "/schulverwaltung_export_lehrer": { + "get": { + "tags": ["Export"], + "security": [ + { + "Bearer": [] + } + ], + "summary": "liefert eine Liste von allen geändert oder erstellten Lehrer seit dem gegebenen Datum", + "description": "", + "operationId": "exportLehrerList", + "produces": ["application/json"], + "parameters": [ + { + "name": "dtLetzteAenderung", + "in": "query", + "description": "Datum der letzten Änderung eingeben", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjExportLehrer" } } + } + } + } + }, + "/schulverwaltung_export_schueler_migration": { + "get": { + "tags": ["Export"], + "security": [ + { + "Bearer": [] + } + ], + "summary": "liefert eine Liste von allen Lehrern. Zu einem Schüler wird die alte und die neue uid geliefert.", + "description": "", + "operationId": "exportSchuelerListMigration", + "produces": ["application/json"], + "parameters": [], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjExportSchuelerMigration" } } + } + } + } + }, + "/schulverwaltung_export_schueler": { + "get": { + "tags": ["Export"], + "security": [ + { + "Bearer": [] + } + ], + "summary": "liefert eine Liste von allen geändert oder erstellten Schüler seit dem gegebenen Datum", + "description": "", + "operationId": "exportSchuelerList", + "produces": ["application/json"], + "parameters": [ + { + "name": "dtLetzteAenderung", + "in": "query", + "description": "Datum der letzten Änderung eingeben", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjExportSchueler" } } + } + } + } + }, + "/schulverwaltung_export_schule": { + "get": { + "tags": ["Export"], + "security": [ + { + "Bearer": [] + } + ], + "summary": "liefert eine Liste von allen geändert oder erstellten Schulen seit dem gegebenen Datum", + "description": "", + "operationId": "exportSchuleList", + "produces": ["application/json"], + "parameters": [ + { + "name": "dtLetzteAenderung", + "in": "query", + "description": "Datum der letzten Änderung eingeben", + "required": false, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjExportSchule" } } + } + } + } + }, + "/schulverwaltung_export_version": { + "get": { + "tags": ["Export"], + "security": [ + { + "Bearer": [] + } + ], + "summary": "liefert die aktuelle Version zurück", + "description": "", + "operationId": "version", + "produces": ["application/json"], + "parameters": [], + "responses": { + "200": { "description": "successful operation", "schema": { "$ref": "#/definitions/VersionResponse" } } + } + } + }, + "/schulverwaltung_klasse": { + "get": { + "tags": ["Klassenverwaltung"], + "summary": "liefert Klassen", + "description": "", + "operationId": "getListKlasse_2", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjKlasse" } } + } + } + }, + "post": { + "tags": ["Klassenverwaltung"], + "summary": "Einfügen einer Klasse", + "description": "", + "operationId": "insertKlasse_1", + "consumes": ["application/x-www-form-urlencoded"], + "produces": ["application/json"], + "parameters": [ + { "name": "name", "in": "formData", "description": "Name der Klasse", "required": true, "type": "string" }, + { + "name": "klassenlehrerId", + "in": "formData", + "description": "Lehrer-ID", + "required": false, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } } } + } + }, + "/schulverwaltung_klasse/{id}": { + "put": { + "tags": ["Klassenverwaltung"], + "summary": "modifiziert eine Klasse", + "description": "", + "operationId": "updateKlasse_1", + "produces": ["application/json"], + "parameters": [ + { "name": "id", "in": "path", "description": "Klasse-ID", "required": true, "type": "string" }, + { + "name": "version", + "in": "formData", + "description": "Zeitstempel der Klasse", + "required": false, + "type": "string" + }, + { "name": "name", "in": "formData", "description": "Name der Klasse", "required": true, "type": "string" }, + { + "name": "klassenlehrerId", + "in": "formData", + "description": "Lehrer-ID", + "required": false, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } } } + }, + "delete": { + "tags": ["Klassenverwaltung"], + "summary": "löscht eine Klasse", + "description": "", + "operationId": "deleteKlasse_2", + "parameters": [ + { "name": "id", "in": "path", "description": "ID der Klasse", "required": true, "type": "string" }, + { + "name": "version", + "in": "formData", + "description": "Zeitstempel der Klasse", + "required": true, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } } } + } + }, + "/public_schuelerregistrierung/bestaetigungscode": { + "post": { + "summary": "Es testet die Formularangaben und erzeugt einen Bestätigungscode", + "description": "", + "operationId": "createBestaetigungscode", + "parameters": [ + { "name": "vorname", "in": "formData", "description": "vorname", "required": true, "type": "string" }, + { "name": "nachname", "in": "formData", "description": "nachname", "required": true, "type": "string" }, + { + "name": "geburtsdatum", + "in": "formData", + "description": "geburtsdatum", + "required": true, + "type": "string" + }, + { "name": "email", "in": "formData", "description": "email", "required": true, "type": "string" }, + { + "name": "emailWiederholung", + "in": "formData", + "description": "wiederholung", + "required": true, + "type": "string" + }, + { + "name": "registrierungCode", + "in": "formData", + "description": "registrierungscode", + "required": true, + "type": "string" + }, + { + "name": "kzEinverstaendnis1", + "in": "formData", + "description": "kzEinverstaendnis1", + "required": true, + "type": "string" + }, + { + "name": "kzEinverstaendnis2", + "in": "formData", + "description": "kzEinverstaendnis2", + "required": true, + "type": "string" + }, + { + "name": "kzEinverstaendnis3", + "in": "formData", + "description": "kzEinverstaendnis3", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "200": { "description": "successful operation", "schema": { "type": "boolean" } } } + } + }, + "/public_schuelerregistrierung": { + "post": { + "summary": "Zugangsdaten einpflegen", + "description": "", + "operationId": "insertZugangsdaten", + "parameters": [ + { "name": "vorname", "in": "formData", "description": "vorname", "required": true, "type": "string" }, + { "name": "nachname", "in": "formData", "description": "nachname", "required": true, "type": "string" }, + { + "name": "geburtsdatum", + "in": "formData", + "description": "geburtsdatum", + "required": true, + "type": "string" + }, + { "name": "email", "in": "formData", "description": "email", "required": true, "type": "string" }, + { + "name": "emailWiederholung", + "in": "formData", + "description": "wiederholung", + "required": true, + "type": "string" + }, + { + "name": "registrierungCode", + "in": "formData", + "description": "registrierungscode", + "required": true, + "type": "string" + }, + { + "name": "kzEinverstaendnis1", + "in": "formData", + "description": "kzEinverstaendnis1", + "required": true, + "type": "string" + }, + { + "name": "kzEinverstaendnis2", + "in": "formData", + "description": "kzEinverstaendnis2", + "required": true, + "type": "string" + }, + { + "name": "kzEinverstaendnis3", + "in": "formData", + "description": "kzEinverstaendnis3", + "required": true, + "type": "string" + }, + { + "name": "benutzername", + "in": "formData", + "description": "benutzername", + "required": true, + "type": "string" + }, + { "name": "kennwort", "in": "formData", "description": "kennwort", "required": true, "type": "string" }, + { + "name": "kennwortWiederholung", + "in": "formData", + "description": "kennwortWiederholung", + "required": true, + "type": "string" + }, + { + "name": "bestaetigungscode", + "in": "formData", + "description": "bestaetigungscode", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "200": { "description": "successful operation", "schema": { "type": "boolean" } } } + } + }, + "/schulverwaltung_schueler": { + "get": { + "summary": "liefert die Schüler", + "description": "", + "operationId": "getListSchueler_4", + "consumes": ["text/html"], + "produces": ["application/json"], + "parameters": [ + { + "name": "klasseId", + "in": "query", + "description": "Klasse ID eingeben", + "required": false, + "type": "string" + }, + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { + "name": "maxResults", + "in": "query", + "description": "Max zum anzeigen", + "required": false, + "type": "integer", + "format": "int32" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjSchueler" } } + } + } + } + }, + "/schulverwaltung_schueler/einladung": { + "get": { + "summary": "Einfügen eines Schülers", + "description": "", + "operationId": "getEinladung", + "produces": ["application/json"], + "parameters": [ + { + "name": "listEinladungId", + "in": "query", + "description": "einladungId", + "required": true, + "type": "array", + "items": { "type": "string" }, + "collectionFormat": "multi" + }, + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "klasseId", "in": "query", "description": "klasseId eingeben", "required": true, "type": "string" }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { "description": "successful operation", "schema": { "$ref": "#/definitions/DobjDatei" } } + } + }, + "post": { + "summary": "Einfügen eines Schülers", + "description": "", + "operationId": "createEinladung", + "produces": ["application/json"], + "parameters": [ + { + "name": "listSchuelerId", + "in": "query", + "description": "Liste der Schüler-IDs", + "required": true, + "type": "array", + "items": { "type": "string" }, + "collectionFormat": "multi" + }, + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { "description": "successful operation", "schema": { "type": "array", "items": { "type": "string" } } } + } + } + }, + "/schulverwaltung_schule/{schuleId}": { + "get": { + "summary": "liefert eine Schule", + "description": "", + "operationId": "getSchule", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "path", + "description": "ID der Schule eingeben", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { "description": "successful operation", "schema": { "$ref": "#/definitions/DobjSchule" } } + } + } + }, + "/schulverwaltung_schule": { + "get": { + "summary": "liefert Schulen", + "description": "", + "operationId": "getListSchule", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "ID der Schule eingeben", + "required": false, + "type": "string" + }, + { + "name": "schulenName", + "in": "query", + "description": "Name der Schule eingeben", + "required": false, + "type": "string" + }, + { + "name": "dienststellennummer", + "in": "query", + "description": "Dienststellennummer", + "required": false, + "type": "string" + }, + { "name": "schultyp", "in": "query", "description": "Schultyp", "required": false, "type": "string" }, + { "name": "plz", "in": "query", "description": "Plz", "required": false, "type": "string" }, + { "name": "ort", "in": "query", "description": "Ort", "required": false, "type": "string" }, + { "name": "hausnummer", "in": "query", "description": "Hausnummer", "required": false, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/DobjSchule" } } + } + } + } + }, + "/schulverwaltung_schulpersonal": { + "get": { + "tags": ["Schulpersonalverwaltung"], + "summary": "Liefert die Lehrer einer Schule", + "description": "", + "operationId": "getListSchulpersonal", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjSchulpersonal" } } + } + } + } + }, + "/schulverwaltung_schulpersonal/auswahlliste": { + "get": { + "tags": ["Schulpersonalverwaltung"], + "summary": "Liefert die Lehrer einer Schule in einer Auswahlliste", + "description": "", + "operationId": "getListAuswahl", + "produces": ["application/json"], + "parameters": [ + { + "name": "schuleId", + "in": "query", + "description": "Schule ID eingeben", + "required": true, + "type": "string" + }, + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { "type": "array", "items": { "$ref": "#/definitions/RobjSchulpersonal" } } + } + } + } + }, + "/zugangsdaten_bearbeiten/current_user": { + "get": { + "summary": "Lifert den aktuellen Benutzername", + "description": "", + "operationId": "getCurrentUser_1", + "parameters": [ + { "name": "authToken", "in": "query", "description": "authToken", "required": true, "type": "string" } + ], + "responses": { "200": { "description": "successful operation", "schema": { "type": "string" } } } + } + } + }, + "definitions": { + "RobjStandortZuordnung": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "dienName1": { "type": "string" }, + "dienName2": { "type": "string" }, + "dienNr": { "type": "string" }, + "dienId": { "type": "string" }, + "orgUser": { "type": "string" }, + "orgXPts": { "type": "string" }, + "kzBevorzugt": { "type": "string" }, + "anschriftId": { "type": "string" }, + "anschriftUser": { "type": "string" }, + "anschriftXPts": { "type": "string" }, + "anschriftIdReferenz": { "type": "string" } + } + }, + "RobjDienststelle": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "gepa_id": { "type": "string" }, + "GEPA_NAME_1": { "type": "string" }, + "gepa_ortv_name": { "type": "string" }, + "gepa_strv_name": { "type": "string" }, + "anschriftId": { "type": "string" } + } + }, + "RobjPerson": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "orgUser": { "type": "string" }, + "orgXPts": { "type": "string" } + } + }, + "RobjBenutzergruppeZuordnung": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "name": { "type": "string" }, + "orgUser": { "type": "string" }, + "orgXPts": { "type": "string" } + } + }, + "RobjBenutzergruppe": { + "type": "object", + "properties": { "id": { "type": "string" }, "version": { "type": "string" }, "name": { "type": "string" } } + }, + "RobjKlasse": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "name": { "type": "string" }, + "schuleId": { "type": "string" }, + "klassenlehrerName": { "type": "string" }, + "listKlassenlehrer": { "type": "array", "items": { "$ref": "#/definitions/RobjKlassenlehrerZuordnung" } }, + "kzMeineKlasse": { "type": "string" } + } + }, + "RobjSchule": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "ROWS_TOTAL": { "type": "integer", "format": "int32" }, + "RESULTSET_ID": { "type": "string" }, + "schulnummer": { "type": "string" }, + "schulname": { "type": "string" }, + "schulartDecode": { "type": "string" }, + "ort": { "type": "string" }, + "strasse": { "type": "string" } + } + }, + "RobjBenutzerrolleZuordnung": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "tscAuthUID": { "type": "string" }, + "tscAuthUID_label": { "type": "string" }, + "dienststellennummer": { "type": "string" }, + "rolle": { "type": "string" }, + "dtGueltigAb": { "type": "string" }, + "dtGueltigBis": { "type": "string" }, + "kzEdit": { "type": "string" }, + "kzDelete": { "type": "string" } + } + }, + "DobjAuswahl": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "fieldLabel": { "type": "string" }, + "selectLabel": { "type": "string" } + } + }, + "RobjKommunikation": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "artCode": { "type": "string" }, + "artDecode": { "type": "string" }, + "verbindung": { "type": "string" }, + "kzBevorzugt": { "type": "string" }, + "orgUser": { "type": "string" }, + "orgXPts": { "type": "string" } + } + }, + "DobjZugangsdaten": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "loginId": { "type": "string" }, + "kzKennwortAbgelaufen": { "type": "string" }, + "kennwortGueltigBis": { "type": "string" }, + "zugangGueltigAb": { "type": "string" }, + "zugangGueltigBis": { "type": "string" } + } + }, + "DobjKopfzeilenInformationen": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "KopfSpalteLinksZeile1": { "type": "string" }, + "KopfSpalteLinksZeile2": { "type": "string" }, + "KopfSpalteLinksZeile3": { "type": "string" }, + "KopfSpalteRechtsZeile1": { "type": "string" }, + "KopfSpalteRechtsZeile2": { "type": "string" }, + "KopfSpalteRechtsZeile3": { "type": "string" } + } + }, + "RobjExamen": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "examenUid": { "type": "string" }, + "schuleId": { "type": "string" }, + "schuleName": { "type": "string" }, + "schuleNummer": { "type": "string" }, + "kursName": { "type": "string" }, + "kursId": { "type": "string" }, + "ileaPaketCode": { "type": "string" }, + "ileaPaketFachCode": { "type": "string" }, + "ileaPaketJahrgangsstufe": { "type": "string" }, + "dtExamenBeginn": { "type": "string" }, + "dtExamenEnde": { "type": "string" }, + "dtExamenErstelltAm": { "type": "string" }, + "dtExamenGeaendertAm": { "type": "string" } + } + }, + "DobjExamen": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "examenUID": { "type": "string" }, + "schuleId": { "type": "string" }, + "schuleName": { "type": "string" }, + "schuleNummer": { "type": "string" }, + "kursName": { "type": "string" }, + "kursId": { "type": "string" }, + "ileaPaketCode": { "type": "string" }, + "ileaPaketFachCode": { "type": "string" }, + "ileaPaketJahrgangsstufe": { "type": "string" }, + "dtExamenBeginn": { "type": "string" }, + "beginnDatum": { "type": "string" }, + "dtExamenEnde": { "type": "string" }, + "endeDatum": { "type": "string" }, + "dtErstelltAm": { "type": "string" }, + "erstelltDurch": { "type": "string" }, + "dtGeaendertAm": { "type": "string" }, + "geandertDurch": { "type": "string" }, + "listSchueler": { "type": "array", "items": { "$ref": "#/definitions/DobjTeilnehmer" } } + } + }, + "DobjTeilnehmer": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "teilnahmeCode": { "type": "string" }, + "schuelerId": { "type": "string" }, + "nachname": { "type": "string" }, + "vorname": { "type": "string" }, + "geburtsdatum": { "type": "string" }, + "checked": { "type": "boolean" }, + "isNew": { "type": "boolean" } + } + }, + "RobjSchueler": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "nachname": { "type": "string" }, + "vorname": { "type": "string" }, + "geburtsdatum": { "type": "string" }, + "email": { "type": "string" }, + "kzZugang": { "type": "string" }, + "klasseId": { "type": "string" }, + "klasseName": { "type": "string" }, + "schuleId": { "type": "string" }, + "benutzerName": { "type": "string" }, + "dtEinladungAblauf": { "type": "string" } + } + }, + "DobjDatei": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "dateiname": { "type": "string" }, + "base64Data": { "type": "string" }, + "mimetype": { "type": "string" } + } + }, + "IleaAufgabe": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "art": { "type": "string" }, + "displayId": { "type": "string" }, + "bezeichnung": { "type": "string" }, + "beschreibung": { "type": "string" } + } + }, + "DobjAufgabenpaketAuswahl": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "fieldLabel": { "type": "string" }, + "selectLabel": { "type": "string" }, + "jahrgangsstufe": { "type": "integer", "format": "int32" }, + "ileaFachId": { "type": "string" } + } + }, + "RobjHalbjahr": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "beschreibung": { "type": "string" }, + "dtBeginn": { "type": "string" }, + "dtEnde": { "type": "string" }, + "kzAktuell": { "type": "string" } + } + }, + "DobjKlasse": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "kzAktiv": { "type": "string" }, + "halbjahrId": { "type": "string" }, + "halbjahrBeschreibung": { "type": "string" }, + "name": { "type": "string" }, + "schuleId": { "type": "string" }, + "vorgaengerKlasseId": { "type": "string" }, + "kzSchuelerUebernehmen": { "type": "string" }, + "schuelerAnzahl": { "type": "string" }, + "listSchuelerUebernahme": { "type": "array", "items": { "type": "string" } } + } + }, + "RobjVorgaengerklasse": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "name": { "type": "string" }, + "halbjahrId": { "type": "string" } + } + }, + "RobjKodierung": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "code": { "type": "string" }, + "decode": { "type": "string" }, + "ext1": { "type": "string" } + } + }, + "DobjKlassenlehrerZuordnung": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "klasseId": { "type": "string" }, + "personalSchuleVerhaeltnisId": { "type": "string" }, + "lehrerName": { "type": "string" }, + "funktionsbezeichnungCode": { "type": "string" }, + "funktionsbezeichnungDecode": { "type": "string" } + } + }, + "RobjSchuelerzuordnung": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "schuelerId": { "type": "string" }, + "nachname": { "type": "string" }, + "vorname": { "type": "string" }, + "geburtsdatum": { "type": "string" }, + "email": { "type": "string" }, + "kzZugang": { "type": "string" }, + "klasseId": { "type": "string" }, + "zeitraum": { "type": "string" }, + "klasseName": { "type": "string" }, + "schuleId": { "type": "string" }, + "benutzerName": { "type": "string" }, + "dtEinladungAblauf": { "type": "string" } + } + }, + "RobjKlassenlehrerZuordnung": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "klasseId": { "type": "string" }, + "klassenlehrerId": { "type": "string" }, + "klassenlehrerName": { "type": "string" }, + "funktionsbezeichnungId": { "type": "string" }, + "funktionsbezeichnung": { "type": "string" } + } + }, + "DobjKurs": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "kzAktiv": { "type": "string" }, + "halbjahrId": { "type": "string" }, + "halbjahrBeschreibung": { "type": "string" }, + "name": { "type": "string" }, + "schuleId": { "type": "string" }, + "vorgaengerKursId": { "type": "string" }, + "klasseId": { "type": "string" }, + "klasseName": { "type": "string" }, + "fachId": { "type": "string" }, + "fachBezeichnung": { "type": "string" }, + "stufeId": { "type": "string" }, + "stufeBezeichnung": { "type": "string" }, + "kzSchuelerUebernehmen": { "type": "string" }, + "schuelerAnzahl": { "type": "string" }, + "listSchuelerUebernahme": { "type": "array", "items": { "type": "string" } } + } + }, + "RobjVorgaengerkurs": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "name": { "type": "string" }, + "halbjahrId": { "type": "string" } + } + }, + "DobjKurslehrerZuordnung": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "kursId": { "type": "string" }, + "personalSchuleVerhaeltnisId": { "type": "string" }, + "lehrerName": { "type": "string" }, + "erstelltVon": { "type": "string" } + } + }, + "DobjSchuelerzuordnung": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "schuleId": { "type": "string" }, + "klasseId": { "type": "string" }, + "kursId": { "type": "string" }, + "kurszuordnungId": { "type": "string" }, + "nachname": { "type": "string" }, + "vorname": { "type": "string" }, + "geburtsdatum": { "type": "string" }, + "email": { "type": "string" }, + "kzZugang": { "type": "string" } + } + }, + "RobjKurs": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "name": { "type": "string" }, + "schuleId": { "type": "string" }, + "halbjahrId": { "type": "string" }, + "halbjahrBeschreibung": { "type": "string" }, + "dtBeginn": { "type": "string" }, + "dtEnde": { "type": "string" }, + "schuelerAnzahl": { "type": "string" }, + "kzMeineKurs": { "type": "string" }, + "kzAktiv": { "type": "string" }, + "listKurslehrer": { "type": "array", "items": { "$ref": "#/definitions/RobjKurslehrerZuordnung" } } + } + }, + "RobjKurslehrerZuordnung": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "KursId": { "type": "string" }, + "KurslehrerId": { "type": "string" }, + "KurslehrerName": { "type": "string" }, + "funktionsbezeichnungId": { "type": "string" }, + "funktionsbezeichnung": { "type": "string" } + } + }, + "DobjSchueler": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "schuleId": { "type": "string" }, + "klasseId": { "type": "string" }, + "kursId": { "type": "string" }, + "nachname": { "type": "string" }, + "vorname": { "type": "string" }, + "geburtsdatum": { "type": "string" }, + "email": { "type": "string" }, + "kzZugang": { "type": "string" }, + "geandertDurch": { "type": "string" } + } + }, + "DobjSsoLink": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "tscAuthUID": { "type": "string" }, + "tscAuthUID_label": { "type": "string" } + } + }, + "RobjAufgabepaket": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "jahrgang": { "type": "string" }, + "ileaAufgabenpaket": { "type": "string" }, + "stufen": { "type": "string" }, + "dtErstelltAm": { "type": "string" }, + "erstelltVon": { "type": "string" } + } + }, + "RobjTooltip": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "komponente": { "type": "string" }, + "feld": { "type": "string" }, + "text": { "type": "string" } + } + }, + "DobjAuswahlGruppiert": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "parentId": { "type": "string" }, + "fieldLabel": { "type": "string" }, + "selectLabel": { "type": "string" }, + "ext1": { "type": "string" }, + "ext2": { "type": "string" }, + "hasFocus": { "type": "boolean" }, + "isSelected": { "type": "boolean" }, + "listChild": { "type": "array", "items": { "$ref": "#/definitions/DobjAuswahlGruppiert" } } + } + }, + "DobjSpaltenoption": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "fieldLabel": { "type": "string" }, + "selectLabel": { "type": "string" }, + "kzUntergruppe": { "type": "boolean" }, + "kzDefault": { "type": "boolean" } + } + }, + "BobjStandard": { "type": "object", "properties": { "id": { "type": "string" }, "version": { "type": "string" } } }, + "DobjStatistik": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "kopfSpalte1": { "type": "string" }, + "resultsetId": { "type": "string" }, + "resultsetId2": { "type": "string" }, + "auswertungstypGruppeCode": { "type": "string" }, + "fusszeile": { "type": "string" }, + "results": { "type": "array", "items": { "$ref": "#/definitions/BobjStandard" } } + } + }, + "RobjProtokolleintrag": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "logUID": { "type": "string" }, + "lognummer": { "type": "string" }, + "typCode": { "type": "string" }, + "typDecode": { "type": "string" }, + "schweregradCode": { "type": "string" }, + "schweregradDecode": { "type": "string" }, + "meldung": { "type": "string" }, + "server": { "type": "string" }, + "zeitstempel": { "type": "string" }, + "kategorie": { "type": "string" }, + "datenbank": { "type": "string" }, + "objekt": { "type": "string" }, + "ausloesenderBenutzer": { "type": "string" }, + "betroffenerBenutzer": { "type": "string" } + } + }, + "Value": { "type": "object", "properties": { "value": { "type": "string" } } }, + "DobjMediumdatei": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "mediumId": { "type": "string" }, + "pts": { "type": "string" }, + "dateiName": { "type": "string" }, + "mediumNummer": { "type": "string" }, + "oeffentlich": { "type": "string" }, + "pixiothek": { "type": "string" }, + "serientitel": { "type": "string" }, + "serienuntertitel": { "type": "string" }, + "einzeltitel": { "type": "string" }, + "einzeluntertitel": { "type": "string" }, + "anzahlLaufzeitFarben": { "type": "string" }, + "mediumStatusCode": { "type": "string" }, + "inhalt": { "type": "string" }, + "kurzinhalt": { "type": "string" }, + "fskVermerkCode": { "type": "string" }, + "fskVermerkDecode": { "type": "string" }, + "previewImageId": { "type": "string" }, + "downloadUrl": { "type": "string" }, + "previewImageUrl": { "type": "string" }, + "dateiBezeichnung": { "type": "string" }, + "dateiGroesse": { "type": "string" }, + "dateiVerwendungCode": { "type": "string" }, + "dateiSortierung": { "type": "string" }, + "dateiAufloesung": { "type": "string" }, + "listeStichwort": { "type": "array", "items": { "type": "string" } }, + "listeUrheber": { "type": "array", "items": { "type": "string" } } + } + }, + "Objekt zur Beantwortung von Berechtigungsanfragen": { + "type": "object", + "properties": { + "authToken": { + "type": "string", + "description": "Dient in erster Linie zur Verhinderung von Cross-Site-Request-Forgery.", + "readOnly": true + }, + "listTechObj": { + "type": "array", + "description": "Beinhaltet die Liste aller technischen Objekte für die der Anfrager berechtigt ist und welche zu dem angegebenen prefix passen.", + "items": { "type": "string" } + }, + "listSystemeinstellung": { + "type": "object", + "description": "Beinhaltet die Liste aller relevanten syeis für den Prefix", + "additionalProperties": { "type": "string" } + }, + "listToolTipKey": { + "type": "array", + "description": "Beinhaltet die Liste aller relevanten listToolTipKeys für den Prefix", + "items": { "type": "string" } + } + } + }, + "Fehler": { + "type": "object", + "properties": { + "reference": { + "type": "string", + "description": "Welchen Aspekt / welchen Bereich / welche Unterliste ist betroffen?" + }, + "fieldName": { + "type": "string", + "description": "Feldname, falls ein konkretes (Eingabe)feld betroffen/ursächlich ist." + }, + "errorText": { "type": "string", "description": "Der, dem Nutzer anzuzeigende Fehlertext." }, + "errorSource": { + "type": "string", + "description": "Technische Zusatzinformationen, StackTrace, Prozedurname, Statement etc. insofern keine sicherheitsrelevanten Informationen preisgegeben würden." + } + } + }, + "Fehlerantwort": { + "type": "object", + "properties": { "listError": { "type": "array", "items": { "$ref": "#/definitions/Fehler" } } } + }, + "RobjExportKlasse": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "klasseId": { "type": "string" }, + "klasseName": { "type": "string" }, + "schuleNummer": { "type": "string" }, + "lehrerUid": { "type": "string" } + } + }, + "RobjExportLehrerMigration": { + "type": "object", + "properties": { "lehrerUidAlt": { "type": "string" }, "lehrerUidNeu": { "type": "string" } } + }, + "RobjExportLehrer": { + "type": "object", + "properties": { + "lehrerUid": { "type": "string" }, + "lehrerTitel": { "type": "string" }, + "lehrerVorname": { "type": "string" }, + "lehrerNachname": { "type": "string" }, + "schuleNummer": { "type": "string" } + } + }, + "RobjExportSchuelerMigration": { + "type": "object", + "properties": { "schuelerUidAlt": { "type": "string" }, "schuelerUidNeu": { "type": "string" } } + }, + "RobjExportSchueler": { + "type": "object", + "properties": { + "schuelerUid": { "type": "string" }, + "schuelerVorname": { "type": "string" }, + "schuelerNachname": { "type": "string" }, + "schuleNummer": { "type": "string" }, + "klasseId": { "type": "string" } + } + }, + "RobjExportSchule": { + "type": "object", + "properties": { "schuleNummer": { "type": "string" }, "schuleName": { "type": "string" } } + }, + "VersionResponse": { "type": "object", "properties": { "version": { "type": "string" } } }, + "DobjSchule": { + "type": "object", + "properties": { + "schuleId": { "type": "string" }, + "name": { "type": "string" }, + "dienststellenNummer": { "type": "string" }, + "schultyp": { "type": "string" }, + "plz": { "type": "string" }, + "ort": { "type": "string" }, + "hausnummer": { "type": "string" } + } + }, + "RobjSchulpersonal": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "version": { "type": "string" }, + "code": { "type": "string" }, + "decode": { "type": "string" }, + "ext1": { "type": "string" }, + "nachname": { "type": "string" }, + "vorname": { "type": "string" }, + "titel": { "type": "string" }, + "schuleId": { "type": "string" } + } + } + } +} diff --git a/apps/server/src/infra/tsp-client/tsp-client-config.ts b/apps/server/src/infra/tsp-client/tsp-client-config.ts index 95c1da4131b..1ca78959cbe 100644 --- a/apps/server/src/infra/tsp-client/tsp-client-config.ts +++ b/apps/server/src/infra/tsp-client/tsp-client-config.ts @@ -1,9 +1,4 @@ -export interface TspRestClientConfig { - SC_DOMAIN: string; - HOST: string; +export interface TspClientConfig { TSP_API_BASE_URL: string; - TSP_API_CLIENT_ID: string; - TSP_API_CLIENT_SECRET: string; TSP_API_TOKEN_LIFETIME_MS: number; - TSP_API_SIGNATURE_KEY: string; } diff --git a/apps/server/src/infra/tsp-client/tsp-client-factory.integration.spec.ts b/apps/server/src/infra/tsp-client/tsp-client-factory.integration.spec.ts new file mode 100644 index 00000000000..90d798ea650 --- /dev/null +++ b/apps/server/src/infra/tsp-client/tsp-client-factory.integration.spec.ts @@ -0,0 +1,72 @@ +import { createMock } from '@golevelup/ts-jest'; +import { ServerTestModule } from '@modules/server'; +import { ConfigService } from '@nestjs/config'; +import { Test, TestingModule } from '@nestjs/testing'; +import { TspClientFactory } from './tsp-client-factory'; +import { TspClientModule } from './tsp-client.module'; + +// NOTE: This test is skipped because it requires a valid client id, secret and token endpoint. +// It is meant to be used for manual testing only. +describe('TspClientFactory Integration', () => { + let module: TestingModule; + let sut: TspClientFactory; + + beforeAll(async () => { + module = await Test.createTestingModule({ + imports: [ServerTestModule, TspClientModule], + }) + .overrideProvider(ConfigService) + .useValue( + createMock({ + getOrThrow: (key: string) => { + switch (key) { + case 'TSP_API_BASE_URL': + return 'https://test2.schulportal-thueringen.de/tip-ms/api'; + case 'TSP_API_TOKEN_LIFETIME_MS': + return 30_000; + default: + throw new Error(`Unknown key: ${key}`); + } + }, + }) + ) + .compile(); + + sut = module.get(TspClientFactory); + }); + + afterAll(async () => { + await module.close(); + }); + + it('should be defined', () => { + expect(sut).toBeDefined(); + }); + + describe.skip('when requesting the version', () => { + const setup = () => { + // The client id, secret and token endpoint can be found in 1Password, + // search for "test2 test" + const api = sut.createExportClient({ + clientId: '', + clientSecret: '', + tokenEndpoint: '', + }); + + return { api }; + }; + + it( + 'should return the version', + async () => { + const { api } = setup(); + + const result = await api.version(); + + expect(result.status).toEqual(200); + expect(result.data.version).toEqual('1.1'); + }, + 10 * 1000 + ); + }); +}); diff --git a/apps/server/src/infra/tsp-client/tsp-client-factory.spec.ts b/apps/server/src/infra/tsp-client/tsp-client-factory.spec.ts index 45c7c13072a..2efc2437934 100644 --- a/apps/server/src/infra/tsp-client/tsp-client-factory.spec.ts +++ b/apps/server/src/infra/tsp-client/tsp-client-factory.spec.ts @@ -1,36 +1,33 @@ import { faker } from '@faker-js/faker'; import { DeepMocked, createMock } from '@golevelup/ts-jest'; +import { OauthAdapterService } from '@modules/oauth'; +import { ServerConfig } from '@modules/server'; import { ConfigService } from '@nestjs/config'; import { Test, TestingModule } from '@nestjs/testing'; -import { ServerConfig } from '@src/modules/server'; +import axios from 'axios'; import { TspClientFactory } from './tsp-client-factory'; describe('TspClientFactory', () => { let module: TestingModule; let sut: TspClientFactory; let configServiceMock: DeepMocked>; + let oauthAdapterServiceMock: DeepMocked; beforeAll(async () => { module = await Test.createTestingModule({ providers: [ TspClientFactory, + { + provide: OauthAdapterService, + useValue: createMock(), + }, { provide: ConfigService, useValue: createMock>({ getOrThrow: (key: string) => { switch (key) { - case 'SC_DOMAIN': - return faker.internet.domainName(); - case 'HOST': - return faker.internet.url(); case 'TSP_API_BASE_URL': - return 'https://test2.schulportal-thueringen.de/tip-ms/api/'; - case 'TSP_API_CLIENT_ID': - return faker.string.uuid(); - case 'TSP_API_CLIENT_SECRET': - return faker.string.uuid(); - case 'TSP_API_SIGNATURE_KEY': - return faker.string.uuid(); + return faker.internet.url(); case 'TSP_API_TOKEN_LIFETIME_MS': return faker.number.int(); default: @@ -44,6 +41,7 @@ describe('TspClientFactory', () => { sut = module.get(TspClientFactory); configServiceMock = module.get(ConfigService); + oauthAdapterServiceMock = module.get(OauthAdapterService); }); afterAll(async () => { @@ -61,7 +59,11 @@ describe('TspClientFactory', () => { describe('createExportClient', () => { describe('when createExportClient is called', () => { it('should return ExportApiInterface', () => { - const result = sut.createExportClient(); + const result = sut.createExportClient({ + clientId: faker.string.alpha(), + clientSecret: faker.string.alpha(), + tokenEndpoint: faker.internet.url(), + }); expect(result).toBeDefined(); expect(configServiceMock.getOrThrow).toHaveBeenCalledTimes(0); @@ -70,8 +72,13 @@ describe('TspClientFactory', () => { describe('when token is cached', () => { const setup = () => { + const client = sut.createExportClient({ + clientId: faker.string.alpha(), + clientSecret: faker.string.alpha(), + tokenEndpoint: faker.internet.url(), + }); + Reflect.set(sut, 'cachedToken', faker.string.alpha()); - const client = sut.createExportClient(); return client; }; @@ -85,21 +92,73 @@ describe('TspClientFactory', () => { }); }); - // TODO: add a working integration test - describe.skip('when using the created client', () => { + describe('getAccessToken', () => { const setup = () => { - const client = sut.createExportClient(); + const clientId = faker.string.alpha(); + const clientSecret = faker.string.alpha(); + const tokenEndpoint = faker.internet.url(); + + oauthAdapterServiceMock.sendTokenRequest.mockResolvedValue({ + accessToken: faker.string.alpha(), + idToken: faker.string.alpha(), + refreshToken: faker.string.alpha(), + }); - return client; + return { + clientId, + clientSecret, + tokenEndpoint, + }; + }; + + it('should return access token', async () => { + const params = setup(); + + const response = await sut.getAccessToken(params); + + expect(response).toBeDefined(); + expect(configServiceMock.getOrThrow).toHaveBeenCalledTimes(0); + }); + }); + + describe('when using the created client', () => { + const setup = () => { + const client = sut.createExportClient({ + clientId: '', + clientSecret: '', + tokenEndpoint: '', + }); + + jest.mock('axios'); + + oauthAdapterServiceMock.sendTokenRequest.mockResolvedValue({ + accessToken: faker.string.alpha(), + idToken: faker.string.alpha(), + refreshToken: faker.string.alpha(), + }); + + const axiosMock = axios as jest.Mocked; + + axiosMock.request = jest.fn(); + axiosMock.request.mockResolvedValue({ + data: { + version: '1.1', + }, + }); + + return { + client, + axiosMock, + }; }; it('should return the migration version', async () => { - const client = setup(); + const { client, axiosMock } = setup(); - const result = await client.version(); + const response = await client.version(); - expect(result.status).toBe(200); - expect(result.data.version).toBeDefined(); + expect(axiosMock.request).toHaveBeenCalledTimes(1); + expect(response.data.version).toBe('1.1'); }); }); }); diff --git a/apps/server/src/infra/tsp-client/tsp-client-factory.ts b/apps/server/src/infra/tsp-client/tsp-client-factory.ts index 835cd8e333d..b4d54208269 100644 --- a/apps/server/src/infra/tsp-client/tsp-client-factory.ts +++ b/apps/server/src/infra/tsp-client/tsp-client-factory.ts @@ -1,44 +1,42 @@ import { Injectable } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; -import { randomUUID } from 'crypto'; +import { OauthAdapterService } from '@src/modules/oauth'; +import { OAuthGrantType } from '@src/modules/oauth/interface/oauth-grant-type.enum'; +import { ClientCredentialsGrantTokenRequest } from '@src/modules/oauth/service/dto'; import * as jwt from 'jsonwebtoken'; import { Configuration, ExportApiFactory, ExportApiInterface } from './generated'; -import { TspRestClientConfig } from './tsp-client-config'; +import { TspClientConfig } from './tsp-client-config'; + +type FactoryParams = { + clientId: string; + clientSecret: string; + tokenEndpoint: string; +}; @Injectable() export class TspClientFactory { - private readonly domain: string; - - private readonly host: string; - private readonly baseUrl: string; - private readonly clientId: string; - - private readonly clientSecret: string; - - private readonly signingKey: string; - private readonly tokenLifetime: number; private cachedToken: string | undefined; private tokenExpiresAt: number | undefined; - constructor(configService: ConfigService) { - this.domain = configService.getOrThrow('SC_DOMAIN'); - this.host = configService.getOrThrow('HOST'); + constructor( + private readonly oauthAdapterService: OauthAdapterService, + configService: ConfigService + ) { this.baseUrl = configService.getOrThrow('TSP_API_BASE_URL'); - this.clientId = configService.getOrThrow('TSP_API_CLIENT_ID'); - this.clientSecret = configService.getOrThrow('TSP_API_CLIENT_SECRET'); - this.signingKey = configService.getOrThrow('TSP_API_SIGNATURE_KEY'); this.tokenLifetime = configService.getOrThrow('TSP_API_TOKEN_LIFETIME_MS'); } - public createExportClient(): ExportApiInterface { + public createExportClient(params: FactoryParams): ExportApiInterface { const factory = ExportApiFactory( new Configuration({ - accessToken: this.createJwt(), + // accessToken has to be a function otherwise it will be called once + // and will not be refresh the access token when it expires + apiKey: async () => this.getAccessToken(params), basePath: this.baseUrl, }) ); @@ -46,28 +44,32 @@ export class TspClientFactory { return factory; } - private createJwt(): string { + public async getAccessToken(params: FactoryParams): Promise { const now = Date.now(); if (this.cachedToken && this.tokenExpiresAt && this.tokenExpiresAt > now) { return this.cachedToken; } - this.tokenExpiresAt = now + this.tokenLifetime; + const payload = new ClientCredentialsGrantTokenRequest({ + client_id: params.clientId, + client_secret: params.clientSecret, + grant_type: OAuthGrantType.CLIENT_CREDENTIALS_GRANT, + }); + + const response = await this.oauthAdapterService.sendTokenRequest(params.tokenEndpoint, payload); - const payload = { - apiClientId: this.clientId, - apiClientSecret: this.clientSecret, - iss: this.domain, - aud: this.baseUrl, - sub: this.host, - exp: this.tokenExpiresAt, - iat: this.tokenExpiresAt - this.tokenLifetime, - jti: randomUUID(), - }; + this.cachedToken = response.accessToken; + this.tokenExpiresAt = this.getExpiresAt(now, response.accessToken); + + // We need the Bearer prefix for the generated client, because OAS 2 does not support Bearer token type + return `Bearer ${this.cachedToken}`; + } - this.cachedToken = jwt.sign(payload, this.signingKey); + private getExpiresAt(now: number, token: string): number { + const decoded = jwt.decode(token, { json: true }); + const expiresAt = decoded?.exp || now + this.tokenLifetime; - return this.cachedToken; + return expiresAt; } } diff --git a/apps/server/src/infra/tsp-client/tsp-client.module.ts b/apps/server/src/infra/tsp-client/tsp-client.module.ts index c5b459df3f8..b7dd40df24d 100644 --- a/apps/server/src/infra/tsp-client/tsp-client.module.ts +++ b/apps/server/src/infra/tsp-client/tsp-client.module.ts @@ -1,7 +1,9 @@ +import { OauthModule } from '@modules/oauth'; import { Module } from '@nestjs/common'; import { TspClientFactory } from './tsp-client-factory'; @Module({ + imports: [OauthModule], providers: [TspClientFactory], exports: [TspClientFactory], }) diff --git a/apps/server/src/migrations/mikro-orm/Migration20240925165112.ts b/apps/server/src/migrations/mikro-orm/Migration20240925165112.ts new file mode 100644 index 00000000000..144aad8cfd3 --- /dev/null +++ b/apps/server/src/migrations/mikro-orm/Migration20240925165112.ts @@ -0,0 +1,37 @@ +import { Migration } from '@mikro-orm/migrations-mongodb'; + +export class Migration20240925165112 extends Migration { + async up(): Promise { + const adminRoleUpdate = await this.getCollection('roles').updateOne( + { name: 'superhero' }, + { + $addToSet: { + permissions: { + $each: ['SCHOOL_EDIT_ALL'], + }, + }, + } + ); + + if (adminRoleUpdate.modifiedCount > 0) { + console.info('Permission SCHOOL_EDIT_ALL added to role superhero.'); + } + } + + async down(): Promise { + const adminRoleUpdate = await this.getCollection('roles').updateOne( + { name: 'superhero' }, + { + $pull: { + permissions: { + $in: ['SCHOOL_EDIT_ALL'], + }, + }, + } + ); + + if (adminRoleUpdate.modifiedCount > 0) { + console.info('Rollback: Permission SCHOOL_EDIT_ALL added to role superhero.'); + } + } +} diff --git a/apps/server/src/migrations/mikro-orm/Migration20240926205656.ts b/apps/server/src/migrations/mikro-orm/Migration20240926205656.ts new file mode 100644 index 00000000000..7ffd9be3173 --- /dev/null +++ b/apps/server/src/migrations/mikro-orm/Migration20240926205656.ts @@ -0,0 +1,58 @@ +import { Migration } from '@mikro-orm/migrations-mongodb'; +import CryptoJs from 'crypto-js'; + +// eslint-disable-next-line no-process-env + +export class Migration20240926205656 extends Migration { + async up(): Promise { + // eslint-disable-next-line no-process-env + const { AES_KEY } = process.env; + + if (AES_KEY) { + const tools = await this.driver.aggregate('external-tools', [{ $match: { config_type: { $eq: 'lti11' } } }]); + + for await (const tool of tools) { + // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access + if (tool.config_secret) { + // eslint-disable-next-line no-await-in-loop + await this.driver.nativeUpdate( + 'external-tools', + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access + { _id: tool._id }, + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-member-access + { $set: { config_secret: CryptoJs.AES.encrypt(tool.config_secret, AES_KEY).toString() } } + ); + } + } + console.info(`Encrypt field config_secret with AES_KEY of the svs.`); + } else { + console.info(`FAILED: Encrypt field config_secret with AES_KEY of the svs. REASON: AES KEY is not provided.`); + } + } + + async down(): Promise { + // eslint-disable-next-line no-process-env + const { AES_KEY } = process.env; + + if (AES_KEY) { + const tools = await this.driver.aggregate('external-tools', [{ $match: { config_type: { $eq: 'lti11' } } }]); + + for await (const tool of tools) { + if (tool) { + // eslint-disable-next-line no-await-in-loop + await this.driver.nativeUpdate( + 'external-tools', + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-member-access + { _id: tool._id }, + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-member-access + { $set: { config_secret: CryptoJs.AES.decrypt(tool.config_secret, AES_KEY).toString(CryptoJs.enc.Utf8) } } + ); + } + } + + console.info(`Rollback: Encrypt field config_secret with AES_KEY of the svs.`); + } else { + console.info(`FAILED: Encrypt field config_secret with AES_KEY of the svs. REASON: AES KEY is not provided.`); + } + } +} diff --git a/apps/server/src/modules/authorization/domain/rules/school.rule.spec.ts b/apps/server/src/modules/authorization/domain/rules/school.rule.spec.ts index 9b1ac7446c6..cf82db40d32 100644 --- a/apps/server/src/modules/authorization/domain/rules/school.rule.spec.ts +++ b/apps/server/src/modules/authorization/domain/rules/school.rule.spec.ts @@ -1,3 +1,4 @@ +import { Permission } from '@shared/domain/interface/permission.enum'; import { createMock, DeepMocked } from '@golevelup/ts-jest'; import { schoolFactory } from '@modules/school/testing/school.factory'; import { Test, TestingModule } from '@nestjs/testing'; @@ -9,11 +10,12 @@ import { SchoolRule } from './school.rule'; describe('SchoolRule', () => { let rule: SchoolRule; let authorizationHelper: DeepMocked; + let module: TestingModule; beforeAll(async () => { await setupEntities(); - const module: TestingModule = await Test.createTestingModule({ + module = await Test.createTestingModule({ providers: [SchoolRule, { provide: AuthorizationHelper, useValue: createMock() }], }).compile(); @@ -24,10 +26,19 @@ describe('SchoolRule', () => { const setupSchoolAndUser = () => { const school = schoolFactory.build(); const user = userFactory.build({ school: schoolEntityFactory.buildWithId(undefined, school.id) }); + const superUser = userFactory.asSuperhero([Permission.SCHOOL_EDIT_ALL]).build(); - return { school, user }; + return { school, user, superUser }; }; + afterEach(() => { + jest.clearAllMocks(); + }); + + afterAll(async () => { + await module.close(); + }); + describe('isApplicable', () => { describe('when object is instance of School', () => { const setup = () => { @@ -88,7 +99,7 @@ describe('SchoolRule', () => { const { user, school } = setupSchoolAndUser(); const context = AuthorizationContextBuilder.read([]); - authorizationHelper.hasAllPermissions.mockReturnValueOnce(false); + authorizationHelper.hasAllPermissions.mockReturnValue(false); return { user, school, context }; }; @@ -108,7 +119,7 @@ describe('SchoolRule', () => { const someOtherSchool = schoolFactory.build(); const context = AuthorizationContextBuilder.read([]); - authorizationHelper.hasAllPermissions.mockReturnValueOnce(true); + authorizationHelper.hasAllPermissions.mockReturnValueOnce(false); return { user, someOtherSchool, context }; }; @@ -121,5 +132,25 @@ describe('SchoolRule', () => { expect(result).toBe(false); }); }); + + describe('when the user has super powers', () => { + const setup = () => { + const { superUser } = setupSchoolAndUser(); + const someOtherSchool = schoolFactory.build(); + const context = AuthorizationContextBuilder.read([]); + + authorizationHelper.hasAllPermissions.mockReturnValueOnce(true); + + return { superUser, someOtherSchool, context }; + }; + + it('should return true', () => { + const { superUser, someOtherSchool, context } = setup(); + + const result = rule.hasPermission(superUser, someOtherSchool, context); + + expect(result).toBe(true); + }); + }); }); }); diff --git a/apps/server/src/modules/authorization/domain/rules/school.rule.ts b/apps/server/src/modules/authorization/domain/rules/school.rule.ts index d960e62c3dd..ad87a582294 100644 --- a/apps/server/src/modules/authorization/domain/rules/school.rule.ts +++ b/apps/server/src/modules/authorization/domain/rules/school.rule.ts @@ -1,5 +1,6 @@ import { Injectable } from '@nestjs/common'; import { User } from '@shared/domain/entity'; +import { Permission } from '@shared/domain/interface/permission.enum'; import { School } from '@src/modules/school/domain/do'; import { AuthorizationHelper } from '../service/authorization.helper'; import { AuthorizationContext, Rule } from '../type'; @@ -15,11 +16,13 @@ export class SchoolRule implements Rule { } public hasPermission(user: User, school: School, context: AuthorizationContext): boolean { - const hasRequiredPermissions = this.authorizationHelper.hasAllPermissions(user, context.requiredPermissions); - + let hasPermission = false; const isUsersSchool = user.school.id === school.id; - - const hasPermission = hasRequiredPermissions && isUsersSchool; + if (isUsersSchool) { + hasPermission = this.authorizationHelper.hasAllPermissions(user, context.requiredPermissions); + } else { + hasPermission = this.authorizationHelper.hasAllPermissions(user, [Permission.SCHOOL_EDIT_ALL]); + } return hasPermission; } diff --git a/apps/server/src/modules/board/service/internal/board-node-copy-specific.service.spec.ts b/apps/server/src/modules/board/service/internal/board-node-copy-specific.service.spec.ts index 66bd8b6ea0d..3db0d06fa2a 100644 --- a/apps/server/src/modules/board/service/internal/board-node-copy-specific.service.spec.ts +++ b/apps/server/src/modules/board/service/internal/board-node-copy-specific.service.spec.ts @@ -54,6 +54,7 @@ describe(BoardNodeCopyService.name, () => { FEATURE_CTL_TOOLS_COPY_ENABLED: false, CTL_TOOLS_RELOAD_TIME_MS: 0, FILES_STORAGE__SERVICE_BASE_URL: '', + CTL_TOOLS__PREFERRED_TOOLS_LIMIT: 10, }; let contextExternalToolService: DeepMocked; let copyHelperService: DeepMocked; diff --git a/apps/server/src/modules/idp-console/idp-console.module.ts b/apps/server/src/modules/idp-console/idp-console.module.ts index 4b36404e7e5..84568dcce3d 100644 --- a/apps/server/src/modules/idp-console/idp-console.module.ts +++ b/apps/server/src/modules/idp-console/idp-console.module.ts @@ -1,6 +1,6 @@ import { ConsoleWriterModule } from '@infra/console'; import { RabbitMQWrapperModule } from '@infra/rabbitmq'; -import { SchulconnexClientModule } from '@infra/schulconnex-client'; +import { SchulconnexClientModule } from '@infra/schulconnex-client/schulconnex-client.module'; import { MikroOrmModule } from '@mikro-orm/nestjs'; import { defaultMikroOrmOptions } from '@modules/server'; import { SynchronizationEntity, SynchronizationModule } from '@modules/synchronization'; diff --git a/apps/server/src/modules/idp-console/uc/synchronization.uc.spec.ts b/apps/server/src/modules/idp-console/uc/synchronization.uc.spec.ts index 892708bf090..feaf80daf3b 100644 --- a/apps/server/src/modules/idp-console/uc/synchronization.uc.spec.ts +++ b/apps/server/src/modules/idp-console/uc/synchronization.uc.spec.ts @@ -1,5 +1,6 @@ import { createMock, DeepMocked } from '@golevelup/ts-jest'; -import { SchulconnexResponse, schulconnexResponseFactory, SchulconnexRestClient } from '@infra/schulconnex-client'; +import { SchulconnexResponse, SchulconnexRestClient } from '@infra/schulconnex-client'; +import { schulconnexResponseFactory } from '@infra/schulconnex-client/testing'; import { Synchronization, synchronizationFactory, diff --git a/apps/server/src/modules/oauth/index.ts b/apps/server/src/modules/oauth/index.ts index 67f5f98b440..72bfafa518b 100644 --- a/apps/server/src/modules/oauth/index.ts +++ b/apps/server/src/modules/oauth/index.ts @@ -1,3 +1,3 @@ -export * from './oauth.module'; export * from './interface'; +export * from './oauth.module'; export * from './service'; diff --git a/apps/server/src/modules/provisioning/loggable/index.ts b/apps/server/src/modules/provisioning/loggable/index.ts index 9b9f2196e88..00068126737 100644 --- a/apps/server/src/modules/provisioning/loggable/index.ts +++ b/apps/server/src/modules/provisioning/loggable/index.ts @@ -5,3 +5,4 @@ export * from './school-name-required-loggable-exception'; export * from './group-role-unknown.loggable'; export { SchoolExternalToolCreatedLoggable } from './school-external-tool-created.loggable'; export { FetchingPoliciesInfoFailedLoggable } from './fetching-policies-info-failed.loggable'; +export { PoliciesInfoErrorResponseLoggable } from './policies-info-error-response-loggable'; diff --git a/apps/server/src/modules/provisioning/loggable/policies-info-error-response-loggable.spec.ts b/apps/server/src/modules/provisioning/loggable/policies-info-error-response-loggable.spec.ts new file mode 100644 index 00000000000..4ba118020c2 --- /dev/null +++ b/apps/server/src/modules/provisioning/loggable/policies-info-error-response-loggable.spec.ts @@ -0,0 +1,31 @@ +import { SchulconnexPoliciesInfoErrorResponse } from '@infra/schulconnex-client'; +import { schulconnexPoliciesInfoErrorResponseFactory } from '@infra/schulconnex-client/testing'; +import { PoliciesInfoErrorResponseLoggable } from './policies-info-error-response-loggable'; + +describe(PoliciesInfoErrorResponseLoggable.name, () => { + describe('getLogMessage', () => { + const setup = () => { + const errorResponse: SchulconnexPoliciesInfoErrorResponse = schulconnexPoliciesInfoErrorResponseFactory.build(); + + const loggable: PoliciesInfoErrorResponseLoggable = new PoliciesInfoErrorResponseLoggable(errorResponse); + + return { + loggable, + errorResponse, + }; + }; + + it('should return the correct log message', () => { + const { loggable, errorResponse } = setup(); + + expect(loggable.getLogMessage()).toEqual({ + message: 'The /policies-info endpoint returned an error for a media source.', + data: { + type: errorResponse.access_control['@type'], + code: errorResponse.access_control.error.code, + value: errorResponse.access_control.error.value, + }, + }); + }); + }); +}); diff --git a/apps/server/src/modules/provisioning/loggable/policies-info-error-response-loggable.ts b/apps/server/src/modules/provisioning/loggable/policies-info-error-response-loggable.ts new file mode 100644 index 00000000000..b867a29002d --- /dev/null +++ b/apps/server/src/modules/provisioning/loggable/policies-info-error-response-loggable.ts @@ -0,0 +1,17 @@ +import { SchulconnexPoliciesInfoErrorResponse } from '@infra/schulconnex-client'; +import { Loggable, LoggableMessage } from '@shared/common/loggable/interfaces'; + +export class PoliciesInfoErrorResponseLoggable implements Loggable { + constructor(private readonly item: SchulconnexPoliciesInfoErrorResponse) {} + + getLogMessage(): LoggableMessage { + return { + message: 'The /policies-info endpoint returned an error for a media source.', + data: { + type: this.item.access_control['@type'], + code: this.item.access_control.error.code, + value: this.item.access_control.error.value, + }, + }; + } +} diff --git a/apps/server/src/modules/provisioning/provisioning.module.ts b/apps/server/src/modules/provisioning/provisioning.module.ts index 6e14f961752..6474efc61ce 100644 --- a/apps/server/src/modules/provisioning/provisioning.module.ts +++ b/apps/server/src/modules/provisioning/provisioning.module.ts @@ -10,7 +10,7 @@ import { SchoolExternalToolModule } from '@modules/tool/school-external-tool'; import { UserModule } from '@modules/user'; import { Module } from '@nestjs/common'; import { LoggerModule } from '@src/core/logger'; -import { SchulconnexClientModule } from '@src/infra/schulconnex-client'; +import { SchulconnexClientModule } from '@src/infra/schulconnex-client/schulconnex-client.module'; import { ClassModule } from '../class'; import { UserLicenseModule } from '../user-license'; import { ProvisioningService } from './service/provisioning.service'; diff --git a/apps/server/src/modules/provisioning/strategy/loggable/index.ts b/apps/server/src/modules/provisioning/strategy/loggable/index.ts deleted file mode 100644 index 102d04f9628..00000000000 --- a/apps/server/src/modules/provisioning/strategy/loggable/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from '../../loggable/bad-data.loggable-exception'; diff --git a/apps/server/src/modules/provisioning/strategy/sanis/index.ts b/apps/server/src/modules/provisioning/strategy/sanis/index.ts index 33928785efd..03132b1fcd6 100644 --- a/apps/server/src/modules/provisioning/strategy/sanis/index.ts +++ b/apps/server/src/modules/provisioning/strategy/sanis/index.ts @@ -1,2 +1,2 @@ -export * from './sanis.strategy'; +export { SanisProvisioningStrategy } from './sanis.strategy'; export { SchulconnexResponseMapper } from './schulconnex-response-mapper'; diff --git a/apps/server/src/modules/provisioning/strategy/sanis/sanis.strategy.spec.ts b/apps/server/src/modules/provisioning/strategy/sanis/sanis.strategy.spec.ts index 377080049bf..cdbcf05532d 100644 --- a/apps/server/src/modules/provisioning/strategy/sanis/sanis.strategy.spec.ts +++ b/apps/server/src/modules/provisioning/strategy/sanis/sanis.strategy.spec.ts @@ -1,13 +1,18 @@ import { createMock, DeepMocked } from '@golevelup/ts-jest'; import { SchulconnexGruppenResponse, + SchulconnexPoliciesInfoLicenseResponse, + SchulconnexPoliciesInfoResponse, SchulconnexResponse, - schulconnexResponseFactory, SchulconnexResponseValidationGroups, SchulconnexRestClient, } from '@infra/schulconnex-client'; -import { SchulconnexPoliciesInfoResponse } from '@infra/schulconnex-client/response'; -import { schulconnexPoliciesInfoResponseFactory } from '@infra/schulconnex-client/testing/schulconnex-policies-info-response-factory'; +import { + schulconnexPoliciesInfoErrorResponseFactory, + schulconnexPoliciesInfoLicenseResponseFactory, + schulconnexPoliciesInfoResponseFactory, + schulconnexResponseFactory, +} from '@infra/schulconnex-client/testing'; import { GroupService } from '@modules/group'; import { GroupTypes } from '@modules/group/domain'; import { InternalServerErrorException } from '@nestjs/common'; @@ -27,6 +32,7 @@ import { OauthDataStrategyInputDto, ProvisioningSystemDto, } from '../../dto'; +import { PoliciesInfoErrorResponseLoggable } from '../../loggable'; import { ProvisioningConfig } from '../../provisioning.config'; import { SchulconnexCourseSyncService, @@ -170,12 +176,13 @@ describe(SanisProvisioningStrategy.name, () => { }, }), ]; - const schulconnexLizenzInfoResponses: SchulconnexPoliciesInfoResponse[] = - schulconnexPoliciesInfoResponseFactory.buildList(1); - const schulconnexLizenzInfoResponse = schulconnexLizenzInfoResponses[0]; + const schulconnexPoliciesInfoLicenseResponse: SchulconnexPoliciesInfoLicenseResponse = + schulconnexPoliciesInfoLicenseResponseFactory.build(); const licenses: ExternalLicenseDto[] = SchulconnexResponseMapper.mapToExternalLicenses([ - schulconnexLizenzInfoResponse, + schulconnexPoliciesInfoLicenseResponse, ]); + const schulconnexPoliciesInfoResponse: SchulconnexPoliciesInfoResponse = + schulconnexPoliciesInfoResponseFactory.build({ data: [schulconnexPoliciesInfoLicenseResponse] }); config.FEATURE_SANIS_GROUP_PROVISIONING_ENABLED = true; config.FEATURE_SCHULCONNEX_MEDIA_LICENSE_ENABLED = true; @@ -185,7 +192,7 @@ describe(SanisProvisioningStrategy.name, () => { mapper.mapToExternalGroupDtos.mockReturnValue(groups); validationFunction.mockResolvedValueOnce([]); validationFunction.mockResolvedValueOnce([]); - schulconnexRestClient.getPoliciesInfo.mockResolvedValueOnce(schulconnexLizenzInfoResponses); + schulconnexRestClient.getPoliciesInfo.mockResolvedValueOnce(schulconnexPoliciesInfoResponse); validationFunction.mockResolvedValueOnce([]); return { @@ -196,7 +203,7 @@ describe(SanisProvisioningStrategy.name, () => { groups, licenses, schulconnexResponse, - schulconnexLizenzInfoResponse, + schulconnexPoliciesInfoResponse, }; }; @@ -235,11 +242,11 @@ describe(SanisProvisioningStrategy.name, () => { }); it('should validate the response for licenses', async () => { - const { input, schulconnexLizenzInfoResponse } = setup(); + const { input, schulconnexPoliciesInfoResponse } = setup(); await strategy.getData(input); - expect(validationFunction).toHaveBeenCalledWith(schulconnexLizenzInfoResponse, { + expect(validationFunction).toHaveBeenCalledWith(schulconnexPoliciesInfoResponse, { always: true, forbidUnknownValues: false, }); @@ -400,7 +407,7 @@ describe(SanisProvisioningStrategy.name, () => { }; }; - it('should not call getLizenzInfo', async () => { + it('should not call getPoliciesInfo', async () => { const { input } = setup(); await strategy.getData(input); @@ -515,6 +522,69 @@ describe(SanisProvisioningStrategy.name, () => { }); }); + describe('when policies-info returns at least one error response', () => { + const setup = () => { + const provisioningUrl = 'sanisProvisioningUrl'; + const input: OauthDataStrategyInputDto = new OauthDataStrategyInputDto({ + system: new ProvisioningSystemDto({ + systemId: 'systemId', + provisioningStrategy: SystemProvisioningStrategy.SANIS, + provisioningUrl, + }), + idToken: 'sanisIdToken', + accessToken: 'sanisAccessToken', + }); + const schulconnexResponse: SchulconnexResponse = setupSchulconnexResponse(); + const user: ExternalUserDto = new ExternalUserDto({ + externalId: 'externalUserId', + }); + const school: ExternalSchoolDto = new ExternalSchoolDto({ + externalId: 'externalSchoolId', + name: 'schoolName', + }); + + const schulconnexPoliciesInfoLicenseResponse = schulconnexPoliciesInfoLicenseResponseFactory.build(); + const schulconnexPoliciesInfoErrorResponse = schulconnexPoliciesInfoErrorResponseFactory.build(); + + const schulconnexPoliciesInfoResponse: SchulconnexPoliciesInfoResponse = + schulconnexPoliciesInfoResponseFactory.build({ + data: [schulconnexPoliciesInfoLicenseResponse, schulconnexPoliciesInfoErrorResponse], + }); + + const licenses: ExternalLicenseDto[] = SchulconnexResponseMapper.mapToExternalLicenses([ + schulconnexPoliciesInfoLicenseResponse, + ]); + + config.FEATURE_SCHULCONNEX_MEDIA_LICENSE_ENABLED = true; + schulconnexRestClient.getPersonInfo.mockResolvedValueOnce(schulconnexResponse); + mapper.mapToExternalUserDto.mockReturnValue(user); + mapper.mapToExternalSchoolDto.mockReturnValue(school); + schulconnexRestClient.getPoliciesInfo.mockResolvedValueOnce(schulconnexPoliciesInfoResponse); + validationFunction.mockResolvedValue([]); + + return { schulconnexPoliciesInfoErrorResponse, input, licenses }; + }; + + it('should log the error response', async () => { + const { input, schulconnexPoliciesInfoErrorResponse } = setup(); + + await strategy.getData(input); + + expect(logger.warning).toHaveBeenCalledWith( + new PoliciesInfoErrorResponseLoggable(schulconnexPoliciesInfoErrorResponse) + ); + }); + + it('should return the correct licenses', async () => { + const { input, licenses } = setup(); + + const result: OauthDataDto = await strategy.getData(input); + + expect(result.externalLicenses).toEqual(licenses); + expect(result.externalLicenses).toHaveLength(1); + }); + }); + describe('when the validation of the response fails', () => { const setup = () => { const provisioningUrl = 'sanisProvisioningUrl'; diff --git a/apps/server/src/modules/provisioning/strategy/sanis/sanis.strategy.ts b/apps/server/src/modules/provisioning/strategy/sanis/sanis.strategy.ts index 6c118efcd1c..590dd214240 100644 --- a/apps/server/src/modules/provisioning/strategy/sanis/sanis.strategy.ts +++ b/apps/server/src/modules/provisioning/strategy/sanis/sanis.strategy.ts @@ -1,9 +1,10 @@ import { + SchulconnexPoliciesInfoLicenseResponse, SchulconnexPoliciesInfoResponse, SchulconnexResponse, SchulconnexResponseValidationGroups, -} from '@infra/schulconnex-client/response'; -import { SchulconnexRestClient } from '@infra/schulconnex-client/schulconnex-rest-client'; + SchulconnexRestClient, +} from '@infra/schulconnex-client'; import { GroupService } from '@modules/group/service/group.service'; import { Injectable, InternalServerErrorException } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; @@ -21,7 +22,7 @@ import { OauthDataDto, OauthDataStrategyInputDto, } from '../../dto'; -import { FetchingPoliciesInfoFailedLoggable } from '../../loggable'; +import { FetchingPoliciesInfoFailedLoggable, PoliciesInfoErrorResponseLoggable } from '../../loggable'; import { ProvisioningConfig } from '../../provisioning.config'; import { SchulconnexProvisioningStrategy } from '../oidc'; import { @@ -109,12 +110,24 @@ export class SanisProvisioningStrategy extends SchulconnexProvisioningStrategy { } ); - const schulconnexLizenzInfoResponses = plainToClass( + const schulconnexPoliciesInfoResponse = plainToClass( SchulconnexPoliciesInfoResponse, schulconnexPoliciesInfoAxiosResponse ); - await this.checkResponseValidation(schulconnexLizenzInfoResponses); - externalLicenses = SchulconnexResponseMapper.mapToExternalLicenses(schulconnexLizenzInfoResponses); + + await this.checkResponseValidation(schulconnexPoliciesInfoResponse); + + const schulconnexPoliciesInfoLicenceResponses: SchulconnexPoliciesInfoLicenseResponse[] = + schulconnexPoliciesInfoResponse.data.filter((item): item is SchulconnexPoliciesInfoLicenseResponse => { + if (item instanceof SchulconnexPoliciesInfoLicenseResponse) { + return true; + } + + this.logger.warning(new PoliciesInfoErrorResponseLoggable(item)); + return false; + }); + + externalLicenses = SchulconnexResponseMapper.mapToExternalLicenses(schulconnexPoliciesInfoLicenceResponses); } catch (error) { this.logger.warning(new FetchingPoliciesInfoFailedLoggable(externalUser, policiesInfoUrl)); } diff --git a/apps/server/src/modules/provisioning/strategy/sanis/schulconnex-response-mapper.spec.ts b/apps/server/src/modules/provisioning/strategy/sanis/schulconnex-response-mapper.spec.ts index 663d53fe2da..36ad4321943 100644 --- a/apps/server/src/modules/provisioning/strategy/sanis/schulconnex-response-mapper.spec.ts +++ b/apps/server/src/modules/provisioning/strategy/sanis/schulconnex-response-mapper.spec.ts @@ -4,12 +4,13 @@ import { SchulconnexGroupType, SchulconnexGruppenResponse, SchulconnexPersonenkontextResponse, - SchulconnexPoliciesInfoResponse, - schulconnexPoliciesInfoResponseFactory, SchulconnexResponse, - schulconnexResponseFactory, SchulconnexSonstigeGruppenzugehoerigeResponse, } from '@infra/schulconnex-client'; +import { + schulconnexPoliciesInfoLicenseResponseFactory, + schulconnexResponseFactory, +} from '@infra/schulconnex-client/testing'; import { GroupTypes } from '@modules/group'; import { ConfigService } from '@nestjs/config'; import { Test, TestingModule } from '@nestjs/testing'; @@ -561,7 +562,7 @@ describe(SchulconnexResponseMapper.name, () => { describe('mapToExternalLicenses', () => { describe('when a license response has a medium id and no media source', () => { const setup = () => { - const licenseResponse: SchulconnexPoliciesInfoResponse[] = schulconnexPoliciesInfoResponseFactory.buildList(1, { + const licenseResponse = schulconnexPoliciesInfoLicenseResponseFactory.buildList(1, { target: { uid: 'bildungscloud', partOf: '' }, }); @@ -587,7 +588,7 @@ describe(SchulconnexResponseMapper.name, () => { describe('when a license response has a medium id and a media source', () => { const setup = () => { - const licenseResponse: SchulconnexPoliciesInfoResponse[] = schulconnexPoliciesInfoResponseFactory.buildList(1, { + const licenseResponse = schulconnexPoliciesInfoLicenseResponseFactory.buildList(1, { target: { uid: 'bildungscloud', partOf: 'bildungscloud-source' }, }); @@ -613,7 +614,7 @@ describe(SchulconnexResponseMapper.name, () => { describe('when a license response has no medium id', () => { const setup = () => { - const licenseResponse: SchulconnexPoliciesInfoResponse[] = schulconnexPoliciesInfoResponseFactory.buildList(1, { + const licenseResponse = schulconnexPoliciesInfoLicenseResponseFactory.buildList(1, { target: { uid: '', partOf: 'bildungscloud-source' }, }); diff --git a/apps/server/src/modules/provisioning/strategy/sanis/schulconnex-response-mapper.ts b/apps/server/src/modules/provisioning/strategy/sanis/schulconnex-response-mapper.ts index b76db0ea58e..5961ae19917 100644 --- a/apps/server/src/modules/provisioning/strategy/sanis/schulconnex-response-mapper.ts +++ b/apps/server/src/modules/provisioning/strategy/sanis/schulconnex-response-mapper.ts @@ -6,11 +6,11 @@ import { SchulconnexGroupType, SchulconnexGruppenResponse, SchulconnexLaufzeitResponse, - SchulconnexPoliciesInfoResponse, + SchulconnexPoliciesInfoLicenseResponse, SchulconnexResponse, SchulconnexRole, SchulconnexSonstigeGruppenzugehoerigeResponse, -} from '@infra/schulconnex-client/response'; +} from '@infra/schulconnex-client'; import { GroupTypes } from '@modules/group'; import { Injectable } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; @@ -240,9 +240,9 @@ export class SchulconnexResponseMapper { }; } - public static mapToExternalLicenses(licenseInfos: SchulconnexPoliciesInfoResponse[]): ExternalLicenseDto[] { + public static mapToExternalLicenses(licenseInfos: SchulconnexPoliciesInfoLicenseResponse[]): ExternalLicenseDto[] { const externalLicenseDtos: ExternalLicenseDto[] = licenseInfos - .map((license: SchulconnexPoliciesInfoResponse) => { + .map((license: SchulconnexPoliciesInfoLicenseResponse) => { if (license.target.partOf === '') { license.target.partOf = undefined; } diff --git a/apps/server/src/modules/provisioning/strategy/tsp/tsp.strategy.ts b/apps/server/src/modules/provisioning/strategy/tsp/tsp.strategy.ts index 3ed54b80762..c9a0d7e3610 100644 --- a/apps/server/src/modules/provisioning/strategy/tsp/tsp.strategy.ts +++ b/apps/server/src/modules/provisioning/strategy/tsp/tsp.strategy.ts @@ -12,9 +12,9 @@ import { OauthDataStrategyInputDto, ProvisioningDto, } from '../../dto'; +import { BadDataLoggableException } from '../../loggable'; import { TspProvisioningService } from '../../service/tsp-provisioning.service'; import { ProvisioningStrategy } from '../base.strategy'; -import { BadDataLoggableException } from '../loggable'; import { TspJwtPayload } from './tsp.jwt.payload'; @Injectable() diff --git a/apps/server/src/modules/server/admin-api-server.config.ts b/apps/server/src/modules/server/admin-api-server.config.ts index 826f61970f3..336d4deba6a 100644 --- a/apps/server/src/modules/server/admin-api-server.config.ts +++ b/apps/server/src/modules/server/admin-api-server.config.ts @@ -65,6 +65,7 @@ const config: AdminApiServerConfig = { ) as boolean, FEATURE_IDENTITY_MANAGEMENT_LOGIN_ENABLED: Configuration.get('FEATURE_IDENTITY_MANAGEMENT_LOGIN_ENABLED') as boolean, FEATURE_IDENTITY_MANAGEMENT_STORE_ENABLED: Configuration.get('FEATURE_IDENTITY_MANAGEMENT_STORE_ENABLED') as boolean, + CTL_TOOLS__PREFERRED_TOOLS_LIMIT: Configuration.get('CTL_TOOLS__PREFERRED_TOOLS_LIMIT') as number, }; export const adminApiServerConfig = () => config; diff --git a/apps/server/src/modules/server/server.config.ts b/apps/server/src/modules/server/server.config.ts index fa875ec0c60..ca5aa6f9d02 100644 --- a/apps/server/src/modules/server/server.config.ts +++ b/apps/server/src/modules/server/server.config.ts @@ -3,6 +3,7 @@ import { XApiKeyConfig } from '@infra/auth-guard'; import type { IdentityManagementConfig } from '@infra/identity-management'; import type { MailConfig } from '@infra/mail/interfaces/mail-config'; import type { SchulconnexClientConfig } from '@infra/schulconnex-client'; +import type { TspClientConfig } from '@infra/tsp-client'; import type { AccountConfig } from '@modules/account'; import { AlertConfig } from '@modules/alert'; import type { AuthenticationConfig } from '@modules/authentication'; @@ -18,18 +19,17 @@ import { ProvisioningConfig } from '@modules/provisioning'; import { RoomConfig } from '@modules/room'; import type { SchoolConfig } from '@modules/school'; import type { SharingConfig } from '@modules/sharing'; +import type { ShdConfig } from '@modules/shd'; import { getTldrawClientConfig, type TldrawClientConfig } from '@modules/tldraw-client'; import type { ToolConfig } from '@modules/tool'; import type { UserConfig } from '@modules/user'; import type { UserImportConfig } from '@modules/user-import'; import type { UserLoginMigrationConfig } from '@modules/user-login-migration'; import type { VideoConferenceConfig } from '@modules/video-conference'; +import type { BbbConfig } from '@modules/video-conference/bbb'; import type { LanguageType } from '@shared/domain/interface'; import type { SchulcloudTheme } from '@shared/domain/types'; import type { CoreModuleConfig } from '@src/core'; -import { TspRestClientConfig } from '@src/infra/tsp-client/tsp-client-config'; -import type { ShdConfig } from '@modules/shd'; -import type { BbbConfig } from '@modules/video-conference/bbb'; import type { Timezone } from './types/timezone.enum'; export enum NodeEnvType { @@ -69,7 +69,7 @@ export interface ServerConfig UserImportConfig, VideoConferenceConfig, BbbConfig, - TspRestClientConfig, + TspClientConfig, AlertConfig, ShdConfig { NODE_ENV: NodeEnvType; @@ -309,15 +309,13 @@ const config: ServerConfig = { FEATURE_AI_TUTOR_ENABLED: Configuration.get('FEATURE_AI_TUTOR_ENABLED') as boolean, FEATURE_ROOMS_ENABLED: Configuration.get('FEATURE_ROOMS_ENABLED') as boolean, TSP_API_BASE_URL: Configuration.get('TSP_API_BASE_URL') as string, - TSP_API_CLIENT_ID: Configuration.get('TSP_API_CLIENT_ID') as string, - TSP_API_CLIENT_SECRET: Configuration.get('TSP_API_CLIENT_SECRET') as string, TSP_API_TOKEN_LIFETIME_MS: Configuration.get('TSP_API_TOKEN_LIFETIME_MS') as number, - TSP_API_SIGNATURE_KEY: Configuration.get('TSP_API_SIGNATURE_KEY') as string, ROCKET_CHAT_URI: Configuration.get('ROCKET_CHAT_URI') as string, ROCKET_CHAT_ADMIN_ID: Configuration.get('ROCKET_CHAT_ADMIN_ID') as string, ROCKET_CHAT_ADMIN_TOKEN: Configuration.get('ROCKET_CHAT_ADMIN_TOKEN') as string, ROCKET_CHAT_ADMIN_USER: Configuration.get('ROCKET_CHAT_ADMIN_USER') as string, ROCKET_CHAT_ADMIN_PASSWORD: Configuration.get('ROCKET_CHAT_ADMIN_PASSWORD') as string, + CTL_TOOLS__PREFERRED_TOOLS_LIMIT: Configuration.get('CTL_TOOLS__PREFERRED_TOOLS_LIMIT') as number, }; export const serverConfig = () => config; diff --git a/apps/server/src/modules/server/server.module.ts b/apps/server/src/modules/server/server.module.ts index f1ff7d226be..af457631d66 100644 --- a/apps/server/src/modules/server/server.module.ts +++ b/apps/server/src/modules/server/server.module.ts @@ -3,7 +3,7 @@ import { AuthGuardModule } from '@infra/auth-guard'; import { MongoDatabaseModuleOptions, MongoMemoryDatabaseModule } from '@infra/database'; import { MailModule } from '@infra/mail'; import { RabbitMQWrapperModule, RabbitMQWrapperTestModule } from '@infra/rabbitmq'; -import { SchulconnexClientModule } from '@infra/schulconnex-client'; +import { SchulconnexClientModule } from '@infra/schulconnex-client/schulconnex-client.module'; import { Dictionary, IPrimaryKey } from '@mikro-orm/core'; import { MikroOrmModule, MikroOrmModuleSyncOptions } from '@mikro-orm/nestjs'; import { AccountApiModule } from '@modules/account/account-api.module'; @@ -30,6 +30,7 @@ import { RoomApiModule } from '@modules/room/room-api.module'; import { RosterModule } from '@modules/roster/roster.module'; import { SchoolApiModule } from '@modules/school/school-api.module'; import { SharingApiModule } from '@modules/sharing/sharing.module'; +import { ShdApiModule } from '@modules/shd/shd.api.module'; import { SystemApiModule } from '@modules/system/system-api.module'; import { TaskApiModule } from '@modules/task/task-api.module'; import { TeamsApiModule } from '@modules/teams/teams-api.module'; @@ -46,7 +47,6 @@ import { ALL_ENTITIES } from '@shared/domain/entity'; import { createConfigModuleOptions, DB_PASSWORD, DB_URL, DB_USERNAME } from '@src/config'; import { CoreModule } from '@src/core'; import { LoggerModule } from '@src/core/logger'; -import { ShdApiModule } from '@modules/shd/shd.api.module'; import { ServerConfigController, ServerController, ServerUc } from './api'; import { SERVER_CONFIG_TOKEN, serverConfig } from './server.config'; diff --git a/apps/server/src/modules/tool/common/interface/external-tool-search-query.ts b/apps/server/src/modules/tool/common/interface/external-tool-search-query.ts index 659cd6c8280..05237fd7bb8 100644 --- a/apps/server/src/modules/tool/common/interface/external-tool-search-query.ts +++ b/apps/server/src/modules/tool/common/interface/external-tool-search-query.ts @@ -6,4 +6,6 @@ export interface ExternalToolSearchQuery { isHidden?: boolean; ids?: string[]; + + isPreferred?: boolean; } diff --git a/apps/server/src/modules/tool/common/service/common-tool-delete.service.spec.ts b/apps/server/src/modules/tool/common/service/common-tool-delete.service.spec.ts index 9ba1cf5ac7f..ca8b4f6cd07 100644 --- a/apps/server/src/modules/tool/common/service/common-tool-delete.service.spec.ts +++ b/apps/server/src/modules/tool/common/service/common-tool-delete.service.spec.ts @@ -262,4 +262,26 @@ describe(CommonToolDeleteService.name, () => { }); }); }); + + describe('deleteContextExternalToolsByCourseId', () => { + describe('when deleting a context external tool', () => { + const setup = () => { + const contextExternalTool = contextExternalToolFactory.build(); + + contextExternalToolRepo.find.mockResolvedValueOnce([contextExternalTool]); + + return { + contextExternalTool, + }; + }; + + it('should delete the context external tool', async () => { + const { contextExternalTool } = setup(); + + await service.deleteContextExternalToolsByCourseId(contextExternalTool.contextRef.id); + + expect(contextExternalToolRepo.delete).toHaveBeenCalledWith([contextExternalTool]); + }); + }); + }); }); diff --git a/apps/server/src/modules/tool/common/service/common-tool-delete.service.ts b/apps/server/src/modules/tool/common/service/common-tool-delete.service.ts index 4cfdd33795f..efaca8f9fc0 100644 --- a/apps/server/src/modules/tool/common/service/common-tool-delete.service.ts +++ b/apps/server/src/modules/tool/common/service/common-tool-delete.service.ts @@ -1,6 +1,8 @@ import { Injectable } from '@nestjs/common'; import { EventBus } from '@nestjs/cqrs'; import { ContextExternalToolRepo, ExternalToolRepo, SchoolExternalToolRepo } from '@shared/repo'; +import { EntityId } from '@shared/domain/types'; +import { ToolContextType } from '@modules/tool/common/enum'; import { ContextExternalTool, ContextExternalToolDeletedEvent } from '../../context-external-tool/domain'; import type { ExternalTool } from '../../external-tool/domain'; import type { SchoolExternalTool } from '../../school-external-tool/domain'; @@ -44,6 +46,14 @@ export class CommonToolDeleteService { await this.deleteContextExternalToolInternal(externalTool, contextExternalTool); } + public async deleteContextExternalToolsByCourseId(courseId: EntityId): Promise { + const contextExternalTools: ContextExternalTool[] = await this.contextExternalToolRepo.find({ + context: { id: courseId, type: ToolContextType.COURSE }, + }); + + await this.contextExternalToolRepo.delete(contextExternalTools); + } + private async deleteSchoolExternalToolInternal( externalTool: ExternalTool, schoolExternalTool: SchoolExternalTool diff --git a/apps/server/src/modules/tool/context-external-tool/service/context-external-tool.service.spec.ts b/apps/server/src/modules/tool/context-external-tool/service/context-external-tool.service.spec.ts index deaf6330fd5..ac626ba0c19 100644 --- a/apps/server/src/modules/tool/context-external-tool/service/context-external-tool.service.spec.ts +++ b/apps/server/src/modules/tool/context-external-tool/service/context-external-tool.service.spec.ts @@ -123,6 +123,27 @@ describe(ContextExternalToolService.name, () => { }); }); + describe('deleteContextExternalToolsByCourseId', () => { + describe('when deleting a context external tool', () => { + const setup = () => { + const contextExternalTool: ContextExternalTool = contextExternalToolFactory.build(); + const courseId = contextExternalTool.contextRef.id; + + return { + courseId, + }; + }; + + it('should delete the context external tool', async () => { + const { courseId } = setup(); + + await service.deleteContextExternalToolsByCourseId(courseId); + + expect(commonToolDeleteService.deleteContextExternalToolsByCourseId).toHaveBeenCalledWith(courseId); + }); + }); + }); + describe('saveContextExternalTool', () => { describe('when contextExternalTool is given', () => { const setup = () => { diff --git a/apps/server/src/modules/tool/context-external-tool/service/context-external-tool.service.ts b/apps/server/src/modules/tool/context-external-tool/service/context-external-tool.service.ts index 43f7d5f82ae..c1746cdf777 100644 --- a/apps/server/src/modules/tool/context-external-tool/service/context-external-tool.service.ts +++ b/apps/server/src/modules/tool/context-external-tool/service/context-external-tool.service.ts @@ -54,6 +54,11 @@ export class ContextExternalToolService { await this.commonToolDeleteService.deleteContextExternalTool(contextExternalTool); } + // called from feathers + public async deleteContextExternalToolsByCourseId(courseId: EntityId): Promise { + await this.commonToolDeleteService.deleteContextExternalToolsByCourseId(courseId); + } + public async findAllByContext(contextRef: ContextRef): Promise { const contextExternalTools: ContextExternalTool[] = await this.contextExternalToolRepo.find({ context: contextRef, diff --git a/apps/server/src/modules/tool/external-tool/controller/api-test/admin-api-external-tool.api.spec.ts b/apps/server/src/modules/tool/external-tool/controller/api-test/admin-api-external-tool.api.spec.ts index 09e589efc61..7d7a63d659d 100644 --- a/apps/server/src/modules/tool/external-tool/controller/api-test/admin-api-external-tool.api.spec.ts +++ b/apps/server/src/modules/tool/external-tool/controller/api-test/admin-api-external-tool.api.spec.ts @@ -96,6 +96,8 @@ describe('AdminApiExternalTool (API)', () => { url: 'https://link.to-my-tool.com', openNewTab: true, thumbnailUrl: 'https://link.to-my-thumbnail.com', + isPreferred: true, + iconName: 'mdiAlert', }; return { @@ -137,6 +139,8 @@ describe('AdminApiExternalTool (API)', () => { isDeactivated: false, url: 'https://link.to-my-tool.com', openNewTab: true, + isPreferred: true, + iconName: 'mdiAlert', }); const externalTool = await em.findOne(ExternalToolEntity, { id: body.id }); diff --git a/apps/server/src/modules/tool/external-tool/controller/api-test/tool.api.spec.ts b/apps/server/src/modules/tool/external-tool/controller/api-test/tool.api.spec.ts index c0242b68070..43c3cd75f7d 100644 --- a/apps/server/src/modules/tool/external-tool/controller/api-test/tool.api.spec.ts +++ b/apps/server/src/modules/tool/external-tool/controller/api-test/tool.api.spec.ts @@ -91,6 +91,8 @@ describe('ToolController (API)', () => { url: 'https://link.to-my-tool.com', openNewTab: true, thumbnailUrl: 'https://link.to-my-thumbnail.com', + isPreferred: true, + iconName: 'mdiAlert', }; describe('when valid data is given', () => { @@ -161,6 +163,8 @@ describe('ToolController (API)', () => { url: 'https://link.to-my-tool.com', openNewTab: true, thumbnailUrl: postParams.thumbnailUrl, + isPreferred: true, + iconName: 'mdiAlert', }); }); }); @@ -259,6 +263,7 @@ describe('ToolController (API)', () => { mediaSourceId: 'source:1', }, thumbnailUrl: 'https://link.to-my-thumbnail.com', + isPreferred: false, }; describe('when valid data is given', () => { @@ -506,6 +511,7 @@ describe('ToolController (API)', () => { mediumId: 'mediumId', publisher: 'publisher', }, + isPreferred: false, }; describe('when valid data is given', () => { @@ -587,6 +593,7 @@ describe('ToolController (API)', () => { publisher: params.medium?.publisher, }, thumbnailUrl: 'https://link.to-my-thumbnail2.com', + isPreferred: false, }); }); }); diff --git a/apps/server/src/modules/tool/external-tool/controller/dto/request/external-tool-create.params.ts b/apps/server/src/modules/tool/external-tool/controller/dto/request/external-tool-create.params.ts index 5d5f296ab96..804fb3dbc63 100644 --- a/apps/server/src/modules/tool/external-tool/controller/dto/request/external-tool-create.params.ts +++ b/apps/server/src/modules/tool/external-tool/controller/dto/request/external-tool-create.params.ts @@ -97,4 +97,16 @@ export class ExternalToolCreateParams { @IsOptional() @ApiPropertyOptional({ type: ExternalToolMediumParams, description: 'Medium of the external tool' }) medium?: ExternalToolMediumParams; + + @IsBoolean() + @ApiProperty({ type: Boolean, description: 'Should the tool be a preferred tool', default: false }) + isPreferred!: boolean; + + @IsString() + @IsOptional() + @ApiPropertyOptional({ + type: String, + description: 'Name of the icon to be rendered when displaying it as a preferred tool', + }) + iconName?: string; } diff --git a/apps/server/src/modules/tool/external-tool/controller/dto/request/external-tool-update.params.ts b/apps/server/src/modules/tool/external-tool/controller/dto/request/external-tool-update.params.ts index f52c306cba6..bd50d150e68 100644 --- a/apps/server/src/modules/tool/external-tool/controller/dto/request/external-tool-update.params.ts +++ b/apps/server/src/modules/tool/external-tool/controller/dto/request/external-tool-update.params.ts @@ -101,4 +101,16 @@ export class ExternalToolUpdateParams { @IsOptional() @ApiPropertyOptional({ type: ExternalToolMediumParams, description: 'Medium of the external tool' }) medium?: ExternalToolMediumParams; + + @IsBoolean() + @ApiProperty({ type: Boolean, default: false, description: 'Should the tool be a preferred tool' }) + isPreferred!: boolean; + + @IsString() + @IsOptional() + @ApiPropertyOptional({ + type: String, + description: 'Name of the icon to be rendered when displaying it as a preferred tool', + }) + iconName?: string; } diff --git a/apps/server/src/modules/tool/external-tool/controller/dto/response/external-tool.response.ts b/apps/server/src/modules/tool/external-tool/controller/dto/response/external-tool.response.ts index 571b2856bbf..92ad052ac4d 100644 --- a/apps/server/src/modules/tool/external-tool/controller/dto/response/external-tool.response.ts +++ b/apps/server/src/modules/tool/external-tool/controller/dto/response/external-tool.response.ts @@ -57,6 +57,15 @@ export class ExternalToolResponse { @ApiPropertyOptional({ type: ExternalToolMediumResponse, description: 'Medium of the external tool' }) medium?: ExternalToolMediumResponse; + @ApiProperty({ type: Boolean, description: 'Should the tool be a preferred tool' }) + isPreferred: boolean; + + @ApiPropertyOptional({ + type: String, + description: 'Name of the icon to be rendered when displaying it as a preferred tool', + }) + iconName?: string; + constructor(response: ExternalToolResponse) { this.id = response.id; this.name = response.name; @@ -71,5 +80,7 @@ export class ExternalToolResponse { this.openNewTab = response.openNewTab; this.restrictToContexts = response.restrictToContexts; this.medium = response.medium; + this.isPreferred = response.isPreferred; + this.iconName = response.iconName; } } diff --git a/apps/server/src/modules/tool/external-tool/domain/external-tool.do.spec.ts b/apps/server/src/modules/tool/external-tool/domain/external-tool.do.spec.ts index abef2a4541d..0a719e9e8e8 100644 --- a/apps/server/src/modules/tool/external-tool/domain/external-tool.do.spec.ts +++ b/apps/server/src/modules/tool/external-tool/domain/external-tool.do.spec.ts @@ -62,6 +62,7 @@ describe(ExternalTool.name, () => { openNewTab: false, config: basicToolConfigFactory.build(), isDeactivated: false, + isPreferred: false, }); }).toThrowError(); }); diff --git a/apps/server/src/modules/tool/external-tool/domain/external-tool.do.ts b/apps/server/src/modules/tool/external-tool/domain/external-tool.do.ts index 0ae6e0cc91a..e6d3c1df1ba 100644 --- a/apps/server/src/modules/tool/external-tool/domain/external-tool.do.ts +++ b/apps/server/src/modules/tool/external-tool/domain/external-tool.do.ts @@ -36,6 +36,10 @@ export interface ExternalToolProps extends AuthorizableObject { medium?: ExternalToolMedium; createdAt?: Date; + + isPreferred: boolean; + + iconName?: string; } export class ExternalTool extends DomainObject { @@ -151,6 +155,22 @@ export class ExternalTool extends DomainObject { this.props.createdAt = value; } + get isPreferred(): boolean { + return this.props.isPreferred; + } + + set isPreferred(value: boolean) { + this.props.isPreferred = value; + } + + get iconName(): string | undefined { + return this.props.iconName; + } + + set iconName(value: string | undefined) { + this.props.iconName = value; + } + public static readonly thumbnailNameAffix = 'thumbnail'; constructor(props: ExternalToolProps) { @@ -177,6 +197,8 @@ export class ExternalTool extends DomainObject { this.restrictToContexts = props.restrictToContexts; this.medium = props.medium; this.createdAt = props.createdAt; + this.isPreferred = props.isPreferred; + this.iconName = props.iconName; } static isBasicConfig(config: ExternalToolConfig): config is BasicToolConfig { diff --git a/apps/server/src/modules/tool/external-tool/entity/external-tool.entity.spec.ts b/apps/server/src/modules/tool/external-tool/entity/external-tool.entity.spec.ts index 46f3fba185c..0d25caeded4 100644 --- a/apps/server/src/modules/tool/external-tool/entity/external-tool.entity.spec.ts +++ b/apps/server/src/modules/tool/external-tool/entity/external-tool.entity.spec.ts @@ -60,6 +60,8 @@ describe('ExternalToolEntity', () => { isHidden: true, isDeactivated: false, openNewTab: true, + isPreferred: true, + iconName: 'mdiAlert', }); return { externalToolEntity, diff --git a/apps/server/src/modules/tool/external-tool/entity/external-tool.entity.ts b/apps/server/src/modules/tool/external-tool/entity/external-tool.entity.ts index 2e7063fe9fa..d73a57b54f4 100644 --- a/apps/server/src/modules/tool/external-tool/entity/external-tool.entity.ts +++ b/apps/server/src/modules/tool/external-tool/entity/external-tool.entity.ts @@ -36,6 +36,10 @@ export interface ExternalToolEntityProps { restrictToContexts?: ToolContextType[]; medium?: ExternalToolMediumEntity; + + isPreferred: boolean; + + iconName?: string; } @Entity({ tableName: 'external-tools' }) @@ -80,6 +84,12 @@ export class ExternalToolEntity extends BaseEntityWithTimestamps { @Embedded(() => ExternalToolMediumEntity, { nullable: true, object: true }) medium?: ExternalToolMediumEntity; + @Property() + isPreferred: boolean; + + @Property({ nullable: true }) + iconName?: string; + constructor(props: ExternalToolEntityProps) { super(); if (props.id) { @@ -98,5 +108,7 @@ export class ExternalToolEntity extends BaseEntityWithTimestamps { this.openNewTab = props.openNewTab; this.restrictToContexts = props.restrictToContexts; this.medium = props.medium; + this.isPreferred = props.isPreferred; + this.iconName = props.iconName; } } diff --git a/apps/server/src/modules/tool/external-tool/mapper/external-tool-request.mapper.spec.ts b/apps/server/src/modules/tool/external-tool/mapper/external-tool-request.mapper.spec.ts index 0ca8a677fc5..64711a30649 100644 --- a/apps/server/src/modules/tool/external-tool/mapper/external-tool-request.mapper.spec.ts +++ b/apps/server/src/modules/tool/external-tool/mapper/external-tool-request.mapper.spec.ts @@ -85,6 +85,7 @@ describe('ExternalToolRequestMapper', () => { externalToolCreateParams.isDeactivated = true; externalToolCreateParams.description = 'description'; externalToolCreateParams.thumbnailUrl = 'mockThumbnailUrl'; + externalToolCreateParams.isPreferred = false; const customParameterDO: CustomParameter = customParameterFactory.build({ name: 'mockName', @@ -158,6 +159,7 @@ describe('ExternalToolRequestMapper', () => { medium: externalToolDOCreate.medium, restrictToContexts: externalToolDOCreate.restrictToContexts, thumbnailUrl: externalToolCreateParams.thumbnailUrl, + isPreferred: false, }); }); }); @@ -206,6 +208,7 @@ describe('ExternalToolRequestMapper', () => { externalToolCreateParams.config = lti11ConfigParams; externalToolCreateParams.isDeactivated = false; externalToolCreateParams.description = 'description'; + externalToolCreateParams.isPreferred = false; const customParameterDO: CustomParameter = customParameterFactory.build({ name: 'mockName', @@ -279,6 +282,7 @@ describe('ExternalToolRequestMapper', () => { isDeactivated: externalToolDOCreate.isDeactivated, medium: externalToolDOCreate.medium, restrictToContexts: externalToolDOCreate.restrictToContexts, + isPreferred: false, }); }); }); @@ -331,6 +335,7 @@ describe('ExternalToolRequestMapper', () => { externalToolCreateParams.config = oauth2ConfigParams; externalToolCreateParams.isDeactivated = false; externalToolCreateParams.description = 'description'; + externalToolCreateParams.isPreferred = false; const customParameterDO: CustomParameter = customParameterFactory.build({ name: 'mockName', @@ -406,6 +411,7 @@ describe('ExternalToolRequestMapper', () => { isDeactivated: externalToolDOCreate.isDeactivated, medium: externalToolDOCreate.medium, restrictToContexts: externalToolDOCreate.restrictToContexts, + isPreferred: false, }); }); }); @@ -442,6 +448,7 @@ describe('ExternalToolRequestMapper', () => { externalToolUpdateParams.config = basicConfigParams; externalToolUpdateParams.isDeactivated = false; externalToolUpdateParams.description = 'description'; + externalToolUpdateParams.isPreferred = false; const customParameterDO: CustomParameter = customParameterFactory.build({ name: 'mockName', @@ -518,6 +525,7 @@ describe('ExternalToolRequestMapper', () => { isDeactivated: externalToolDOUpdate.isDeactivated, medium: externalToolDOUpdate.medium, restrictToContexts: externalToolDOUpdate.restrictToContexts, + isPreferred: false, }); }); }); @@ -567,6 +575,7 @@ describe('ExternalToolRequestMapper', () => { externalToolUpdateParams.config = lti11ConfigParams; externalToolUpdateParams.isDeactivated = false; externalToolUpdateParams.description = 'description'; + externalToolUpdateParams.isPreferred = false; const customParameterDO: CustomParameter = customParameterFactory.build({ name: 'mockName', @@ -644,6 +653,7 @@ describe('ExternalToolRequestMapper', () => { isDeactivated: externalToolDOUpdate.isDeactivated, medium: externalToolDOUpdate.medium, restrictToContexts: externalToolDOUpdate.restrictToContexts, + isPreferred: false, }); }); }); @@ -697,6 +707,7 @@ describe('ExternalToolRequestMapper', () => { externalToolUpdateParams.config = oauth2ConfigParams; externalToolUpdateParams.isDeactivated = false; externalToolUpdateParams.description = 'description'; + externalToolUpdateParams.isPreferred = false; const customParameterDO: CustomParameter = customParameterFactory.build({ name: 'mockName', @@ -776,6 +787,7 @@ describe('ExternalToolRequestMapper', () => { isDeactivated: externalToolDOUpdate.isDeactivated, medium: externalToolDOUpdate.medium, restrictToContexts: externalToolDOUpdate.restrictToContexts, + isPreferred: false, }); }); }); diff --git a/apps/server/src/modules/tool/external-tool/mapper/external-tool-request.mapper.ts b/apps/server/src/modules/tool/external-tool/mapper/external-tool-request.mapper.ts index 5805ee736e6..361fe1123ca 100644 --- a/apps/server/src/modules/tool/external-tool/mapper/external-tool-request.mapper.ts +++ b/apps/server/src/modules/tool/external-tool/mapper/external-tool-request.mapper.ts @@ -90,6 +90,8 @@ export class ExternalToolRequestMapper { openNewTab: externalToolUpdateParams.openNewTab, restrictToContexts: externalToolUpdateParams.restrictToContexts, medium: this.mapRequestToExternalToolMedium(externalToolUpdateParams.medium), + isPreferred: externalToolUpdateParams.isPreferred, + iconName: externalToolUpdateParams.iconName, }; } @@ -120,6 +122,8 @@ export class ExternalToolRequestMapper { restrictToContexts: externalToolCreateParams.restrictToContexts, medium: this.mapRequestToExternalToolMedium(externalToolCreateParams.medium), description: externalToolCreateParams.description, + isPreferred: externalToolCreateParams.isPreferred, + iconName: externalToolCreateParams.iconName, }; } diff --git a/apps/server/src/modules/tool/external-tool/mapper/external-tool-response.mapper.spec.ts b/apps/server/src/modules/tool/external-tool/mapper/external-tool-response.mapper.spec.ts index 31dba051a5b..e1dee797acc 100644 --- a/apps/server/src/modules/tool/external-tool/mapper/external-tool-response.mapper.spec.ts +++ b/apps/server/src/modules/tool/external-tool/mapper/external-tool-response.mapper.spec.ts @@ -95,6 +95,7 @@ describe(ExternalToolResponseMapper.name, () => { isDeactivated: true, description: externalTool.description, thumbnailUrl: externalTool.thumbnail?.uploadUrl, + isPreferred: false, }); return { @@ -187,6 +188,7 @@ describe(ExternalToolResponseMapper.name, () => { config: oauth2ToolConfigResponse, isDeactivated: false, description: externalTool.description, + isPreferred: false, }); return { @@ -274,6 +276,7 @@ describe(ExternalToolResponseMapper.name, () => { config: lti11ToolConfigResponse, isDeactivated: false, description: externalTool.description, + isPreferred: false, }); return { diff --git a/apps/server/src/modules/tool/external-tool/mapper/external-tool-response.mapper.ts b/apps/server/src/modules/tool/external-tool/mapper/external-tool-response.mapper.ts index 13a68d0e834..4a7087ea70e 100644 --- a/apps/server/src/modules/tool/external-tool/mapper/external-tool-response.mapper.ts +++ b/apps/server/src/modules/tool/external-tool/mapper/external-tool-response.mapper.ts @@ -75,6 +75,8 @@ export class ExternalToolResponseMapper { openNewTab: externalTool.openNewTab, restrictToContexts: externalTool.restrictToContexts, medium: this.mapMediumToResponse(externalTool.medium), + isPreferred: externalTool.isPreferred, + iconName: externalTool.iconName, }); } diff --git a/apps/server/src/modules/tool/external-tool/service/external-tool-validation.service.spec.ts b/apps/server/src/modules/tool/external-tool/service/external-tool-validation.service.spec.ts index ae618ae084a..6ada828de21 100644 --- a/apps/server/src/modules/tool/external-tool/service/external-tool-validation.service.spec.ts +++ b/apps/server/src/modules/tool/external-tool/service/external-tool-validation.service.spec.ts @@ -2,6 +2,7 @@ import { createMock, DeepMocked } from '@golevelup/ts-jest'; import { ConfigService } from '@nestjs/config'; import { Test, TestingModule } from '@nestjs/testing'; import { ValidationError } from '@shared/common'; +import { Page } from '@shared/domain/domainobject'; import { ToolConfig } from '../../tool-config'; import { ExternalTool } from '../domain'; import { externalToolFactory } from '../testing'; @@ -201,6 +202,163 @@ describe(ExternalToolValidationService.name, () => { expect(logoService.validateLogoSize).toHaveBeenCalledWith(externalTool); }); }); + + describe('when the external tool is set to be a preferred tool', () => { + describe('when the preferred tool has an icon name', () => { + const setup = () => { + const externalTool: ExternalTool = externalToolFactory.build({ + isPreferred: true, + iconName: 'mdiAlert', + }); + const mockedPreferredToolsPage: Page = new Page([], 0); + + externalToolService.findExternalTools.mockResolvedValue(mockedPreferredToolsPage); + configService.get.mockReturnValue(10); + + return { + externalTool, + }; + }; + + it('should not throw an validation error', async () => { + const { externalTool } = setup(); + + const result: Promise = service.validateCreate(externalTool); + + await expect(result).resolves.not.toThrow(); + }); + }); + + describe('when the preferred tool has undefined icon name', () => { + const setup = () => { + const externalTool: ExternalTool = externalToolFactory.build({ + isPreferred: true, + iconName: undefined, + }); + + const mockedPreferredToolsPage: Page = new Page([], 0); + + externalToolService.findExternalTools.mockResolvedValue(mockedPreferredToolsPage); + configService.get.mockReturnValue(10); + + const expectedError = new ValidationError( + `tool_preferred_tools_missing_icon_name: The icon name of the preferred tool ${externalTool.name} is missing.` + ); + + return { + externalTool, + expectedError, + }; + }; + + it('should throw an validation error', async () => { + const { externalTool, expectedError } = setup(); + + const result: Promise = service.validateCreate(externalTool); + + await expect(result).rejects.toThrow(expectedError); + }); + }); + + describe('when the preferred tool has a blank icon name', () => { + const setup = () => { + const externalTool: ExternalTool = externalToolFactory.build({ + isPreferred: true, + iconName: '', + }); + + const mockedPreferredToolsPage: Page = new Page([], 0); + + externalToolService.findExternalTools.mockResolvedValue(mockedPreferredToolsPage); + configService.get.mockReturnValue(10); + + const expectedError = new ValidationError( + `tool_preferred_tools_missing_icon_name: The icon name of the preferred tool ${externalTool.name} is missing.` + ); + + return { + externalTool, + expectedError, + }; + }; + + it('should throw an validation error', async () => { + const { externalTool, expectedError } = setup(); + + const result: Promise = service.validateCreate(externalTool); + + await expect(result).rejects.toThrow(expectedError); + }); + }); + + describe('when the preferred tool limits had already been reached', () => { + const setup = () => { + const externalTool: ExternalTool = externalToolFactory.build({ + isPreferred: true, + iconName: 'mdiAlert', + }); + + const mockedPreferredToolsPage: Page = new Page( + externalToolFactory.buildList(3), + 3 + ); + + externalToolService.findExternalTools.mockResolvedValue(mockedPreferredToolsPage); + configService.get.mockReturnValue(3); + + const expectedError = new ValidationError( + `tool_preferred_tools_limit_reached: Unable to add a new preferred tool, the total limit had been reached.` + ); + + return { + externalTool, + expectedError, + }; + }; + + it('should throw an validation error', async () => { + const { externalTool, expectedError } = setup(); + + const result: Promise = service.validateCreate(externalTool); + + await expect(result).rejects.toThrow(expectedError); + }); + }); + + describe('when the preferred tool limits had already been exceeded', () => { + const setup = () => { + const externalTool: ExternalTool = externalToolFactory.build({ + isPreferred: true, + iconName: 'mdiAlert', + }); + + const mockedPreferredToolsPage: Page = new Page( + externalToolFactory.buildList(5), + 3 + ); + + externalToolService.findExternalTools.mockResolvedValue(mockedPreferredToolsPage); + configService.get.mockReturnValue(3); + + const expectedError = new ValidationError( + `tool_preferred_tools_limit_reached: Unable to add a new preferred tool, the total limit had been reached.` + ); + + return { + externalTool, + expectedError, + }; + }; + + it('should throw an validation error', async () => { + const { externalTool, expectedError } = setup(); + + const result: Promise = service.validateCreate(externalTool); + + await expect(result).rejects.toThrow(expectedError); + }); + }); + }); }); describe('validateUpdate', () => { @@ -374,5 +532,299 @@ describe(ExternalToolValidationService.name, () => { expect(logoService.validateLogoSize).toHaveBeenCalledWith(externalTool); }); }); + + describe('when the external tool is not an preferred tool', () => { + describe('when the external tool is set to be a preferred tool', () => { + describe('when the preferred tool has an icon name', () => { + const setup = () => { + const existingToolToUpdate = externalToolFactory.buildWithId({ + isPreferred: false, + }); + + const toolWithNewParams = externalToolFactory.build({ + ...existingToolToUpdate.getProps(), + id: existingToolToUpdate.id, + isPreferred: true, + iconName: 'mdiAlert', + }); + + const existingPreferredTools: Page = new Page([], 0); + + externalToolService.findExternalTools.mockResolvedValue(existingPreferredTools); + configService.get.mockReturnValue(10); + + return { + existingToolToUpdateId: existingToolToUpdate.id, + toolWithNewParams, + }; + }; + + it('should not throw an validation error', async () => { + const { existingToolToUpdateId, toolWithNewParams } = setup(); + + const result: Promise = service.validateUpdate(existingToolToUpdateId, toolWithNewParams); + + await expect(result).resolves.not.toThrow(); + }); + }); + + describe('when the preferred tool has undefined icon name', () => { + const setup = () => { + const existingToolToUpdate = externalToolFactory.buildWithId({ + isPreferred: false, + }); + + const toolWithNewParams = externalToolFactory.build({ + ...existingToolToUpdate.getProps(), + id: existingToolToUpdate.id, + isPreferred: true, + iconName: undefined, + }); + + const existingPreferredTools: Page = new Page([], 0); + + externalToolService.findExternalTools.mockResolvedValue(existingPreferredTools); + configService.get.mockReturnValue(10); + + const expectedError = new ValidationError( + `tool_preferred_tools_missing_icon_name: The icon name of the preferred tool ${toolWithNewParams.name} is missing.` + ); + + return { + existingToolToUpdateId: existingToolToUpdate.id, + toolWithNewParams, + expectedError, + }; + }; + + it('should throw an validation error', async () => { + const { existingToolToUpdateId, toolWithNewParams, expectedError } = setup(); + + const result: Promise = service.validateUpdate(existingToolToUpdateId, toolWithNewParams); + + await expect(result).rejects.toThrow(expectedError); + }); + }); + + describe('when the preferred tool has a blank icon name', () => { + const setup = () => { + const existingToolToUpdate = externalToolFactory.buildWithId({ + isPreferred: false, + }); + + const toolWithNewParams = externalToolFactory.build({ + ...existingToolToUpdate.getProps(), + id: existingToolToUpdate.id, + isPreferred: true, + iconName: '', + }); + + const existingPreferredTools: Page = new Page([], 0); + + externalToolService.findExternalTools.mockResolvedValue(existingPreferredTools); + configService.get.mockReturnValue(10); + + const expectedError = new ValidationError( + `tool_preferred_tools_missing_icon_name: The icon name of the preferred tool ${toolWithNewParams.name} is missing.` + ); + + return { + existingToolToUpdateId: existingToolToUpdate.id, + toolWithNewParams, + expectedError, + }; + }; + + it('should throw an validation error', async () => { + const { existingToolToUpdateId, toolWithNewParams, expectedError } = setup(); + + const result: Promise = service.validateUpdate(existingToolToUpdateId, toolWithNewParams); + + await expect(result).rejects.toThrow(expectedError); + }); + }); + + describe('when the preferred tool limits had already been reached', () => { + const setup = () => { + const existingToolToUpdate = externalToolFactory.buildWithId({ + isPreferred: false, + }); + + const toolWithNewParams = externalToolFactory.build({ + ...existingToolToUpdate.getProps(), + id: existingToolToUpdate.id, + isPreferred: true, + iconName: 'mdiAlert', + }); + + const existingPreferredTools: Page = new Page( + externalToolFactory.buildListWithId(3, { + isPreferred: true, + iconName: 'mdiFlag', + }), + 3 + ); + + externalToolService.findExternalTools.mockResolvedValue(existingPreferredTools); + configService.get.mockReturnValue(3); + + const expectedError = new ValidationError( + `tool_preferred_tools_limit_reached: Unable to add a new preferred tool, the total limit had been reached.` + ); + + return { + existingToolToUpdateId: existingToolToUpdate.id, + toolWithNewParams, + expectedError, + }; + }; + + it('should throw an validation error', async () => { + const { existingToolToUpdateId, toolWithNewParams, expectedError } = setup(); + + const result: Promise = service.validateUpdate(existingToolToUpdateId, toolWithNewParams); + + await expect(result).rejects.toThrow(expectedError); + expect(externalToolService.findExternalTools).toBeCalledWith({ isPreferred: true }); + }); + }); + + describe('when the preferred tool limits had already been exceeded', () => { + const setup = () => { + const existingToolToUpdate = externalToolFactory.buildWithId({ + isPreferred: false, + }); + + const toolWithNewParams = externalToolFactory.build({ + ...existingToolToUpdate.getProps(), + id: existingToolToUpdate.id, + isPreferred: true, + iconName: 'mdiAlert', + }); + + const existingPreferredTools: Page = new Page( + externalToolFactory.buildListWithId(3, { + isPreferred: true, + iconName: 'mdiFlag', + }), + 5 + ); + + externalToolService.findExternalTools.mockResolvedValue(existingPreferredTools); + configService.get.mockReturnValue(3); + + const expectedError = new ValidationError( + `tool_preferred_tools_limit_reached: Unable to add a new preferred tool, the total limit had been reached.` + ); + + return { + existingToolToUpdateId: existingToolToUpdate.id, + toolWithNewParams, + expectedError, + }; + }; + + it('should throw an validation error', async () => { + const { existingToolToUpdateId, toolWithNewParams, expectedError } = setup(); + + const result: Promise = service.validateUpdate(existingToolToUpdateId, toolWithNewParams); + + await expect(result).rejects.toThrow(expectedError); + expect(externalToolService.findExternalTools).toBeCalledWith({ isPreferred: true }); + }); + }); + }); + }); + + describe('when the external tool is already an preferred tool', () => { + describe('when the preferred tool limit is reached', () => { + const setup = () => { + const existingToolToUpdate = externalToolFactory.buildWithId({ + isPreferred: true, + iconName: 'mdiAlert', + }); + + const toolWithNewParams = externalToolFactory.build({ + ...existingToolToUpdate.getProps(), + id: existingToolToUpdate.id, + name: 'new-name-tool', + }); + + const existingOtherPreferredTools = externalToolFactory.buildListWithId(3, { + isPreferred: true, + iconName: 'mdiFlag', + }); + + const existingTools: Page = new Page( + [existingToolToUpdate, ...existingOtherPreferredTools], + 4 + ); + + externalToolService.findExternalTools.mockResolvedValue(existingTools); + configService.get.mockReturnValue(4); + + return { + existingToolToUpdateId: existingToolToUpdate.id, + toolWithNewParams, + }; + }; + + it('should not throw any error', async () => { + const { existingToolToUpdateId, toolWithNewParams } = setup(); + + const result: Promise = service.validateUpdate(existingToolToUpdateId, toolWithNewParams); + + await expect(result).resolves.not.toThrow(); + expect(externalToolService.findExternalTools).toBeCalledWith({ isPreferred: true }); + }); + }); + + describe('when the preferred tool limits had already been exceeded', () => { + const setup = () => { + const existingToolToUpdate = externalToolFactory.buildWithId({ + isPreferred: true, + iconName: 'mdiAlert', + }); + + const toolWithNewParams = externalToolFactory.build({ + ...existingToolToUpdate.getProps(), + id: existingToolToUpdate.id, + name: 'new-name-tool', + }); + + const existingOtherPreferredTools = externalToolFactory.buildListWithId(3, { + isPreferred: true, + iconName: 'mdiFlag', + }); + + const existingTools: Page = new Page( + [existingToolToUpdate, ...existingOtherPreferredTools], + 4 + ); + + externalToolService.findExternalTools.mockResolvedValue(existingTools); + configService.get.mockReturnValue(2); + + const expectedError = new ValidationError( + `tool_preferred_tools_limit_reached: Unable to add a new preferred tool, the total limit had been reached.` + ); + + return { + existingToolToUpdateId: existingToolToUpdate.id, + toolWithNewParams, + expectedError, + }; + }; + + it('should not throw any error', async () => { + const { existingToolToUpdateId, toolWithNewParams } = setup(); + + const result: Promise = service.validateUpdate(existingToolToUpdateId, toolWithNewParams); + + await expect(result).resolves.not.toThrow(); + expect(externalToolService.findExternalTools).toBeCalledWith({ isPreferred: true }); + }); + }); + }); }); }); diff --git a/apps/server/src/modules/tool/external-tool/service/external-tool-validation.service.ts b/apps/server/src/modules/tool/external-tool/service/external-tool-validation.service.ts index 53db997369f..281f551873a 100644 --- a/apps/server/src/modules/tool/external-tool/service/external-tool-validation.service.ts +++ b/apps/server/src/modules/tool/external-tool/service/external-tool-validation.service.ts @@ -1,5 +1,8 @@ import { Injectable } from '@nestjs/common'; +import { ConfigService } from '@nestjs/config'; import { ValidationError } from '@shared/common'; +import { Page } from '@shared/domain/domainobject'; +import { ToolConfig } from '../../tool-config'; import { ExternalTool } from '../domain'; import { ExternalToolLogoService } from './external-tool-logo.service'; import { ExternalToolParameterValidationService } from './external-tool-parameter-validation.service'; @@ -10,7 +13,8 @@ export class ExternalToolValidationService { constructor( private readonly externalToolService: ExternalToolService, private readonly externalToolParameterValidationService: ExternalToolParameterValidationService, - private readonly externalToolLogoService: ExternalToolLogoService + private readonly externalToolLogoService: ExternalToolLogoService, + private readonly configService: ConfigService ) {} async validateCreate(externalTool: ExternalTool): Promise { @@ -21,6 +25,10 @@ export class ExternalToolValidationService { this.validateLti11Config(externalTool); this.externalToolLogoService.validateLogoSize(externalTool); + + if (externalTool.isPreferred) { + await this.validatePreferredTool(externalTool); + } } async validateUpdate(toolId: string, externalTool: ExternalTool): Promise { @@ -53,6 +61,10 @@ export class ExternalToolValidationService { } this.externalToolLogoService.validateLogoSize(externalTool); + + if (externalTool.isPreferred) { + await this.validatePreferredTool(externalTool); + } } private async validateOauth2Config(externalTool: ExternalTool): Promise { @@ -88,4 +100,29 @@ export class ExternalToolValidationService { } return duplicate == null || duplicate.id === externalTool.id; } + + private async validatePreferredTool(toolToValidate: ExternalTool): Promise { + if (!toolToValidate.iconName) { + throw new ValidationError( + `tool_preferred_tools_missing_icon_name: The icon name of the preferred tool ${toolToValidate.name} is missing.` + ); + } + + const preferredTools: Page = await this.externalToolService.findExternalTools({ + isPreferred: true, + }); + + const isToolToValidateAlreadyPreferred: boolean = preferredTools.data.some( + (existingPreferredTool: ExternalTool) => existingPreferredTool.id === toolToValidate.id + ); + if (isToolToValidateAlreadyPreferred) { + return; + } + + if (preferredTools.total >= this.configService.get('CTL_TOOLS__PREFERRED_TOOLS_LIMIT')) { + throw new ValidationError( + `tool_preferred_tools_limit_reached: Unable to add a new preferred tool, the total limit had been reached.` + ); + } + } } diff --git a/apps/server/src/modules/tool/external-tool/service/external-tool.service.spec.ts b/apps/server/src/modules/tool/external-tool/service/external-tool.service.spec.ts index ea54061dd37..5e08193da2c 100644 --- a/apps/server/src/modules/tool/external-tool/service/external-tool.service.spec.ts +++ b/apps/server/src/modules/tool/external-tool/service/external-tool.service.spec.ts @@ -510,6 +510,27 @@ describe(ExternalToolService.name, () => { }); describe('updateExternalTool', () => { + describe('when external tool with lti11 config is given', () => { + const setup = () => { + encryptionService.encrypt.mockReturnValue('newEncryptedSecret'); + const changedTool: ExternalTool = externalToolFactory + .withLti11Config({ secret: 'newEncryptedSecret' }) + .build({ name: 'newName' }); + + return { + changedTool, + }; + }; + + it('should call externalToolServiceMapper', async () => { + const { changedTool } = setup(); + + await service.updateExternalTool(changedTool); + + expect(externalToolRepo.save).toHaveBeenLastCalledWith(changedTool); + }); + }); + describe('when external tool with oauthConfig is given', () => { const setup = () => { const existingTool: ExternalTool = externalToolFactory.withOauth2Config().buildWithId(); diff --git a/apps/server/src/modules/tool/external-tool/service/external-tool.service.ts b/apps/server/src/modules/tool/external-tool/service/external-tool.service.ts index 62d1bb39b58..784e64c5643 100644 --- a/apps/server/src/modules/tool/external-tool/service/external-tool.service.ts +++ b/apps/server/src/modules/tool/external-tool/service/external-tool.service.ts @@ -42,7 +42,10 @@ export class ExternalToolService { } public async updateExternalTool(toUpdate: ExternalTool): Promise { - // TODO N21-2097 use encryption for secret + if (ExternalTool.isLti11Config(toUpdate.config) && toUpdate.config.secret) { + toUpdate.config.secret = this.encryptionService.encrypt(toUpdate.config.secret); + } + await this.updateOauth2ToolConfig(toUpdate); const externalTool: ExternalTool = await this.externalToolRepo.save(toUpdate); diff --git a/apps/server/src/modules/tool/external-tool/testing/external-tool-entity.factory.ts b/apps/server/src/modules/tool/external-tool/testing/external-tool-entity.factory.ts index 1c8b4df07a4..0b820bf21d1 100644 --- a/apps/server/src/modules/tool/external-tool/testing/external-tool-entity.factory.ts +++ b/apps/server/src/modules/tool/external-tool/testing/external-tool-entity.factory.ts @@ -1,4 +1,7 @@ +import { DeepPartial } from 'fishery'; import { ObjectId } from '@mikro-orm/mongodb'; +import { fileRecordFactory } from '@shared/testing'; +import { BaseFactory } from '@shared/testing/factory/base.factory'; import { CustomParameterLocation, CustomParameterScope, @@ -6,7 +9,7 @@ import { LtiMessageType, LtiPrivacyPermission, ToolConfigType, -} from '@modules/tool/common/enum'; +} from '../../common/enum'; import { BasicToolConfigEntity, CustomParameterEntity, @@ -15,10 +18,7 @@ import { ExternalToolMediumEntity, Lti11ToolConfigEntity, Oauth2ToolConfigEntity, -} from '@modules/tool/external-tool/entity'; -import { fileRecordFactory } from '@shared/testing'; -import { BaseFactory } from '@shared/testing/factory/base.factory'; -import { DeepPartial } from 'fishery'; +} from '../entity'; export class ExternalToolEntityFactory extends BaseFactory { withName(name: string): this { @@ -126,6 +126,7 @@ export const externalToolEntityFactory = ExternalToolEntityFactory.define( uploadUrl: 'https://uploadurl.com', fileRecord: fileRecordFactory.build(), }, + isPreferred: false, }; } ); diff --git a/apps/server/src/modules/tool/external-tool/testing/external-tool.factory.ts b/apps/server/src/modules/tool/external-tool/testing/external-tool.factory.ts index aa0653fdd5a..d1bff9ba0ef 100644 --- a/apps/server/src/modules/tool/external-tool/testing/external-tool.factory.ts +++ b/apps/server/src/modules/tool/external-tool/testing/external-tool.factory.ts @@ -1,5 +1,7 @@ +import { DeepPartial } from 'fishery'; import { ObjectId } from '@mikro-orm/mongodb'; -import { CustomParameter } from '@modules/tool/common/domain'; +import { DoBaseFactory } from '@shared/testing/factory/domainobject/do-base.factory'; +import { CustomParameter } from '../../common/domain'; import { CustomParameterLocation, CustomParameterScope, @@ -8,7 +10,7 @@ import { LtiPrivacyPermission, TokenEndpointAuthMethod, ToolConfigType, -} from '@modules/tool/common/enum'; +} from '../../common/enum'; import { BasicToolConfig, ExternalTool, @@ -16,9 +18,7 @@ import { ExternalToolProps, Lti11ToolConfig, Oauth2ToolConfig, -} from '@modules/tool/external-tool/domain'; -import { DoBaseFactory } from '@shared/testing/factory/domainobject/do-base.factory'; -import { DeepPartial } from 'fishery'; +} from '../domain'; import { fileRecordRefFactory } from './file-record-ref.factory'; export const basicToolConfigFactory = DoBaseFactory.define(BasicToolConfig, () => { @@ -149,5 +149,7 @@ export const externalToolFactory = ExternalToolFactory.define(ExternalTool, ({ s isDeactivated: false, openNewTab: false, createdAt: new Date(2020, 1, 1), + restrictToContexts: undefined, + isPreferred: false, }; }); diff --git a/apps/server/src/modules/tool/external-tool/uc/dto/external-tool.types.ts b/apps/server/src/modules/tool/external-tool/uc/dto/external-tool.types.ts index ffa611966e0..72ddb7f66c7 100644 --- a/apps/server/src/modules/tool/external-tool/uc/dto/external-tool.types.ts +++ b/apps/server/src/modules/tool/external-tool/uc/dto/external-tool.types.ts @@ -44,6 +44,10 @@ export type ExternalToolDto = { restrictToContexts?: ToolContextType[]; medium?: ExternalToolMediumDto; + + isPreferred: boolean; + + iconName?: string; }; export type ExternalToolCreate = ExternalToolDto; diff --git a/apps/server/src/modules/tool/school-external-tool/controller/dto/school-external-tool.response.ts b/apps/server/src/modules/tool/school-external-tool/controller/dto/school-external-tool.response.ts index 76e4affd524..7a57d039746 100644 --- a/apps/server/src/modules/tool/school-external-tool/controller/dto/school-external-tool.response.ts +++ b/apps/server/src/modules/tool/school-external-tool/controller/dto/school-external-tool.response.ts @@ -1,4 +1,5 @@ -import { ApiProperty } from '@nestjs/swagger'; +import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; +import { ToolContextType } from '@modules/tool/common/enum'; import { CustomParameterEntryResponse } from './custom-parameter-entry.response'; import { SchoolExternalToolConfigurationStatusResponse } from './school-external-tool-configuration.response'; @@ -24,6 +25,9 @@ export class SchoolExternalToolResponse { @ApiProperty({ type: SchoolExternalToolConfigurationStatusResponse }) status: SchoolExternalToolConfigurationStatusResponse; + @ApiPropertyOptional({ enum: ToolContextType, enumName: 'ToolContextType', isArray: true }) + restrictToContexts?: ToolContextType[]; + constructor(response: SchoolExternalToolResponse) { this.id = response.id; this.name = response.name; @@ -32,5 +36,6 @@ export class SchoolExternalToolResponse { this.isDeactivated = response.isDeactivated; this.parameters = response.parameters; this.status = response.status; + this.restrictToContexts = response.restrictToContexts; } } diff --git a/apps/server/src/modules/tool/school-external-tool/domain/school-external-tool.do.ts b/apps/server/src/modules/tool/school-external-tool/domain/school-external-tool.do.ts index 4d8ed9b8a9f..2480442b86a 100644 --- a/apps/server/src/modules/tool/school-external-tool/domain/school-external-tool.do.ts +++ b/apps/server/src/modules/tool/school-external-tool/domain/school-external-tool.do.ts @@ -1,4 +1,5 @@ import { AuthorizableObject, DomainObject } from '@shared/domain/domain-object'; +import { ToolContextType } from '@modules/tool/common/enum'; import { CustomParameterEntry } from '../../common/domain'; import { SchoolExternalToolConfigurationStatus } from './school-external-tool-configuration-status'; @@ -16,6 +17,8 @@ export interface SchoolExternalToolProps extends AuthorizableObject { isDeactivated: boolean; status?: SchoolExternalToolConfigurationStatus; + + restrictToContexts?: ToolContextType[]; } export class SchoolExternalTool extends DomainObject { @@ -50,4 +53,8 @@ export class SchoolExternalTool extends DomainObject { set status(value: SchoolExternalToolConfigurationStatus) { this.props.status = value; } + + get restrictToContexts(): ToolContextType[] | undefined { + return this.props.restrictToContexts; + } } diff --git a/apps/server/src/modules/tool/school-external-tool/mapper/school-external-tool-response.mapper.ts b/apps/server/src/modules/tool/school-external-tool/mapper/school-external-tool-response.mapper.ts index 50e75ecd37d..3381119843e 100644 --- a/apps/server/src/modules/tool/school-external-tool/mapper/school-external-tool-response.mapper.ts +++ b/apps/server/src/modules/tool/school-external-tool/mapper/school-external-tool-response.mapper.ts @@ -28,6 +28,7 @@ export class SchoolExternalToolResponseMapper { isOutdatedOnScopeSchool: schoolExternalTool.status.isOutdatedOnScopeSchool, isGloballyDeactivated: schoolExternalTool.status.isGloballyDeactivated, }), + restrictToContexts: schoolExternalTool.restrictToContexts, }); return response; diff --git a/apps/server/src/modules/tool/school-external-tool/service/school-external-tool.service.spec.ts b/apps/server/src/modules/tool/school-external-tool/service/school-external-tool.service.spec.ts index 09433388abd..fe91b251c53 100644 --- a/apps/server/src/modules/tool/school-external-tool/service/school-external-tool.service.spec.ts +++ b/apps/server/src/modules/tool/school-external-tool/service/school-external-tool.service.spec.ts @@ -2,6 +2,7 @@ import { createMock, DeepMocked } from '@golevelup/ts-jest'; import { Test, TestingModule } from '@nestjs/testing'; import { ValidationError } from '@shared/common'; import { SchoolExternalToolRepo } from '@shared/repo'; +import { ToolContextType } from '@modules/tool/common/enum'; import { CommonToolDeleteService, CommonToolValidationService } from '../../common/service'; import { ExternalToolService } from '../../external-tool'; import { type ExternalTool } from '../../external-tool/domain'; @@ -53,7 +54,9 @@ describe(SchoolExternalToolService.name, () => { describe('findSchoolExternalTools', () => { describe('when called with query', () => { const setup = () => { - const externalTool: ExternalTool = externalToolFactory.build(); + const externalTool: ExternalTool = externalToolFactory.build({ + restrictToContexts: [ToolContextType.COURSE], + }); const schoolExternalTool: SchoolExternalTool = schoolExternalToolFactory.build({ name: undefined, status: undefined, @@ -101,6 +104,7 @@ describe(SchoolExternalToolService.name, () => { isGloballyDeactivated: externalTool.isDeactivated, isOutdatedOnScopeSchool: true, }), + restrictToContexts: externalTool.restrictToContexts, }), ]); }); diff --git a/apps/server/src/modules/tool/school-external-tool/service/school-external-tool.service.ts b/apps/server/src/modules/tool/school-external-tool/service/school-external-tool.service.ts index 809cbd94f3c..d25c6d4e762 100644 --- a/apps/server/src/modules/tool/school-external-tool/service/school-external-tool.service.ts +++ b/apps/server/src/modules/tool/school-external-tool/service/school-external-tool.service.ts @@ -55,6 +55,7 @@ export class SchoolExternalToolService { ...tool.getProps(), name: externalTool.name, status, + restrictToContexts: externalTool.restrictToContexts, }); return schoolExternalTool; diff --git a/apps/server/src/modules/tool/school-external-tool/testing/school-external-tool.factory.ts b/apps/server/src/modules/tool/school-external-tool/testing/school-external-tool.factory.ts index 3d979b90331..a3e8fd641e7 100644 --- a/apps/server/src/modules/tool/school-external-tool/testing/school-external-tool.factory.ts +++ b/apps/server/src/modules/tool/school-external-tool/testing/school-external-tool.factory.ts @@ -28,5 +28,6 @@ export const schoolExternalToolFactory = SchoolExternalToolFactory.define(School toolId: 'toolId', isDeactivated: false, status: schoolExternalToolConfigurationStatusFactory.build(), + restrictToContexts: undefined, }; }); diff --git a/apps/server/src/modules/tool/tool-config.ts b/apps/server/src/modules/tool/tool-config.ts index d9eaee0dc9e..8e9755b553d 100644 --- a/apps/server/src/modules/tool/tool-config.ts +++ b/apps/server/src/modules/tool/tool-config.ts @@ -6,4 +6,5 @@ export interface ToolConfig { FEATURE_CTL_TOOLS_COPY_ENABLED: boolean; CTL_TOOLS_RELOAD_TIME_MS: number; FILES_STORAGE__SERVICE_BASE_URL: string; + CTL_TOOLS__PREFERRED_TOOLS_LIMIT: number; } diff --git a/apps/server/src/modules/tool/tool-launch/service/launch-strategy/lti11-tool-launch.strategy.spec.ts b/apps/server/src/modules/tool/tool-launch/service/launch-strategy/lti11-tool-launch.strategy.spec.ts index 05fecd75d56..74b45a6024d 100644 --- a/apps/server/src/modules/tool/tool-launch/service/launch-strategy/lti11-tool-launch.strategy.spec.ts +++ b/apps/server/src/modules/tool/tool-launch/service/launch-strategy/lti11-tool-launch.strategy.spec.ts @@ -1,4 +1,5 @@ import { createMock, DeepMocked } from '@golevelup/ts-jest'; +import { DefaultEncryptionService, EncryptionService } from '@infra/encryption'; import { ObjectId } from '@mikro-orm/mongodb'; import { PseudonymService } from '@modules/pseudonym/service'; import { UserService } from '@modules/user'; @@ -36,6 +37,7 @@ describe('Lti11ToolLaunchStrategy', () => { let userService: DeepMocked; let pseudonymService: DeepMocked; let lti11EncryptionService: DeepMocked; + let encryptionService: DeepMocked; beforeAll(async () => { module = await Test.createTestingModule({ @@ -77,6 +79,10 @@ describe('Lti11ToolLaunchStrategy', () => { provide: AutoGroupExternalUuidStrategy, useValue: createMock(), }, + { + provide: DefaultEncryptionService, + useValue: createMock(), + }, ], }).compile(); @@ -85,6 +91,7 @@ describe('Lti11ToolLaunchStrategy', () => { userService = module.get(UserService); pseudonymService = module.get(PseudonymService); lti11EncryptionService = module.get(Lti11EncryptionService); + encryptionService = module.get(DefaultEncryptionService); }); afterAll(async () => { @@ -134,10 +141,13 @@ describe('Lti11ToolLaunchStrategy', () => { ], }); + const decrypted = 'decryptedSecret'; + encryptionService.decrypt.mockReturnValue(decrypted); userService.findById.mockResolvedValue(user); return { data, + decrypted, user, mockKey, mockSecret, @@ -148,14 +158,14 @@ describe('Lti11ToolLaunchStrategy', () => { }; it('should contain lti key and secret without location', async () => { - const { data, mockKey, mockSecret } = setup(); + const { data, mockKey, decrypted } = setup(); const result: PropertyData[] = await strategy.buildToolLaunchDataFromConcreteConfig('userId', data); expect(result).toEqual( expect.arrayContaining([ new PropertyData({ name: 'key', value: mockKey }), - new PropertyData({ name: 'secret', value: mockSecret }), + new PropertyData({ name: 'secret', value: decrypted }), ]) ); }); diff --git a/apps/server/src/modules/tool/tool-launch/service/launch-strategy/lti11-tool-launch.strategy.ts b/apps/server/src/modules/tool/tool-launch/service/launch-strategy/lti11-tool-launch.strategy.ts index 948df83c295..c0977743e54 100644 --- a/apps/server/src/modules/tool/tool-launch/service/launch-strategy/lti11-tool-launch.strategy.ts +++ b/apps/server/src/modules/tool/tool-launch/service/launch-strategy/lti11-tool-launch.strategy.ts @@ -1,7 +1,8 @@ +import { DefaultEncryptionService, EncryptionService } from '@infra/encryption'; import { ObjectId } from '@mikro-orm/mongodb'; import { PseudonymService } from '@modules/pseudonym/service'; import { UserService } from '@modules/user'; -import { Injectable, InternalServerErrorException, UnprocessableEntityException } from '@nestjs/common'; +import { Inject, Injectable, InternalServerErrorException, UnprocessableEntityException } from '@nestjs/common'; import { Pseudonym, RoleReference, UserDO } from '@shared/domain/domainobject'; import { RoleName } from '@shared/domain/interface'; import { EntityId } from '@shared/domain/types'; @@ -28,6 +29,7 @@ export class Lti11ToolLaunchStrategy extends AbstractLaunchStrategy { private readonly userService: UserService, private readonly pseudonymService: PseudonymService, private readonly lti11EncryptionService: Lti11EncryptionService, + @Inject(DefaultEncryptionService) private readonly encryptionService: EncryptionService, autoSchoolIdStrategy: AutoSchoolIdStrategy, autoSchoolNumberStrategy: AutoSchoolNumberStrategy, autoContextIdStrategy: AutoContextIdStrategy, @@ -63,10 +65,11 @@ export class Lti11ToolLaunchStrategy extends AbstractLaunchStrategy { const roleNames: RoleName[] = user.roles.map((roleRef: RoleReference): RoleName => roleRef.name); const ltiRoles: LtiRole[] = LtiRoleMapper.mapRolesToLtiRoles(roleNames); + const decrypted = this.encryptionService.decrypt(config.secret); + const additionalProperties: PropertyData[] = [ new PropertyData({ name: 'key', value: config.key }), - // TODO N21-2097 use decryption for secret - new PropertyData({ name: 'secret', value: config.secret }), + new PropertyData({ name: 'secret', value: decrypted }), new PropertyData({ name: 'lti_message_type', value: config.lti_message_type, location: PropertyLocation.BODY }), new PropertyData({ name: 'lti_version', value: 'LTI-1p0', location: PropertyLocation.BODY }), diff --git a/apps/server/src/modules/tool/tool-launch/tool-launch.module.ts b/apps/server/src/modules/tool/tool-launch/tool-launch.module.ts index 15344278bcd..2644dc7f5fc 100644 --- a/apps/server/src/modules/tool/tool-launch/tool-launch.module.ts +++ b/apps/server/src/modules/tool/tool-launch/tool-launch.module.ts @@ -1,3 +1,4 @@ +import { EncryptionModule } from '@infra/encryption'; import { BoardModule } from '@modules/board'; import { LearnroomModule } from '@modules/learnroom'; import { LegacySchoolModule } from '@modules/legacy-school'; @@ -32,6 +33,7 @@ import { BasicToolLaunchStrategy, Lti11ToolLaunchStrategy, OAuth2ToolLaunchStrat LearnroomModule, BoardModule, GroupModule, + EncryptionModule, ], providers: [ ToolLaunchService, diff --git a/apps/server/src/modules/user-import/controller/api-test/import-user-populate.api.spec.ts b/apps/server/src/modules/user-import/controller/api-test/import-user-populate.api.spec.ts index 0ff4a8c1320..47eee9ccb07 100644 --- a/apps/server/src/modules/user-import/controller/api-test/import-user-populate.api.spec.ts +++ b/apps/server/src/modules/user-import/controller/api-test/import-user-populate.api.spec.ts @@ -1,4 +1,5 @@ -import { SchulconnexResponse, schulconnexResponseFactory } from '@infra/schulconnex-client'; +import { SchulconnexResponse } from '@infra/schulconnex-client'; +import { schulconnexResponseFactory } from '@infra/schulconnex-client/testing'; import { EntityManager, ObjectId } from '@mikro-orm/mongodb'; import { OauthTokenResponse } from '@modules/oauth/service/dto'; import { serverConfig, ServerConfig } from '@modules/server'; diff --git a/apps/server/src/modules/user-import/service/schulconnex-fetch-import-users.service.spec.ts b/apps/server/src/modules/user-import/service/schulconnex-fetch-import-users.service.spec.ts index 3283f45a51b..c764d2b1793 100644 --- a/apps/server/src/modules/user-import/service/schulconnex-fetch-import-users.service.spec.ts +++ b/apps/server/src/modules/user-import/service/schulconnex-fetch-import-users.service.spec.ts @@ -1,6 +1,7 @@ import { createMock, DeepMocked } from '@golevelup/ts-jest'; import { MongoMemoryDatabaseModule } from '@infra/database'; -import { SchulconnexResponse, schulconnexResponseFactory, SchulconnexRestClient } from '@infra/schulconnex-client'; +import { SchulconnexResponse, SchulconnexRestClient } from '@infra/schulconnex-client'; +import { schulconnexResponseFactory } from '@infra/schulconnex-client/testing'; import type { System } from '@modules/system'; import { SystemEntity } from '@modules/system/entity'; import { systemFactory } from '@modules/system/testing'; diff --git a/apps/server/src/modules/user-import/user-import.module.ts b/apps/server/src/modules/user-import/user-import.module.ts index 55dadecb912..6b7aa195767 100644 --- a/apps/server/src/modules/user-import/user-import.module.ts +++ b/apps/server/src/modules/user-import/user-import.module.ts @@ -1,8 +1,8 @@ -import { SchulconnexClientModule } from '@infra/schulconnex-client'; +import { SchulconnexClientModule } from '@infra/schulconnex-client/schulconnex-client.module'; import { AccountModule } from '@modules/account'; import { AuthorizationModule } from '@modules/authorization'; import { LegacySchoolModule } from '@modules/legacy-school'; -import { OauthModule } from '@modules/oauth'; +import { OauthModule } from '@modules/oauth/oauth.module'; import { SystemModule } from '@modules/system'; import { UserModule } from '@modules/user'; import { UserLoginMigrationModule } from '@modules/user-login-migration'; @@ -11,9 +11,9 @@ import { Module } from '@nestjs/common'; import { LegacySchoolRepo, UserRepo } from '@shared/repo'; import { LoggerModule } from '@src/core/logger'; import { ImportUserController } from './controller/import-user.controller'; +import { ImportUserRepo } from './repo'; import { SchulconnexFetchImportUsersService, UserImportService } from './service'; import { UserImportFetchUc, UserImportUc } from './uc'; -import { ImportUserRepo } from './repo'; @Module({ imports: [ diff --git a/apps/server/src/modules/user-login-migration/controller/api-test/user-login-migration.api.spec.ts b/apps/server/src/modules/user-login-migration/controller/api-test/user-login-migration.api.spec.ts index 6f9b35499eb..acfb9c4c0b9 100644 --- a/apps/server/src/modules/user-login-migration/controller/api-test/user-login-migration.api.spec.ts +++ b/apps/server/src/modules/user-login-migration/controller/api-test/user-login-migration.api.spec.ts @@ -1,6 +1,5 @@ import { Configuration } from '@hpi-schul-cloud/commons/lib'; -import { SchulconnexResponse, SchulconnexRole } from '@infra/schulconnex-client'; -import { SchulconnexPoliciesInfoResponse } from '@infra/schulconnex-client/response'; +import { SchulconnexPoliciesInfoResponse, SchulconnexResponse, SchulconnexRole } from '@infra/schulconnex-client'; import { EntityManager, ObjectId } from '@mikro-orm/mongodb'; import { OauthTokenResponse } from '@modules/oauth/service/dto'; import { ServerTestModule } from '@modules/server'; @@ -27,8 +26,8 @@ import { ErrorResponse } from '@src/core/error/dto'; import axios from 'axios'; import MockAdapter from 'axios-mock-adapter'; import { UUID } from 'bson'; -import { Response } from 'supertest'; import { DeepPartial } from 'fishery'; +import { Response } from 'supertest'; import { UserLoginMigrationUc } from '../../uc'; import { ForceMigrationParams, Oauth2MigrationParams, UserLoginMigrationResponse } from '../dto'; diff --git a/apps/server/src/modules/user-login-migration/user-login-migration-api.module.ts b/apps/server/src/modules/user-login-migration/user-login-migration-api.module.ts index 4a55101f4b7..af4e7ec5d90 100644 --- a/apps/server/src/modules/user-login-migration/user-login-migration-api.module.ts +++ b/apps/server/src/modules/user-login-migration/user-login-migration-api.module.ts @@ -1,7 +1,7 @@ import { AuthenticationModule } from '@modules/authentication'; import { AuthorizationModule } from '@modules/authorization'; import { LegacySchoolModule } from '@modules/legacy-school'; -import { OauthModule } from '@modules/oauth'; +import { OauthModule } from '@modules/oauth/oauth.module'; import { ProvisioningModule } from '@modules/provisioning'; import { UserModule } from '@modules/user'; import { ImportUserModule } from '@modules/user-import'; diff --git a/apps/server/src/shared/controller/transformer/index.ts b/apps/server/src/shared/controller/transformer/index.ts index 346d44c5b7b..26b5d83fa86 100644 --- a/apps/server/src/shared/controller/transformer/index.ts +++ b/apps/server/src/shared/controller/transformer/index.ts @@ -2,3 +2,4 @@ export * from './string-to-boolean.transformer'; export * from './decode-html-entities.transformer'; export * from './single-value-to-array.transformer'; export * from './sanitize-html.transformer'; +export { PolymorphicArrayTransform } from './polymorphic-array.transformer'; diff --git a/apps/server/src/shared/controller/transformer/polymorphic-array.transformer.spec.ts b/apps/server/src/shared/controller/transformer/polymorphic-array.transformer.spec.ts new file mode 100644 index 00000000000..5337752e7cf --- /dev/null +++ b/apps/server/src/shared/controller/transformer/polymorphic-array.transformer.spec.ts @@ -0,0 +1,57 @@ +import { PolymorphicArrayTransform } from '@shared/controller'; +import { ClassConstructor, plainToClass } from 'class-transformer'; + +describe(PolymorphicArrayTransform.name, () => { + class Str { + str!: string; + } + + class Num { + num!: number; + } + + class PolymorphicArrayDto { + @PolymorphicArrayTransform( + (obj: unknown): ClassConstructor => + typeof obj === 'object' && obj !== null && 'str' in obj ? Str : Num + ) + input!: (Str | Num)[]; + } + + describe('when input is not an array', () => { + const setup = () => { + const data = { + input: { num: 1, str: 'string' }, + }; + + return { data }; + }; + it('should not transform input', () => { + const { data } = setup(); + + const result = plainToClass(PolymorphicArrayDto, data); + + expect(result).toEqual(data); + }); + }); + + describe('when input is an array', () => { + const setup = () => { + const data = { + input: [{ num: 1 }, { str: 'string' }], + }; + + return { data }; + }; + + it('should transform input', () => { + const { data } = setup(); + + const result = plainToClass(PolymorphicArrayDto, data); + + expect(result.input).toHaveLength(2); + expect(result.input[0]).toBeInstanceOf(Num); + expect(result.input[1]).toBeInstanceOf(Str); + }); + }); +}); diff --git a/apps/server/src/shared/controller/transformer/polymorphic-array.transformer.ts b/apps/server/src/shared/controller/transformer/polymorphic-array.transformer.ts new file mode 100644 index 00000000000..1143ac7e0bb --- /dev/null +++ b/apps/server/src/shared/controller/transformer/polymorphic-array.transformer.ts @@ -0,0 +1,24 @@ +import { ClassConstructor, plainToClass, Transform, TransformFnParams } from 'class-transformer'; + +export function PolymorphicArrayTransform( + constructorDiscriminatorFn: (obj: unknown) => ClassConstructor +): PropertyDecorator { + return Transform( + (params: TransformFnParams): unknown => { + if (!Array.isArray(params.value)) { + return params.value; + } + + const transformedArray: T[] = params.value.map((value: unknown) => { + const constructor: ClassConstructor = constructorDiscriminatorFn(value); + + const obj: T = plainToClass(constructor, value); + + return obj; + }); + + return transformedArray; + }, + { toClassOnly: true } + ); +} diff --git a/apps/server/src/shared/domain/interface/permission.enum.ts b/apps/server/src/shared/domain/interface/permission.enum.ts index 70d57507164..24b1536a4d2 100644 --- a/apps/server/src/shared/domain/interface/permission.enum.ts +++ b/apps/server/src/shared/domain/interface/permission.enum.ts @@ -103,6 +103,7 @@ export enum Permission { SCHOOL_CHAT_MANAGE = 'SCHOOL_CHAT_MANAGE', SCHOOL_CREATE = 'SCHOOL_CREATE', SCHOOL_EDIT = 'SCHOOL_EDIT', + SCHOOL_EDIT_ALL = 'SCHOOL_EDIT_ALL', SCHOOL_LOGO_MANAGE = 'SCHOOL_LOGO_MANAGE', SCHOOL_NEWS_EDIT = 'SCHOOL_NEWS_EDIT', SCHOOL_PERMISSION_CHANGE = 'SCHOOL_PERMISSION_CHANGE', diff --git a/apps/server/src/shared/repo/externaltool/external-tool.repo.mapper.ts b/apps/server/src/shared/repo/externaltool/external-tool.repo.mapper.ts index eed1a34be20..841d2adc61d 100644 --- a/apps/server/src/shared/repo/externaltool/external-tool.repo.mapper.ts +++ b/apps/server/src/shared/repo/externaltool/external-tool.repo.mapper.ts @@ -64,6 +64,8 @@ export class ExternalToolRepoMapper { restrictToContexts: entity.restrictToContexts, medium: this.mapExternalToolMediumEntityToDO(entity.medium), createdAt: entity.createdAt, + isPreferred: entity.isPreferred, + iconName: entity.iconName, }); } @@ -144,6 +146,8 @@ export class ExternalToolRepoMapper { openNewTab: domainObject.openNewTab, restrictToContexts: domainObject.restrictToContexts, medium: this.mapExternalToolMediumDOToEntity(domainObject.medium), + isPreferred: domainObject.isPreferred, + iconName: domainObject.iconName, }; } diff --git a/apps/server/src/shared/repo/externaltool/external-tool.repo.ts b/apps/server/src/shared/repo/externaltool/external-tool.repo.ts index a5c2d783152..751e96da0f5 100644 --- a/apps/server/src/shared/repo/externaltool/external-tool.repo.ts +++ b/apps/server/src/shared/repo/externaltool/external-tool.repo.ts @@ -124,6 +124,7 @@ export class ExternalToolRepo { .byClientId(query.clientId) .byHidden(query.isHidden) .byIds(query.ids) + .byPreferred(query.isPreferred) .allowEmptyQuery(true); if (order._id == null) { diff --git a/apps/server/src/shared/repo/externaltool/external-tool.scope.ts b/apps/server/src/shared/repo/externaltool/external-tool.scope.ts index 7cb65b090a8..5f157647b63 100644 --- a/apps/server/src/shared/repo/externaltool/external-tool.scope.ts +++ b/apps/server/src/shared/repo/externaltool/external-tool.scope.ts @@ -30,4 +30,11 @@ export class ExternalToolScope extends Scope { } return this; } + + byPreferred(isPreferred?: boolean): this { + if (isPreferred !== undefined) { + this.addQuery({ isPreferred }); + } + return this; + } } diff --git a/backup/setup/external-tools.json b/backup/setup/external-tools.json index 1a88cae3c20..120dfa0f8dd 100644 --- a/backup/setup/external-tools.json +++ b/backup/setup/external-tools.json @@ -4,14 +4,10 @@ "$oid": "644a4593d0a8301e6cf25d85" }, "createdAt": { - "$date": { - "$numberLong": "1682589075592" - } + "$date": "2023-04-27T09:51:15.592Z" }, "updatedAt": { - "$date": { - "$numberLong": "1682589075592" - } + "$date": "2023-04-27T09:51:15.592Z" }, "name": "TestTool", "url": "https://google.de/", @@ -71,88 +67,15 @@ "isDeactivated": false, "restrictToContexts": [] }, - { - "_id": { - "$oid": "647de247cf6a427b9d39e5b9" - }, - "createdAt": { - "$date": { - "$numberLong": "1685971527243" - } - }, - "updatedAt": { - "$date": { - "$numberLong": "1685973728239" - } - }, - "name": "LTI Test Tool", - "url": "https://saltire.lti.app", - "config_type": "lti11", - "config_baseUrl": "https://saltire.lti.app/tool", - "config_key": "12345", - "config_secret": "secret", - "config_lti_message_type": "basic-lti-launch-request", - "config_privacy_permission": "name", - "config_launch_presentation_locale": "de-DE", - "parameters": [ - { - "name": "custom_test", - "displayName": "Custom Test Parameter", - "description": "just a test", - "default": "test", - "scope": "global", - "location": "body", - "type": "string", - "isOptional": false, - "isProtected": false - } - ], - "isHidden": false, - "openNewTab": false, - "version": 1, - "isDeactivated": false, - "restrictToContexts": [] - }, - { - "_id": { - "$oid": "667e4fe648ea6a22a5474359" - }, - "createdAt": { - "$date": { - "$numberLong": "1682589075592" - } - }, - "updatedAt": { - "$date": { - "$numberLong": "1682589075592" - } - }, - "name": "CY Test Tool Course Restriction", - "url": "https://google.de/", - "config_type": "basic", - "config_baseUrl": "https://google.de/", - "parameters": [], - "isHidden": false, - "openNewTab": true, - "version": 1, - "isDeactivated": false, - "restrictToContexts": [ - "course" - ] - }, { "_id": { "$oid": "644a4593d0a8301e6cf25d86" }, "createdAt": { - "$date": { - "$numberLong": "1682589075592" - } + "$date": "2023-04-27T09:51:15.592Z" }, "updatedAt": { - "$date": { - "$numberLong": "1682589075592" - } + "$date": "2023-04-27T09:51:15.592Z" }, "name": "CY Test Tool Board-Element Restriction", "url": "https://google.de/", @@ -169,82 +92,62 @@ }, { "_id": { - "$oid": "667e50f6162707ce02b9ac02" + "$oid": "647de247cf6a427b9d39e5b1" }, "createdAt": { - "$date": { - "$numberLong": "1682589075592" - } + "$date": "2023-11-30T12:37:54.977Z" }, "updatedAt": { - "$date": { - "$numberLong": "1682589075592" - } + "$date": "2023-11-30T15:31:47.749Z" }, - "name": "CY Test Tool Media-Board Restriction", - "url": "https://google.de/", + "name": "CY Test Tool School Scope", "config_type": "basic", - "config_baseUrl": "https://google.de/", - "parameters": [], - "isHidden": false, - "openNewTab": true, - "version": 1, - "isDeactivated": false, - "restrictToContexts": [ - "media-board" - ] - }, - { - "_id": { - "$oid": "667e52a4162707ce02b9ac04" - }, - "createdAt": { - "$date": { - "$numberLong": "1682589075592" - } - }, - "updatedAt": { - "$date": { - "$numberLong": "1682589075592" + "config_baseUrl": "http:google.com", + "parameters": [ + { + "name": "searchparam", + "displayName": "searchparameter", + "description": "", + "scope": "school", + "location": "path", + "type": "string", + "isOptional": false, + "isProtected": false } - }, - "name": "CY Test Tool All Restrictions", - "url": "https://google.de/", - "config_type": "basic", - "config_baseUrl": "https://google.de/", - "parameters": [], + ], "isHidden": false, - "openNewTab": true, + "openNewTab": false, "version": 1, "isDeactivated": false, - "restrictToContexts": [ - "course","board-element","media-board" - ] + "restrictToContexts": [] }, { "_id": { - "$oid": "647de247cf6a427b9d39e5b1" + "$oid": "647de247cf6a427b9d39e5b9" }, "createdAt": { - "$date": { - "$numberLong": "1701347874977" - } + "$date": "2023-06-05T13:25:27.243Z" }, "updatedAt": { - "$date": { - "$numberLong": "1701358307749" - } + "$date": "2023-06-05T14:02:08.239Z" }, - "name": "CY Test Tool School Scope", - "config_type": "basic", - "config_baseUrl": "http:google.com", + "name": "LTI Test Tool", + "url": "https://saltire.lti.app", + "config_type": "lti11", + "config_baseUrl": "https://saltire.lti.app/tool", + "config_key": "12345", + "config_secret": "U2FsdGVkX188+4Kh4t/eADwUS7hh0mwOjCOAIbd64Og=", + "config_lti_message_type": "basic-lti-launch-request", + "config_privacy_permission": "name", + "config_launch_presentation_locale": "de-DE", "parameters": [ { - "name": "searchparam", - "displayName": "searchparameter", - "description": "", - "scope": "school", - "location": "path", + "name": "custom_test", + "displayName": "Custom Test Parameter", + "description": "just a test", + "default": "test", + "scope": "global", + "location": "body", "type": "string", "isOptional": false, "isProtected": false @@ -261,14 +164,10 @@ "$oid": "647de247cf6a427b9d39e5c2" }, "createdAt": { - "$date": { - "$numberLong": "1701348029049" - } + "$date": "2023-11-30T12:40:29.049Z" }, "updatedAt": { - "$date": { - "$numberLong": "1701358325991" - } + "$date": "2023-11-30T15:32:05.991Z" }, "name": "CY Test Tool Context Scope", "config_type": "basic", @@ -296,14 +195,10 @@ "$oid": "647de247cf6a427b9d39e6c3" }, "createdAt": { - "$date": { - "$numberLong": "1701358084733" - } + "$date": "2023-11-30T15:28:04.733Z" }, "updatedAt": { - "$date": { - "$numberLong": "1701358362888" - } + "$date": "2023-11-30T15:32:42.888Z" }, "name": "CY Test Tool deactivated External Tool", "config_type": "basic", @@ -320,14 +215,10 @@ "$oid": "659bf6f049e52dedff83a8f1" }, "createdAt": { - "$date": { - "$numberLong": "1701358084733" - } + "$date": "2023-11-30T15:28:04.733Z" }, "updatedAt": { - "$date": { - "$numberLong": "1701358362888" - } + "$date": "2023-11-30T15:32:42.888Z" }, "name": "CY Test Tool Protected Parameter", "config_type": "basic", @@ -362,235 +253,109 @@ }, { "_id": { - "$oid": "65fc0fcda519d4a3b71193e0" - }, - "createdAt": { - "$date": { - "$numberLong": "1701358084733" - } - }, - "updatedAt": { - "$date": { - "$numberLong": "1701358362888" - } - }, - "name": "CY Test Tool Optional Protected Parameter", - "config_type": "basic", - "config_baseUrl": "https://google.com/search", - "parameters": [ - { - "name": "search", - "displayName": "Suchparameter", - "description": "Danch wird gesucht", - "scope": "context", - "location": "query", - "type": "string", - "isOptional": false, - "isProtected": false - }, - { - "name": "protected", - "displayName": "geschützter Parameter", - "description": "Dieser parameter wird nicht mitkopiert", - "scope": "context", - "location": "query", - "type": "string", - "isOptional": true, - "isProtected": true - } - ], - "isHidden": false, - "openNewTab": false, - "version": 1, - "isDeactivated": false, - "restrictToContexts": [] - }, - { - "_id": { - "$oid": "666829b6ea0c14353cec2056" + "$oid": "65f958bdd8b35469f14032b1" }, + "config_type": "oauth2", + "name": "nextcloud", + "config_baseUrl": "https://nextcloud-nbc.dbildungscloud.dev/", + "config_clientId": "neWZs5MIKnAHUbbuO9TzeClZQF", + "config_skipConsent": true, "createdAt": { - "$date": { - "$numberLong": "1701358084733" - } - }, - "updatedAt": { - "$date": { - "$numberLong": "1701358362888" - } + "$date": "2024-03-19T09:19:57.984Z" }, - "name": "CY Test Tool Hidden", - "config_type": "basic", - "config_baseUrl": "https://google.com/search", - "parameters": [], "isHidden": true, - "openNewTab": false, - "version": 1, - "isDeactivated": false, - "restrictToContexts": [] - }, - { - "_id": { - "$oid": "6667ec1c243527c9139bd799" - }, - "createdAt": { - "$date": { - "$numberLong": "1701358084733" - } - }, - "updatedAt": { - "$date": { - "$numberLong": "1701358362888" - } - }, - "name": "CY Test Tool 1", - "config_type": "basic", - "config_baseUrl": "https://google.com/search", + "logoUrl": "", + "openNewTab": true, "parameters": [], - "isHidden": false, - "openNewTab": false, - "version": 1, - "isDeactivated": false, - "restrictToContexts": [] - }, - { - "_id": { - "$oid": "66682949ea0c14353cec2054" - }, - "createdAt": { - "$date": { - "$numberLong": "1701358084733" - } - }, "updatedAt": { - "$date": { - "$numberLong": "1701358362888" - } + "$date": "2024-03-19T09:19:57.984Z" }, - "name": "CY Test Tool 2", - "config_type": "basic", - "config_baseUrl": "https://google.com/search", - "parameters": [], - "isHidden": false, - "openNewTab": false, + "url": "https://nextcloud-nbc.dbildungscloud.dev/", "version": 1, "isDeactivated": false, "restrictToContexts": [] }, { "_id": { - "$oid": "6667ec58243527c9139bd79b" + "$oid": "65fad93bbe8ce15df1279d9b" }, "createdAt": { - "$date": { - "$numberLong": "1701358084733" - } + "$date": "2024-03-20T12:40:27.057Z" }, "updatedAt": { - "$date": { - "$numberLong": "1701358362888" - } + "$date": "2024-03-25T09:13:39.585Z" }, - "name": "CY Test Tool Optional Parameters", + "name": "OSM Route", + "url": "https://www.openstreetmap.org/", + "logoUrl": "https://wiki.openstreetmap.org/w/images/7/7e/Logo_by_hind_128x128.png?20100124154543", + "logoBase64": "iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAYdAAAGHQBd4HF4AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAAOdEVYdFRpdGxlAE9TTSBMb2dvM6v3AwAAAAt0RVh0QXV0aG9yAEhpbmTQ2CnUAAAAUnRFWHRDb3B5cmlnaHQAQ0MgQXR0cmlidXRpb24tU2hhcmVBbGlrZSBodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9saWNlbnNlcy9ieS1zYS8zLjAvXoNavAAATk9JREFUeNrtvWd0XNl5JSrJ7y3Psv3We8+2JPt5pLHGsuSxrZEltULnVnez2cw5gkQGCBA555xzzjnnnHMGCjknJjCTTbY6s1uxv7fPqaqLW1W3CgAJeSRN/9iLhcAigb3PF/b5zrlfIqIvfYHtYWJ8/K9mp6cvLczNxS4vLlatra4Orq+vL60sL99cWlx8vDA//+nM9PRvp6emPpybnb23uLCwjq9Nr66sdOH7i+bn5kKnJiYO/iH9TF+6kHH8MvBvwJf/VIjCz/IXwBvAEeCvn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+4at0LmjPdgi3Bv7990X4NgTxj4DhdgRhXY3ZvJT9zEndDuGndjOH74oTGHn6SPQgxrhajE4+8+kc9WJPlfyv0X6bl/4gCX8WQbDn+Z6OOyT+mdiY1hLbrGH79X9IhGvdDrb8yX+0lh989dkGNt/STv4P/+6rvzrq/BrLcw//GAh/CkGICf/qH8vPIbz4wVf/5iuG//rtjjJG+C4Ue2Ly8d4fAy/9MRL9pw6VD5gIDP71nzrKGOHPUOx9Qf4fqQCUItD/H//UWbbvxR0Uez8ViK94k5H//S/I/2MVgCCCf/nvnWVvv7CjYu8L8v9EBKAUwcV/+VZn6d7nt1XsfUH+n5gAlCK48F2I4K2f6cz3X5D/JyqATRH8Y1fJnp9+Qf7/jgJQiuDUt7/Zzo5mCeS/ych/jqKf/3eQ/7UvyP9TFoBCBH/2wt9/Ldvgu/9I7j/4LjniMqZz3/4mI57hvS/I/xMXgEgIbwNtwPvABlAM/P0Xv8w/Tvz/VqoD+jC7JVsAAAAASUVORK5CYII=", "config_type": "basic", - "config_baseUrl": "https://google.com/search", + "config_baseUrl": "https://wiki.openstreetmap.org/w/images/c/c8/Public-images-osm_logo.png", "parameters": [ { - "name": "schoolParam", - "displayName": "school parameter", + "name": "from", + "displayName": "Start", "description": "", - "scope": "school", - "location": "path", + "scope": "context", + "location": "query", "type": "string", - "isOptional": true, + "isOptional": false, "isProtected": false }, { - "name": "contextParam", - "displayName": "context parameter", + "name": "to", + "displayName": "Ziel", "description": "", "scope": "context", "location": "query", "type": "string", - "isOptional": true, + "isOptional": false, "isProtected": false } ], "isHidden": false, - "openNewTab": false, - "version": 1, "isDeactivated": false, + "openNewTab": false, + "version": 3, "restrictToContexts": [] }, { "_id": { - "$oid": "6667ec85243527c9139bd79d" + "$oid": "65fc0fcda519d4a3b71193e0" }, "createdAt": { - "$date": { - "$numberLong": "1701358084733" - } + "$date": "2023-11-30T15:28:04.733Z" }, "updatedAt": { - "$date": { - "$numberLong": "1701358362888" - } + "$date": "2023-11-30T15:32:42.888Z" }, - "name": "CY Test Tool Required Parameters", + "name": "CY Test Tool Optional Protected Parameter", "config_type": "basic", "config_baseUrl": "https://google.com/search", "parameters": [ { - "name": "schoolParam", - "displayName": "school parameter", - "description": "", - "scope": "school", - "location": "path", + "name": "search", + "displayName": "Suchparameter", + "description": "Danch wird gesucht", + "scope": "context", + "location": "query", "type": "string", "isOptional": false, "isProtected": false }, { - "name": "contextParam", - "displayName": "context parameter", - "description": "", + "name": "protected", + "displayName": "geschützter Parameter", + "description": "Dieser parameter wird nicht mitkopiert", "scope": "context", "location": "query", "type": "string", - "isOptional": false, - "isProtected": false - } - ], - "isHidden": false, - "openNewTab": false, - "version": 1, - "isDeactivated": false, - "restrictToContexts": [] - }, - { - "_id": { - "$oid": "65f958bdd8b35469f14032b1" - }, - "config_type": "oauth2", - "name": "nextcloud", - "config_baseUrl": "https://nextcloud-nbc.dbildungscloud.dev/", - "config_clientId": "neWZs5MIKnAHUbbuO9TzeClZQF", - "config_skipConsent": true, - "createdAt": { - "$date": { - "$numberLong": "1710839997984" - } - }, - "isHidden": true, - "logoUrl": "", - "openNewTab": true, - "parameters": [], - "updatedAt": { - "$date": { - "$numberLong": "1710839997984" + "isOptional": true, + "isProtected": true } - }, - "url": "https://nextcloud-nbc.dbildungscloud.dev/", + ], + "isHidden": false, + "openNewTab": false, "version": 1, "isDeactivated": false, "restrictToContexts": [] @@ -600,14 +365,10 @@ "$oid": "65fc0fcde519d4a3b71193e0" }, "createdAt": { - "$date": { - "$numberLong": "1711017933720" - } + "$date": "2024-03-21T10:45:33.720Z" }, "updatedAt": { - "$date": { - "$numberLong": "1711018099651" - } + "$date": "2024-03-21T10:48:19.651Z" }, "name": "Youtube Videoausschnitt", "url": "https://www.youtube.com", @@ -658,14 +419,10 @@ "$oid": "65fc113ce519d4a3b71193e1" }, "createdAt": { - "$date": { - "$numberLong": "1711018300466" - } + "$date": "2024-03-21T10:51:40.466Z" }, "updatedAt": { - "$date": { - "$numberLong": "1711018300466" - } + "$date": "2024-03-21T10:51:40.466Z" }, "name": "Invidious Videoausschnitt", "url": "https://yt.cdaut.de/", @@ -716,14 +473,10 @@ "$oid": "65fc11a5e519d4a3b71193e2" }, "createdAt": { - "$date": { - "$numberLong": "1711018405712" - } + "$date": "2024-03-21T10:53:25.712Z" }, "updatedAt": { - "$date": { - "$numberLong": "1711018405712" - } + "$date": "2024-03-21T10:53:25.712Z" }, "name": "Classtime Session", "url": "https://classtime.com/", @@ -754,14 +507,10 @@ "$oid": "65fc1285e519d4a3b71193e3" }, "createdAt": { - "$date": { - "$numberLong": "1711018629196" - } + "$date": "2024-03-21T10:57:09.196Z" }, "updatedAt": { - "$date": { - "$numberLong": "1711018629196" - } + "$date": "2024-03-21T10:57:09.196Z" }, "name": "Lichtblick-Filmsequenz", "logoUrl": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAkAAAAFkCAYAAADIT4SLAAAABmJLR0QA/wD/AP+gvaeTAABJrElEQVR42u2dCZgcRdmA4436e98IhISIB4pH2JlZDomIIl4oGECO7G7AiCiGKMfObIAVUBARAVGIyc5CAJEglwKiIAiEI+CBIDcYJJzZKwdJyLn/93X3hs1M9UxXd8/RM+/7PP2gsNPTU11d9XbVV1+NGQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADCQS/+Lo/GOwWMnvoXaDQAA4C9AwxyNdyzLpt5B7QYAAECAECAAAABAgBAgAAAABIgDAQIAAECAOBAgAAAABIgDAQIAAECAOBAgAAAABIgDAQIA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NUnJcFySh8AAABqI0Bd6XsrvfGiBFj/wLSxKaUPAAAAtRGgXPqR4mR/qX/GdX4vb9VThkzoh1H6AAAAUBMkH89NPtma94l6bi/j8AJTZnLdbJPSBwAAgJogMnJcqX27NPmc7Tk1K6+I1U+cLV8Mm1RqBmJKHgAAAGqGLIPf3N3uwnfbihedrQ0kL5DmC5ItHb4i20vsvvGQbUr6s+mDnf3v3C09Hi21BYb+LaUOAAAANUc3ufTbsiLGY1HYfbQAAAAAKoK3ZcWiCohPv4wOHUXMDwAAANQlzm732dQhIi13aKxOBOkZ7M+lL9SRJXapBgAAgMSgu4Lrju6SE2iG/PNskZrfy0jODfLP2yR79N8lSPpvEhd0rcQFzdPEiRow3ZfNfHVxZ+sE3VmeEgQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACoEf8PC5vzecNZxDkAAAAASUVORK5CYII==", @@ -791,14 +540,10 @@ "$oid": "65fc1488e519d4a3b71193e4" }, "createdAt": { - "$date": { - "$numberLong": "1711019144780" - } + "$date": "2024-03-21T11:05:44.780Z" }, "updatedAt": { - "$date": { - "$numberLong": "1711019144780" - } + "$date": "2024-03-21T11:05:44.780Z" }, "name": "Product Test Onlinediagnose Grundschule - Deutsch", "url": "https://onlinediagnose.westermann.de/", @@ -863,14 +608,10 @@ "$oid": "65fc15b5e519d4a3b71193e5" }, "createdAt": { - "$date": { - "$numberLong": "1711019445098" - } + "$date": "2024-03-21T11:10:45.098Z" }, "updatedAt": { - "$date": { - "$numberLong": "1711019445098" - } + "$date": "2024-03-21T11:10:45.098Z" }, "name": "Product Test Onlinediagnose Grundschule - Mathematik", "url": "https://onlinediagnose.westermann.de/", @@ -935,14 +676,10 @@ "$oid": "65fd9736cb3d21d77bee50a6" }, "createdAt": { - "$date": { - "$numberLong": "1711118134160" - } + "$date": "2024-03-22T14:35:34.160Z" }, "updatedAt": { - "$date": { - "$numberLong": "1711358224688" - } + "$date": "2024-03-25T09:17:04.688Z" }, "name": "OpenStreetMap", "url": "https://www.openstreetmap.org/", @@ -993,40 +730,49 @@ }, { "_id": { - "$oid": "65fad93bbe8ce15df1279d9b" + "$oid": "65fd9dabcb3d21d77bee50ae" }, "createdAt": { - "$date": { - "$numberLong": "1710938427057" - } + "$date": "2024-03-22T15:03:07.052Z" }, "updatedAt": { - "$date": { - "$numberLong": "1711358019585" - } + "$date": "2024-03-22T15:03:07.052Z" }, - "name": "OSM Route", - "url": "https://www.openstreetmap.org/", - "logoUrl": "https://wiki.openstreetmap.org/w/images/7/7e/Logo_by_hind_128x128.png?20100124154543", - "logoBase64": "iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAYdAAAGHQBd4HF4AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAAOdEVYdFRpdGxlAE9TTSBMb2dvM6v3AwAAAAt0RVh0QXV0aG9yAEhpbmTQ2CnUAAAAUnRFWHRDb3B5cmlnaHQAQ0MgQXR0cmlidXRpb24tU2hhcmVBbGlrZSBodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9saWNlbnNlcy9ieS1zYS8zLjAvXoNavAAATk9JREFUeNrtvWd0XNl5JSrJ7y3Psv3We8+2JPt5pLHGsuSxrZEltULnVnez2cw5gkQGCBA555xzzjnnnHMGCjknJjCTTbY6s1uxv7fPqaqLW1W3CgAJeSRN/9iLhcAigb3PF/b5zrlfIqIvfYHtYWJ8/K9mp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7fnLNk2nN4O4dXPSvgOBJEP3NQlCBYh3CGIQO6ayotT+8rDXAgBYxfJrfP8dghfZq3cfzbhGgIY9HP9xkCo72/5ACdO6zTqHdmVgU1xyK/Y82NKf1lO/o/+4at0LmjPdgi3Bv7990X4NgTxj4DhdgRhXY3ZvJT9zEndDuGndjOH74oTGHn6SPQgxrhajE4+8+kc9WJPlfyv0X6bl/4gCX8WQbDn+Z6OOyT+mdiY1hLbrGH79X9IhGvdDrb8yX+0lh989dkGNt/STv4P/+6rvzrq/BrLcw//GAh/CkGICf/qH8vPIbz4wVf/5iuG//rtjjJG+C4Ue2Ly8d4fAy/9MRL9pw6VD5gIDP71nzrKGOHPUOx9Qf4fqQCUItD/H//UWbbvxR0Uez8ViK94k5H//S/I/2MVgCCCf/nvnWVvv7CjYu8L8v9EBKAUwcV/+VZn6d7nt1XsfUH+n5gAlCK48F2I4K2f6cz3X5D/JyqATRH8Y1fJnp9+Qf7/jgJQiuDUt7/Zzo5mCeS/ych/jqKf/3eQ/7UvyP9TFoBCBH/2wt9/Ldvgu/9I7j/4LjniMqZz3/4mI57hvS/I/xMXgEgIbwNtwPvABlAM/P0Xv8w/Tvz/VqoD+jC7JVsAAAAASUVORK5CYII=", + "name": "Übersetzer", + "url": "https://translate.google.com/", + "logoUrl": "https://cdn1.iconfinder.com/data/icons/google-s-logo/150/Google_Icons-09-512.png", + "logoBase64": "iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAApVklEQVR42uzBgQAAAACAoP2pF6kCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGZHjl2qCsA4gP6+izW9F1hITfagIXRqira26P9fosb0wRNErw6KD+/9nJ0d9Mk54wEAAAAAAAAAA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P2ydhnl1HeIQPADBj6hPgxIs7ctgmFg8OcJe+0Geko7cx9AEAA9HqlNfn0Cck9AMWEM5Y+3u9LW6P1idAJgAAmmSh3392rvT2HLoxu37MhkPHl7gdqF+//us4sihWnJsAAJgthl67+5LD5xHYixK6i28IJsn1lxy2U1wfHw67+crx5acnAADmivobAgm7VTr6mIR2ctgX4nqwsYN55lbqv9HryVYUhVTlpQkAgPlm4raB242tjj2c3Z6TsLd6fT2bbx/0P9R8Ja5v5tDnpbLVw14sq78RSQAAYHKy+a6zpFNel11HJIpHstuzvV7PoR+K27eDPMdAwn7ttXviP3nXVyVsvUT7Ian0zqFqbEH9pEQCAAAzQ7rleTnKqydOOaxstOXtFVLZ6v5Ohhty6LiEbZ7I9ZUc2v0ncd1e//xIbk/n0I11Erq2/j31McotL5YPR7FEtuk1rS3lRbdsefCMBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgL/bgwMBAAAAAEH+1oNcAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAnARPEwwIqV5O9AAAAABJRU5ErkJggg==", "config_type": "basic", - "config_baseUrl": "https://wiki.openstreetmap.org/w/images/c/c8/Public-images-osm_logo.png", + "config_baseUrl": "https://translate.google.com/", "parameters": [ { - "name": "from", - "displayName": "Start", - "description": "", - "scope": "context", + "name": "op", + "displayName": "Operation", + "description": "Operation der Anwendung", + "default": "op", + "scope": "global", "location": "query", "type": "string", "isOptional": false, "isProtected": false }, { - "name": "to", - "displayName": "Ziel", - "description": "", - "scope": "context", + "name": "sl", + "displayName": "Quell-Sprache", + "description": "geben Sie die Quell-Sprache ein", + "default": "de", + "scope": "global", + "location": "query", + "type": "string", + "isOptional": false, + "isProtected": false + }, + { + "name": "tl", + "displayName": "Ziel-Sprache", + "description": "Geben Sie die Ziel-Sprache ein", + "default": "en", + "scope": "global", "location": "query", "type": "string", "isOptional": false, @@ -1035,59 +781,100 @@ ], "isHidden": false, "isDeactivated": false, + "openNewTab": true, + "version": 1, + "restrictToContexts": [] + }, + { + "_id": { + "$oid": "6667ec1c243527c9139bd799" + }, + "createdAt": { + "$date": "2023-11-30T15:28:04.733Z" + }, + "updatedAt": { + "$date": "2023-11-30T15:32:42.888Z" + }, + "name": "CY Test Tool 1", + "config_type": "basic", + "config_baseUrl": "https://google.com/search", + "parameters": [], + "isHidden": false, "openNewTab": false, - "version": 3, + "version": 1, + "isDeactivated": false, "restrictToContexts": [] }, { "_id": { - "$oid": "65fd9dabcb3d21d77bee50ae" + "$oid": "6667ec58243527c9139bd79b" }, "createdAt": { - "$date": { - "$numberLong": "1711119787052" - } + "$date": "2023-11-30T15:28:04.733Z" }, "updatedAt": { - "$date": { - "$numberLong": "1711119787052" - } + "$date": "2023-11-30T15:32:42.888Z" }, - "name": "Übersetzer", - "url": "https://translate.google.com/", - "logoUrl": "https://cdn1.iconfinder.com/data/icons/google-s-logo/150/Google_Icons-09-512.png", - "logoBase64": "iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAApVklEQVR42uzBgQAAAACAoP2pF6kCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGZHjl2qCsA4gP6+izW9F1hITfagIXRqira26P9fosb0wRNErw6KD+/9nJ0d9Mk54wEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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gmFg8OcJe+0Geko7cx9AEAA9HqlNfn0Cck9AMWEM5Y+3u9LW6P1idAJgAAmmSh3392rvT2HLoxu37MhkPHl7gdqF+//us4sihWnJsAAJgthl67+5LD5xHYixK6i28IJsn1lxy2U1wfHw67+crx5acnAADmivobAgm7VTr6mIR2ctgX4nqwsYN55lbqv9HryVYUhVTlpQkAgPlm4raB242tjj2c3Z6TsLd6fT2bbx/0P9R8Ja5v5tDnpbLVw14sq78RSQAAYHKy+a6zpFNel11HJIpHstuzvV7PoR+K27eDPMdAwn7ttXviP3nXVyVsvUT7Ian0zqFqbEH9pEQCAAAzQ7rleTnKqydOOaxstOXtFVLZ6v5Ohhty6LiEbZ7I9ZUc2v0ncd1e//xIbk/n0I11Erq2/j31McotL5YPR7FEtuk1rS3lRbdsefCMBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgL/bgwMBAAAAAEH+1oNcAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAnARPEwwIqV5O9AAAAABJRU5ErkJggg==", + "name": "CY Test Tool Optional Parameters", "config_type": "basic", - "config_baseUrl": "https://translate.google.com/", + "config_baseUrl": "https://google.com/search", "parameters": [ { - "name": "op", - "displayName": "Operation", - "description": "Operation der Anwendung", - "default": "op", - "scope": "global", - "location": "query", + "name": "schoolParam", + "displayName": "school parameter", + "description": "", + "scope": "school", + "location": "path", "type": "string", - "isOptional": false, + "isOptional": true, "isProtected": false }, { - "name": "sl", - "displayName": "Quell-Sprache", - "description": "geben Sie die Quell-Sprache ein", - "default": "de", - "scope": "global", + "name": "contextParam", + "displayName": "context parameter", + "description": "", + "scope": "context", "location": "query", "type": "string", + "isOptional": true, + "isProtected": false + } + ], + "isHidden": false, + "openNewTab": false, + "version": 1, + "isDeactivated": false, + "restrictToContexts": [] + }, + { + "_id": { + "$oid": "6667ec85243527c9139bd79d" + }, + "createdAt": { + "$date": "2023-11-30T15:28:04.733Z" + }, + "updatedAt": { + "$date": "2023-11-30T15:32:42.888Z" + }, + "name": "CY Test Tool Required Parameters", + "config_type": "basic", + "config_baseUrl": "https://google.com/search", + "parameters": [ + { + "name": "schoolParam", + "displayName": "school parameter", + "description": "", + "scope": "school", + "location": "path", + "type": "string", "isOptional": false, "isProtected": false }, { - "name": "tl", - "displayName": "Ziel-Sprache", - "description": "Geben Sie die Ziel-Sprache ein", - "default": "en", - "scope": "global", + "name": "contextParam", + "displayName": "context parameter", + "description": "", + "scope": "context", "location": "query", "type": "string", "isOptional": false, @@ -1095,9 +882,120 @@ } ], "isHidden": false, + "openNewTab": false, + "version": 1, "isDeactivated": false, - "openNewTab": true, + "restrictToContexts": [] + }, + { + "_id": { + "$oid": "66682949ea0c14353cec2054" + }, + "createdAt": { + "$date": "2023-11-30T15:28:04.733Z" + }, + "updatedAt": { + "$date": "2023-11-30T15:32:42.888Z" + }, + "name": "CY Test Tool 2", + "config_type": "basic", + "config_baseUrl": "https://google.com/search", + "parameters": [], + "isHidden": false, + "openNewTab": false, + "version": 1, + "isDeactivated": false, + "restrictToContexts": [] + }, + { + "_id": { + "$oid": "666829b6ea0c14353cec2056" + }, + "createdAt": { + "$date": "2023-11-30T15:28:04.733Z" + }, + "updatedAt": { + "$date": "2023-11-30T15:32:42.888Z" + }, + "name": "CY Test Tool Hidden", + "config_type": "basic", + "config_baseUrl": "https://google.com/search", + "parameters": [], + "isHidden": true, + "openNewTab": false, "version": 1, + "isDeactivated": false, "restrictToContexts": [] + }, + { + "_id": { + "$oid": "667e4fe648ea6a22a5474359" + }, + "createdAt": { + "$date": "2023-04-27T09:51:15.592Z" + }, + "updatedAt": { + "$date": "2023-04-27T09:51:15.592Z" + }, + "name": "CY Test Tool Course Restriction", + "url": "https://google.de/", + "config_type": "basic", + "config_baseUrl": "https://google.de/", + "parameters": [], + "isHidden": false, + "openNewTab": true, + "version": 1, + "isDeactivated": false, + "restrictToContexts": [ + "course" + ] + }, + { + "_id": { + "$oid": "667e50f6162707ce02b9ac02" + }, + "createdAt": { + "$date": "2023-04-27T09:51:15.592Z" + }, + "updatedAt": { + "$date": "2023-04-27T09:51:15.592Z" + }, + "name": "CY Test Tool Media-Board Restriction", + "url": "https://google.de/", + "config_type": "basic", + "config_baseUrl": "https://google.de/", + "parameters": [], + "isHidden": false, + "openNewTab": true, + "version": 1, + "isDeactivated": false, + "restrictToContexts": [ + "media-board" + ] + }, + { + "_id": { + "$oid": "667e52a4162707ce02b9ac04" + }, + "createdAt": { + "$date": "2023-04-27T09:51:15.592Z" + }, + "updatedAt": { + "$date": "2023-04-27T09:51:15.592Z" + }, + "name": "CY Test Tool All Restrictions", + "url": "https://google.de/", + "config_type": "basic", + "config_baseUrl": "https://google.de/", + "parameters": [], + "isHidden": false, + "openNewTab": true, + "version": 1, + "isDeactivated": false, + "restrictToContexts": [ + "course", + "board-element", + "media-board" + ] } ] diff --git a/backup/setup/migrations.json b/backup/setup/migrations.json index 2a7feac0983..225324cd518 100644 --- a/backup/setup/migrations.json +++ b/backup/setup/migrations.json @@ -107,6 +107,15 @@ "$date": "2024-05-17T14:00:42.414Z" } }, + { + "_id": { + "$oid": "6655e94f06722f2a434c135f" + }, + "name": "Migration20240528140356", + "created_at": { + "$date": "2024-05-28T14:25:19.577Z" + } + }, { "_id": { "$oid": "6656f4835290f6d36be31830" @@ -116,6 +125,15 @@ "$date": "2024-05-29T09:25:23.454Z" } }, + { + "_id": { + "$oid": "6668485aadfd9c4d7be91ca3" + }, + "name": "Migration20240611081033", + "created_at": { + "$date": "2024-06-11T12:51:38.379Z" + } + }, { "_id": { "$oid": "66684c3db14698848e23c0c2" @@ -152,24 +170,6 @@ "$date": "2024-06-12T12:26:01.665Z" } }, - { - "_id": { - "$oid": "6655e94f06722f2a434c135f" - }, - "name": "Migration20240528140356", - "created_at": { - "$date": "2024-05-28T14:25:19.577Z" - } - }, - { - "_id": { - "$oid": "6668485aadfd9c4d7be91ca3" - }, - "name": "Migration20240611081033", - "created_at": { - "$date": "2024-06-11T12:51:38.379Z" - } - }, { "_id": { "$oid": "667e611e207a39b02c306406" @@ -185,7 +185,7 @@ }, "name": "Migration20240719115036", "created_at": { - "$date": "2024-07-24T014:50:10.278Z" + "$date": "1970-01-01T00:00:00Z" } }, { @@ -214,5 +214,23 @@ "created_at": { "$date": "2024-08-23T15:25:05.360Z" } + }, + { + "_id": { + "$oid": "66f440bf0dbeeb6747a4242c" + }, + "name": "Migration20240925165112", + "created_at": { + "$date": "2024-09-25T16:56:31.889Z" + } + }, + { + "_id": { + "$oid": "66fda9462a63b5749b3a64c9" + }, + "name": "Migration20240926205656", + "created_at": { + "$date": "2024-10-02T20:12:54.209Z" + } } ] diff --git a/backup/setup/roles.json b/backup/setup/roles.json index 94454494dba..01fc0562cce 100644 --- a/backup/setup/roles.json +++ b/backup/setup/roles.json @@ -203,7 +203,8 @@ "ACCOUNT_DELETE", "USER_LOGIN_MIGRATION_FORCE", "USER_LOGIN_MIGRATION_ROLLBACK", - "INSTANCE_VIEW" + "INSTANCE_VIEW", + "SCHOOL_EDIT_ALL" ], "__v": 2 }, diff --git a/backup/setup/school-external-tools.json b/backup/setup/school-external-tools.json index b9909e5a5c5..0f87303d154 100644 --- a/backup/setup/school-external-tools.json +++ b/backup/setup/school-external-tools.json @@ -50,29 +50,6 @@ "schoolParameters": [], "isDeactivated": false }, - { - "_id": { - "$oid": "65fd74c4d1c1ddf3bb2b05de" - }, - "createdAt": { - "$date": { - "$numberLong": "1711109316850" - } - }, - "updatedAt": { - "$date": { - "$numberLong": "1711109316850" - } - }, - "tool": { - "$oid": "65fd44ba09e6ffd0bae3b8d3" - }, - "school": { - "$oid": "5f2987e020834114b8efd6f8" - }, - "schoolParameters": [], - "isDeactivated": false - }, { "_id": { "$oid": "65fd9882cb3d21d77bee50a7" diff --git a/config/default.schema.json b/config/default.schema.json index 1d9f3f14fca..387e7331b1a 100644 --- a/config/default.schema.json +++ b/config/default.schema.json @@ -1404,6 +1404,11 @@ "type": "integer", "default": 300000, "description": "Maximum size of the logo of an external tool in bytes" + }, + "PREFERRED_TOOLS_LIMIT": { + "type": "integer", + "default": 5, + "description": "Maximum number of preferred tools that can be set" } } }, diff --git a/openapitools.json b/openapitools.json index 01614e969dc..bd567305968 100644 --- a/openapitools.json +++ b/openapitools.json @@ -6,7 +6,7 @@ "generators": { "tsp-api": { "generatorName": "typescript-axios", - "inputSpec": "https://test2.schulportal-thueringen.de/tip-ms/api/swagger.json", + "inputSpec": "./apps/server/src/infra/tsp-client/openapi.json", "output": "./apps/server/src/infra/tsp-client/generated", "skipValidateSpec": true, "enablePostProcessFile": true, diff --git a/src/services/user-group/hooks/courses.js b/src/services/user-group/hooks/courses.js index aa50cc52a78..cf73427112c 100644 --- a/src/services/user-group/hooks/courses.js +++ b/src/services/user-group/hooks/courses.js @@ -190,6 +190,11 @@ const removeColumnBoard = async (context) => { await context.app.service('nest-column-board-service').deleteByCourseId(courseId); }; +const removeContextExternalTools = async (context) => { + const courseId = context.id; + await context.app.service('nest-context-external-tool-service').deleteContextExternalToolsByCourseId(courseId); +}; + /** * remove all substitution teacher which are also teachers * @param hook - contains and request body @@ -250,6 +255,7 @@ module.exports = { addWholeClassToCourse, deleteWholeClassFromCourse, removeColumnBoard, + removeContextExternalTools, removeSubstitutionDuplicates, courseInviteHook, patchPermissionHook, diff --git a/src/services/user-group/services/courses.js b/src/services/user-group/services/courses.js index 2d358210e6e..52bdd59deb5 100644 --- a/src/services/user-group/services/courses.js +++ b/src/services/user-group/services/courses.js @@ -26,6 +26,7 @@ const { addWholeClassToCourse, deleteWholeClassFromCourse, removeColumnBoard, + removeContextExternalTools, courseInviteHook, patchPermissionHook, restrictChangesToArchivedCourse, @@ -146,7 +147,7 @@ const courseHooks = { create: [addWholeClassToCourse], update: [], patch: [addWholeClassToCourse], - remove: [removeColumnBoard], + remove: [removeColumnBoard, removeContextExternalTools], }, };