diff --git a/src/dataimport/PlanetDataProvider.ts b/src/dataimport/PlanetDataProvider.ts index 91dee662..fe69f78a 100644 --- a/src/dataimport/PlanetDataProvider.ts +++ b/src/dataimport/PlanetDataProvider.ts @@ -7,6 +7,16 @@ export class PlanetDataProvider extends AbstractTPDProvider { this.provider = TPDProvider.PLANET; } + protected getCommonSearchParams(params: TPDISearchParams): any { + const payload: any = super.getCommonSearchParams(params); + + if (params.planetApiKey) { + payload.planetApiKey = params.planetApiKey; + } + + return payload; + } + protected getAdditionalSearchParams(params: TPDISearchParams): any { const data: any = {}; diff --git a/src/dataimport/const.ts b/src/dataimport/const.ts index 7a16a4f4..de318ad7 100644 --- a/src/dataimport/const.ts +++ b/src/dataimport/const.ts @@ -155,6 +155,7 @@ export type TPDISearchParams = { productBundle?: PlanetProductBundle; type?: PlanetPVType; id?: PlanetPVId; + planetApiKey?: string; }; export type TPDITransactionParams = {