Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.2.3 #13

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.2
1.2.3
15 changes: 15 additions & 0 deletions api/apiAppApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,21 @@ export class ApiAppApi {
const response = error.response;

let body;

let rangeCodeLeft = Number("4XX"[0] + "00");
let rangeCodeRight = Number("4XX"[0] + "99");
if (
response.status >= rangeCodeLeft &&
response.status <= rangeCodeRight
) {
body = ObjectSerializer.deserialize(
response.data,
"ErrorResponse"
);

reject(new HttpError(response, body, response.status));
return;
}
}
);
});
Expand Down
2 changes: 1 addition & 1 deletion api/apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const queryParamsSerializer = (params) => {

export { RequestFile } from "../model";

export const USER_AGENT = "OpenAPI-Generator/1.2.2/node";
export const USER_AGENT = "OpenAPI-Generator/1.2.3/node";

/**
* Generates an object containing form data.
Expand Down
30 changes: 30 additions & 0 deletions api/signatureRequestApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,21 @@ export class SignatureRequestApi {
const response = error.response;

let body;

let rangeCodeLeft = Number("4XX"[0] + "00");
let rangeCodeRight = Number("4XX"[0] + "99");
if (
response.status >= rangeCodeLeft &&
response.status <= rangeCodeRight
) {
body = ObjectSerializer.deserialize(
response.data,
"ErrorResponse"
);

reject(new HttpError(response, body, response.status));
return;
}
}
);
});
Expand Down Expand Up @@ -2049,6 +2064,21 @@ export class SignatureRequestApi {
const response = error.response;

let body;

let rangeCodeLeft = Number("4XX"[0] + "00");
let rangeCodeRight = Number("4XX"[0] + "99");
if (
response.status >= rangeCodeLeft &&
response.status <= rangeCodeRight
) {
body = ObjectSerializer.deserialize(
response.data,
"ErrorResponse"
);

reject(new HttpError(response, body, response.status));
return;
}
}
);
});
Expand Down
15 changes: 15 additions & 0 deletions api/teamApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,21 @@ export class TeamApi {
const response = error.response;

let body;

let rangeCodeLeft = Number("4XX"[0] + "00");
let rangeCodeRight = Number("4XX"[0] + "99");
if (
response.status >= rangeCodeLeft &&
response.status <= rangeCodeRight
) {
body = ObjectSerializer.deserialize(
response.data,
"ErrorResponse"
);

reject(new HttpError(response, body, response.status));
return;
}
}
);
});
Expand Down
15 changes: 15 additions & 0 deletions api/templateApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,21 @@ export class TemplateApi {
const response = error.response;

let body;

let rangeCodeLeft = Number("4XX"[0] + "00");
let rangeCodeRight = Number("4XX"[0] + "99");
if (
response.status >= rangeCodeLeft &&
response.status <= rangeCodeRight
) {
body = ObjectSerializer.deserialize(
response.data,
"ErrorResponse"
);

reject(new HttpError(response, body, response.status));
return;
}
}
);
});
Expand Down
52 changes: 51 additions & 1 deletion dist/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -29728,6 +29728,16 @@ var ApiAppApi = class {
}
const response = error.response;
let body;
let rangeCodeLeft = Number("4XX"[0] + "00");
let rangeCodeRight = Number("4XX"[0] + "99");
if (response.status >= rangeCodeLeft && response.status <= rangeCodeRight) {
body = ObjectSerializer.deserialize(
response.data,
"ErrorResponse"
);
reject(new HttpError(response, body, response.status));
return;
}
}
);
});
Expand Down Expand Up @@ -31427,6 +31437,16 @@ var SignatureRequestApi = class {
}
const response = error.response;
let body;
let rangeCodeLeft = Number("4XX"[0] + "00");
let rangeCodeRight = Number("4XX"[0] + "99");
if (response.status >= rangeCodeLeft && response.status <= rangeCodeRight) {
body = ObjectSerializer.deserialize(
response.data,
"ErrorResponse"
);
reject(new HttpError(response, body, response.status));
return;
}
}
);
});
Expand Down Expand Up @@ -32515,6 +32535,16 @@ var SignatureRequestApi = class {
}
const response = error.response;
let body;
let rangeCodeLeft = Number("4XX"[0] + "00");
let rangeCodeRight = Number("4XX"[0] + "99");
if (response.status >= rangeCodeLeft && response.status <= rangeCodeRight) {
body = ObjectSerializer.deserialize(
response.data,
"ErrorResponse"
);
reject(new HttpError(response, body, response.status));
return;
}
}
);
});
Expand Down Expand Up @@ -33262,6 +33292,16 @@ var TeamApi = class {
}
const response = error.response;
let body;
let rangeCodeLeft = Number("4XX"[0] + "00");
let rangeCodeRight = Number("4XX"[0] + "99");
if (response.status >= rangeCodeLeft && response.status <= rangeCodeRight) {
body = ObjectSerializer.deserialize(
response.data,
"ErrorResponse"
);
reject(new HttpError(response, body, response.status));
return;
}
}
);
});
Expand Down Expand Up @@ -34538,6 +34578,16 @@ var TemplateApi = class {
}
const response = error.response;
let body;
let rangeCodeLeft = Number("4XX"[0] + "00");
let rangeCodeRight = Number("4XX"[0] + "99");
if (response.status >= rangeCodeLeft && response.status <= rangeCodeRight) {
body = ObjectSerializer.deserialize(
response.data,
"ErrorResponse"
);
reject(new HttpError(response, body, response.status));
return;
}
}
);
});
Expand Down Expand Up @@ -35912,7 +35962,7 @@ var HttpError = class extends Error {
var queryParamsSerializer = (params) => {
return import_qs.default.stringify(params, { arrayFormat: "brackets" });
};
var USER_AGENT = "OpenAPI-Generator/1.2.2/node";
var USER_AGENT = "OpenAPI-Generator/1.2.3/node";
var generateFormData = (obj, typemap) => {
const data = {};
let localVarUseFormData = false;
Expand Down
2 changes: 1 addition & 1 deletion openapi-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ generatorName: typescript-node
typeMappings: {}
additionalProperties:
npmName: "@dropbox/sign"
npmVersion: 1.2.2
npmVersion: 1.2.3
supportsES6: true
apiDocPath: ./docs/api
modelDocPath: ./docs/model
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dropbox/sign",
"version": "1.2.2",
"version": "1.2.3",
"description": "Official Node client for Dropbox Sign",
"repository": {
"type": "git",
Expand Down
4 changes: 0 additions & 4 deletions templates/api-single.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,6 @@ export class {{classname}} {

let body;

{{#returnType}}

{{#responses}}
{{#dataType}}
{{^isWildcard}}
Expand Down Expand Up @@ -343,8 +341,6 @@ export class {{classname}} {
{{/isWildcard}}
{{/dataType}}
{{/responses}}

{{/returnType}}
});
});
});
Expand Down
2 changes: 1 addition & 1 deletion types/api/apis.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.2.2/node";
export declare const USER_AGENT = "OpenAPI-Generator/1.2.3/node";
export declare const generateFormData: (obj: any, typemap: AttributeTypeMap) => {
localVarUseFormData: boolean;
data: object;
Expand Down
Loading