diff --git a/src/v1/destinations/iterable/strategies/principal.ts b/src/v1/destinations/iterable/strategies/base.ts similarity index 92% rename from src/v1/destinations/iterable/strategies/principal.ts rename to src/v1/destinations/iterable/strategies/base.ts index 7d0a9019a6..650750bf39 100644 --- a/src/v1/destinations/iterable/strategies/principal.ts +++ b/src/v1/destinations/iterable/strategies/base.ts @@ -4,8 +4,8 @@ import { isHttpStatusSuccess } from '../../../../v0/util'; import { TransformerProxyError } from '../../../../v0/util/errorTypes'; import { DestinationResponse, ResponseParams } from '../types'; -// Principal strategy is the base class for all strategies in Iterable destination -class PrincipalStrategy { +// Base strategy is the base class for all strategies in Iterable destination +class BaseStrategy { handleResponse(responseParams: { destinationResponse: DestinationResponse }): void { const { destinationResponse } = responseParams; const { status } = destinationResponse; @@ -48,4 +48,4 @@ class PrincipalStrategy { } } -export { PrincipalStrategy }; +export { BaseStrategy }; diff --git a/src/v1/destinations/iterable/strategies/generic.ts b/src/v1/destinations/iterable/strategies/generic.ts index fa13f71a97..2702875610 100644 --- a/src/v1/destinations/iterable/strategies/generic.ts +++ b/src/v1/destinations/iterable/strategies/generic.ts @@ -1,7 +1,7 @@ -import { PrincipalStrategy } from './principal'; +import { BaseStrategy } from './base'; import { DestinationResponse, SuccessResponse } from '../types'; -class GenericStrategy extends PrincipalStrategy { +class GenericStrategy extends BaseStrategy { handleSuccess(responseParams: { destinationResponse: DestinationResponse; rudderJobMetadata: any[]; diff --git a/src/v1/destinations/iterable/strategies/track-identify.ts b/src/v1/destinations/iterable/strategies/track-identify.ts index 170d1e4130..7c242f3ac7 100644 --- a/src/v1/destinations/iterable/strategies/track-identify.ts +++ b/src/v1/destinations/iterable/strategies/track-identify.ts @@ -1,8 +1,8 @@ -import { PrincipalStrategy } from './principal'; +import { BaseStrategy } from './base'; import { DestinationResponse, ResponseParams, Response } from '../types'; import { checkIfEventIsAbortableAndExtractErrorMessage } from '../../../../v0/destinations/iterable/util'; -class TrackIdentifyStrategy extends PrincipalStrategy { +class TrackIdentifyStrategy extends BaseStrategy { handleSuccess(responseParams: ResponseParams): { status: number; message: string;