quidproquo-core 0.0.135 → 0.0.136
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.
- package/lib/commonjs/actions/config/ConfigActionType.d.ts +3 -1
- package/lib/commonjs/actions/config/ConfigActionType.js +2 -0
- package/lib/commonjs/actions/config/ConfigGetGlobalActionRequester.d.ts +2 -0
- package/lib/commonjs/actions/config/ConfigGetGlobalActionRequester.js +8 -0
- package/lib/commonjs/actions/config/ConfigGetGlobalActionTypes.d.ts +11 -0
- package/lib/commonjs/actions/config/ConfigGetGlobalActionTypes.js +2 -0
- package/lib/commonjs/actions/config/ConfigSetParameterActionRequester.d.ts +2 -0
- package/lib/commonjs/actions/config/ConfigSetParameterActionRequester.js +8 -0
- package/lib/commonjs/actions/config/ConfigSetParameterActionTypes.d.ts +12 -0
- package/lib/commonjs/actions/config/ConfigSetParameterActionTypes.js +2 -0
- package/lib/commonjs/actions/config/index.d.ts +4 -0
- package/lib/commonjs/actions/config/index.js +4 -0
- package/lib/commonjs/config/QPQConfig.d.ts +3 -1
- package/lib/commonjs/config/QPQConfig.js +2 -0
- package/lib/commonjs/config/settings/deployEvent.d.ts +8 -0
- package/lib/commonjs/config/settings/deployEvent.js +12 -0
- package/lib/commonjs/config/settings/global.d.ts +6 -0
- package/lib/commonjs/config/settings/global.js +11 -0
- package/lib/commonjs/config/settings/index.d.ts +2 -0
- package/lib/commonjs/config/settings/index.js +2 -0
- package/lib/commonjs/config/settings/parameter.d.ts +0 -1
- package/lib/commonjs/config/settings/parameter.js +1 -2
- package/lib/commonjs/qpqCoreUtils.d.ts +5 -2
- package/lib/commonjs/qpqCoreUtils.js +23 -5
- package/lib/commonjs/types/DeployEvent.d.ts +16 -0
- package/lib/commonjs/types/DeployEvent.js +16 -0
- package/lib/commonjs/types/StorySession.d.ts +2 -1
- package/lib/commonjs/types/StorySession.js +1 -0
- package/lib/commonjs/types/index.d.ts +1 -0
- package/lib/commonjs/types/index.js +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare enum ConfigActionType {
|
|
2
2
|
GetSecret = "@quidproquo-core/Config/GetSecret",
|
|
3
3
|
GetParameter = "@quidproquo-core/Config/GetParameter",
|
|
4
|
+
SetParameter = "@quidproquo-core/Config/SetParameter",
|
|
4
5
|
GetParameters = "@quidproquo-core/Config/GetParameters",
|
|
5
|
-
GetApplicationInfo = "@quidproquo-core/Config/GetApplicationInfo"
|
|
6
|
+
GetApplicationInfo = "@quidproquo-core/Config/GetApplicationInfo",
|
|
7
|
+
GetGlobal = "@quidproquo-core/Config/GetGlobal"
|
|
6
8
|
}
|
|
@@ -5,6 +5,8 @@ var ConfigActionType;
|
|
|
5
5
|
(function (ConfigActionType) {
|
|
6
6
|
ConfigActionType["GetSecret"] = "@quidproquo-core/Config/GetSecret";
|
|
7
7
|
ConfigActionType["GetParameter"] = "@quidproquo-core/Config/GetParameter";
|
|
8
|
+
ConfigActionType["SetParameter"] = "@quidproquo-core/Config/SetParameter";
|
|
8
9
|
ConfigActionType["GetParameters"] = "@quidproquo-core/Config/GetParameters";
|
|
9
10
|
ConfigActionType["GetApplicationInfo"] = "@quidproquo-core/Config/GetApplicationInfo";
|
|
11
|
+
ConfigActionType["GetGlobal"] = "@quidproquo-core/Config/GetGlobal";
|
|
10
12
|
})(ConfigActionType = exports.ConfigActionType || (exports.ConfigActionType = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.askConfigGetGlobal = void 0;
|
|
4
|
+
const ConfigActionType_1 = require("./ConfigActionType");
|
|
5
|
+
function* askConfigGetGlobal(globalName) {
|
|
6
|
+
return yield { type: ConfigActionType_1.ConfigActionType.GetGlobal, payload: { globalName } };
|
|
7
|
+
}
|
|
8
|
+
exports.askConfigGetGlobal = askConfigGetGlobal;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Action, ActionProcessor, ActionRequester } from '../../types/Action';
|
|
2
|
+
import { ConfigActionType } from './ConfigActionType';
|
|
3
|
+
export interface ConfigGetGlobalActionPayload {
|
|
4
|
+
globalName: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ConfigGetGlobalAction extends Action<ConfigGetGlobalActionPayload> {
|
|
7
|
+
type: ConfigActionType.GetGlobal;
|
|
8
|
+
payload: ConfigGetGlobalActionPayload;
|
|
9
|
+
}
|
|
10
|
+
export type ConfigGetGlobalActionProcessor<T> = ActionProcessor<ConfigGetGlobalAction, T>;
|
|
11
|
+
export type ConfigGetGlobalActionRequester<T> = ActionRequester<ConfigGetGlobalAction, T>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.askConfigSetParameter = void 0;
|
|
4
|
+
const ConfigActionType_1 = require("./ConfigActionType");
|
|
5
|
+
function* askConfigSetParameter(parameterName, parameterValue) {
|
|
6
|
+
return yield { type: ConfigActionType_1.ConfigActionType.SetParameter, payload: { parameterName, parameterValue } };
|
|
7
|
+
}
|
|
8
|
+
exports.askConfigSetParameter = askConfigSetParameter;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Action, ActionProcessor, ActionRequester } from '../../types/Action';
|
|
2
|
+
import { ConfigActionType } from './ConfigActionType';
|
|
3
|
+
export interface ConfigSetParameterActionPayload {
|
|
4
|
+
parameterName: string;
|
|
5
|
+
parameterValue: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ConfigSetParameterAction extends Action<ConfigSetParameterActionPayload> {
|
|
8
|
+
type: ConfigActionType.SetParameter;
|
|
9
|
+
payload: ConfigSetParameterActionPayload;
|
|
10
|
+
}
|
|
11
|
+
export type ConfigSetParameterActionProcessor = ActionProcessor<ConfigSetParameterAction, void>;
|
|
12
|
+
export type ConfigSetParameterActionRequester = ActionRequester<ConfigSetParameterAction, void>;
|
|
@@ -7,3 +7,7 @@ export * from './ConfigGetParametersActionRequester';
|
|
|
7
7
|
export * from './ConfigGetParametersActionTypes';
|
|
8
8
|
export * from './ConfigGetSecretActionRequester';
|
|
9
9
|
export * from './ConfigGetSecretActionTypes';
|
|
10
|
+
export * from './ConfigGetGlobalActionRequester';
|
|
11
|
+
export * from './ConfigGetGlobalActionTypes';
|
|
12
|
+
export * from './ConfigSetParameterActionRequester';
|
|
13
|
+
export * from './ConfigSetParameterActionTypes';
|
|
@@ -23,3 +23,7 @@ __exportStar(require("./ConfigGetParametersActionRequester"), exports);
|
|
|
23
23
|
__exportStar(require("./ConfigGetParametersActionTypes"), exports);
|
|
24
24
|
__exportStar(require("./ConfigGetSecretActionRequester"), exports);
|
|
25
25
|
__exportStar(require("./ConfigGetSecretActionTypes"), exports);
|
|
26
|
+
__exportStar(require("./ConfigGetGlobalActionRequester"), exports);
|
|
27
|
+
__exportStar(require("./ConfigGetGlobalActionTypes"), exports);
|
|
28
|
+
__exportStar(require("./ConfigSetParameterActionRequester"), exports);
|
|
29
|
+
__exportStar(require("./ConfigSetParameterActionTypes"), exports);
|
|
@@ -4,6 +4,7 @@ export declare enum QPQCoreConfigSettingType {
|
|
|
4
4
|
storageDrive = "@quidproquo-core/config/storageDrive",
|
|
5
5
|
schedule = "@quidproquo-core/config/schedule",
|
|
6
6
|
secret = "@quidproquo-core/config/secret",
|
|
7
|
+
global = "@quidproquo-core/config/global",
|
|
7
8
|
parameter = "@quidproquo-core/config/parameter",
|
|
8
9
|
actionProcessors = "@quidproquo-core/config/actionProcessors",
|
|
9
10
|
buildPath = "@quidproquo-core/config/buildPath",
|
|
@@ -12,7 +13,8 @@ export declare enum QPQCoreConfigSettingType {
|
|
|
12
13
|
userDirectory = "@quidproquo-core/config/UserDirectory",
|
|
13
14
|
keyValueStore = "@quidproquo-core/config/KeyValueStore",
|
|
14
15
|
configValue = "@quidproquo-core/config/ConfigValue",
|
|
15
|
-
environmentSettings = "@quidproquo-core/config/EnvironmentSettings"
|
|
16
|
+
environmentSettings = "@quidproquo-core/config/EnvironmentSettings",
|
|
17
|
+
deployEvent = "@quidproquo-core/config/DeployEvent"
|
|
16
18
|
}
|
|
17
19
|
export interface QPQConfigSetting {
|
|
18
20
|
configSettingType: string;
|
|
@@ -7,6 +7,7 @@ var QPQCoreConfigSettingType;
|
|
|
7
7
|
QPQCoreConfigSettingType["storageDrive"] = "@quidproquo-core/config/storageDrive";
|
|
8
8
|
QPQCoreConfigSettingType["schedule"] = "@quidproquo-core/config/schedule";
|
|
9
9
|
QPQCoreConfigSettingType["secret"] = "@quidproquo-core/config/secret";
|
|
10
|
+
QPQCoreConfigSettingType["global"] = "@quidproquo-core/config/global";
|
|
10
11
|
QPQCoreConfigSettingType["parameter"] = "@quidproquo-core/config/parameter";
|
|
11
12
|
QPQCoreConfigSettingType["actionProcessors"] = "@quidproquo-core/config/actionProcessors";
|
|
12
13
|
QPQCoreConfigSettingType["buildPath"] = "@quidproquo-core/config/buildPath";
|
|
@@ -16,4 +17,5 @@ var QPQCoreConfigSettingType;
|
|
|
16
17
|
QPQCoreConfigSettingType["keyValueStore"] = "@quidproquo-core/config/KeyValueStore";
|
|
17
18
|
QPQCoreConfigSettingType["configValue"] = "@quidproquo-core/config/ConfigValue";
|
|
18
19
|
QPQCoreConfigSettingType["environmentSettings"] = "@quidproquo-core/config/EnvironmentSettings";
|
|
20
|
+
QPQCoreConfigSettingType["deployEvent"] = "@quidproquo-core/config/DeployEvent";
|
|
19
21
|
})(QPQCoreConfigSettingType = exports.QPQCoreConfigSettingType || (exports.QPQCoreConfigSettingType = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { QPQConfigSetting } from '../QPQConfig';
|
|
2
|
+
import { QpqSourceEntry } from './queue';
|
|
3
|
+
export interface DeployEventsQPQConfigSetting extends QPQConfigSetting {
|
|
4
|
+
name: string;
|
|
5
|
+
buildPath: string;
|
|
6
|
+
src: QpqSourceEntry;
|
|
7
|
+
}
|
|
8
|
+
export declare const defineDeployEvent: (buildPath: string, name: string, src: QpqSourceEntry) => DeployEventsQPQConfigSetting;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defineDeployEvent = void 0;
|
|
4
|
+
const QPQConfig_1 = require("../QPQConfig");
|
|
5
|
+
const defineDeployEvent = (buildPath, name, src) => ({
|
|
6
|
+
configSettingType: QPQConfig_1.QPQCoreConfigSettingType.deployEvent,
|
|
7
|
+
uniqueKey: name,
|
|
8
|
+
buildPath,
|
|
9
|
+
src,
|
|
10
|
+
name
|
|
11
|
+
});
|
|
12
|
+
exports.defineDeployEvent = defineDeployEvent;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defineGlobal = void 0;
|
|
4
|
+
const QPQConfig_1 = require("../QPQConfig");
|
|
5
|
+
const defineGlobal = (key, value) => ({
|
|
6
|
+
configSettingType: QPQConfig_1.QPQCoreConfigSettingType.global,
|
|
7
|
+
uniqueKey: key,
|
|
8
|
+
key,
|
|
9
|
+
value,
|
|
10
|
+
});
|
|
11
|
+
exports.defineGlobal = defineGlobal;
|
|
@@ -6,6 +6,8 @@ export * from './configValue';
|
|
|
6
6
|
export * from './environmentSettings';
|
|
7
7
|
export * from './eventBus';
|
|
8
8
|
export * from './keyValueStore';
|
|
9
|
+
export * from './deployEvent';
|
|
10
|
+
export * from './global';
|
|
9
11
|
export * from './parameter';
|
|
10
12
|
export * from './queue';
|
|
11
13
|
export * from './schedule';
|
|
@@ -22,6 +22,8 @@ __exportStar(require("./configValue"), exports);
|
|
|
22
22
|
__exportStar(require("./environmentSettings"), exports);
|
|
23
23
|
__exportStar(require("./eventBus"), exports);
|
|
24
24
|
__exportStar(require("./keyValueStore"), exports);
|
|
25
|
+
__exportStar(require("./deployEvent"), exports);
|
|
26
|
+
__exportStar(require("./global"), exports);
|
|
25
27
|
__exportStar(require("./parameter"), exports);
|
|
26
28
|
__exportStar(require("./queue"), exports);
|
|
27
29
|
__exportStar(require("./schedule"), exports);
|
|
@@ -2,6 +2,5 @@ import { QPQConfigSetting } from '../QPQConfig';
|
|
|
2
2
|
export interface ParameterQPQConfigSetting extends QPQConfigSetting {
|
|
3
3
|
key: string;
|
|
4
4
|
value: string;
|
|
5
|
-
owned: boolean;
|
|
6
5
|
}
|
|
7
6
|
export declare const defineParameter: (key: string, value?: string) => ParameterQPQConfigSetting;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QPQConfig, QPQConfigSetting } from './config/QPQConfig';
|
|
2
|
-
import { ApplicationModuleQPQConfigSetting, StorageDriveQPQConfigSetting, EventBusQPQConfigSetting, ScheduleQPQConfigSetting, SecretQPQConfigSetting, ParameterQPQConfigSetting, QueueQPQConfigSetting, QpqQueueProcessors, UserDirectoryQPQConfigSetting, KeyValueStoreQPQConfigSetting } from './config/settings';
|
|
2
|
+
import { ApplicationModuleQPQConfigSetting, StorageDriveQPQConfigSetting, EventBusQPQConfigSetting, ScheduleQPQConfigSetting, SecretQPQConfigSetting, ParameterQPQConfigSetting, QueueQPQConfigSetting, QpqQueueProcessors, UserDirectoryQPQConfigSetting, KeyValueStoreQPQConfigSetting, DeployEventsQPQConfigSetting } from './config/settings';
|
|
3
3
|
import { EmailTemplates } from './config/settings/emailTemplates/types';
|
|
4
4
|
import { CrossServiceResourceName, ResourceName } from './types';
|
|
5
5
|
/**
|
|
@@ -49,6 +49,7 @@ export declare const getStorageDriveNames: (configs: QPQConfig) => string[];
|
|
|
49
49
|
export declare const getAllEventBusConfigs: (qpqConfig: QPQConfig) => EventBusQPQConfigSetting[];
|
|
50
50
|
export declare const getOwnedItems: <T extends QPQConfigSetting>(settings: T[], qpqConfig: QPQConfig) => T[];
|
|
51
51
|
export declare const getAllKeyValueStores: (qpqConfig: QPQConfig) => KeyValueStoreQPQConfigSetting[];
|
|
52
|
+
export declare const getDeployEventConfigs: (qpqConfig: QPQConfig) => DeployEventsQPQConfigSetting[];
|
|
52
53
|
export declare const getOwnedKeyValueStores: (qpqConfig: QPQConfig) => KeyValueStoreQPQConfigSetting[];
|
|
53
54
|
export declare const resolveCrossServiceResourceName: (resourceName: ResourceName) => CrossServiceResourceName;
|
|
54
55
|
export declare const getKeyValueStoreByName: (qpqConfig: QPQConfig, kvsName: ResourceName) => KeyValueStoreQPQConfigSetting | undefined;
|
|
@@ -59,11 +60,13 @@ export declare const getQueueSrcEntries: (configs: QPQConfig) => string[];
|
|
|
59
60
|
export declare const getUserDirectorySrcEntries: (qpqConfig: QPQConfig) => string[];
|
|
60
61
|
export declare const getAllSrcEntries: (qpqConfig: QPQConfig) => string[];
|
|
61
62
|
export declare const getOwnedSecrets: (configs: QPQConfig) => SecretQPQConfigSetting[];
|
|
63
|
+
export declare const getGlobalConfigValue: <T>(qpqConfig: QPQConfig, name: string) => T;
|
|
62
64
|
export declare const getUserDirectories: (configs: QPQConfig) => UserDirectoryQPQConfigSetting[];
|
|
63
|
-
export declare const
|
|
65
|
+
export declare const getParameterConfigs: (qpqConfig: QPQConfig) => ParameterQPQConfigSetting[];
|
|
64
66
|
export declare const getSharedSecrets: (configs: QPQConfig) => SecretQPQConfigSetting[];
|
|
65
67
|
export declare const getUniqueKeyForSetting: (setting: QPQConfigSetting) => string;
|
|
66
68
|
export declare const getScheduleEntryFullPath: (qpqConfig: QPQConfig, scheduleConfig: ScheduleQPQConfigSetting) => string;
|
|
69
|
+
export declare const getDeployEventFullPath: (qpqConfig: QPQConfig, deployEventConfig: DeployEventsQPQConfigSetting) => string;
|
|
67
70
|
export declare const getStorageDriveUploadFullPath: (qpqConfig: QPQConfig, storageDriveConfig: StorageDriveQPQConfigSetting) => string;
|
|
68
71
|
export declare const getQueueEntryFullPath: (qpqConfig: QPQConfig, queueConfig: QueueQPQConfigSetting) => string;
|
|
69
72
|
export declare const getUserDirectoryEntryFullPath: (qpqConfig: QPQConfig, userDirectoryConfig: UserDirectoryQPQConfigSetting) => string;
|
|
@@ -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.getQueueQueueProcessors = exports.getUserDirectoryEntryFullPath = exports.getQueueEntryFullPath = exports.getStorageDriveUploadFullPath = exports.getScheduleEntryFullPath = exports.getUniqueKeyForSetting = exports.getSharedSecrets = exports.
|
|
26
|
+
exports.getQueueQueueProcessors = exports.getUserDirectoryEntryFullPath = exports.getQueueEntryFullPath = exports.getStorageDriveUploadFullPath = exports.getDeployEventFullPath = exports.getScheduleEntryFullPath = exports.getUniqueKeyForSetting = exports.getSharedSecrets = exports.getParameterConfigs = exports.getUserDirectories = exports.getGlobalConfigValue = exports.getOwnedSecrets = exports.getAllSrcEntries = exports.getUserDirectorySrcEntries = exports.getQueueSrcEntries = exports.getScheduleEvents = exports.getUserDirectoryEmailTemplates = exports.getActionProcessorSources = exports.getKeyValueStoreByName = exports.resolveCrossServiceResourceName = exports.getOwnedKeyValueStores = exports.getDeployEventConfigs = exports.getAllKeyValueStores = exports.getOwnedItems = exports.getAllEventBusConfigs = exports.getStorageDriveNames = exports.getQueues = exports.getStorageDrives = exports.getApplicationModuleDeployRegion = exports.getApplicationModuleEnvironment = exports.getConfigRoot = exports.getApplicationModuleFeature = exports.getApplicationModuleName = exports.getApplicationName = exports.getApplicationModuleSetting = exports.getConfigSetting = exports.getConfigSettings = exports.flattenQpqConfig = void 0;
|
|
27
27
|
const path = __importStar(require("path"));
|
|
28
28
|
const QPQConfig_1 = require("./config/QPQConfig");
|
|
29
29
|
/**
|
|
@@ -160,6 +160,11 @@ const getAllKeyValueStores = (qpqConfig) => {
|
|
|
160
160
|
return keyValueStores;
|
|
161
161
|
};
|
|
162
162
|
exports.getAllKeyValueStores = getAllKeyValueStores;
|
|
163
|
+
const getDeployEventConfigs = (qpqConfig) => {
|
|
164
|
+
const deployEvents = (0, exports.getConfigSettings)(qpqConfig, QPQConfig_1.QPQCoreConfigSettingType.deployEvent);
|
|
165
|
+
return deployEvents;
|
|
166
|
+
};
|
|
167
|
+
exports.getDeployEventConfigs = getDeployEventConfigs;
|
|
163
168
|
const getOwnedKeyValueStores = (qpqConfig) => {
|
|
164
169
|
return (0, exports.getOwnedItems)((0, exports.getAllKeyValueStores)(qpqConfig), qpqConfig);
|
|
165
170
|
};
|
|
@@ -212,6 +217,7 @@ const getAllSrcEntries = (qpqConfig) => {
|
|
|
212
217
|
...(0, exports.getScheduleEvents)(qpqConfig).map((r) => r.src),
|
|
213
218
|
...(0, exports.getQueueSrcEntries)(qpqConfig),
|
|
214
219
|
...(0, exports.getUserDirectorySrcEntries)(qpqConfig),
|
|
220
|
+
...(0, exports.getDeployEventConfigs)(qpqConfig).map((r) => r.src.src),
|
|
215
221
|
];
|
|
216
222
|
};
|
|
217
223
|
exports.getAllSrcEntries = getAllSrcEntries;
|
|
@@ -220,16 +226,24 @@ const getOwnedSecrets = (configs) => {
|
|
|
220
226
|
return secrets.filter((s) => s.owned);
|
|
221
227
|
};
|
|
222
228
|
exports.getOwnedSecrets = getOwnedSecrets;
|
|
229
|
+
const getGlobalConfigValue = (qpqConfig, name) => {
|
|
230
|
+
const global = (0, exports.getConfigSettings)(qpqConfig, QPQConfig_1.QPQCoreConfigSettingType.global).find(g => g.key === name);
|
|
231
|
+
if (!global) {
|
|
232
|
+
throw new Error(`Global config ${name} not found`);
|
|
233
|
+
}
|
|
234
|
+
return global.value;
|
|
235
|
+
};
|
|
236
|
+
exports.getGlobalConfigValue = getGlobalConfigValue;
|
|
223
237
|
const getUserDirectories = (configs) => {
|
|
224
238
|
const userDirectories = (0, exports.getConfigSettings)(configs, QPQConfig_1.QPQCoreConfigSettingType.userDirectory);
|
|
225
239
|
return userDirectories;
|
|
226
240
|
};
|
|
227
241
|
exports.getUserDirectories = getUserDirectories;
|
|
228
|
-
const
|
|
229
|
-
const
|
|
230
|
-
return
|
|
242
|
+
const getParameterConfigs = (qpqConfig) => {
|
|
243
|
+
const parameters = (0, exports.getConfigSettings)(qpqConfig, QPQConfig_1.QPQCoreConfigSettingType.parameter);
|
|
244
|
+
return parameters;
|
|
231
245
|
};
|
|
232
|
-
exports.
|
|
246
|
+
exports.getParameterConfigs = getParameterConfigs;
|
|
233
247
|
const getSharedSecrets = (configs) => {
|
|
234
248
|
const secrets = (0, exports.getConfigSettings)(configs, QPQConfig_1.QPQCoreConfigSettingType.secret);
|
|
235
249
|
return secrets.filter((s) => !s.owned);
|
|
@@ -245,6 +259,10 @@ const getScheduleEntryFullPath = (qpqConfig, scheduleConfig) => {
|
|
|
245
259
|
return path.join((0, exports.getConfigRoot)(qpqConfig), scheduleConfig.buildPath);
|
|
246
260
|
};
|
|
247
261
|
exports.getScheduleEntryFullPath = getScheduleEntryFullPath;
|
|
262
|
+
const getDeployEventFullPath = (qpqConfig, deployEventConfig) => {
|
|
263
|
+
return path.join((0, exports.getConfigRoot)(qpqConfig), deployEventConfig.buildPath);
|
|
264
|
+
};
|
|
265
|
+
exports.getDeployEventFullPath = getDeployEventFullPath;
|
|
248
266
|
const getStorageDriveUploadFullPath = (qpqConfig, storageDriveConfig) => {
|
|
249
267
|
return path.join((0, exports.getConfigRoot)(qpqConfig), storageDriveConfig.copyPath || '');
|
|
250
268
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum DeployEventType {
|
|
2
|
+
Unknown = "Unknown",
|
|
3
|
+
Api = "Api",
|
|
4
|
+
Web = "Web"
|
|
5
|
+
}
|
|
6
|
+
export declare enum DeployEventStatusType {
|
|
7
|
+
Unknown = "Unknown",
|
|
8
|
+
Update = "Update",
|
|
9
|
+
Create = "Create",
|
|
10
|
+
Delete = "Delete"
|
|
11
|
+
}
|
|
12
|
+
export type DeployEvent = {
|
|
13
|
+
deployEventType: DeployEventType;
|
|
14
|
+
deployEventStatusType: DeployEventStatusType;
|
|
15
|
+
};
|
|
16
|
+
export type DeployEventResponse = void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeployEventStatusType = exports.DeployEventType = void 0;
|
|
4
|
+
var DeployEventType;
|
|
5
|
+
(function (DeployEventType) {
|
|
6
|
+
DeployEventType["Unknown"] = "Unknown";
|
|
7
|
+
DeployEventType["Api"] = "Api";
|
|
8
|
+
DeployEventType["Web"] = "Web";
|
|
9
|
+
})(DeployEventType = exports.DeployEventType || (exports.DeployEventType = {}));
|
|
10
|
+
var DeployEventStatusType;
|
|
11
|
+
(function (DeployEventStatusType) {
|
|
12
|
+
DeployEventStatusType["Unknown"] = "Unknown";
|
|
13
|
+
DeployEventStatusType["Update"] = "Update";
|
|
14
|
+
DeployEventStatusType["Create"] = "Create";
|
|
15
|
+
DeployEventStatusType["Delete"] = "Delete";
|
|
16
|
+
})(DeployEventStatusType = exports.DeployEventStatusType || (exports.DeployEventStatusType = {}));
|
|
@@ -48,7 +48,8 @@ export declare enum QpqRuntimeType {
|
|
|
48
48
|
EVENT_SEO_OR = "EVENT_SEO_OR",
|
|
49
49
|
SERVICE_FUNCTION_EXE = "SERVICE_FUNCTION_EXE",
|
|
50
50
|
SEND_EMAIL_EVENT = "SEND_EMAIL_EVENT",
|
|
51
|
-
WEBSOCKET_EVENT = "WEBSOCKET_EVENT"
|
|
51
|
+
WEBSOCKET_EVENT = "WEBSOCKET_EVENT",
|
|
52
|
+
DEPLOY_EVENT = "DEPLOY_EVENT"
|
|
52
53
|
}
|
|
53
54
|
export interface StoryResult<TArgs extends Array<any>, TResult = any> {
|
|
54
55
|
input: TArgs;
|
|
@@ -11,4 +11,5 @@ var QpqRuntimeType;
|
|
|
11
11
|
QpqRuntimeType["SERVICE_FUNCTION_EXE"] = "SERVICE_FUNCTION_EXE";
|
|
12
12
|
QpqRuntimeType["SEND_EMAIL_EVENT"] = "SEND_EMAIL_EVENT";
|
|
13
13
|
QpqRuntimeType["WEBSOCKET_EVENT"] = "WEBSOCKET_EVENT";
|
|
14
|
+
QpqRuntimeType["DEPLOY_EVENT"] = "DEPLOY_EVENT";
|
|
14
15
|
})(QpqRuntimeType = exports.QpqRuntimeType || (exports.QpqRuntimeType = {}));
|
|
@@ -25,3 +25,4 @@ __exportStar(require("./CrossServiceResourceName"), exports);
|
|
|
25
25
|
__exportStar(require("./CrossModuleOwner"), exports);
|
|
26
26
|
__exportStar(require("./QpqPagedData"), exports);
|
|
27
27
|
__exportStar(require("./QpqContextIdentifier"), exports);
|
|
28
|
+
__exportStar(require("./DeployEvent"), exports);
|