From 9ba4e335b776fbb53cd17caeaff898de02042e1f Mon Sep 17 00:00:00 2001 From: HemanthDogiparthi12 Date: Fri, 15 Nov 2024 10:53:05 +0000 Subject: [PATCH 1/5] Update Open Api Specs --- .../codegen/languages/JavascriptFlowtypedClientCodegen.java | 3 +++ .../codegen/languages/PureCloudJavaScriptClientCodegen.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptFlowtypedClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptFlowtypedClientCodegen.java index da4193b01734..e48df8ed5ea6 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptFlowtypedClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptFlowtypedClientCodegen.java @@ -115,6 +115,9 @@ public void processOpts() { supportingFiles.add(new SupportingFile("index.mustache", "src", "index.js")); supportingFiles.add(new SupportingFile("api.mustache", "src", "api.js")); supportingFiles.add(new SupportingFile("configuration.mustache", "src", "configuration.js")); + supportingFiles.add(new SupportingFile("DefaultHttpClient.mustache", "src", "DefaultHttpClient.js")); + supportingFiles.add(new SupportingFile("HttpClient.mustache", "src", "HttpClient.js")); + supportingFiles.add(new SupportingFile("gitignore", "", ".gitignore")); addNpmPackageGeneration(); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PureCloudJavaScriptClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PureCloudJavaScriptClientCodegen.java index 5e3e5ee5c8cf..880e4839e022 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PureCloudJavaScriptClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PureCloudJavaScriptClientCodegen.java @@ -282,6 +282,8 @@ public void preprocessOpenAPI(OpenAPI openAPI) { supportingFiles.add(new SupportingFile("index.mustache", createPath(sourceFolder, invokerPackage), "index.js")); supportingFiles.add(new SupportingFile("ApiClient.mustache", createPath(sourceFolder, invokerPackage), "ApiClient.js")); supportingFiles.add(new SupportingFile("configuration.mustache", createPath(sourceFolder, invokerPackage), "configuration.js")); + supportingFiles.add(new SupportingFile("DefaultHttpClient.mustache", createPath(sourceFolder, invokerPackage), "DefaultHttpClient.js")); + supportingFiles.add(new SupportingFile("abstractHttpClient.mustache", createPath(sourceFolder, invokerPackage), "abstractHttpClient.js")); supportingFiles.add(new SupportingFile("logger.mustache", createPath(sourceFolder, invokerPackage), "logger.js")); supportingFiles.add(new SupportingFile("README.mustache", "", "README.md")); } From b3b543eeecdd394706c6b2ca8f7120b766c1d53c Mon Sep 17 00:00:00 2001 From: HemanthDogiparthi12 Date: Mon, 25 Nov 2024 17:36:48 +0000 Subject: [PATCH 2/5] Update template --- .../codegen/languages/PureCloudJavaScriptClientCodegen.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PureCloudJavaScriptClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PureCloudJavaScriptClientCodegen.java index 880e4839e022..5e3e5ee5c8cf 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PureCloudJavaScriptClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PureCloudJavaScriptClientCodegen.java @@ -282,8 +282,6 @@ public void preprocessOpenAPI(OpenAPI openAPI) { supportingFiles.add(new SupportingFile("index.mustache", createPath(sourceFolder, invokerPackage), "index.js")); supportingFiles.add(new SupportingFile("ApiClient.mustache", createPath(sourceFolder, invokerPackage), "ApiClient.js")); supportingFiles.add(new SupportingFile("configuration.mustache", createPath(sourceFolder, invokerPackage), "configuration.js")); - supportingFiles.add(new SupportingFile("DefaultHttpClient.mustache", createPath(sourceFolder, invokerPackage), "DefaultHttpClient.js")); - supportingFiles.add(new SupportingFile("abstractHttpClient.mustache", createPath(sourceFolder, invokerPackage), "abstractHttpClient.js")); supportingFiles.add(new SupportingFile("logger.mustache", createPath(sourceFolder, invokerPackage), "logger.js")); supportingFiles.add(new SupportingFile("README.mustache", "", "README.md")); } From 084c2bd8eb6beea6df91ec158eb7039d026292d5 Mon Sep 17 00:00:00 2001 From: HemanthDogiparthi12 Date: Tue, 26 Nov 2024 13:49:45 +0000 Subject: [PATCH 3/5] Update Templates for client Injection --- .../codegen/languages/PureCloudJavaScriptClientCodegen.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PureCloudJavaScriptClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PureCloudJavaScriptClientCodegen.java index 5e3e5ee5c8cf..d7bf3c69de97 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PureCloudJavaScriptClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PureCloudJavaScriptClientCodegen.java @@ -281,6 +281,8 @@ public void preprocessOpenAPI(OpenAPI openAPI) { supportingFiles.add(new SupportingFile("package.mustache", "", "package.json")); supportingFiles.add(new SupportingFile("index.mustache", createPath(sourceFolder, invokerPackage), "index.js")); supportingFiles.add(new SupportingFile("ApiClient.mustache", createPath(sourceFolder, invokerPackage), "ApiClient.js")); + supportingFiles.add(new SupportingFile("DefaultHttpClient.mustache", "src", "DefaultHttpClient.js")); + supportingFiles.add(new SupportingFile("HttpClient.mustache", "src", "HttpClient.js")); supportingFiles.add(new SupportingFile("configuration.mustache", createPath(sourceFolder, invokerPackage), "configuration.js")); supportingFiles.add(new SupportingFile("logger.mustache", createPath(sourceFolder, invokerPackage), "logger.js")); supportingFiles.add(new SupportingFile("README.mustache", "", "README.md")); From b739cf415628029a563ad95ddddf9e4d3c7e0211 Mon Sep 17 00:00:00 2001 From: HemanthDogiparthi12 <127493303+HemanthDogiparthi12@users.noreply.github.com> Date: Wed, 4 Dec 2024 11:07:49 +0000 Subject: [PATCH 4/5] Update JavascriptFlowtypedClientCodegen.java --- .../codegen/languages/JavascriptFlowtypedClientCodegen.java | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptFlowtypedClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptFlowtypedClientCodegen.java index e48df8ed5ea6..da51640c991f 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptFlowtypedClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavascriptFlowtypedClientCodegen.java @@ -116,6 +116,7 @@ public void processOpts() { supportingFiles.add(new SupportingFile("api.mustache", "src", "api.js")); supportingFiles.add(new SupportingFile("configuration.mustache", "src", "configuration.js")); supportingFiles.add(new SupportingFile("DefaultHttpClient.mustache", "src", "DefaultHttpClient.js")); + supportingFiles.add(new SupportingFile("HttpRequestOptions.mustache", createPath(sourceFolder, invokerPackage), "HttpRequestOptions.js")); supportingFiles.add(new SupportingFile("HttpClient.mustache", "src", "HttpClient.js")); supportingFiles.add(new SupportingFile("gitignore", "", ".gitignore")); From fb2c7e0b067ce1dc535b17ed7ee20e838aebb9e6 Mon Sep 17 00:00:00 2001 From: HemanthDogiparthi12 <127493303+HemanthDogiparthi12@users.noreply.github.com> Date: Wed, 4 Dec 2024 11:09:26 +0000 Subject: [PATCH 5/5] Update PureCloudJavaScriptClientCodegen.java --- .../languages/PureCloudJavaScriptClientCodegen.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PureCloudJavaScriptClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PureCloudJavaScriptClientCodegen.java index d7bf3c69de97..614b13ad762d 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PureCloudJavaScriptClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PureCloudJavaScriptClientCodegen.java @@ -281,8 +281,9 @@ public void preprocessOpenAPI(OpenAPI openAPI) { supportingFiles.add(new SupportingFile("package.mustache", "", "package.json")); supportingFiles.add(new SupportingFile("index.mustache", createPath(sourceFolder, invokerPackage), "index.js")); supportingFiles.add(new SupportingFile("ApiClient.mustache", createPath(sourceFolder, invokerPackage), "ApiClient.js")); - supportingFiles.add(new SupportingFile("DefaultHttpClient.mustache", "src", "DefaultHttpClient.js")); - supportingFiles.add(new SupportingFile("HttpClient.mustache", "src", "HttpClient.js")); + supportingFiles.add(new SupportingFile("DefaultHttpClient.mustache", createPath(sourceFolder, invokerPackage), "DefaultHttpClient.js")); + supportingFiles.add(new SupportingFile("abstractHttpClient.mustache", createPath(sourceFolder, invokerPackage), "abstractHttpClient.js")); + supportingFiles.add(new SupportingFile("HttpRequestOptions.mustache", createPath(sourceFolder, invokerPackage), "HttpRequestOptions.js")); supportingFiles.add(new SupportingFile("configuration.mustache", createPath(sourceFolder, invokerPackage), "configuration.js")); supportingFiles.add(new SupportingFile("logger.mustache", createPath(sourceFolder, invokerPackage), "logger.js")); supportingFiles.add(new SupportingFile("README.mustache", "", "README.md")); @@ -898,4 +899,4 @@ public static String getTypeScriptResponseType(String dataType) { return typeScriptType; } -} \ No newline at end of file +}