@@ -26,7 +26,7 @@ export class PlatformApiLogicClient extends PlatformApiRestClient {
26
26
* @param {string } options.workspaceId Id of the workspace to search
27
27
* @returns {Promise<[]> } An array of flows
28
28
*/
29
- async fetchAllFlowsForWorkspace ( options : AllFlowsForWorkspaceOptions ) : Promise < any [ ] > {
29
+ async fetchAllFlowsForWorkspace ( options : AllFlowsForWorkspaceOptions = { } ) : Promise < any [ ] > {
30
30
const {
31
31
objectsPerPage = DEFAULT_OBJECTS_PER_PAGE ,
32
32
parallelCalls = DEFAULT_PARALLEL_PLATFORM_API_CALLS ,
@@ -64,7 +64,7 @@ export class PlatformApiLogicClient extends PlatformApiRestClient {
64
64
* componentId: string,
65
65
* }}]> }
66
66
*/
67
- async fetchAllCredentialsForWorkspace ( options ) {
67
+ async fetchAllCredentialsForWorkspace ( options : any = { } ) {
68
68
const {
69
69
workspaceId,
70
70
} = options ;
@@ -89,7 +89,7 @@ export class PlatformApiLogicClient extends PlatformApiRestClient {
89
89
* componentDevTeam: string
90
90
* }}]> }
91
91
*/
92
- async fetchComponentsAccessibleFromContract ( options ) {
92
+ async fetchComponentsAccessibleFromContract ( options : any = { } ) {
93
93
const {
94
94
contractId,
95
95
} = options ;
@@ -132,7 +132,7 @@ export class PlatformApiLogicClient extends PlatformApiRestClient {
132
132
* workspaceDetails: object
133
133
* }}]> }
134
134
*/
135
- async fetchFlowList ( options : any ) {
135
+ async fetchFlowList ( options : any = { } ) {
136
136
const {
137
137
parallelCalls = DEFAULT_PARALLEL_PLATFORM_API_CALLS ,
138
138
workspaceId,
@@ -147,10 +147,10 @@ export class PlatformApiLogicClient extends PlatformApiRestClient {
147
147
const workspaces = await this . fetchWorkspaceList ( { } ) ;
148
148
if ( ! workspaceId ) {
149
149
const nonFlatFlows = await mapLimit ( workspaces , realSplitFactor ,
150
- async workspace => this . fetchAllFlowsForWorkspace ( {
151
- parallelCalls : parallelizationPerTask ,
152
- workspaceId : workspace . workspaceId ,
153
- } ) ) ;
150
+ async workspace => this . fetchAllFlowsForWorkspace ( {
151
+ parallelCalls : parallelizationPerTask ,
152
+ workspaceId : workspace . workspaceId ,
153
+ } ) ) ;
154
154
flows = nonFlatFlows . flat ( ) ;
155
155
} else {
156
156
flows = await this . fetchAllFlowsForWorkspace ( {
@@ -187,7 +187,7 @@ export class PlatformApiLogicClient extends PlatformApiRestClient {
187
187
* workspaceDetails: object
188
188
* }}]> }
189
189
*/
190
- async fetchWorkspaceList ( options : WorkspaceListOptions ) {
190
+ async fetchWorkspaceList ( options : WorkspaceListOptions = { } ) {
191
191
if ( ! this . workspaceList ) {
192
192
const {
193
193
objectsPerPage = DEFAULT_OBJECTS_PER_PAGE ,
@@ -420,7 +420,7 @@ export class PlatformApiLogicClient extends PlatformApiRestClient {
420
420
* @returns {Promise<> }
421
421
*/
422
422
/* eslint-disable no-await-in-loop */
423
- async changeFlowState ( options ) {
423
+ async changeFlowState ( options : any = { } ) {
424
424
const {
425
425
timeout = 90000 ,
426
426
pollInterval = 1000 ,
@@ -487,7 +487,7 @@ export class PlatformApiLogicClient extends PlatformApiRestClient {
487
487
} ) ;
488
488
}
489
489
490
- async hydrateFlow ( options ) {
490
+ async hydrateFlow ( options : any = { } ) {
491
491
const {
492
492
flow,
493
493
includeDataSamples,
@@ -521,7 +521,7 @@ export class PlatformApiLogicClient extends PlatformApiRestClient {
521
521
/* eslint-disable-next-line no-param-reassign */
522
522
soFar [ sample . sampleId ] = sample . sample ;
523
523
return soFar ;
524
- } , { } ) ;
524
+ } , { } ) ;
525
525
flow . attributes . graph . nodes
526
526
. filter ( node => node . selected_data_samples )
527
527
. forEach ( ( node ) => {
0 commit comments