quidproquo-core
Advanced tools
Comparing version 0.0.53 to 0.0.54
export * from './actionProcessors'; | ||
export * from './application'; | ||
export * from './applicationModule'; | ||
export * from './buildPath'; | ||
@@ -4,0 +4,0 @@ export * from './parameter'; |
@@ -18,3 +18,3 @@ "use strict"; | ||
__exportStar(require("./actionProcessors"), exports); | ||
__exportStar(require("./application"), exports); | ||
__exportStar(require("./applicationModule"), exports); | ||
__exportStar(require("./buildPath"), exports); | ||
@@ -21,0 +21,0 @@ __exportStar(require("./parameter"), exports); |
import { QPQConfig, QPQConfigSetting } from './config/QPQConfig'; | ||
import { ScheduleQPQConfigSetting, SecretQPQConfigSetting, ParameterQPQConfigSetting } from './config/settings'; | ||
import { ApplicationModuleQPQConfigSetting, ScheduleQPQConfigSetting, SecretQPQConfigSetting, ParameterQPQConfigSetting } from './config/settings'; | ||
export declare const getConfigSettings: <T extends QPQConfigSetting>(configs: QPQConfig, configSettingType: string) => T[]; | ||
export declare const getConfigSetting: <T extends QPQConfigSetting>(configs: QPQConfig, serviceInfrastructureConfigType: string) => T | undefined; | ||
export declare const getAppName: (configs: QPQConfig) => string; | ||
export declare const getApplicationEnvironment: (configs: QPQConfig) => string; | ||
export declare const getApplicationFeature: (configs: QPQConfig) => string | undefined; | ||
export declare const getDeployRegion: (configs: QPQConfig) => string; | ||
export declare const getConfigRoot: (configs: QPQConfig) => string; | ||
export declare const getApplicationModuleSetting: (qpqConfig: QPQConfig) => ApplicationModuleQPQConfigSetting; | ||
export declare const getApplicationName: (qpqConfig: QPQConfig) => string; | ||
export declare const getApplicationModuleName: (qpqConfig: QPQConfig) => string; | ||
export declare const getApplicationModuleFeature: (qpqConfig: QPQConfig) => string | undefined; | ||
export declare const getConfigRoot: (qpqConfig: QPQConfig) => string; | ||
export declare const getApplicationModuleEnvironment: (qpqConfig: QPQConfig) => string; | ||
export declare const getApplicationModuleDeployRegion: (qpqConfig: QPQConfig) => string; | ||
export declare const getStorageDriveNames: (configs: QPQConfig) => string[]; | ||
@@ -11,0 +13,0 @@ export declare const getActionProcessorSources: (configs: QPQConfig) => string[]; |
@@ -26,3 +26,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getScheduleEntryFullPath = exports.getUniqueKeyForSetting = exports.getBuildPath = exports.getSharedSecrets = exports.getOwnedParameters = exports.getOwnedSecrets = exports.getAllSrcEntries = exports.getScheduleEvents = exports.getActionProcessorSources = exports.getStorageDriveNames = exports.getConfigRoot = exports.getDeployRegion = exports.getApplicationFeature = exports.getApplicationEnvironment = exports.getAppName = exports.getConfigSetting = exports.getConfigSettings = void 0; | ||
exports.getScheduleEntryFullPath = exports.getUniqueKeyForSetting = exports.getBuildPath = exports.getSharedSecrets = exports.getOwnedParameters = exports.getOwnedSecrets = exports.getAllSrcEntries = exports.getScheduleEvents = exports.getActionProcessorSources = exports.getStorageDriveNames = exports.getApplicationModuleDeployRegion = exports.getApplicationModuleEnvironment = exports.getConfigRoot = exports.getApplicationModuleFeature = exports.getApplicationModuleName = exports.getApplicationName = exports.getApplicationModuleSetting = exports.getConfigSetting = exports.getConfigSettings = void 0; | ||
const path = __importStar(require("path")); | ||
@@ -39,38 +39,34 @@ const QPQConfig_1 = require("./config/QPQConfig"); | ||
exports.getConfigSetting = getConfigSetting; | ||
const getAppName = (configs) => { | ||
var _a; | ||
const appName = (_a = (0, exports.getConfigSetting)(configs, QPQConfig_1.QPQCoreConfigSettingType.appName)) === null || _a === void 0 ? void 0 : _a.appName; | ||
if (!appName) { | ||
throw new Error('please use defineApplication in your QPQ config'); | ||
const getApplicationModuleSetting = (qpqConfig) => { | ||
const applicationModuleSetting = (0, exports.getConfigSetting)(qpqConfig, QPQConfig_1.QPQCoreConfigSettingType.appName); | ||
if (!applicationModuleSetting) { | ||
throw new Error('please use defineApplicationModule in your QPQ config'); | ||
} | ||
return appName; | ||
return applicationModuleSetting; | ||
}; | ||
exports.getAppName = getAppName; | ||
const getApplicationEnvironment = (configs) => { | ||
var _a; | ||
const environment = ((_a = (0, exports.getConfigSetting)(configs, QPQConfig_1.QPQCoreConfigSettingType.appName)) === null || _a === void 0 ? void 0 : _a.environment) || 'production'; | ||
return environment; | ||
exports.getApplicationModuleSetting = getApplicationModuleSetting; | ||
const getApplicationName = (qpqConfig) => { | ||
return (0, exports.getApplicationModuleSetting)(qpqConfig).applicationName; | ||
}; | ||
exports.getApplicationEnvironment = getApplicationEnvironment; | ||
const getApplicationFeature = (configs) => { | ||
var _a; | ||
const feature = (_a = (0, exports.getConfigSetting)(configs, QPQConfig_1.QPQCoreConfigSettingType.appName)) === null || _a === void 0 ? void 0 : _a.feature; | ||
return feature; | ||
exports.getApplicationName = getApplicationName; | ||
const getApplicationModuleName = (qpqConfig) => { | ||
return (0, exports.getApplicationModuleSetting)(qpqConfig).moduleName; | ||
}; | ||
exports.getApplicationFeature = getApplicationFeature; | ||
const getDeployRegion = (configs) => { | ||
var _a; | ||
const deployRegion = ((_a = (0, exports.getConfigSetting)(configs, QPQConfig_1.QPQCoreConfigSettingType.appName)) === null || _a === void 0 ? void 0 : _a.deployRegion) || 'us-east-1'; | ||
return deployRegion; | ||
exports.getApplicationModuleName = getApplicationModuleName; | ||
const getApplicationModuleFeature = (qpqConfig) => { | ||
return (0, exports.getApplicationModuleSetting)(qpqConfig).feature; | ||
}; | ||
exports.getDeployRegion = getDeployRegion; | ||
const getConfigRoot = (configs) => { | ||
var _a; | ||
const configRoot = (_a = (0, exports.getConfigSetting)(configs, QPQConfig_1.QPQCoreConfigSettingType.appName)) === null || _a === void 0 ? void 0 : _a.configRoot; | ||
if (!configRoot) { | ||
throw new Error('please use defineApplication in your QPQ config'); | ||
} | ||
return configRoot; | ||
exports.getApplicationModuleFeature = getApplicationModuleFeature; | ||
const getConfigRoot = (qpqConfig) => { | ||
return (0, exports.getApplicationModuleSetting)(qpqConfig).configRoot; | ||
}; | ||
exports.getConfigRoot = getConfigRoot; | ||
const getApplicationModuleEnvironment = (qpqConfig) => { | ||
return (0, exports.getApplicationModuleSetting)(qpqConfig).environment || 'production'; | ||
}; | ||
exports.getApplicationModuleEnvironment = getApplicationModuleEnvironment; | ||
const getApplicationModuleDeployRegion = (qpqConfig) => { | ||
return (0, exports.getApplicationModuleSetting)(qpqConfig).deployRegion || 'us-east-1'; | ||
}; | ||
exports.getApplicationModuleDeployRegion = getApplicationModuleDeployRegion; | ||
const getStorageDriveNames = (configs) => { | ||
@@ -77,0 +73,0 @@ const storageDriveNames = (0, exports.getConfigSettings)(configs, QPQConfig_1.QPQCoreConfigSettingType.storageDrive).map((sd) => sd.storageDrive); |
{ | ||
"name": "quidproquo-core", | ||
"version": "0.0.53", | ||
"version": "0.0.54", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97963
1977