File tree Expand file tree Collapse file tree 4 files changed +20
-20
lines changed
packages/cubejs-client-core/src Expand file tree Collapse file tree 4 files changed +20
-20
lines changed Original file line number Diff line number Diff line change 11import { ProgressResponse } from './types' ;
22
33export default class ProgressResult {
4- progressResponse : ProgressResponse ;
4+ private progressResponse : ProgressResponse ;
55
66 public constructor ( progressResponse : ProgressResponse ) {
77 this . progressResponse = progressResponse ;
Original file line number Diff line number Diff line change 11export default class RequestError extends Error {
2- response : any ;
2+ public response : any ;
33
4- status : number ;
4+ public status : number ;
55
66 public constructor ( message : string , response : any , status : number ) {
77 super ( message ) ;
Original file line number Diff line number Diff line change @@ -73,17 +73,17 @@ export type ResultSetOptions = {
7373 * Provides a convenient interface for data manipulation.
7474 */
7575export default class ResultSet < T extends Record < string , any > > {
76- loadResponse : LoadResponse < T > ;
76+ private readonly loadResponse : LoadResponse < T > ;
7777
78- loadResponses : LoadResponseResult < T > [ ] ;
78+ private readonly loadResponses : LoadResponseResult < T > [ ] ;
7979
80- queryType : QueryType ;
80+ private readonly queryType : QueryType ;
8181
82- parseDateMeasures : boolean | undefined ;
82+ private readonly parseDateMeasures : boolean | undefined ;
8383
84- options : { } ;
84+ private readonly options : { } ;
8585
86- backwardCompatibleData : Record < string , any > [ ] [ ] ;
86+ private readonly backwardCompatibleData : Record < string , any > [ ] [ ] ;
8787
8888 public static measureFromAxis ( axisValues : string [ ] ) : string {
8989 return axisValues [ axisValues . length - 1 ] ;
Original file line number Diff line number Diff line change @@ -145,27 +145,27 @@ export type CubeApiOptions = {
145145 * Main class for accessing Cube API
146146 */
147147class CubeApi {
148- apiToken : string | ( ( ) => Promise < string > ) | ( CubeApiOptions & any [ ] ) | undefined ;
148+ private readonly apiToken : string | ( ( ) => Promise < string > ) | ( CubeApiOptions & any [ ] ) | undefined ;
149149
150- apiUrl : string ;
150+ private readonly apiUrl : string ;
151151
152- method : TransportOptions [ 'method' ] ;
152+ private readonly method : TransportOptions [ 'method' ] ;
153153
154- headers : TransportOptions [ 'headers' ] ;
154+ private readonly headers : TransportOptions [ 'headers' ] ;
155155
156- credentials : TransportOptions [ 'credentials' ] ;
156+ private readonly credentials : TransportOptions [ 'credentials' ] ;
157157
158- transport : ITransport < any > ;
158+ private readonly transport : ITransport < any > ;
159159
160- pollInterval : number ;
160+ private readonly pollInterval : number ;
161161
162- parseDateMeasures : boolean | undefined ;
162+ private readonly parseDateMeasures : boolean | undefined ;
163163
164- castNumerics : boolean ;
164+ private readonly castNumerics : boolean ;
165165
166- networkErrorRetries : number ;
166+ private readonly networkErrorRetries : number ;
167167
168- updateAuthorizationPromise : Promise < any > | null ;
168+ private updateAuthorizationPromise : Promise < any > | null ;
169169
170170 public constructor ( apiToken : string | ( ( ) => Promise < string > ) | undefined , options : CubeApiOptions ) ;
171171
You can’t perform that action at this time.
0 commit comments