@createiq/backend 1.0.179 → 1.0.180

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -638,7 +638,7 @@ const getAmendDefaults = (options) => (options.client ?? client).get({
638
638
  /**
639
639
  * Render a preview of the document template using the current answers
640
640
  *
641
- * Render a preview of the document template using the current answers.
641
+ * Render a preview of the document template using the current answers. Pass editable=true to receive the clean, unannotated master render for in-place editing (no blackline annotations); the result round-trips through the editTemplate endpoint.
642
642
  */
643
643
  const negotiationRenderTemplate = (options) => (options.client ?? client).get({
644
644
  security: [{
@@ -899,6 +899,19 @@ const approve = (options) => (options.client ?? client).put({
899
899
  ...options
900
900
  });
901
901
  /**
902
+ * Upload the counterparty's DOCX on an existing Draft negotiation
903
+ *
904
+ * Schedules a DOCX extraction on behalf of the counterparty for an existing Draft negotiation. The Draft must already have an owner entity set and exactly one stub counterparty. The body is the raw DOCX bytes; Content-Type must be application/vnd.openxmlformats-officedocument.wordprocessingml.document and X-File-Name must be set. On extraction completion the initiator's answers are populated from the DOCX; on first SendToCounterpartyInitial the receiver row is seeded from the initiator's mustMatch.
905
+ */
906
+ const scheduleCounterpartyDocxExtraction = (options) => (options.client ?? client).put({
907
+ security: [{
908
+ name: "Authorization",
909
+ type: "apiKey"
910
+ }],
911
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/extraction/uploadCounterpartyDocx",
912
+ ...options
913
+ });
914
+ /**
902
915
  * View a list of the presets in a Sub-Account
903
916
  *
904
917
  * View a list of the presets in a Sub-Account.
@@ -3950,23 +3963,6 @@ const acceptCounterpartyPosition = (options) => (options.client ?? client).put({
3950
3963
  ...options
3951
3964
  });
3952
3965
  /**
3953
- * Cancel selected negotiations
3954
- *
3955
- * Cancel selected negotiations.
3956
- */
3957
- const cancelNegotiations = (options) => (options.client ?? client).put({
3958
- security: [{
3959
- name: "Authorization",
3960
- type: "apiKey"
3961
- }],
3962
- url: "/api/v1/subAccounts/{subAccountId}/cancelNegotiations",
3963
- ...options,
3964
- headers: {
3965
- "Content-Type": "application/json",
3966
- ...options.headers
3967
- }
3968
- });
3969
- /**
3970
3966
  * Get the activity timeline for negotiation insights
3971
3967
  *
3972
3968
  * Returns the negotiation's non-comment activity events grouped chronologically into major events and their minor children, along with timeline statistics.
@@ -4045,6 +4041,49 @@ const getExecutionAttachment = (options) => (options.client ?? client).get({
4045
4041
  ...options
4046
4042
  });
4047
4043
  /**
4044
+ * Create a draft negotiation seeded by extracting a DOCX template (start-from-DOCX)
4045
+ *
4046
+ * Creates a new Draft negotiation for the given document and immediately seeds the initiator's answers by extracting from an uploaded DOCX template. The body is the raw DOCX bytes; Content-Type must be application/vnd.openxmlformats-officedocument.wordprocessingml.document and X-File-Name must be set.
4047
+ */
4048
+ const createFromDocx = (options) => (options.client ?? client).post({
4049
+ security: [{
4050
+ name: "Authorization",
4051
+ type: "apiKey"
4052
+ }],
4053
+ url: "/api/v1/subAccounts/{subAccountId}/documents/{documentId}/negotiations/fromDocx",
4054
+ ...options
4055
+ });
4056
+ /**
4057
+ * Discard a completed DOCX extraction and return the negotiation to default
4058
+ *
4059
+ * Reverts a completed DOCX extraction. Clears extraction-derived metadata (pinnedDocumentVersion, electionsExcludedByExtraction, seedReceiverFromMustMatch, allowAnyTextAmendment) and resets initiator answers to schema defaults. Allowed only when the negotiation is in Draft state and has been through extraction. Distinct from cancel — cancel aborts an in-flight extraction; discard reverts a completed one.
4060
+ */
4061
+ const discardExtraction = (options) => (options.client ?? client).put({
4062
+ security: [{
4063
+ name: "Authorization",
4064
+ type: "apiKey"
4065
+ }],
4066
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/extraction/discard",
4067
+ ...options
4068
+ });
4069
+ /**
4070
+ * Cancel selected negotiations
4071
+ *
4072
+ * Cancel selected negotiations.
4073
+ */
4074
+ const cancelNegotiations = (options) => (options.client ?? client).put({
4075
+ security: [{
4076
+ name: "Authorization",
4077
+ type: "apiKey"
4078
+ }],
4079
+ url: "/api/v1/subAccounts/{subAccountId}/cancelNegotiations",
4080
+ ...options,
4081
+ headers: {
4082
+ "Content-Type": "application/json",
4083
+ ...options.headers
4084
+ }
4085
+ });
4086
+ /**
4048
4087
  * Assign a new approver to every approval for which an existing user is already an approver
4049
4088
  *
4050
4089
  * Sync a given user to all the approval rules of an existing user for templates and in-flight and future negotiations. Optionally, replace a previous approver or restrict to a specific sub-account.
@@ -4678,6 +4717,19 @@ const sendPackageToCounterparty = (options) => (options.client ?? client).put({
4678
4717
  }
4679
4718
  });
4680
4719
  /**
4720
+ * Upload a DOCX for extraction against the negotiation, on behalf of the given party
4721
+ *
4722
+ * Upload a DOCX for extraction against the negotiation, on behalf of the given party. The body is the raw DOCX bytes; Content-Type must be application/vnd.openxmlformats-officedocument.wordprocessingml.document and X-File-Name must be set.
4723
+ */
4724
+ const scheduleDocxExtraction = (options) => (options.client ?? client).put({
4725
+ security: [{
4726
+ name: "Authorization",
4727
+ type: "apiKey"
4728
+ }],
4729
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/extraction/uploadDocx/{partyId}",
4730
+ ...options
4731
+ });
4732
+ /**
4681
4733
  * Set the owner entity and counterparty details for every negotiation in a package
4682
4734
  *
4683
4735
  * Set the owner entity and counterparty details for every negotiation in a package. Equivalent to calling the negotiation owner and counterparties endpoints on each member. Both fields are optional, but at least one must be supplied. Supplying a counterparty overwrites external attachments already set on the existing counterparty member. Negotiations that cannot accept the change are reported individually in the failures list, unless no negotiation could accept it, in which case the whole request fails with that reason.
@@ -5313,6 +5365,6 @@ const requestGuestElectionApproval = (options) => (options.client ?? client).put
5313
5365
  }
5314
5366
  });
5315
5367
  //#endregion
5316
- export { acceptAllCounterpartyPositions, acceptAllCustodianTemplatePositions, acceptAllEvents, acceptAllPositionsFromFork, acceptAllPositionsFromPreviousVersion, acceptAllPresetPositions, acceptCounterpartyPosition, acceptEvent, acceptNestedAnswersCounterpartyPosition, accountSummary, addApprovalComment, addComment, addElectionApproval, addElectionRejection, addNegotiationsToPackageEnvelope, addPackageMembers, addWatchers, applyExtractedAnswers, approve, approveAccessRequest, approveFinalDocument, assignDraftPresetToMe, assignEntity, assignToMe, assignUser, auditTrailFilters, auditTrailForAccountAsJson, auditTrailForSubAccountAsJson, authPing, backfillNegotiationProgressPercentage, breakingChanges, bulkSetsJobCount, cancel, cancelExtraction, cancelGuestElectionApprovalRequest, cancelGuestFinalApprovalRequest, cancelNegotiations, cancelNegotiationsJobCount, cancelPackageEnvelope, changeSigningMode, checkAuxiliaryDocument, checkForBrokenApprovers, checkOfflineNegotiatedDocument, checkSignedExecutedVersion, checkSignedSignaturePagePdf, clonePreset, confirm, confirmExecutionVersion, consentCodeCallback, contactForNewApprover, createAuditTrailJson, createAuditTrailPdf, createAuditTrailXlsx, createBulkSet, createNegotiation, createPackage, createPackageEnvelope, createPackageWithDrafts, createPreset, createPresetAuditTrailJson, createPresetAuditTrailXlsx, createSignaturePagePdf, createSigningPack, deleteApprovalComment, deleteAuxiliaryDocument, deleteBulkSetAttachment, deleteComment, deleteCoverNote, deleteDocumentDraftingNote, deleteDocumentElectionDraftingNote, deleteDraftingNotesDocument, deleteEntity, deleteExecutionAttachment, deleteExternalAttachment, deleteGeneralCoverNote, deleteOfflineNegotiatedDocument, deletePackageAttachment, deletePackageEnvelope, deletePreset, deleteSignedExecutedVersion, deleteSignedSignaturePageForParty, documentRenderTemplate, documentsFilter, downloadBlackline, downloadNegotiation, downloadPackageSignedDocument, downloadPostExecutionPack, downloadPreExecutionCounterpartyNegotiation, downloadPreset, dryRunPackageWithDrafts, editAnswers, editApprovalComment, editDefaultAnswers, emailPreferences, extendWindow, fixApprovalRules, forkNegotiation, generateActiveNegotiationsReportAsExcel, generateAndMaybeSendEnvelope, generateAuditTrailForAccountAsExcel, generateAuditTrailForSubAccountAsExcel, generateCommentsReport, generateExecutedNegotiationsReportAsExcel, generateNegotiationsReport, getAccessibleNegotiation, getAccountRelationshipSummaries, getAdminLikeUsers, getAllVersions, getAmendDefaults, getAnnotatedOfflineNegotiatedDocument, getApprovalComments, getApprovalHistory, getApprovalRound, getAsCdm, getAuxiliaryDocument, getBulkSet, getBulkSetAttachment, getChannelTimeline, getCommentSummary, getComments, getCompanyByEntityId, getDocument, getDocumentSchema, getDownloadActiveNegotiationsReportAsExcel, getDownloadExecutedNegotiationsAsExcel, getDraftingNotes, getDraftingNotesDocument, getElectionAnswer, getElectionInsights, getEvents, getExecutedNegotiationSummary, getExecutionAttachment, getExternalAttachment, getExtractionResults, getInsightsTimeline, getLatestDocumentSchema, getLegacyStatistics, getMajorVersions, getMultipleNestedAnswers, getNegotiation, getNegotiationDeltas, getNegotiationDraftingNotes, getNegotiationESignStatus, getNegotiationElectionAmendValues, getNegotiationFilesSummary, getNegotiationInsights, getNegotiationNestedAmendValue, getNestedAnswerInsights, getNestedAnswers, getOfflineNegotiatedDocument, getOfflineNegotiatedDocumentAnnotations, getOriginalAnswersForForkNegotiation, getOtherPartyAnswers, getPackage, getPackageAttachment, getPackageDocuSignStatus, getPackageEnvelopes, getPackageNames, getPartyAnswers, getPotentialReplacementApprovers, getPotentialUsers, getPreset, getPresetElectionAmendValues, getPresetNestedAmendValue, getPreviousActiveUsers, getPreviousMajorVersionsNestedAnswerElections, getPreviousMajorVersionsNestedAnswerIds, getProfile, getSecurityContext, getSettings, getSignedExecutedVersion, getSignedSignaturePagePdf, getSsoConfig, getStatistics, getStatisticsOverview, getSubAccount, getSubscribedPublishers, getTimeline, getTimelineActivity, getUserStatistics, getUsers, getUsersForPicker, getWatchers, getWindow, grantAllNegotiationsAccess, grantNegotiationsAccess, grantPresetsAccess, grantWindow, initialAnswers, listAdvisorsForWorkspace, listAllPresetsForSubAccountV1, listAllPresetsForSubAccountV2, listBulkSets, listDocuments, listDocumentsVersionsSummary, listDocumentsWithPagination, listEntities, listExecutionAttachments, listExternalAttachments, listNegotiations, listPackageAttachments, listPotentialNegotiationAdvisors, listPotentialPresetAdvisors, listPresets, listRecentExtractions, listSubAccounts, markActivityEventsAsViewed, markApprovalCommentsAsViewed, markAsFinal, markAsOffline, markCommentEventsAsViewed, markEventsAsViewed, moveEntity, negotiationForkHistory, negotiationGetDocumentSchema, negotiationRenderCounterpartyTemplate, negotiationRenderCounterpartyTemplateAtVersion, negotiationRenderInitialAnswersTemplate, negotiationRenderPhaseOneTemplate, negotiationRenderTemplate, negotiationRenderTemplateAtVersion, negotiationSendForApproval, negotiationsFilter, notifyOfDraft, obtainConsent, overrideApproveFinalDocument, overrideElectionApproval, overrideElectionRejection, overrideRejectFinalDocument, patchAnswers, patchEmailPreferences, phase1Answers, presetEditAnswers, presetGetDocumentSchema, presetGetMultipleNestedAnswers, presetGetNestedAnswers, presetRenderTemplate, presetRequestApproval, presetSendForApproval, presetSetElectionApproval, presetSetFinalApproval, presetSetMultipleNestedAnswers, presetSetNestedAnswers, presetSwapParties, publisherSummaries, queueGenerateNegotiationDocumentJob, rejectAccessRequest, rejectAllEvents, rejectEvent, rejectFinalDocument, rejectPresetApproval, removeNegotiationsFromPackageEnvelope, removePackageMembers, removeWatchers, renameExecutionAttachment, requestGuestElectionApproval, requestGuestFinalApproval, resetUserAnswers, retract, revertToAmending, revokeNegotiationsAccess, revokePresetsAccess, revokeWindow, scheduleExtraction, schemaAvailableAsCdm, searchEntity, sendBulkSetToCounterpartiesInitial, sendDocumentApprovalReminder, sendElectionApprovalReminder, sendManualReminderEmail, sendPackageEnvelope, sendPackageToCounterparty, sendToCounterparty, sendToCounterpartyInitial, setAuxiliaryDocument, setBulkSetAttachments, setCounterparties, setElectionApproval, setExecutionAttachment, setExecutionAttachments, setExternalAttachment, setExternalAttachments, setFinalApproval, setGeneralCoverNote, setMultipleNestedAnswers, setNestedAnswers, setOfflineNegotiatedDocument, setOwnerEntity, setPackageAttachment, setPackageAttachments, setPackageParties, setPreset, setReceiverEntity, setSignedExecutedVersion, setSignedSignaturePageForParty, shareNegotiation, shareSubAccount, suggestPackageName, swapParties, syncFundList, syncNewApprover, unsubscribe, updateAttachDocx, updateComment, updateCommentReaction, updateCoverNote, updateCustomFields, updateDocumentDraftingNote, updateDocumentElectionDraftingNote, updateDraftingNotes, updateExtractionFeedback, updateMetadata, updateNegotiationsToMatch, updatePackageMembers, updatePackageName, updateSelectedElections, updateSubAccount, updateUserAnswers, upgradePresetSchema, upgradeSchema, uploadFundListSpreadsheet, usersWithNegotiationAccess, validateDraftReceiverEmails, validateEntities, version, voidESignEnvelopeForNegotiation };
5368
+ export { acceptAllCounterpartyPositions, acceptAllCustodianTemplatePositions, acceptAllEvents, acceptAllPositionsFromFork, acceptAllPositionsFromPreviousVersion, acceptAllPresetPositions, acceptCounterpartyPosition, acceptEvent, acceptNestedAnswersCounterpartyPosition, accountSummary, addApprovalComment, addComment, addElectionApproval, addElectionRejection, addNegotiationsToPackageEnvelope, addPackageMembers, addWatchers, applyExtractedAnswers, approve, approveAccessRequest, approveFinalDocument, assignDraftPresetToMe, assignEntity, assignToMe, assignUser, auditTrailFilters, auditTrailForAccountAsJson, auditTrailForSubAccountAsJson, authPing, backfillNegotiationProgressPercentage, breakingChanges, bulkSetsJobCount, cancel, cancelExtraction, cancelGuestElectionApprovalRequest, cancelGuestFinalApprovalRequest, cancelNegotiations, cancelNegotiationsJobCount, cancelPackageEnvelope, changeSigningMode, checkAuxiliaryDocument, checkForBrokenApprovers, checkOfflineNegotiatedDocument, checkSignedExecutedVersion, checkSignedSignaturePagePdf, clonePreset, confirm, confirmExecutionVersion, consentCodeCallback, contactForNewApprover, createAuditTrailJson, createAuditTrailPdf, createAuditTrailXlsx, createBulkSet, createFromDocx, createNegotiation, createPackage, createPackageEnvelope, createPackageWithDrafts, createPreset, createPresetAuditTrailJson, createPresetAuditTrailXlsx, createSignaturePagePdf, createSigningPack, deleteApprovalComment, deleteAuxiliaryDocument, deleteBulkSetAttachment, deleteComment, deleteCoverNote, deleteDocumentDraftingNote, deleteDocumentElectionDraftingNote, deleteDraftingNotesDocument, deleteEntity, deleteExecutionAttachment, deleteExternalAttachment, deleteGeneralCoverNote, deleteOfflineNegotiatedDocument, deletePackageAttachment, deletePackageEnvelope, deletePreset, deleteSignedExecutedVersion, deleteSignedSignaturePageForParty, discardExtraction, documentRenderTemplate, documentsFilter, downloadBlackline, downloadNegotiation, downloadPackageSignedDocument, downloadPostExecutionPack, downloadPreExecutionCounterpartyNegotiation, downloadPreset, dryRunPackageWithDrafts, editAnswers, editApprovalComment, editDefaultAnswers, emailPreferences, extendWindow, fixApprovalRules, forkNegotiation, generateActiveNegotiationsReportAsExcel, generateAndMaybeSendEnvelope, generateAuditTrailForAccountAsExcel, generateAuditTrailForSubAccountAsExcel, generateCommentsReport, generateExecutedNegotiationsReportAsExcel, generateNegotiationsReport, getAccessibleNegotiation, getAccountRelationshipSummaries, getAdminLikeUsers, getAllVersions, getAmendDefaults, getAnnotatedOfflineNegotiatedDocument, getApprovalComments, getApprovalHistory, getApprovalRound, getAsCdm, getAuxiliaryDocument, getBulkSet, getBulkSetAttachment, getChannelTimeline, getCommentSummary, getComments, getCompanyByEntityId, getDocument, getDocumentSchema, getDownloadActiveNegotiationsReportAsExcel, getDownloadExecutedNegotiationsAsExcel, getDraftingNotes, getDraftingNotesDocument, getElectionAnswer, getElectionInsights, getEvents, getExecutedNegotiationSummary, getExecutionAttachment, getExternalAttachment, getExtractionResults, getInsightsTimeline, getLatestDocumentSchema, getLegacyStatistics, getMajorVersions, getMultipleNestedAnswers, getNegotiation, getNegotiationDeltas, getNegotiationDraftingNotes, getNegotiationESignStatus, getNegotiationElectionAmendValues, getNegotiationFilesSummary, getNegotiationInsights, getNegotiationNestedAmendValue, getNestedAnswerInsights, getNestedAnswers, getOfflineNegotiatedDocument, getOfflineNegotiatedDocumentAnnotations, getOriginalAnswersForForkNegotiation, getOtherPartyAnswers, getPackage, getPackageAttachment, getPackageDocuSignStatus, getPackageEnvelopes, getPackageNames, getPartyAnswers, getPotentialReplacementApprovers, getPotentialUsers, getPreset, getPresetElectionAmendValues, getPresetNestedAmendValue, getPreviousActiveUsers, getPreviousMajorVersionsNestedAnswerElections, getPreviousMajorVersionsNestedAnswerIds, getProfile, getSecurityContext, getSettings, getSignedExecutedVersion, getSignedSignaturePagePdf, getSsoConfig, getStatistics, getStatisticsOverview, getSubAccount, getSubscribedPublishers, getTimeline, getTimelineActivity, getUserStatistics, getUsers, getUsersForPicker, getWatchers, getWindow, grantAllNegotiationsAccess, grantNegotiationsAccess, grantPresetsAccess, grantWindow, initialAnswers, listAdvisorsForWorkspace, listAllPresetsForSubAccountV1, listAllPresetsForSubAccountV2, listBulkSets, listDocuments, listDocumentsVersionsSummary, listDocumentsWithPagination, listEntities, listExecutionAttachments, listExternalAttachments, listNegotiations, listPackageAttachments, listPotentialNegotiationAdvisors, listPotentialPresetAdvisors, listPresets, listRecentExtractions, listSubAccounts, markActivityEventsAsViewed, markApprovalCommentsAsViewed, markAsFinal, markAsOffline, markCommentEventsAsViewed, markEventsAsViewed, moveEntity, negotiationForkHistory, negotiationGetDocumentSchema, negotiationRenderCounterpartyTemplate, negotiationRenderCounterpartyTemplateAtVersion, negotiationRenderInitialAnswersTemplate, negotiationRenderPhaseOneTemplate, negotiationRenderTemplate, negotiationRenderTemplateAtVersion, negotiationSendForApproval, negotiationsFilter, notifyOfDraft, obtainConsent, overrideApproveFinalDocument, overrideElectionApproval, overrideElectionRejection, overrideRejectFinalDocument, patchAnswers, patchEmailPreferences, phase1Answers, presetEditAnswers, presetGetDocumentSchema, presetGetMultipleNestedAnswers, presetGetNestedAnswers, presetRenderTemplate, presetRequestApproval, presetSendForApproval, presetSetElectionApproval, presetSetFinalApproval, presetSetMultipleNestedAnswers, presetSetNestedAnswers, presetSwapParties, publisherSummaries, queueGenerateNegotiationDocumentJob, rejectAccessRequest, rejectAllEvents, rejectEvent, rejectFinalDocument, rejectPresetApproval, removeNegotiationsFromPackageEnvelope, removePackageMembers, removeWatchers, renameExecutionAttachment, requestGuestElectionApproval, requestGuestFinalApproval, resetUserAnswers, retract, revertToAmending, revokeNegotiationsAccess, revokePresetsAccess, revokeWindow, scheduleCounterpartyDocxExtraction, scheduleDocxExtraction, scheduleExtraction, schemaAvailableAsCdm, searchEntity, sendBulkSetToCounterpartiesInitial, sendDocumentApprovalReminder, sendElectionApprovalReminder, sendManualReminderEmail, sendPackageEnvelope, sendPackageToCounterparty, sendToCounterparty, sendToCounterpartyInitial, setAuxiliaryDocument, setBulkSetAttachments, setCounterparties, setElectionApproval, setExecutionAttachment, setExecutionAttachments, setExternalAttachment, setExternalAttachments, setFinalApproval, setGeneralCoverNote, setMultipleNestedAnswers, setNestedAnswers, setOfflineNegotiatedDocument, setOwnerEntity, setPackageAttachment, setPackageAttachments, setPackageParties, setPreset, setReceiverEntity, setSignedExecutedVersion, setSignedSignaturePageForParty, shareNegotiation, shareSubAccount, suggestPackageName, swapParties, syncFundList, syncNewApprover, unsubscribe, updateAttachDocx, updateComment, updateCommentReaction, updateCoverNote, updateCustomFields, updateDocumentDraftingNote, updateDocumentElectionDraftingNote, updateDraftingNotes, updateExtractionFeedback, updateMetadata, updateNegotiationsToMatch, updatePackageMembers, updatePackageName, updateSelectedElections, updateSubAccount, updateUserAnswers, upgradePresetSchema, upgradeSchema, uploadFundListSpreadsheet, usersWithNegotiationAccess, validateDraftReceiverEmails, validateEntities, version, voidESignEnvelopeForNegotiation };
5317
5369
 
5318
5370
  //# sourceMappingURL=index.mjs.map