Skip to content

Commit

Permalink
refactor: more explicit name and description for the object
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafał Pawłaszek committed Oct 27, 2023
1 parent 79754d3 commit b831e92
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/microsoftsharepointonline/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ import { ConnectorType } from '../core/connectors/connector-type';
import { IFlow } from '../core/flows';
import { ISource } from '../core/vertices';

export interface MicrosoftSharepointObject {
/**
* Represents a list of Microsoft Sharepoint Online site drives from which to retrieve the documents.
*/
export interface MicrosoftSharepointOnlineObject {
/**
* The Microsoft Sharepoint Online site from which the documents are to be retrieved.
*
Expand All @@ -33,7 +36,7 @@ export interface MicrosoftSharepointObject {
export interface MicrosoftSharepointOnlineSourceProps {
readonly profile: MicrosoftSharepointOnlineConnectorProfile;
readonly apiVersion: string;
readonly object: MicrosoftSharepointObject;
readonly object: MicrosoftSharepointOnlineObject;
}

/**
Expand Down Expand Up @@ -62,7 +65,7 @@ export class MicrosoftSharepointOnlineSource implements ISource {

private buildSourceConnectorProperties(): CfnFlow.SourceConnectorPropertiesProperty {

if (this.props.object.drives.length < 1) {
if ( this.props.object.drives.length < 1) {
throw new Error('At least one drive must be specified');
}

Expand Down

0 comments on commit b831e92

Please sign in to comment.