@@ -1576,6 +1576,49 @@ export interface NotificationsSettingDto {
15761576 */
15771577 isEnabled ?: boolean ;
15781578}
1579+ /**
1580+ *
1581+ * @export
1582+ * @interface PostAutomatedSolutionModel
1583+ */
1584+ export interface PostAutomatedSolutionModel {
1585+ /**
1586+ *
1587+ * @type {string }
1588+ * @memberof PostAutomatedSolutionModel
1589+ */
1590+ taskId : string ;
1591+ /**
1592+ *
1593+ * @type {TaskIdType }
1594+ * @memberof PostAutomatedSolutionModel
1595+ */
1596+ taskIdType ?: TaskIdType ;
1597+ /**
1598+ *
1599+ * @type {string }
1600+ * @memberof PostAutomatedSolutionModel
1601+ */
1602+ studentId : string ;
1603+ /**
1604+ *
1605+ * @type {StudentIdType }
1606+ * @memberof PostAutomatedSolutionModel
1607+ */
1608+ studentIdType ?: StudentIdType ;
1609+ /**
1610+ *
1611+ * @type {string }
1612+ * @memberof PostAutomatedSolutionModel
1613+ */
1614+ githubUrl ?: string ;
1615+ /**
1616+ *
1617+ * @type {string }
1618+ * @memberof PostAutomatedSolutionModel
1619+ */
1620+ comment ?: string ;
1621+ }
15791622/**
15801623 *
15811624 * @export
@@ -2316,6 +2359,16 @@ export interface StudentDataDto {
23162359 */
23172360 characteristics ?: StudentCharacteristicsDto ;
23182361}
2362+ /**
2363+ *
2364+ * @export
2365+ * @enum {string}
2366+ */
2367+ export enum StudentIdType {
2368+ NUMBER_0 = < any > 0 ,
2369+ NUMBER_1 = < any > 1 ,
2370+ NUMBER_2 = < any > 2
2371+ }
23192372/**
23202373 *
23212374 * @export
@@ -2433,6 +2486,15 @@ export interface TaskDeadlineView {
24332486 */
24342487 deadlinePast ?: boolean ;
24352488}
2489+ /**
2490+ *
2491+ * @export
2492+ * @enum {string}
2493+ */
2494+ export enum TaskIdType {
2495+ NUMBER_0 = < any > 0 ,
2496+ NUMBER_1 = < any > 1
2497+ }
24362498/**
24372499 *
24382500 * @export
@@ -8035,6 +8097,47 @@ export const SolutionsApiFetchParamCreator = function (configuration?: Configura
80358097 options : localVarRequestOptions ,
80368098 } ;
80378099 } ,
8100+ /**
8101+ *
8102+ * @param {number } courseId
8103+ * @param {PostAutomatedSolutionModel } [body]
8104+ * @param {* } [options] Override http request option.
8105+ * @throws {RequiredError }
8106+ */
8107+ solutionsPostAutomatedSolution ( courseId : number , body ?: PostAutomatedSolutionModel , options : any = { } ) : FetchArgs {
8108+ // verify required parameter 'courseId' is not null or undefined
8109+ if ( courseId === null || courseId === undefined ) {
8110+ throw new RequiredError ( 'courseId' , 'Required parameter courseId was null or undefined when calling solutionsPostAutomatedSolution.' ) ;
8111+ }
8112+ const localVarPath = `/api/Solutions/automated/{courseId}`
8113+ . replace ( `{${ "courseId" } }` , encodeURIComponent ( String ( courseId ) ) ) ;
8114+ const localVarUrlObj = url . parse ( localVarPath , true ) ;
8115+ const localVarRequestOptions = Object . assign ( { method : 'POST' } , options ) ;
8116+ const localVarHeaderParameter = { } as any ;
8117+ const localVarQueryParameter = { } as any ;
8118+
8119+ // authentication Bearer required
8120+ if ( configuration && configuration . apiKey ) {
8121+ const localVarApiKeyValue = typeof configuration . apiKey === 'function'
8122+ ? configuration . apiKey ( "Authorization" )
8123+ : configuration . apiKey ;
8124+ localVarHeaderParameter [ "Authorization" ] = localVarApiKeyValue ;
8125+ }
8126+
8127+ localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ;
8128+
8129+ localVarUrlObj . query = Object . assign ( { } , localVarUrlObj . query , localVarQueryParameter , options . query ) ;
8130+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
8131+ localVarUrlObj . search = null ;
8132+ localVarRequestOptions . headers = Object . assign ( { } , localVarHeaderParameter , options . headers ) ;
8133+ const needsSerialization = ( < any > "PostAutomatedSolutionModel" !== "string" ) || localVarRequestOptions . headers [ 'Content-Type' ] === 'application/json' ;
8134+ localVarRequestOptions . body = needsSerialization ? JSON . stringify ( body || { } ) : ( body || "" ) ;
8135+
8136+ return {
8137+ url : url . format ( localVarUrlObj ) ,
8138+ options : localVarRequestOptions ,
8139+ } ;
8140+ } ,
80388141 /**
80398142 *
80408143 * @param {number } taskId
@@ -8332,6 +8435,25 @@ export const SolutionsApiFp = function(configuration?: Configuration) {
83328435 } ) ;
83338436 } ;
83348437 } ,
8438+ /**
8439+ *
8440+ * @param {number } courseId
8441+ * @param {PostAutomatedSolutionModel } [body]
8442+ * @param {* } [options] Override http request option.
8443+ * @throws {RequiredError }
8444+ */
8445+ solutionsPostAutomatedSolution ( courseId : number , body ?: PostAutomatedSolutionModel , options ?: any ) : ( fetch ?: FetchAPI , basePath ?: string ) => Promise < Response > {
8446+ const localVarFetchArgs = SolutionsApiFetchParamCreator ( configuration ) . solutionsPostAutomatedSolution ( courseId , body , options ) ;
8447+ return ( fetch : FetchAPI = isomorphicFetch , basePath : string = BASE_PATH ) => {
8448+ return fetch ( basePath + localVarFetchArgs . url , localVarFetchArgs . options ) . then ( ( response ) => {
8449+ if ( response . status >= 200 && response . status < 300 ) {
8450+ return response ;
8451+ } else {
8452+ throw response ;
8453+ }
8454+ } ) ;
8455+ } ;
8456+ } ,
83358457 /**
83368458 *
83378459 * @param {number } taskId
@@ -8482,6 +8604,16 @@ export const SolutionsApiFactory = function (configuration?: Configuration, fetc
84828604 solutionsMarkSolution ( solutionId : number , options ?: any ) {
84838605 return SolutionsApiFp ( configuration ) . solutionsMarkSolution ( solutionId , options ) ( fetch , basePath ) ;
84848606 } ,
8607+ /**
8608+ *
8609+ * @param {number } courseId
8610+ * @param {PostAutomatedSolutionModel } [body]
8611+ * @param {* } [options] Override http request option.
8612+ * @throws {RequiredError }
8613+ */
8614+ solutionsPostAutomatedSolution ( courseId : number , body ?: PostAutomatedSolutionModel , options ?: any ) {
8615+ return SolutionsApiFp ( configuration ) . solutionsPostAutomatedSolution ( courseId , body , options ) ( fetch , basePath ) ;
8616+ } ,
84858617 /**
84868618 *
84878619 * @param {number } taskId
@@ -8624,6 +8756,18 @@ export class SolutionsApi extends BaseAPI {
86248756 return SolutionsApiFp ( this . configuration ) . solutionsMarkSolution ( solutionId , options ) ( this . fetch , this . basePath ) ;
86258757 }
86268758
8759+ /**
8760+ *
8761+ * @param {number } courseId
8762+ * @param {PostAutomatedSolutionModel } [body]
8763+ * @param {* } [options] Override http request option.
8764+ * @throws {RequiredError }
8765+ * @memberof SolutionsApi
8766+ */
8767+ public solutionsPostAutomatedSolution ( courseId : number , body ?: PostAutomatedSolutionModel , options ?: any ) {
8768+ return SolutionsApiFp ( this . configuration ) . solutionsPostAutomatedSolution ( courseId , body , options ) ( this . fetch , this . basePath ) ;
8769+ }
8770+
86278771 /**
86288772 *
86298773 * @param {number } taskId
0 commit comments