From e3bf45752cd21dbe64e3e3da6157d64986d81ac1 Mon Sep 17 00:00:00 2001 From: Juan Treminio Date: Thu, 18 Apr 2024 13:11:24 -0500 Subject: [PATCH] Release 1.4.1 --- VERSION | 2 +- api/apis.ts | 2 +- api/oAuthApi.ts | 2 +- bin/replace | 12 ++++++++++++ dist/api.js | 4 ++-- openapi-config.yaml | 2 +- package-lock.json | 4 ++-- package.json | 2 +- types/api/apis.d.ts | 2 +- 9 files changed, 22 insertions(+), 10 deletions(-) diff --git a/VERSION b/VERSION index 88c5fb8..347f583 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.4.0 +1.4.1 diff --git a/api/apis.ts b/api/apis.ts index 4b7810a..44892a2 100644 --- a/api/apis.ts +++ b/api/apis.ts @@ -39,7 +39,7 @@ export const queryParamsSerializer = (params) => { export { RequestFile } from "../model"; -export const USER_AGENT = "OpenAPI-Generator/1.4.0/node"; +export const USER_AGENT = "OpenAPI-Generator/1.4.1/node"; /** * Generates an object containing form data. diff --git a/api/oAuthApi.ts b/api/oAuthApi.ts index dc63cec..0b2ecde 100644 --- a/api/oAuthApi.ts +++ b/api/oAuthApi.ts @@ -50,7 +50,7 @@ import { USER_AGENT, } from "./"; -let defaultBasePath = "https://api.hellosign.com/v3"; +let defaultBasePath = "https://app.hellosign.com"; // =============================================== // This file is autogenerated - Please do not edit diff --git a/bin/replace b/bin/replace index 66e108a..b56f6c8 100755 --- a/bin/replace +++ b/bin/replace @@ -33,3 +33,15 @@ rep 'LegalVersionEnum_Terms1' \ rep 'TypeEnum_RequestSignature' \ 'UnclaimedDraftCreateEmbeddedRequest.TypeEnum.RequestSignature' printf "\n\n" + +printf "Fixing broken defaultBasePath for OAuth endpoints ...\n" +perl -pi -e 's#let defaultBasePath = "https://api.hellosign.com/v3";#let defaultBasePath = "https://app.hellosign.com";#g' \ + "${ROOT_DIR}/api/oAuthApi.ts" + +grep -ilr "https://api.hellosign.com/v3" "${ROOT_DIR}/api/oAuthApi.ts" +if [ $? -eq 0 ]; then + printf "Error: https://api.hellosign.com/v3 server URL not replaced in api/oAuthApi.ts\n" + exit 1 +fi + +printf "\n\n" diff --git a/dist/api.js b/dist/api.js index d14f598..6e253dd 100644 --- a/dist/api.js +++ b/dist/api.js @@ -25751,7 +25751,7 @@ var EmbeddedApi = class { }; // api/oAuthApi.ts -var defaultBasePath5 = "https://api.hellosign.com/v3"; +var defaultBasePath5 = "https://app.hellosign.com"; var OAuthApi = class { constructor(basePath) { this._basePath = defaultBasePath5; @@ -31657,7 +31657,7 @@ var HttpError = class extends Error { var queryParamsSerializer = (params) => { return import_qs.default.stringify(params, { arrayFormat: "brackets" }); }; -var USER_AGENT = "OpenAPI-Generator/1.4.0/node"; +var USER_AGENT = "OpenAPI-Generator/1.4.1/node"; var generateFormData = (obj, typemap) => { const data = {}; let localVarUseFormData = false; diff --git a/openapi-config.yaml b/openapi-config.yaml index bfd9ce7..c2f8d89 100644 --- a/openapi-config.yaml +++ b/openapi-config.yaml @@ -2,7 +2,7 @@ generatorName: typescript-node typeMappings: {} additionalProperties: npmName: "@dropbox/sign" - npmVersion: 1.4.0 + npmVersion: 1.4.1 supportsES6: true apiDocPath: ./docs/api modelDocPath: ./docs/model diff --git a/package-lock.json b/package-lock.json index 3083c8e..313a24a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dropbox/sign", - "version": "1.4.0", + "version": "1.4.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@dropbox/sign", - "version": "1.4.0", + "version": "1.4.1", "dependencies": { "axios": "^1.6.0", "bluebird": "^3.5.0", diff --git a/package.json b/package.json index 2e14e7b..462d3ad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dropbox/sign", - "version": "1.4.0", + "version": "1.4.1", "description": "Official Node client for Dropbox Sign", "repository": { "type": "git", diff --git a/types/api/apis.d.ts b/types/api/apis.d.ts index a76c81b..a3178e8 100644 --- a/types/api/apis.d.ts +++ b/types/api/apis.d.ts @@ -22,7 +22,7 @@ export interface returnTypeI { } export declare const queryParamsSerializer: (params: any) => any; export { RequestFile } from "../model"; -export declare const USER_AGENT = "OpenAPI-Generator/1.4.0/node"; +export declare const USER_AGENT = "OpenAPI-Generator/1.4.1/node"; export declare const generateFormData: (obj: any, typemap: AttributeTypeMap) => { localVarUseFormData: boolean; data: object;