import { BaseResource } from '@gitbeaker/requester-utils' ; import { BaseRequestOptions , endpoint , RequestHelper } from '../infrastructure' ; export interface RepositorySubmoduleSchema extends Record < string , unknown > { id : string ; short_id : string ; title : string ; author_name : string ; author_email : string ; committer_name : string ; committer_email : string ; created_at : string ; message : string ; parent_ids : string [ ] ; committed_date : Date ; authored_date : Date ; status ? : string ; } export class RepositorySubmodules < C extends boolean = false > extends BaseResource < C > { edit ( projectId , submodule , branch , commit_sha , options ? ) { return RequestHelper . put < RepositorySubmoduleSchema > ( ) ( this , endpoint `projects/${ projectId }/repository/submodules/${ submodule }` , { branch , commit_sha , ... options , } ) ; } }