|
| 1 | +import { ConfigCommon } from '@tee/common' |
| 2 | + |
| 3 | +export default class ConfigBaserow extends ConfigCommon { |
| 4 | + private static _TABLE_ID_CONDITIONAL_VALUES = 351202 |
| 5 | + private static _TABLE_ID_GEOGRAPHIC_AREAS = 314474 |
| 6 | + private static _TABLE_ID_GEOGRAPHIC_COVERAGE = 314470 |
| 7 | + private static _TABLE_ID_IMAGE = 315189 |
| 8 | + private static _TABLE_ID_OPERATOR = 314410 |
| 9 | + private static _TABLE_ID_PROGRAM = 314437 |
| 10 | + private static _TABLE_ID_PROJECT = 305253 |
| 11 | + private static _TABLE_ID_TESTIMONIES = 399896 |
| 12 | + private static _TABLE_ID_THEME = 305258 |
| 13 | + |
| 14 | + public static get TOKEN() { |
| 15 | + return this.getEnvValue('BASEROW_TOKEN') |
| 16 | + } |
| 17 | + |
| 18 | + public static get CONDITIONAL_VALUES_ID() { |
| 19 | + return parseInt(this.getEnvValue('BASEROW_TABLE_ID_CONDITIONAL_VALUES', this._TABLE_ID_CONDITIONAL_VALUES.toString())) |
| 20 | + } |
| 21 | + |
| 22 | + public static get GEOGRAPHIC_AREAS_ID() { |
| 23 | + return parseInt(this.getEnvValue('BASEROW_TABLE_ID_GEOGRAPHIC_AREAS', this._TABLE_ID_GEOGRAPHIC_AREAS.toString())) |
| 24 | + } |
| 25 | + |
| 26 | + public static get GEOGRAPHIC_COVERAGE_ID() { |
| 27 | + return parseInt(this.getEnvValue('BASEROW_TABLE_ID_GEOGRAPHIC_COVERAGE', this._TABLE_ID_GEOGRAPHIC_COVERAGE.toString())) |
| 28 | + } |
| 29 | + |
| 30 | + public static get IMAGE_ID() { |
| 31 | + return parseInt(this.getEnvValue('BASEROW_TABLE_ID_IMAGE', this._TABLE_ID_IMAGE.toString())) |
| 32 | + } |
| 33 | + |
| 34 | + public static get OPERATOR_ID() { |
| 35 | + return parseInt(this.getEnvValue('BASEROW_TABLE_ID_OPERATOR', this._TABLE_ID_OPERATOR.toString())) |
| 36 | + } |
| 37 | + |
| 38 | + public static get PROGRAM_ID() { |
| 39 | + return parseInt(this.getEnvValue('BASEROW_TABLE_ID_PROGRAM', this._TABLE_ID_PROGRAM.toString())) |
| 40 | + } |
| 41 | + |
| 42 | + public static get PROJECT_ID() { |
| 43 | + return parseInt(this.getEnvValue('BASEROW_TABLE_ID_PROJECT', this._TABLE_ID_PROJECT.toString())) |
| 44 | + } |
| 45 | + |
| 46 | + public static get TESTIMONIES_ID() { |
| 47 | + return parseInt(this.getEnvValue('BASEROW_TABLE_ID_TESTIMONIES', this._TABLE_ID_TESTIMONIES.toString())) |
| 48 | + } |
| 49 | + |
| 50 | + public static get THEME_ID() { |
| 51 | + return parseInt(this.getEnvValue('BASEROW_TABLE_ID_THEME', this._TABLE_ID_THEME.toString())) |
| 52 | + } |
| 53 | +} |
0 commit comments