Skip to content

Commit

Permalink
Merge pull request #21 from openTdataCH/feature/default-stage
Browse files Browse the repository at this point in the history
Default Stage
  • Loading branch information
vasile authored Apr 7, 2023
2 parents 9ebac85 + 4d90647 commit bfe70af
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# CHANGELOG

## 0.9.11 - 07.04.2023
- fix dependencies inclusion
- fix dependencies inclusion - see [#20](https://github.com/openTdataCH/ojp-js/pull/20)
- avoid usage of `allowSyntheticDefaultImports` by using `import * as`
- declare `GeoJSON` types
- no need to import the heavy mapbox-gl lib, just need the TS `@types`
- adds default stage to be used without registering a new key - see [#21](https://github.com/openTdataCH/ojp-js/pull/21)

## 0.9.10 - 02.04.2023
- fix `xmldom` inclusion - see [#19](https://github.com/openTdataCH/ojp-js/pull/19)
Expand Down
12 changes: 10 additions & 2 deletions src/types/stage-config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
export type APP_Stage = 'PROD' | 'INT' | 'TEST' | 'LA Beta'

export interface StageConfig {
key: string
key: APP_Stage
apiEndpoint: string
authBearerKey: string
}
}

export const DEFAULT_STAGE: StageConfig = {
key: 'PROD',
apiEndpoint: 'https://api.opentransportdata.swiss/ojp2020',
authBearerKey: '57c5dbbbf1fe4d00010000186ba6e4bb4be543a9b4e40d2d6495592b',
}

0 comments on commit bfe70af

Please sign in to comment.