Skip to content

Commit 6462c69

Browse files
committed
address PR comments
1 parent 5acb146 commit 6462c69

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

api-versions.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# ECOM v26.2
12
assignments-oas-v1=1.0.36
23
campaigns-oas-v1=1.0.38
34
catalogs-oas-v1=1.0.43

src/lib/config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* SPDX-License-Identifier: BSD-3-Clause
55
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
7+
import path from "path";
8+
79
export const TYPESCRIPT_DTO_EXT = ".types.ts";
810
export const PRIMITIVE_DATA_TYPE_MAP = {
911
"http://www.w3.org/2001/XMLSchema#string": "string",
@@ -14,3 +16,5 @@ export const PRIMITIVE_DATA_TYPE_MAP = {
1416
};
1517

1618
export const PRODUCTION_API_PATH = `${__dirname}/../../apis`;
19+
export const API_VERSIONS_FILE = path.join(__dirname, "../../api-versions.txt");
20+
export const ORG_ID = "893f605e-10e2-423a-bdb4-f952f56eb6d8";

src/lib/utils.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ import { execSync } from "child_process";
99
import path from "path";
1010
import fs from "fs-extra";
1111
import AdmZip from "adm-zip";
12-
13-
export const API_VERSIONS_FILE = path.join(__dirname, "../../api-versions.txt");
14-
export const ORG_ID = "893f605e-10e2-423a-bdb4-f952f56eb6d8";
12+
import { API_VERSIONS_FILE } from "./config";
1513

1614
/**
1715
* Wrapper around execSync to simplify stubbing in tests.

src/updateApis.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,14 @@ import fs from "fs-extra";
1010
import {
1111
downloadApisWithAnypointCli,
1212
readApiVersions,
13-
ORG_ID,
1413
} from "./lib/utils";
15-
import { PRODUCTION_API_PATH } from "./lib/config";
14+
import { PRODUCTION_API_PATH, ORG_ID } from "./lib/config";
1615
import dotenv from "dotenv";
1716
import { removeInternalOas } from "./removeInternalOas";
1817

1918
dotenv.config();
2019

2120
// Constants
22-
// const PRODUCTION_API_PATH = path.join(__dirname, '../apis');
2321
const OLD_APIS_PATH = path.join(__dirname, "../temp/oldApis");
2422

2523
/**

0 commit comments

Comments
 (0)