Skip to content

SDK Update - Aug 12 #349

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

Open
wants to merge 1 commit into
base: fix/envelope-preview
Choose a base branch
from
Open
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
22 changes: 20 additions & 2 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8094,6 +8094,13 @@ paths:
type: string
description: Workspace unique_key
required: true
- in: query
name: format
schema:
type: string
enum:
- json
- octet-stream
- in: path
name: id
schema:
Expand All @@ -8109,27 +8116,37 @@ paths:
responses:
'200':
content:
application/json:
application/octet-stream:
schema:
$ref: '#/components/schemas/Envelope'
type: string
format: binary
description: ''
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthenticatedError'
application/octet-stream:
schema:
$ref: '#/components/schemas/UnauthenticatedError'
description: ''
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenError'
application/octet-stream:
schema:
$ref: '#/components/schemas/ForbiddenError'
description: ''
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundError'
application/octet-stream:
schema:
$ref: '#/components/schemas/NotFoundError'
description: ''
/esign/envelopes/{id}/recipient/{recipient_id}/:
put:
Expand Down Expand Up @@ -9291,6 +9308,7 @@ components:
email_address:
type: string
format: email
minLength: 5
country_code:
type: string
phone_number:
Expand Down
9 changes: 7 additions & 2 deletions src/api/services/EsignService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,23 +258,28 @@ export class EsignService {

/**
* preview Envelope
* @returns Envelope
* @returns binary
* @throws ApiError
*/
public static previewEnvelope({
id,
format,
}: {
/**
* A unique integer value identifying this envelope.
*/
id: number,
}): CancelablePromise<Envelope> {
format?: 'json' | 'octet-stream',
}): CancelablePromise<Blob> {
return __request(OpenAPI, {
method: 'GET',
url: '/esign/envelopes/{id}/preview/',
path: {
'id': id,
},
query: {
'format': format,
},
});
}

Expand Down