quidproquo-webserver 0.0.77 → 0.0.79
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/config/settings/subdomainRedirect.d.ts +4 -1
- package/lib/config/settings/subdomainRedirect.js +4 -1
- package/lib/config/settings/webEntry.d.ts +2 -0
- package/lib/config/settings/webEntry.js +1 -0
- package/lib/utils/qpqConfigAccessorsUtils.d.ts +1 -0
- package/lib/utils/qpqConfigAccessorsUtils.js +6 -1
- package/package.json +1 -1
|
@@ -2,6 +2,9 @@ import { QPQConfigSetting } from 'quidproquo-core';
|
|
|
2
2
|
export interface SubdomainRedirectQPQWebServerConfigSetting extends QPQConfigSetting {
|
|
3
3
|
subdomain: string;
|
|
4
4
|
redirectUrl: string;
|
|
5
|
+
apiBuildPath: string;
|
|
6
|
+
onRootDomain: boolean;
|
|
7
|
+
addEnvironment: boolean;
|
|
5
8
|
addFeatureEnvironment: boolean;
|
|
6
9
|
}
|
|
7
|
-
export declare const defineSubdomainRedirect: (subdomain: string, redirectUrl: string, addFeatureEnvironment?: boolean) => SubdomainRedirectQPQWebServerConfigSetting;
|
|
10
|
+
export declare const defineSubdomainRedirect: (subdomain: string, apiBuildPath: string, redirectUrl: string, addEnvironment?: boolean, addFeatureEnvironment?: boolean, onRootDomain?: boolean) => SubdomainRedirectQPQWebServerConfigSetting;
|
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defineSubdomainRedirect = void 0;
|
|
4
4
|
const QPQConfig_1 = require("../QPQConfig");
|
|
5
|
-
const defineSubdomainRedirect = (subdomain, redirectUrl, addFeatureEnvironment =
|
|
5
|
+
const defineSubdomainRedirect = (subdomain, apiBuildPath, redirectUrl, addEnvironment = true, addFeatureEnvironment = true, onRootDomain = true) => ({
|
|
6
6
|
configSettingType: QPQConfig_1.QPQWebServerConfigSettingType.SubdomainRedirect,
|
|
7
7
|
uniqueKey: subdomain,
|
|
8
8
|
subdomain,
|
|
9
9
|
redirectUrl,
|
|
10
|
+
apiBuildPath,
|
|
11
|
+
addEnvironment,
|
|
10
12
|
addFeatureEnvironment,
|
|
13
|
+
onRootDomain,
|
|
11
14
|
});
|
|
12
15
|
exports.defineSubdomainRedirect = defineSubdomainRedirect;
|
|
@@ -17,6 +17,7 @@ export interface QPQConfigAdvancedWebEntrySettings extends QPQConfigAdvancedSett
|
|
|
17
17
|
cache?: CacheOptions;
|
|
18
18
|
domain?: WebDomainOptions;
|
|
19
19
|
indexRoot?: string;
|
|
20
|
+
ignoreCache?: string[];
|
|
20
21
|
}
|
|
21
22
|
export interface WebEntryQPQWebServerConfigSetting extends QPQConfigSetting {
|
|
22
23
|
name: string;
|
|
@@ -26,5 +27,6 @@ export interface WebEntryQPQWebServerConfigSetting extends QPQConfigSetting {
|
|
|
26
27
|
cache: CacheOptions;
|
|
27
28
|
buildPath?: string;
|
|
28
29
|
seoBuildPath?: string;
|
|
30
|
+
ignoreCache: string[];
|
|
29
31
|
}
|
|
30
32
|
export declare const defineWebEntry: (name: string, options?: QPQConfigAdvancedWebEntrySettings) => WebEntryQPQWebServerConfigSetting;
|
|
@@ -20,5 +20,6 @@ const defineWebEntry = (name, options) => ({
|
|
|
20
20
|
},
|
|
21
21
|
buildPath: options === null || options === void 0 ? void 0 : options.buildPath,
|
|
22
22
|
seoBuildPath: options === null || options === void 0 ? void 0 : options.seoBuildPath,
|
|
23
|
+
ignoreCache: (options === null || options === void 0 ? void 0 : options.ignoreCache) || [],
|
|
23
24
|
});
|
|
24
25
|
exports.defineWebEntry = defineWebEntry;
|
|
@@ -12,6 +12,7 @@ export declare const getWebEntry: (configs: QPQConfig) => string;
|
|
|
12
12
|
export declare const getWebEntryFullPath: (qpqConfig: QPQConfig, webEntryQPQWebServerConfigSetting: WebEntryQPQWebServerConfigSetting) => string;
|
|
13
13
|
export declare const getWebEntrySeoFullPath: (qpqConfig: QPQConfig, webEntryQPQWebServerConfigSetting: WebEntryQPQWebServerConfigSetting) => string;
|
|
14
14
|
export declare const getApiEntryFullPath: (qpqConfig: QPQConfig, apiConfig: ApiQPQWebServerConfigSetting) => string;
|
|
15
|
+
export declare const getRedirectApiBuildFullPath: (qpqConfig: QPQConfig, redirectConfig: SubdomainRedirectQPQWebServerConfigSetting) => string;
|
|
15
16
|
export declare const getSubdomainRedirects: (configs: QPQConfig) => SubdomainRedirectQPQWebServerConfigSetting[];
|
|
16
17
|
export declare const getApiConfigs: (configs: QPQConfig) => ApiQPQWebServerConfigSetting[];
|
|
17
18
|
export declare const getDnsConfigs: (configs: QPQConfig) => DnsQPQWebServerConfigSetting[];
|
|
@@ -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.getDefaultRouteSettings = exports.getServiceDomainName = exports.getBaseDomainName = exports.getEnvironmentDomainName = exports.getWebEntryConfigs = exports.getDnsConfigs = exports.getApiConfigs = exports.getSubdomainRedirects = exports.getApiEntryFullPath = exports.getWebEntrySeoFullPath = exports.getWebEntryFullPath = exports.getWebEntry = exports.getDomainName = exports.getAllSrcEntries = exports.getAllOpenApiSpecs = exports.getAllSeo = exports.getAllApiKeyConfigs = exports.getAllRoutesForApi = exports.getAllRoutes = void 0;
|
|
26
|
+
exports.getDefaultRouteSettings = exports.getServiceDomainName = exports.getBaseDomainName = exports.getEnvironmentDomainName = exports.getWebEntryConfigs = exports.getDnsConfigs = exports.getApiConfigs = exports.getSubdomainRedirects = exports.getRedirectApiBuildFullPath = exports.getApiEntryFullPath = exports.getWebEntrySeoFullPath = exports.getWebEntryFullPath = exports.getWebEntry = exports.getDomainName = exports.getAllSrcEntries = exports.getAllOpenApiSpecs = exports.getAllSeo = exports.getAllApiKeyConfigs = exports.getAllRoutesForApi = exports.getAllRoutes = void 0;
|
|
27
27
|
const path = __importStar(require("path"));
|
|
28
28
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
29
29
|
const config_1 = require("../config");
|
|
@@ -93,6 +93,11 @@ const getApiEntryFullPath = (qpqConfig, apiConfig) => {
|
|
|
93
93
|
return path.join(quidproquo_core_1.qpqCoreUtils.getConfigRoot(qpqConfig), apiEntry);
|
|
94
94
|
};
|
|
95
95
|
exports.getApiEntryFullPath = getApiEntryFullPath;
|
|
96
|
+
const getRedirectApiBuildFullPath = (qpqConfig, redirectConfig) => {
|
|
97
|
+
const apiEntry = redirectConfig.apiBuildPath;
|
|
98
|
+
return path.join(quidproquo_core_1.qpqCoreUtils.getConfigRoot(qpqConfig), apiEntry);
|
|
99
|
+
};
|
|
100
|
+
exports.getRedirectApiBuildFullPath = getRedirectApiBuildFullPath;
|
|
96
101
|
const getSubdomainRedirects = (configs) => {
|
|
97
102
|
const subdomainRedirects = quidproquo_core_1.qpqCoreUtils.getConfigSettings(configs, config_1.QPQWebServerConfigSettingType.SubdomainRedirect);
|
|
98
103
|
return subdomainRedirects;
|