quidproquo-webserver 0.0.69 → 0.0.71
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,6 @@
|
|
|
1
1
|
import { QPQConfig } from 'quidproquo-core';
|
|
2
2
|
import { RouteQPQWebServerConfigSetting } from './config/settings/route';
|
|
3
|
+
import { DnsQPQWebServerConfigSetting } from './config/settings/dns';
|
|
3
4
|
import { SeoQPQWebServerConfigSetting } from './config/settings/seo';
|
|
4
5
|
import { SubdomainRedirectQPQWebServerConfigSetting } from './config/settings/subdomainRedirect';
|
|
5
6
|
import { OpenApiQPQWebServerConfigSetting } from './config/settings/openApi';
|
|
@@ -16,6 +17,9 @@ export declare const getWebEntryFullPath: (qpqConfig: QPQConfig, webEntryQPQWebS
|
|
|
16
17
|
export declare const getWebEntrySeoFullPath: (qpqConfig: QPQConfig, webEntryQPQWebServerConfigSetting: WebEntryQPQWebServerConfigSetting) => string;
|
|
17
18
|
export declare const getApiEntryFullPath: (qpqConfig: QPQConfig, apiConfig: ApiQPQWebServerConfigSetting) => string;
|
|
18
19
|
export declare const getSubdomainRedirects: (configs: QPQConfig) => SubdomainRedirectQPQWebServerConfigSetting[];
|
|
20
|
+
export declare const getApiConfigs: (configs: QPQConfig) => ApiQPQWebServerConfigSetting[];
|
|
21
|
+
export declare const getDnsConfigs: (configs: QPQConfig) => DnsQPQWebServerConfigSetting[];
|
|
22
|
+
export declare const getWebEntryConfigs: (configs: QPQConfig) => WebEntryQPQWebServerConfigSetting[];
|
|
19
23
|
export declare const getEnvironmentDomainName: (configs: QPQConfig) => string;
|
|
20
24
|
export declare const getBaseDomainName: (qpqConfig: QPQConfig) => string;
|
|
21
25
|
export declare const getServiceDomainName: (qpqConfig: QPQConfig) => string;
|
package/lib/qpqWebServerUtils.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.toJsonEventResponse = exports.fromJsonEventRequest = exports.getCorsHeaders = exports.getAllowedOrigins = exports.getHeaderValue = exports.getServiceDomainName = exports.getBaseDomainName = exports.getEnvironmentDomainName = exports.getSubdomainRedirects = exports.getApiEntryFullPath = exports.getWebEntrySeoFullPath = exports.getWebEntryFullPath = exports.getWebEntry = exports.getDomainName = exports.getAllSrcEntries = exports.getAllOpenApiSpecs = exports.getAllSeo = exports.getAllRoutes = void 0;
|
|
26
|
+
exports.toJsonEventResponse = exports.fromJsonEventRequest = exports.getCorsHeaders = exports.getAllowedOrigins = exports.getHeaderValue = 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.getAllRoutes = void 0;
|
|
27
27
|
const path = __importStar(require("path"));
|
|
28
28
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
29
29
|
const QPQConfig_1 = require("./config/QPQConfig");
|
|
@@ -89,6 +89,18 @@ const getSubdomainRedirects = (configs) => {
|
|
|
89
89
|
return subdomainRedirects;
|
|
90
90
|
};
|
|
91
91
|
exports.getSubdomainRedirects = getSubdomainRedirects;
|
|
92
|
+
const getApiConfigs = (configs) => {
|
|
93
|
+
return quidproquo_core_1.qpqCoreUtils.getConfigSettings(configs, QPQConfig_1.QPQWebServerConfigSettingType.Api);
|
|
94
|
+
};
|
|
95
|
+
exports.getApiConfigs = getApiConfigs;
|
|
96
|
+
const getDnsConfigs = (configs) => {
|
|
97
|
+
return quidproquo_core_1.qpqCoreUtils.getConfigSettings(configs, QPQConfig_1.QPQWebServerConfigSettingType.Dns);
|
|
98
|
+
};
|
|
99
|
+
exports.getDnsConfigs = getDnsConfigs;
|
|
100
|
+
const getWebEntryConfigs = (configs) => {
|
|
101
|
+
return quidproquo_core_1.qpqCoreUtils.getConfigSettings(configs, QPQConfig_1.QPQWebServerConfigSettingType.WebEntry);
|
|
102
|
+
};
|
|
103
|
+
exports.getWebEntryConfigs = getWebEntryConfigs;
|
|
92
104
|
const getEnvironmentDomainName = (configs) => {
|
|
93
105
|
const environment = (0, qpqCoreUtils_1.getApplicationModuleEnvironment)(configs);
|
|
94
106
|
const apexDomainName = (0, exports.getDomainName)(configs);
|
package/lib/types/index.d.ts
CHANGED
package/lib/types/index.js
CHANGED
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./HTTPEvent"), exports);
|
|
18
|
+
__exportStar(require("./QueueEvent"), exports);
|
|
18
19
|
__exportStar(require("./SEOEvent"), exports);
|
|
19
20
|
__exportStar(require("./constants"), exports);
|