Skip to content

Commit

Permalink
Add planetApiKey to PlanetDataProvier search params
Browse files Browse the repository at this point in the history
  • Loading branch information
mitjak committed Dec 11, 2023
1 parent 1c76671 commit 4fdb544
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/dataimport/PlanetDataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};

Expand Down
1 change: 1 addition & 0 deletions src/dataimport/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ export type TPDISearchParams = {
productBundle?: PlanetProductBundle;
type?: PlanetPVType;
id?: PlanetPVId;
planetApiKey?: string;
};

export type TPDITransactionParams = {
Expand Down

0 comments on commit 4fdb544

Please sign in to comment.