quidproquo-core 0.0.60 → 0.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { QPQConfigSetting } from '../QPQConfig';
|
|
1
|
+
import { QPQConfigSetting, QPQConfigAdvancedSettings } from '../QPQConfig';
|
|
2
|
+
export interface QPQConfigAdvancedStorageDriveSettings extends QPQConfigAdvancedSettings {
|
|
3
|
+
copyPath?: string;
|
|
4
|
+
}
|
|
2
5
|
export interface StorageDriveQPQConfigSetting extends QPQConfigSetting {
|
|
3
6
|
storageDrive: string;
|
|
7
|
+
copyPath?: string;
|
|
4
8
|
}
|
|
5
|
-
export declare const defineStorageDrive: (storageDrive: string) => StorageDriveQPQConfigSetting;
|
|
9
|
+
export declare const defineStorageDrive: (storageDrive: string, options?: QPQConfigAdvancedStorageDriveSettings) => StorageDriveQPQConfigSetting;
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defineStorageDrive = void 0;
|
|
4
4
|
const QPQConfig_1 = require("../QPQConfig");
|
|
5
|
-
const defineStorageDrive = (storageDrive) => ({
|
|
5
|
+
const defineStorageDrive = (storageDrive, options) => ({
|
|
6
6
|
configSettingType: QPQConfig_1.QPQCoreConfigSettingType.storageDrive,
|
|
7
7
|
uniqueKey: storageDrive,
|
|
8
8
|
storageDrive,
|
|
9
|
+
copyPath: options === null || options === void 0 ? void 0 : options.copyPath,
|
|
9
10
|
});
|
|
10
11
|
exports.defineStorageDrive = defineStorageDrive;
|
package/lib/qpqCoreUtils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QPQConfig, QPQConfigSetting } from './config/QPQConfig';
|
|
2
|
-
import { ApplicationModuleQPQConfigSetting, ScheduleQPQConfigSetting, SecretQPQConfigSetting, ParameterQPQConfigSetting } from './config/settings';
|
|
2
|
+
import { ApplicationModuleQPQConfigSetting, StorageDriveQPQConfigSetting, ScheduleQPQConfigSetting, SecretQPQConfigSetting, ParameterQPQConfigSetting } from './config/settings';
|
|
3
3
|
export declare const getConfigSettings: <T extends QPQConfigSetting>(configs: QPQConfig, configSettingType: string) => T[];
|
|
4
4
|
export declare const getConfigSetting: <T extends QPQConfigSetting>(configs: QPQConfig, serviceInfrastructureConfigType: string) => T | undefined;
|
|
5
5
|
export declare const getApplicationModuleSetting: (qpqConfig: QPQConfig) => ApplicationModuleQPQConfigSetting;
|
|
@@ -19,3 +19,4 @@ export declare const getSharedSecrets: (configs: QPQConfig) => SecretQPQConfigSe
|
|
|
19
19
|
export declare const getBuildPath: (configs: QPQConfig) => string;
|
|
20
20
|
export declare const getUniqueKeyForSetting: (setting: QPQConfigSetting) => string;
|
|
21
21
|
export declare const getScheduleEntryFullPath: (qpqConfig: QPQConfig, scheduleConfig: ScheduleQPQConfigSetting) => string;
|
|
22
|
+
export declare const getStorageDriveUploadFullPath: (qpqConfig: QPQConfig, storageDriveConfig: StorageDriveQPQConfigSetting) => string;
|
package/lib/qpqCoreUtils.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
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;
|
|
26
|
+
exports.getStorageDriveUploadFullPath = 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;
|
|
27
27
|
const path = __importStar(require("path"));
|
|
28
28
|
const QPQConfig_1 = require("./config/QPQConfig");
|
|
29
29
|
const getConfigSettings = (configs, configSettingType) => {
|
|
@@ -121,3 +121,7 @@ const getScheduleEntryFullPath = (qpqConfig, scheduleConfig) => {
|
|
|
121
121
|
return path.join((0, exports.getConfigRoot)(qpqConfig), scheduleConfig.buildPath);
|
|
122
122
|
};
|
|
123
123
|
exports.getScheduleEntryFullPath = getScheduleEntryFullPath;
|
|
124
|
+
const getStorageDriveUploadFullPath = (qpqConfig, storageDriveConfig) => {
|
|
125
|
+
return path.join((0, exports.getConfigRoot)(qpqConfig), storageDriveConfig.copyPath || '');
|
|
126
|
+
};
|
|
127
|
+
exports.getStorageDriveUploadFullPath = getStorageDriveUploadFullPath;
|