@izara_project/izara-core-library-service-schemas 1.0.88 → 1.0.89
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/package.json +1 -1
- package/src/Utils.js +5 -4
package/package.json
CHANGED
package/src/Utils.js
CHANGED
|
@@ -743,8 +743,8 @@ async function getApiLinksV2(objectTypes) {
|
|
|
743
743
|
|
|
744
744
|
do {
|
|
745
745
|
const apisRes = await client.send(new GetApisCommand({ NextToken: nextToken }));
|
|
746
|
-
|
|
747
|
-
for (const api of
|
|
746
|
+
let httpsApi = apisRes.Items.filter(api => api.ApiEndpoint && api.ApiEndpoint.startsWith("https:"))
|
|
747
|
+
for (const api of httpsApi) {
|
|
748
748
|
const { Name: apiName, ApiId: apiId } = api;
|
|
749
749
|
let routeResResult = []
|
|
750
750
|
let routeRestToken;
|
|
@@ -764,12 +764,12 @@ async function getApiLinksV2(objectTypes) {
|
|
|
764
764
|
if (routeKeyParts.length !== 2) continue; // Invalid format
|
|
765
765
|
|
|
766
766
|
const [method, path] = routeKeyParts;
|
|
767
|
-
const [_, object, action] = path.split("/")
|
|
767
|
+
const [_, serviceTag, object, action] = path.split("/")
|
|
768
768
|
for (const objectType of objectTypes) {
|
|
769
769
|
if (method === "POST" && path.endsWith("get")) {
|
|
770
770
|
if (object === consts.firstLetterLowerCase(objectType)) {
|
|
771
771
|
// console.log({ path, objectType: consts.firstLetterLowerCase(objectType) })
|
|
772
|
-
const fullUrl = `https://${apiId}.execute-api.${process.env.iz_region}.amazonaws.com
|
|
772
|
+
const fullUrl = `https://${apiId}.execute-api.${process.env.iz_region}.amazonaws.com${path}`;
|
|
773
773
|
urls.push({
|
|
774
774
|
Url: fullUrl,
|
|
775
775
|
});
|
|
@@ -792,6 +792,7 @@ async function getApiLinksV2(objectTypes) {
|
|
|
792
792
|
console.error("Error fetching API info:", err);
|
|
793
793
|
}
|
|
794
794
|
}
|
|
795
|
+
|
|
795
796
|
module.exports = {
|
|
796
797
|
createObjType,
|
|
797
798
|
getIdentifierTypeByPriority,
|