vls-openapi-generator 1.11.0 → 1.13.0
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/dist/generate-openapi.js
CHANGED
|
@@ -80,6 +80,9 @@ const generateOpenAPI = async () => {
|
|
|
80
80
|
continue;
|
|
81
81
|
}
|
|
82
82
|
const { bodySchema, queryParametersSchema, eventResponseParametersSchema, eventResponseModulesSchema, OPENAPI_CONFIG: openAPIConfig } = (await Promise.resolve(`${path.join(SCHEMAS_DIR, fileName + '.js')}`).then(s => __importStar(require(s))).catch(() => ({})));
|
|
83
|
+
if (!openAPIConfig) {
|
|
84
|
+
throw new Error(`${fileName} handler schema not found.`);
|
|
85
|
+
}
|
|
83
86
|
if (openAPIConfig.isDocumentationNeeded === false) {
|
|
84
87
|
continue;
|
|
85
88
|
}
|
|
@@ -26,13 +26,13 @@ export declare class PostmanService {
|
|
|
26
26
|
};
|
|
27
27
|
}>;
|
|
28
28
|
createCollection: (partnerName: string) => Promise<string>;
|
|
29
|
-
deleteFolder: (collectionID: string, folderID: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
30
|
-
createFolder: (collectionID: string, folderName: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
31
|
-
updateCollection: (collectionID: string, collection: object) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
|
+
deleteFolder: (collectionID: string, folderID: string) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
30
|
+
createFolder: (collectionID: string, folderName: string) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
31
|
+
updateCollection: (collectionID: string, collection: object) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
32
32
|
updateVariablesCollection: (collectionID: string, variables: {
|
|
33
33
|
key: string;
|
|
34
34
|
value: string;
|
|
35
|
-
}[]) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
35
|
+
}[]) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
36
36
|
getAllEnvironments: () => Promise<{
|
|
37
37
|
environments: {
|
|
38
38
|
id: string;
|
|
@@ -42,9 +42,9 @@ export declare class PostmanService {
|
|
|
42
42
|
createEnvironment: (name: string, values: {
|
|
43
43
|
key: string;
|
|
44
44
|
value: string;
|
|
45
|
-
}[]) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
45
|
+
}[]) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
46
46
|
updateEnvironment: (id: string, name: string, values: {
|
|
47
47
|
key: string;
|
|
48
48
|
value: string;
|
|
49
|
-
}[]) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
49
|
+
}[]) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
50
50
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vls-openapi-generator",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@anatine/zod-openapi": "^2.2.7",
|
|
19
19
|
"@aws-sdk/client-cloudformation": "^3.817.0",
|
|
20
|
-
"axios": "^1.
|
|
20
|
+
"axios": "^1.12.0",
|
|
21
21
|
"module-alias": "^2.2.3",
|
|
22
22
|
"openapi-to-postmanv2": "^4.25.0"
|
|
23
23
|
},
|
package/src/generate-openapi.ts
CHANGED
|
@@ -77,6 +77,10 @@ export const generateOpenAPI = async (): Promise<void> => {
|
|
|
77
77
|
OPENAPI_CONFIG: OpenAPIConfig;
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
+
if (!openAPIConfig) {
|
|
81
|
+
throw new Error(`${fileName} handler schema not found.`);
|
|
82
|
+
}
|
|
83
|
+
|
|
80
84
|
if (openAPIConfig.isDocumentationNeeded === false) {
|
|
81
85
|
continue;
|
|
82
86
|
}
|