@@ -17,9 +17,9 @@ abstract class WhereAble extends BaseBuilder{
1717
1818 // for one get ConditionedData
1919 protected async getConditionedData ( ) :Promise < DataWithRowType [ ] > {
20- const range = this . composeRange ( this . sheetName as string , this . config . DATA_STARTING_ROW )
20+ const range = this . composeRange ( this . sheetName as string , this . config . sheet . DATA_STARTING_ROW )
2121 const dataFilters = this . makeDataFilters ( [ range ] )
22- const batchData = await this . fetchBatchData ( this . config . spreadsheetID , dataFilters )
22+ const batchData = await this . fetchBatchData ( this . config . spread . ID , dataFilters )
2323 const batchValues = this . extractValuesFromMatch ( batchData )
2424 const indexedBatchValue = this . indexingBatchData ( batchValues [ 0 ] )
2525 const conditionedBatchValue = this . conditioning ( indexedBatchValue )
@@ -51,7 +51,7 @@ abstract class WhereAble extends BaseBuilder{
5151 }
5252
5353 protected async fetchBatchData ( spreadsheetID :string , dataFilters :sheets_v4 . Schema$DataFilter [ ] ) :Promise < sheets_v4 . Schema$MatchedValueRange [ ] > {
54- const response = await this . config . spreadsheetAPI . spreadsheets . values . batchGetByDataFilter ( {
54+ const response = await this . config . spread . API . spreadsheets . values . batchGetByDataFilter ( {
5555 spreadsheetId :spreadsheetID ,
5656 requestBody :{
5757 dataFilters
@@ -65,7 +65,7 @@ abstract class WhereAble extends BaseBuilder{
6565 }
6666
6767 protected indexingBatchData ( data :string [ ] [ ] ) :DataWithRowType [ ] {
68- return data . map ( ( currData , idx ) => [ idx + this . config . DATA_STARTING_ROW , ...currData ] as DataWithRowType ) ;
68+ return data . map ( ( currData , idx ) => [ idx + this . config . sheet . DATA_STARTING_ROW , ...currData ] as DataWithRowType ) ;
6969 }
7070
7171 protected makeDataFilters ( ranges :string [ ] ) {
0 commit comments