File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1+ # ECOM v26.2
12assignments-oas-v1=1.0.36
23campaigns-oas-v1=1.0.38
34catalogs-oas-v1=1.0.43
Original file line number Diff line number Diff line change 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+
79export const TYPESCRIPT_DTO_EXT = ".types.ts" ;
810export 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
1618export 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" ;
Original file line number Diff line number Diff line change @@ -9,9 +9,7 @@ import { execSync } from "child_process";
99import path from "path" ;
1010import fs from "fs-extra" ;
1111import 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.
Original file line number Diff line number Diff line change @@ -10,16 +10,14 @@ import fs from "fs-extra";
1010import {
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" ;
1615import dotenv from "dotenv" ;
1716import { removeInternalOas } from "./removeInternalOas" ;
1817
1918dotenv . config ( ) ;
2019
2120// Constants
22- // const PRODUCTION_API_PATH = path.join(__dirname, '../apis');
2321const OLD_APIS_PATH = path . join ( __dirname , "../temp/oldApis" ) ;
2422
2523/**
You can’t perform that action at this time.
0 commit comments