Skip to content

Commit 723ce3f

Browse files
authored
🤖 Merge PR DefinitelyTyped#72522 [@types/docusign-esign] fix: Include updateEnvelopeDocGenFormFields in EnvelopeApi types by @atollefsen
1 parent 5d29b9b commit 723ce3f

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

‎types/docusign-esign/docusign-esign-tests.ts‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,3 +162,13 @@ const getDocumentWithCallback = async (envelopeId: string, documentId: string, o
162162
const results = await envelopesApi.getDocument(params.accountId, envelopeId, documentId, options, callback);
163163
return results;
164164
};
165+
166+
const updateEnvelopeDocGenFormFields = async (envelopeId: string) => {
167+
const params = await getDsRequestParams();
168+
const client = await getClient(params.token);
169+
const envelopesApi = new docusign.EnvelopesApi(client);
170+
171+
const formFields = await envelopesApi.getEnvelopeDocGenFormFields(params.accountId, envelopeId);
172+
const results = await envelopesApi.updateEnvelopeDocGenFormFields(params.accountId, envelopeId, formFields);
173+
return results;
174+
};

‎types/docusign-esign/index.d.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,6 +1592,13 @@ export class EnvelopesApi {
15921592
callback?: (() => void) | ((error: any, data: any, response: any) => void),
15931593
): Promise<EmailSettings>;
15941594

1595+
updateEnvelopeDocGenFormFields(
1596+
accountId: string,
1597+
envelopeId: string,
1598+
optsOrCallback?: any,
1599+
callback?: (() => void) | ((error: any, data: any, response: any) => void),
1600+
): Promise<DocGenFormFieldResponse>;
1601+
15951602
updateEnvelopeTransferRule(
15961603
accountId: string,
15971604
envelopeTransferRuleId: string,

0 commit comments

Comments
 (0)