diff --git a/src/serverApi/v3/api.ts b/src/serverApi/v3/api.ts index d6d8a3258a..e914ddb86a 100644 --- a/src/serverApi/v3/api.ts +++ b/src/serverApi/v3/api.ts @@ -4244,6 +4244,19 @@ export enum RoleName { User = 'user' } +/** + * + * @export + * @interface SchoolExistsResponse + */ +export interface SchoolExistsResponse { + /** + * + * @type {boolean} + * @memberof SchoolExistsResponse + */ + exists: boolean; +} /** * * @export @@ -4467,6 +4480,31 @@ export interface SchoolForExternalInviteResponse { */ name: string; } +/** + * + * @export + * @interface SchoolForLdapLoginResponse + */ +export interface SchoolForLdapLoginResponse { + /** + * + * @type {string} + * @memberof SchoolForLdapLoginResponse + */ + id: string; + /** + * + * @type {string} + * @memberof SchoolForLdapLoginResponse + */ + name: string; + /** + * + * @type {Array} + * @memberof SchoolForLdapLoginResponse + */ + systems: Array; +} /** * * @export @@ -5127,6 +5165,31 @@ export interface SuccessfulResponse { */ successful: boolean; } +/** + * + * @export + * @interface SystemForLdapLoginResponse + */ +export interface SystemForLdapLoginResponse { + /** + * + * @type {string} + * @memberof SystemForLdapLoginResponse + */ + id: string; + /** + * + * @type {string} + * @memberof SystemForLdapLoginResponse + */ + type: string; + /** + * + * @type {string} + * @memberof SystemForLdapLoginResponse + */ + alias: string; +} /** * * @export @@ -13096,6 +13159,39 @@ export class SSOApi extends BaseAPI implements SSOApiInterface { */ export const SchoolApiAxiosParamCreator = function (configuration?: Configuration) { return { + /** + * + * @param {string} schoolId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + schoolControllerDoesSchoolExist: async (schoolId: string, options: any = {}): Promise => { + // verify required parameter 'schoolId' is not null or undefined + assertParamExists('schoolControllerDoesSchoolExist', 'schoolId', schoolId) + const localVarPath = `/school/exists/id/{schoolId}` + .replace(`{${"schoolId"}}`, encodeURIComponent(String(schoolId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * Gets all provisioning options for a system at a school * @param {string} schoolId @@ -13203,6 +13299,35 @@ export const SchoolApiAxiosParamCreator = function (configuration?: Configuratio + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + schoolControllerGetSchoolListForLadpLogin: async (options: any = {}): Promise => { + const localVarPath = `/school/list-for-ldap-login`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -13269,6 +13394,16 @@ export const SchoolApiAxiosParamCreator = function (configuration?: Configuratio export const SchoolApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = SchoolApiAxiosParamCreator(configuration) return { + /** + * + * @param {string} schoolId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async schoolControllerDoesSchoolExist(schoolId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.schoolControllerDoesSchoolExist(schoolId, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, /** * Gets all provisioning options for a system at a school * @param {string} schoolId @@ -13300,6 +13435,15 @@ export const SchoolApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.schoolControllerGetSchoolListForExternalInvite(federalStateId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async schoolControllerGetSchoolListForLadpLogin(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.schoolControllerGetSchoolListForLadpLogin(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, /** * Sets all provisioning options for a system at a school * @param {string} schoolId @@ -13322,6 +13466,15 @@ export const SchoolApiFp = function(configuration?: Configuration) { export const SchoolApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = SchoolApiFp(configuration) return { + /** + * + * @param {string} schoolId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + schoolControllerDoesSchoolExist(schoolId: string, options?: any): AxiosPromise { + return localVarFp.schoolControllerDoesSchoolExist(schoolId, options).then((request) => request(axios, basePath)); + }, /** * Gets all provisioning options for a system at a school * @param {string} schoolId @@ -13350,6 +13503,14 @@ export const SchoolApiFactory = function (configuration?: Configuration, basePat schoolControllerGetSchoolListForExternalInvite(federalStateId?: string, options?: any): AxiosPromise> { return localVarFp.schoolControllerGetSchoolListForExternalInvite(federalStateId, options).then((request) => request(axios, basePath)); }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + schoolControllerGetSchoolListForLadpLogin(options?: any): AxiosPromise> { + return localVarFp.schoolControllerGetSchoolListForLadpLogin(options).then((request) => request(axios, basePath)); + }, /** * Sets all provisioning options for a system at a school * @param {string} schoolId @@ -13370,6 +13531,15 @@ export const SchoolApiFactory = function (configuration?: Configuration, basePat * @interface SchoolApi */ export interface SchoolApiInterface { + /** + * + * @param {string} schoolId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchoolApiInterface + */ + schoolControllerDoesSchoolExist(schoolId: string, options?: any): AxiosPromise; + /** * Gets all provisioning options for a system at a school * @param {string} schoolId @@ -13398,6 +13568,14 @@ export interface SchoolApiInterface { */ schoolControllerGetSchoolListForExternalInvite(federalStateId?: string, options?: any): AxiosPromise>; + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchoolApiInterface + */ + schoolControllerGetSchoolListForLadpLogin(options?: any): AxiosPromise>; + /** * Sets all provisioning options for a system at a school * @param {string} schoolId @@ -13418,6 +13596,17 @@ export interface SchoolApiInterface { * @extends {BaseAPI} */ export class SchoolApi extends BaseAPI implements SchoolApiInterface { + /** + * + * @param {string} schoolId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchoolApi + */ + public schoolControllerDoesSchoolExist(schoolId: string, options?: any) { + return SchoolApiFp(this.configuration).schoolControllerDoesSchoolExist(schoolId, options).then((request) => request(this.axios, this.basePath)); + } + /** * Gets all provisioning options for a system at a school * @param {string} schoolId @@ -13452,6 +13641,16 @@ export class SchoolApi extends BaseAPI implements SchoolApiInterface { return SchoolApiFp(this.configuration).schoolControllerGetSchoolListForExternalInvite(federalStateId, options).then((request) => request(this.axios, this.basePath)); } + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SchoolApi + */ + public schoolControllerGetSchoolListForLadpLogin(options?: any) { + return SchoolApiFp(this.configuration).schoolControllerGetSchoolListForLadpLogin(options).then((request) => request(this.axios, this.basePath)); + } + /** * Sets all provisioning options for a system at a school * @param {string} schoolId