@createiq/backend 1.0.0

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.cjs ADDED
@@ -0,0 +1,4523 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ ApiError: () => ApiError,
24
+ CancelError: () => CancelError,
25
+ CancelablePromise: () => CancelablePromise,
26
+ OpenAPI: () => OpenAPI,
27
+ acceptAllCounterpartyPositions: () => acceptAllCounterpartyPositions,
28
+ acceptAllCustodianTemplatePositions: () => acceptAllCustodianTemplatePositions,
29
+ acceptAllPositionsFromFork: () => acceptAllPositionsFromFork,
30
+ acceptAllPositionsFromPreviousVersion: () => acceptAllPositionsFromPreviousVersion,
31
+ acceptAllPresetPositions: () => acceptAllPresetPositions,
32
+ acceptCounterpartyPosition: () => acceptCounterpartyPosition,
33
+ acceptNestedAnswersCounterpartyPosition: () => acceptNestedAnswersCounterpartyPosition,
34
+ accountSummary: () => accountSummary,
35
+ addApprovalComment: () => addApprovalComment,
36
+ addComment: () => addComment,
37
+ addElectionApproval: () => addElectionApproval,
38
+ addElectionRejection: () => addElectionRejection,
39
+ addWatchers: () => addWatchers,
40
+ applyExtractedAnswers: () => applyExtractedAnswers,
41
+ approveFinalDocument: () => approveFinalDocument,
42
+ assignEntity: () => assignEntity,
43
+ assignToMe: () => assignToMe,
44
+ assignUser: () => assignUser,
45
+ auditTrailFilters: () => auditTrailFilters,
46
+ auditTrailForAccountAsExcel: () => auditTrailForAccountAsExcel,
47
+ auditTrailForAccountAsJson: () => auditTrailForAccountAsJson,
48
+ auditTrailForSubAccountAsExcel: () => auditTrailForSubAccountAsExcel,
49
+ auditTrailForSubAccountAsJson: () => auditTrailForSubAccountAsJson,
50
+ authPing: () => authPing,
51
+ breakingChanges: () => breakingChanges,
52
+ bulkSetsJobCount: () => bulkSetsJobCount,
53
+ cancel: () => cancel,
54
+ cancelExtraction: () => cancelExtraction,
55
+ cancelNegotiations: () => cancelNegotiations,
56
+ cancelNegotiationsJobCount: () => cancelNegotiationsJobCount,
57
+ changeSigningMode: () => changeSigningMode,
58
+ checkAuxiliaryDocument: () => checkAuxiliaryDocument,
59
+ checkOfflineNegotiatedDocument: () => checkOfflineNegotiatedDocument,
60
+ checkSignedExecutedVersion: () => checkSignedExecutedVersion,
61
+ checkSignedSignaturePagePdf: () => checkSignedSignaturePagePdf,
62
+ clonePreset: () => clonePreset,
63
+ confirm: () => confirm,
64
+ confirmExecutionVersion: () => confirmExecutionVersion,
65
+ consentCodeCallback: () => consentCodeCallback,
66
+ createAuditTrailJson: () => createAuditTrailJson,
67
+ createAuditTrailPdf: () => createAuditTrailPdf,
68
+ createAuditTrailXlsx: () => createAuditTrailXlsx,
69
+ createBulkSet: () => createBulkSet,
70
+ createGroup: () => createGroup,
71
+ createNegotiation: () => createNegotiation,
72
+ createPreset: () => createPreset,
73
+ createPresetAuditTrailJson: () => createPresetAuditTrailJson,
74
+ createPresetAuditTrailXlsx: () => createPresetAuditTrailXlsx,
75
+ createSignaturePagePdf: () => createSignaturePagePdf,
76
+ createSigningPack: () => createSigningPack,
77
+ deleteApprovalComment: () => deleteApprovalComment,
78
+ deleteAuxiliaryDocument: () => deleteAuxiliaryDocument,
79
+ deleteBulkSetAttachment: () => deleteBulkSetAttachment,
80
+ deleteComment: () => deleteComment,
81
+ deleteCoverNote: () => deleteCoverNote,
82
+ deleteDocumentDraftingNote: () => deleteDocumentDraftingNote,
83
+ deleteDocumentElectionDraftingNote: () => deleteDocumentElectionDraftingNote,
84
+ deleteDraftingNotesDocument: () => deleteDraftingNotesDocument,
85
+ deleteEntity: () => deleteEntity,
86
+ deleteExecutionAttachment: () => deleteExecutionAttachment,
87
+ deleteExternalAttachment: () => deleteExternalAttachment,
88
+ deleteGeneralCoverNote: () => deleteGeneralCoverNote,
89
+ deleteOfflineNegotiatedDocument: () => deleteOfflineNegotiatedDocument,
90
+ deletePreset: () => deletePreset,
91
+ deleteSignedExecutedVersion: () => deleteSignedExecutedVersion,
92
+ deleteSignedSignaturePageForParty: () => deleteSignedSignaturePageForParty,
93
+ documentRenderTemplate: () => documentRenderTemplate,
94
+ documentsFilter: () => documentsFilter,
95
+ downloadActiveNegotiationsReportAsExcel: () => downloadActiveNegotiationsReportAsExcel,
96
+ downloadDashboardReportAsExcel: () => downloadDashboardReportAsExcel,
97
+ downloadExecutedNegotiationsAsExcel: () => downloadExecutedNegotiationsAsExcel,
98
+ downloadNegotiation: () => downloadNegotiation,
99
+ downloadPostExecutionPack: () => downloadPostExecutionPack,
100
+ downloadPreExecutionCounterpartyNegotiation: () => downloadPreExecutionCounterpartyNegotiation,
101
+ downloadPreset: () => downloadPreset,
102
+ editAnswers: () => editAnswers,
103
+ editApprovalComment: () => editApprovalComment,
104
+ editDefaultAnswers: () => editDefaultAnswers,
105
+ emailPreferences: () => emailPreferences,
106
+ extendWindow: () => extendWindow,
107
+ forkNegotiation: () => forkNegotiation,
108
+ generateAndMaybeSendEnvelope: () => generateAndMaybeSendEnvelope,
109
+ getAccessibleNegotiation: () => getAccessibleNegotiation,
110
+ getAccountRelationshipSummaries: () => getAccountRelationshipSummaries,
111
+ getAllNegotiationCommentsForSubAccount: () => getAllNegotiationCommentsForSubAccount,
112
+ getAllVersions: () => getAllVersions,
113
+ getAmendDefaults: () => getAmendDefaults,
114
+ getAnnotatedOfflineNegotiatedDocument: () => getAnnotatedOfflineNegotiatedDocument,
115
+ getApprovalComments: () => getApprovalComments,
116
+ getApprovalHistory: () => getApprovalHistory,
117
+ getApprovalRound: () => getApprovalRound,
118
+ getAsCdm: () => getAsCdm,
119
+ getAuxiliaryDocument: () => getAuxiliaryDocument,
120
+ getBulkSet: () => getBulkSet,
121
+ getBulkSetAttachment: () => getBulkSetAttachment,
122
+ getChannelTimeline: () => getChannelTimeline,
123
+ getCommentSummary: () => getCommentSummary,
124
+ getComments: () => getComments,
125
+ getCompanyByEntityId: () => getCompanyByEntityId,
126
+ getDocument: () => getDocument,
127
+ getDocumentSchema: () => getDocumentSchema,
128
+ getDownloadActiveNegotiationsReportAsExcel: () => getDownloadActiveNegotiationsReportAsExcel,
129
+ getDownloadExecutedNegotiationsAsExcel: () => getDownloadExecutedNegotiationsAsExcel,
130
+ getDraftingNotes: () => getDraftingNotes,
131
+ getDraftingNotesDocument: () => getDraftingNotesDocument,
132
+ getElectionAnswer: () => getElectionAnswer,
133
+ getExecutedNegotiationSummary: () => getExecutedNegotiationSummary,
134
+ getExecutionAttachment: () => getExecutionAttachment,
135
+ getExternalAttachment: () => getExternalAttachment,
136
+ getExtractionResults: () => getExtractionResults,
137
+ getGroupNames: () => getGroupNames,
138
+ getLatestDocumentSchema: () => getLatestDocumentSchema,
139
+ getLegacyStatistics: () => getLegacyStatistics,
140
+ getMajorVersions: () => getMajorVersions,
141
+ getMultipleNestedAnswers: () => getMultipleNestedAnswers,
142
+ getNegotiation: () => getNegotiation,
143
+ getNegotiationDeltas: () => getNegotiationDeltas,
144
+ getNegotiationDraftingNotes: () => getNegotiationDraftingNotes,
145
+ getNegotiationESignStatus: () => getNegotiationESignStatus,
146
+ getNegotiationFilesSummary: () => getNegotiationFilesSummary,
147
+ getNegotiationsGroup: () => getNegotiationsGroup,
148
+ getNestedAnswers: () => getNestedAnswers,
149
+ getOfflineNegotiatedDocument: () => getOfflineNegotiatedDocument,
150
+ getOfflineNegotiatedDocumentAnnotations: () => getOfflineNegotiatedDocumentAnnotations,
151
+ getOriginalAnswersForForkNegotiation: () => getOriginalAnswersForForkNegotiation,
152
+ getOtherPartyAnswers: () => getOtherPartyAnswers,
153
+ getPartyAnswers: () => getPartyAnswers,
154
+ getPreset: () => getPreset,
155
+ getPreviousActiveUsers: () => getPreviousActiveUsers,
156
+ getPreviousMajorVersionsNestedAnswerElections: () => getPreviousMajorVersionsNestedAnswerElections,
157
+ getPreviousMajorVersionsNestedAnswerIds: () => getPreviousMajorVersionsNestedAnswerIds,
158
+ getProfile: () => getProfile,
159
+ getSecurityContext: () => getSecurityContext,
160
+ getSettings: () => getSettings,
161
+ getSignedExecutedVersion: () => getSignedExecutedVersion,
162
+ getSignedSignaturePagePdf: () => getSignedSignaturePagePdf,
163
+ getSsoConfig: () => getSsoConfig,
164
+ getStatistics: () => getStatistics,
165
+ getStatisticsOverview: () => getStatisticsOverview,
166
+ getSubAccount: () => getSubAccount,
167
+ getTimeline: () => getTimeline,
168
+ getTimelineActivity: () => getTimelineActivity,
169
+ getUserStatistics: () => getUserStatistics,
170
+ getUsers: () => getUsers,
171
+ getUsersForPicker: () => getUsersForPicker,
172
+ getWatchers: () => getWatchers,
173
+ getWindow: () => getWindow,
174
+ grantAllNegotiationsAccess: () => grantAllNegotiationsAccess,
175
+ grantNegotiationsAccess: () => grantNegotiationsAccess,
176
+ grantPresetsAccess: () => grantPresetsAccess,
177
+ grantWindow: () => grantWindow,
178
+ initialAnswers: () => initialAnswers,
179
+ listAdvisorsForWorkspace: () => listAdvisorsForWorkspace,
180
+ listAllPresetsForSubAccountV1: () => listAllPresetsForSubAccountV1,
181
+ listAllPresetsForSubAccountV2: () => listAllPresetsForSubAccountV2,
182
+ listBulkSets: () => listBulkSets,
183
+ listDocuments: () => listDocuments,
184
+ listDocumentsVersionsSummary: () => listDocumentsVersionsSummary,
185
+ listDocumentsWithPagination: () => listDocumentsWithPagination,
186
+ listEntities: () => listEntities,
187
+ listExecutionAttachments: () => listExecutionAttachments,
188
+ listExternalAttachments: () => listExternalAttachments,
189
+ listNegotiations: () => listNegotiations,
190
+ listPotentialNegotiationAdvisors: () => listPotentialNegotiationAdvisors,
191
+ listPotentialPresetAdvisors: () => listPotentialPresetAdvisors,
192
+ listPresets: () => listPresets,
193
+ listSubAccounts: () => listSubAccounts,
194
+ markActivityEventsAsViewed: () => markActivityEventsAsViewed,
195
+ markApprovalCommentsAsViewed: () => markApprovalCommentsAsViewed,
196
+ markAsFinal: () => markAsFinal,
197
+ markAsOffline: () => markAsOffline,
198
+ markCommentEventsAsViewed: () => markCommentEventsAsViewed,
199
+ markEventsAsViewed: () => markEventsAsViewed,
200
+ moveEntity: () => moveEntity,
201
+ negotiationForkHistory: () => negotiationForkHistory,
202
+ negotiationGetDocumentSchema: () => negotiationGetDocumentSchema,
203
+ negotiationRenderTemplate: () => negotiationRenderTemplate,
204
+ negotiationSendForApproval: () => negotiationSendForApproval,
205
+ negotiationsFilter: () => negotiationsFilter,
206
+ notifyOfDraft: () => notifyOfDraft,
207
+ obtainConsent: () => obtainConsent,
208
+ overrideApproveFinalDocument: () => overrideApproveFinalDocument,
209
+ overrideElectionApproval: () => overrideElectionApproval,
210
+ overrideElectionRejection: () => overrideElectionRejection,
211
+ overrideRejectFinalDocument: () => overrideRejectFinalDocument,
212
+ patchEmailPreferences: () => patchEmailPreferences,
213
+ presetEditAnswers: () => presetEditAnswers,
214
+ presetGetDocumentSchema: () => presetGetDocumentSchema,
215
+ presetGetMultipleNestedAnswers: () => presetGetMultipleNestedAnswers,
216
+ presetGetNestedAnswers: () => presetGetNestedAnswers,
217
+ presetRenderTemplate: () => presetRenderTemplate,
218
+ presetSendForApproval: () => presetSendForApproval,
219
+ presetSetElectionApproval: () => presetSetElectionApproval,
220
+ presetSetFinalApproval: () => presetSetFinalApproval,
221
+ presetSetMultipleNestedAnswers: () => presetSetMultipleNestedAnswers,
222
+ presetSetNestedAnswers: () => presetSetNestedAnswers,
223
+ presetSwapParties: () => presetSwapParties,
224
+ queueGenerateNegotiationDocumentJob: () => queueGenerateNegotiationDocumentJob,
225
+ rejectFinalDocument: () => rejectFinalDocument,
226
+ removeWatchers: () => removeWatchers,
227
+ renameExecutionAttachment: () => renameExecutionAttachment,
228
+ resetUserAnswers: () => resetUserAnswers,
229
+ retract: () => retract,
230
+ revertToAmending: () => revertToAmending,
231
+ revokeNegotiationsAccess: () => revokeNegotiationsAccess,
232
+ revokePresetsAccess: () => revokePresetsAccess,
233
+ revokeWindow: () => revokeWindow,
234
+ scheduleExtraction: () => scheduleExtraction,
235
+ schemaAvailableAsCdm: () => schemaAvailableAsCdm,
236
+ searchEntity: () => searchEntity,
237
+ sendBulkSetToCounterpartiesInitial: () => sendBulkSetToCounterpartiesInitial,
238
+ sendChaserEmail: () => sendChaserEmail,
239
+ sendDocumentApprovalReminder: () => sendDocumentApprovalReminder,
240
+ sendElectionApprovalReminder: () => sendElectionApprovalReminder,
241
+ sendGroupToCounterparty: () => sendGroupToCounterparty,
242
+ sendToCounterparty: () => sendToCounterparty,
243
+ sendToCounterpartyInitial: () => sendToCounterpartyInitial,
244
+ setAuxiliaryDocument: () => setAuxiliaryDocument,
245
+ setBulkSetAttachments: () => setBulkSetAttachments,
246
+ setCounterparties: () => setCounterparties,
247
+ setElectionApproval: () => setElectionApproval,
248
+ setExecutionAttachment: () => setExecutionAttachment,
249
+ setExecutionAttachments: () => setExecutionAttachments,
250
+ setExternalAttachment: () => setExternalAttachment,
251
+ setExternalAttachments: () => setExternalAttachments,
252
+ setFinalApproval: () => setFinalApproval,
253
+ setGeneralCoverNote: () => setGeneralCoverNote,
254
+ setMultipleNestedAnswers: () => setMultipleNestedAnswers,
255
+ setNestedAnswers: () => setNestedAnswers,
256
+ setOfflineNegotiatedDocument: () => setOfflineNegotiatedDocument,
257
+ setOwnerEntity: () => setOwnerEntity,
258
+ setPreset: () => setPreset,
259
+ setReceiverEntity: () => setReceiverEntity,
260
+ setSignedExecutedVersion: () => setSignedExecutedVersion,
261
+ setSignedSignaturePageForParty: () => setSignedSignaturePageForParty,
262
+ suggestGroupName: () => suggestGroupName,
263
+ swapParties: () => swapParties,
264
+ unsubscribe: () => unsubscribe,
265
+ updateAttachDocx: () => updateAttachDocx,
266
+ updateComment: () => updateComment,
267
+ updateCoverNote: () => updateCoverNote,
268
+ updateCustomFields: () => updateCustomFields,
269
+ updateDocumentDraftingNote: () => updateDocumentDraftingNote,
270
+ updateDocumentElectionDraftingNote: () => updateDocumentElectionDraftingNote,
271
+ updateDraftingNotes: () => updateDraftingNotes,
272
+ updateExtractionFeedback: () => updateExtractionFeedback,
273
+ updateGroupMembers: () => updateGroupMembers,
274
+ updateGroupName: () => updateGroupName,
275
+ updateMetadata: () => updateMetadata,
276
+ updateNegotiationsToMatch: () => updateNegotiationsToMatch,
277
+ updateSelectedElections: () => updateSelectedElections,
278
+ updateSubAccount: () => updateSubAccount,
279
+ updateUserAnswers: () => updateUserAnswers,
280
+ upgradePresetSchema: () => upgradePresetSchema,
281
+ upgradeSchema: () => upgradeSchema,
282
+ usersWithNegotiationAccess: () => usersWithNegotiationAccess,
283
+ validateDraftReceiverEmails: () => validateDraftReceiverEmails,
284
+ validateEntities: () => validateEntities,
285
+ version: () => version,
286
+ voidESignEnvelopeForNegotiation: () => voidESignEnvelopeForNegotiation
287
+ });
288
+ module.exports = __toCommonJS(index_exports);
289
+
290
+ // client/core/ApiError.ts
291
+ var ApiError = class extends Error {
292
+ url;
293
+ status;
294
+ statusText;
295
+ body;
296
+ request;
297
+ constructor(request2, response, message) {
298
+ super(message);
299
+ this.name = "ApiError";
300
+ this.url = response.url;
301
+ this.status = response.status;
302
+ this.statusText = response.statusText;
303
+ this.body = response.body;
304
+ this.request = request2;
305
+ }
306
+ };
307
+
308
+ // client/core/CancelablePromise.ts
309
+ var CancelError = class extends Error {
310
+ constructor(message) {
311
+ super(message);
312
+ this.name = "CancelError";
313
+ }
314
+ get isCancelled() {
315
+ return true;
316
+ }
317
+ };
318
+ var CancelablePromise = class {
319
+ _isResolved;
320
+ _isRejected;
321
+ _isCancelled;
322
+ cancelHandlers;
323
+ promise;
324
+ _resolve;
325
+ _reject;
326
+ constructor(executor) {
327
+ this._isResolved = false;
328
+ this._isRejected = false;
329
+ this._isCancelled = false;
330
+ this.cancelHandlers = [];
331
+ this.promise = new Promise((resolve2, reject) => {
332
+ this._resolve = resolve2;
333
+ this._reject = reject;
334
+ const onResolve = (value) => {
335
+ if (this._isResolved || this._isRejected || this._isCancelled) {
336
+ return;
337
+ }
338
+ this._isResolved = true;
339
+ if (this._resolve) this._resolve(value);
340
+ };
341
+ const onReject = (reason) => {
342
+ if (this._isResolved || this._isRejected || this._isCancelled) {
343
+ return;
344
+ }
345
+ this._isRejected = true;
346
+ if (this._reject) this._reject(reason);
347
+ };
348
+ const onCancel = (cancelHandler) => {
349
+ if (this._isResolved || this._isRejected || this._isCancelled) {
350
+ return;
351
+ }
352
+ this.cancelHandlers.push(cancelHandler);
353
+ };
354
+ Object.defineProperty(onCancel, "isResolved", {
355
+ get: () => this._isResolved
356
+ });
357
+ Object.defineProperty(onCancel, "isRejected", {
358
+ get: () => this._isRejected
359
+ });
360
+ Object.defineProperty(onCancel, "isCancelled", {
361
+ get: () => this._isCancelled
362
+ });
363
+ return executor(onResolve, onReject, onCancel);
364
+ });
365
+ }
366
+ get [Symbol.toStringTag]() {
367
+ return "Cancellable Promise";
368
+ }
369
+ then(onFulfilled, onRejected) {
370
+ return this.promise.then(onFulfilled, onRejected);
371
+ }
372
+ catch(onRejected) {
373
+ return this.promise.catch(onRejected);
374
+ }
375
+ finally(onFinally) {
376
+ return this.promise.finally(onFinally);
377
+ }
378
+ cancel() {
379
+ if (this._isResolved || this._isRejected || this._isCancelled) {
380
+ return;
381
+ }
382
+ this._isCancelled = true;
383
+ if (this.cancelHandlers.length) {
384
+ try {
385
+ for (const cancelHandler of this.cancelHandlers) {
386
+ cancelHandler();
387
+ }
388
+ } catch (error) {
389
+ console.warn("Cancellation threw an error", error);
390
+ return;
391
+ }
392
+ }
393
+ this.cancelHandlers.length = 0;
394
+ if (this._reject) this._reject(new CancelError("Request aborted"));
395
+ }
396
+ get isCancelled() {
397
+ return this._isCancelled;
398
+ }
399
+ };
400
+
401
+ // client/core/OpenAPI.ts
402
+ var Interceptors = class {
403
+ _fns;
404
+ constructor() {
405
+ this._fns = [];
406
+ }
407
+ eject(fn) {
408
+ const index = this._fns.indexOf(fn);
409
+ if (index !== -1) {
410
+ this._fns = [...this._fns.slice(0, index), ...this._fns.slice(index + 1)];
411
+ }
412
+ }
413
+ use(fn) {
414
+ this._fns = [...this._fns, fn];
415
+ }
416
+ };
417
+ var OpenAPI = {
418
+ BASE: "",
419
+ CREDENTIALS: "include",
420
+ ENCODE_PATH: void 0,
421
+ HEADERS: void 0,
422
+ PASSWORD: void 0,
423
+ TOKEN: void 0,
424
+ USERNAME: void 0,
425
+ VERSION: "1.1",
426
+ WITH_CREDENTIALS: false,
427
+ interceptors: {
428
+ request: new Interceptors(),
429
+ response: new Interceptors()
430
+ }
431
+ };
432
+
433
+ // client/core/request.ts
434
+ var isString = (value) => {
435
+ return typeof value === "string";
436
+ };
437
+ var isStringWithValue = (value) => {
438
+ return isString(value) && value !== "";
439
+ };
440
+ var isBlob = (value) => {
441
+ return value instanceof Blob;
442
+ };
443
+ var isFormData = (value) => {
444
+ return value instanceof FormData;
445
+ };
446
+ var base64 = (str) => {
447
+ try {
448
+ return btoa(str);
449
+ } catch (err) {
450
+ return Buffer.from(str).toString("base64");
451
+ }
452
+ };
453
+ var getQueryString = (params) => {
454
+ const qs = [];
455
+ const append = (key, value) => {
456
+ qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);
457
+ };
458
+ const encodePair = (key, value) => {
459
+ if (value === void 0 || value === null) {
460
+ return;
461
+ }
462
+ if (value instanceof Date) {
463
+ append(key, value.toISOString());
464
+ } else if (Array.isArray(value)) {
465
+ value.forEach((v) => encodePair(key, v));
466
+ } else if (typeof value === "object") {
467
+ Object.entries(value).forEach(([k, v]) => encodePair(`${key}[${k}]`, v));
468
+ } else {
469
+ append(key, value);
470
+ }
471
+ };
472
+ Object.entries(params).forEach(([key, value]) => encodePair(key, value));
473
+ return qs.length ? `?${qs.join("&")}` : "";
474
+ };
475
+ var getUrl = (config, options) => {
476
+ const encoder = config.ENCODE_PATH || encodeURI;
477
+ const path = options.url.replace("{api-version}", config.VERSION).replace(/{(.*?)}/g, (substring, group) => {
478
+ if (options.path?.hasOwnProperty(group)) {
479
+ return encoder(String(options.path[group]));
480
+ }
481
+ return substring;
482
+ });
483
+ const url = config.BASE + path;
484
+ return options.query ? url + getQueryString(options.query) : url;
485
+ };
486
+ var getFormData = (options) => {
487
+ if (options.formData) {
488
+ const formData = new FormData();
489
+ const process = (key, value) => {
490
+ if (isString(value) || isBlob(value)) {
491
+ formData.append(key, value);
492
+ } else {
493
+ formData.append(key, JSON.stringify(value));
494
+ }
495
+ };
496
+ Object.entries(options.formData).filter(([, value]) => value !== void 0 && value !== null).forEach(([key, value]) => {
497
+ if (Array.isArray(value)) {
498
+ value.forEach((v) => process(key, v));
499
+ } else {
500
+ process(key, value);
501
+ }
502
+ });
503
+ return formData;
504
+ }
505
+ return void 0;
506
+ };
507
+ var resolve = async (options, resolver) => {
508
+ if (typeof resolver === "function") {
509
+ return resolver(options);
510
+ }
511
+ return resolver;
512
+ };
513
+ var getHeaders = async (config, options) => {
514
+ const [token, username, password, additionalHeaders] = await Promise.all([
515
+ // @ts-ignore
516
+ resolve(options, config.TOKEN),
517
+ // @ts-ignore
518
+ resolve(options, config.USERNAME),
519
+ // @ts-ignore
520
+ resolve(options, config.PASSWORD),
521
+ // @ts-ignore
522
+ resolve(options, config.HEADERS)
523
+ ]);
524
+ const headers = Object.entries({
525
+ Accept: "application/json",
526
+ ...additionalHeaders,
527
+ ...options.headers
528
+ }).filter(([, value]) => value !== void 0 && value !== null).reduce((headers2, [key, value]) => ({
529
+ ...headers2,
530
+ [key]: String(value)
531
+ }), {});
532
+ if (isStringWithValue(token)) {
533
+ headers["Authorization"] = `Bearer ${token}`;
534
+ }
535
+ if (isStringWithValue(username) && isStringWithValue(password)) {
536
+ const credentials = base64(`${username}:${password}`);
537
+ headers["Authorization"] = `Basic ${credentials}`;
538
+ }
539
+ if (options.body !== void 0) {
540
+ if (options.mediaType) {
541
+ headers["Content-Type"] = options.mediaType;
542
+ } else if (isBlob(options.body)) {
543
+ headers["Content-Type"] = options.body.type || "application/octet-stream";
544
+ } else if (isString(options.body)) {
545
+ headers["Content-Type"] = "text/plain";
546
+ } else if (!isFormData(options.body)) {
547
+ headers["Content-Type"] = "application/json";
548
+ }
549
+ }
550
+ return new Headers(headers);
551
+ };
552
+ var getRequestBody = (options) => {
553
+ if (options.body !== void 0) {
554
+ if (options.mediaType?.includes("application/json") || options.mediaType?.includes("+json")) {
555
+ return JSON.stringify(options.body);
556
+ } else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) {
557
+ return options.body;
558
+ } else {
559
+ return JSON.stringify(options.body);
560
+ }
561
+ }
562
+ return void 0;
563
+ };
564
+ var sendRequest = async (config, options, url, body, formData, headers, onCancel) => {
565
+ const controller = new AbortController();
566
+ let request2 = {
567
+ headers,
568
+ body: body ?? formData,
569
+ method: options.method,
570
+ signal: controller.signal
571
+ };
572
+ if (config.WITH_CREDENTIALS) {
573
+ request2.credentials = config.CREDENTIALS;
574
+ }
575
+ for (const fn of config.interceptors.request._fns) {
576
+ request2 = await fn(request2);
577
+ }
578
+ onCancel(() => controller.abort());
579
+ return await fetch(url, request2);
580
+ };
581
+ var getResponseHeader = (response, responseHeader) => {
582
+ if (responseHeader) {
583
+ const content = response.headers.get(responseHeader);
584
+ if (isString(content)) {
585
+ return content;
586
+ }
587
+ }
588
+ return void 0;
589
+ };
590
+ var getResponseBody = async (response) => {
591
+ if (response.status !== 204) {
592
+ try {
593
+ const contentType = response.headers.get("Content-Type");
594
+ if (contentType) {
595
+ const binaryTypes = ["application/octet-stream", "application/pdf", "application/zip", "audio/", "image/", "video/"];
596
+ if (contentType.includes("application/json") || contentType.includes("+json")) {
597
+ return await response.json();
598
+ } else if (binaryTypes.some((type) => contentType.includes(type))) {
599
+ return await response.blob();
600
+ } else if (contentType.includes("multipart/form-data")) {
601
+ return await response.formData();
602
+ } else if (contentType.includes("text/")) {
603
+ return await response.text();
604
+ }
605
+ }
606
+ } catch (error) {
607
+ console.error(error);
608
+ }
609
+ }
610
+ return void 0;
611
+ };
612
+ var catchErrorCodes = (options, result) => {
613
+ const errors = {
614
+ 400: "Bad Request",
615
+ 401: "Unauthorized",
616
+ 402: "Payment Required",
617
+ 403: "Forbidden",
618
+ 404: "Not Found",
619
+ 405: "Method Not Allowed",
620
+ 406: "Not Acceptable",
621
+ 407: "Proxy Authentication Required",
622
+ 408: "Request Timeout",
623
+ 409: "Conflict",
624
+ 410: "Gone",
625
+ 411: "Length Required",
626
+ 412: "Precondition Failed",
627
+ 413: "Payload Too Large",
628
+ 414: "URI Too Long",
629
+ 415: "Unsupported Media Type",
630
+ 416: "Range Not Satisfiable",
631
+ 417: "Expectation Failed",
632
+ 418: "Im a teapot",
633
+ 421: "Misdirected Request",
634
+ 422: "Unprocessable Content",
635
+ 423: "Locked",
636
+ 424: "Failed Dependency",
637
+ 425: "Too Early",
638
+ 426: "Upgrade Required",
639
+ 428: "Precondition Required",
640
+ 429: "Too Many Requests",
641
+ 431: "Request Header Fields Too Large",
642
+ 451: "Unavailable For Legal Reasons",
643
+ 500: "Internal Server Error",
644
+ 501: "Not Implemented",
645
+ 502: "Bad Gateway",
646
+ 503: "Service Unavailable",
647
+ 504: "Gateway Timeout",
648
+ 505: "HTTP Version Not Supported",
649
+ 506: "Variant Also Negotiates",
650
+ 507: "Insufficient Storage",
651
+ 508: "Loop Detected",
652
+ 510: "Not Extended",
653
+ 511: "Network Authentication Required",
654
+ ...options.errors
655
+ };
656
+ const error = errors[result.status];
657
+ if (error) {
658
+ throw new ApiError(options, result, error);
659
+ }
660
+ if (!result.ok) {
661
+ const errorStatus = result.status ?? "unknown";
662
+ const errorStatusText = result.statusText ?? "unknown";
663
+ const errorBody = (() => {
664
+ try {
665
+ return JSON.stringify(result.body, null, 2);
666
+ } catch (e) {
667
+ return void 0;
668
+ }
669
+ })();
670
+ throw new ApiError(
671
+ options,
672
+ result,
673
+ `Generic Error: status: ${errorStatus}; status text: ${errorStatusText}; body: ${errorBody}`
674
+ );
675
+ }
676
+ };
677
+ var request = (config, options) => {
678
+ return new CancelablePromise(async (resolve2, reject, onCancel) => {
679
+ try {
680
+ const url = getUrl(config, options);
681
+ const formData = getFormData(options);
682
+ const body = getRequestBody(options);
683
+ const headers = await getHeaders(config, options);
684
+ if (!onCancel.isCancelled) {
685
+ let response = await sendRequest(config, options, url, body, formData, headers, onCancel);
686
+ for (const fn of config.interceptors.response._fns) {
687
+ response = await fn(response);
688
+ }
689
+ const responseBody = await getResponseBody(response);
690
+ const responseHeader = getResponseHeader(response, options.responseHeader);
691
+ let transformedBody = responseBody;
692
+ if (options.responseTransformer && response.ok) {
693
+ transformedBody = await options.responseTransformer(responseBody);
694
+ }
695
+ const result = {
696
+ url,
697
+ ok: response.ok,
698
+ status: response.status,
699
+ statusText: response.statusText,
700
+ body: responseHeader ?? transformedBody
701
+ };
702
+ catchErrorCodes(options, result);
703
+ resolve2(result.body);
704
+ }
705
+ } catch (error) {
706
+ reject(error);
707
+ }
708
+ });
709
+ };
710
+
711
+ // client/sdk.gen.ts
712
+ var authPing = () => {
713
+ return request(OpenAPI, {
714
+ method: "GET",
715
+ url: "/api/v1/authPing",
716
+ errors: {
717
+ 401: "Your access token is not valid, or needs refreshing"
718
+ }
719
+ });
720
+ };
721
+ var version = () => {
722
+ return request(OpenAPI, {
723
+ method: "GET",
724
+ url: "/api/v1/version"
725
+ });
726
+ };
727
+ var accountSummary = () => {
728
+ return request(OpenAPI, {
729
+ method: "GET",
730
+ url: "/api/v1/account",
731
+ errors: {
732
+ 400: "Account does not exist"
733
+ }
734
+ });
735
+ };
736
+ var getSsoConfig = () => {
737
+ return request(OpenAPI, {
738
+ method: "GET",
739
+ url: "/api/v1/account/sso"
740
+ });
741
+ };
742
+ var getSecurityContext = () => {
743
+ return request(OpenAPI, {
744
+ method: "GET",
745
+ url: "/api/v1/user/context"
746
+ });
747
+ };
748
+ var sendChaserEmail = (data) => {
749
+ return request(OpenAPI, {
750
+ method: "POST",
751
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/sendChaserEmail",
752
+ path: {
753
+ subAccountId: data.subAccountId,
754
+ negotiationId: data.negotiationId
755
+ },
756
+ errors: {
757
+ 400: "Invalid negotiation state or trying to send the email too soon",
758
+ 404: "Negotiation or Sub-Account not found"
759
+ }
760
+ });
761
+ };
762
+ var unsubscribe = (data) => {
763
+ return request(OpenAPI, {
764
+ method: "POST",
765
+ url: "/api/v1/negotiations/{negotiationId}/muteNotifications",
766
+ path: {
767
+ negotiationId: data.negotiationId
768
+ },
769
+ body: data.requestBody,
770
+ mediaType: "application/json",
771
+ errors: {
772
+ 400: "The hash provided cannot be verified",
773
+ 404: "Negotiation not found"
774
+ }
775
+ });
776
+ };
777
+ var getProfile = () => {
778
+ return request(OpenAPI, {
779
+ method: "GET",
780
+ url: "/api/v1/user/profile"
781
+ });
782
+ };
783
+ var getSettings = () => {
784
+ return request(OpenAPI, {
785
+ method: "GET",
786
+ url: "/api/v1/account/settings",
787
+ errors: {
788
+ 404: "Account not found"
789
+ }
790
+ });
791
+ };
792
+ var deleteEntity = (data) => {
793
+ return request(OpenAPI, {
794
+ method: "DELETE",
795
+ url: "/api/v1/account/entity/{entityId}",
796
+ path: {
797
+ entityId: data.entityId
798
+ },
799
+ errors: {
800
+ 409: "Entity cannot be deleted as it is in use"
801
+ }
802
+ });
803
+ };
804
+ var getUsers = (data) => {
805
+ return request(OpenAPI, {
806
+ method: "GET",
807
+ url: "/api/v1/subaccount/{subAccountId}/users",
808
+ path: {
809
+ subAccountId: data.subAccountId
810
+ },
811
+ query: {
812
+ includeSuperManagers: data.includeSuperManagers,
813
+ includeAdvisors: data.includeAdvisors
814
+ },
815
+ errors: {
816
+ 404: "Sub-account not found"
817
+ }
818
+ });
819
+ };
820
+ var getUsersForPicker = (data) => {
821
+ return request(OpenAPI, {
822
+ method: "GET",
823
+ url: "/api/v1/subaccount/{subAccountId}/usersForPicker",
824
+ path: {
825
+ subAccountId: data.subAccountId
826
+ },
827
+ query: {
828
+ includeSuperManagers: data.includeSuperManagers,
829
+ includeAdvisors: data.includeAdvisors
830
+ },
831
+ errors: {
832
+ 404: "Sub-account not found"
833
+ }
834
+ });
835
+ };
836
+ var listEntities = (data = {}) => {
837
+ return request(OpenAPI, {
838
+ method: "GET",
839
+ url: "/api/v1/account/entities",
840
+ query: {
841
+ query: data.query
842
+ }
843
+ });
844
+ };
845
+ var getCompanyByEntityId = (data) => {
846
+ return request(OpenAPI, {
847
+ method: "GET",
848
+ url: "/api/v1/entity/{entityId}",
849
+ path: {
850
+ entityId: data.entityId
851
+ },
852
+ errors: {
853
+ 404: "Company not found"
854
+ }
855
+ });
856
+ };
857
+ var searchEntity = (data) => {
858
+ return request(OpenAPI, {
859
+ method: "GET",
860
+ url: "/api/v1/entity",
861
+ query: {
862
+ search: data.search
863
+ }
864
+ });
865
+ };
866
+ var validateEntities = (data) => {
867
+ return request(OpenAPI, {
868
+ method: "POST",
869
+ url: "/api/v1/entity/validate",
870
+ body: data.requestBody,
871
+ mediaType: "application/json"
872
+ });
873
+ };
874
+ var createPreset = (data) => {
875
+ return request(OpenAPI, {
876
+ method: "POST",
877
+ url: "/api/v1/subAccounts/{subAccountId}/presets",
878
+ path: {
879
+ subAccountId: data.subAccountId
880
+ },
881
+ body: data.requestBody,
882
+ mediaType: "application/json",
883
+ errors: {
884
+ 404: "Schema not found"
885
+ }
886
+ });
887
+ };
888
+ var listAllPresetsForSubAccountV1 = (data) => {
889
+ return request(OpenAPI, {
890
+ method: "GET",
891
+ url: "/api/v1/subAccounts/{subAccountId}/presets",
892
+ path: {
893
+ subAccountId: data.subAccountId
894
+ },
895
+ query: {
896
+ pageIndex: data.pageIndex,
897
+ pageSize: data.pageSize,
898
+ orderBy: data.orderBy,
899
+ orderDirection: data.orderDirection,
900
+ filterApproved: data.filterApproved,
901
+ advisorRelationshipId: data.advisorRelationshipId,
902
+ accessibleToAdvisor: data.accessibleToAdvisor,
903
+ filterStage2: data.filterStage2,
904
+ query: data.query
905
+ }
906
+ });
907
+ };
908
+ var deletePreset = (data) => {
909
+ return request(OpenAPI, {
910
+ method: "DELETE",
911
+ url: "/api/v1/presets/{presetId}",
912
+ path: {
913
+ presetId: data.presetId
914
+ }
915
+ });
916
+ };
917
+ var getPreset = (data) => {
918
+ return request(OpenAPI, {
919
+ method: "GET",
920
+ url: "/api/v1/presets/{presetId}",
921
+ path: {
922
+ presetId: data.presetId
923
+ }
924
+ });
925
+ };
926
+ var presetEditAnswers = (data) => {
927
+ return request(OpenAPI, {
928
+ method: "PUT",
929
+ url: "/api/v1/presets/{presetId}/answers",
930
+ path: {
931
+ presetId: data.presetId
932
+ },
933
+ body: data.requestBody,
934
+ mediaType: "application/json",
935
+ errors: {
936
+ 404: "Preset or election not found"
937
+ }
938
+ });
939
+ };
940
+ var presetGetMultipleNestedAnswers = (data) => {
941
+ return request(OpenAPI, {
942
+ method: "POST",
943
+ url: "/api/v1/presets/{presetId}/answers/nested/bulk",
944
+ path: {
945
+ presetId: data.presetId
946
+ },
947
+ body: data.requestBody,
948
+ mediaType: "application/json",
949
+ errors: {
950
+ 400: "Too many nested answers IDs passed",
951
+ 404: "Preset not found"
952
+ }
953
+ });
954
+ };
955
+ var presetSetMultipleNestedAnswers = (data) => {
956
+ return request(OpenAPI, {
957
+ method: "PUT",
958
+ url: "/api/v1/presets/{presetId}/answers/nested/bulk",
959
+ path: {
960
+ presetId: data.presetId
961
+ },
962
+ body: data.requestBody,
963
+ mediaType: "application/json",
964
+ errors: {
965
+ 400: "Too many nested answers IDs passed",
966
+ 404: "Preset not found"
967
+ }
968
+ });
969
+ };
970
+ var presetGetNestedAnswers = (data) => {
971
+ return request(OpenAPI, {
972
+ method: "GET",
973
+ url: "/api/v1/presets/{presetId}/answers/nested/{nestedAnswersId}",
974
+ path: {
975
+ presetId: data.presetId,
976
+ nestedAnswersId: data.nestedAnswersId
977
+ },
978
+ errors: {
979
+ 404: "Preset not found"
980
+ }
981
+ });
982
+ };
983
+ var presetSetNestedAnswers = (data) => {
984
+ return request(OpenAPI, {
985
+ method: "PUT",
986
+ url: "/api/v1/presets/{presetId}/answers/nested/{nestedAnswersId}",
987
+ path: {
988
+ presetId: data.presetId,
989
+ nestedAnswersId: data.nestedAnswersId
990
+ },
991
+ body: data.requestBody,
992
+ mediaType: "application/json",
993
+ errors: {
994
+ 404: "Preset or election not found"
995
+ }
996
+ });
997
+ };
998
+ var presetSwapParties = (data) => {
999
+ return request(OpenAPI, {
1000
+ method: "PUT",
1001
+ url: "/api/v1/presets/{presetId}/swapParties",
1002
+ path: {
1003
+ presetId: data.presetId
1004
+ },
1005
+ errors: {
1006
+ 404: "Preset not found"
1007
+ }
1008
+ });
1009
+ };
1010
+ var upgradePresetSchema = (data) => {
1011
+ return request(OpenAPI, {
1012
+ method: "PUT",
1013
+ url: "/api/v1/presets/{presetId}/schema/upgrade",
1014
+ path: {
1015
+ presetId: data.presetId
1016
+ },
1017
+ errors: {
1018
+ 404: "Preset not found"
1019
+ }
1020
+ });
1021
+ };
1022
+ var updateMetadata = (data) => {
1023
+ return request(OpenAPI, {
1024
+ method: "PUT",
1025
+ url: "/api/v1/presets/{presetId}/metadata",
1026
+ path: {
1027
+ presetId: data.presetId
1028
+ },
1029
+ body: data.requestBody,
1030
+ mediaType: "application/json",
1031
+ errors: {
1032
+ 404: "Preset not found"
1033
+ }
1034
+ });
1035
+ };
1036
+ var downloadPreset = (data) => {
1037
+ return request(OpenAPI, {
1038
+ method: "GET",
1039
+ url: "/api/v1/presets/{presetId}/extension/{extension}",
1040
+ path: {
1041
+ presetId: data.presetId,
1042
+ extension: data.extension
1043
+ }
1044
+ });
1045
+ };
1046
+ var listAllPresetsForSubAccountV2 = (data) => {
1047
+ return request(OpenAPI, {
1048
+ method: "GET",
1049
+ url: "/api/v2/subAccounts/{subAccountId}/presets",
1050
+ path: {
1051
+ subAccountId: data.subAccountId
1052
+ },
1053
+ query: {
1054
+ pageIndex: data.pageIndex,
1055
+ pageSize: data.pageSize,
1056
+ orderBy: data.orderBy,
1057
+ orderDirection: data.orderDirection,
1058
+ filterApproved: data.filterApproved,
1059
+ advisorRelationshipId: data.advisorRelationshipId,
1060
+ accessibleToAdvisor: data.accessibleToAdvisor,
1061
+ filterStage2: data.filterStage2,
1062
+ query: data.query
1063
+ }
1064
+ });
1065
+ };
1066
+ var listPresets = (data) => {
1067
+ return request(OpenAPI, {
1068
+ method: "GET",
1069
+ url: "/api/v1/subAccounts/{subAccountId}/documents/{documentId}/presets",
1070
+ path: {
1071
+ subAccountId: data.subAccountId,
1072
+ documentId: data.documentId
1073
+ },
1074
+ query: {
1075
+ pageIndex: data.pageIndex,
1076
+ pageSize: data.pageSize,
1077
+ orderBy: data.orderBy,
1078
+ orderDirection: data.orderDirection,
1079
+ filterApproved: data.filterApproved,
1080
+ filterStage2: data.filterStage2
1081
+ }
1082
+ });
1083
+ };
1084
+ var presetSendForApproval = (data) => {
1085
+ return request(OpenAPI, {
1086
+ method: "PUT",
1087
+ url: "/api/v1/presets/{presetId}/approvals/sendForApproval",
1088
+ path: {
1089
+ presetId: data.presetId
1090
+ },
1091
+ errors: {
1092
+ 404: "Preset not found"
1093
+ }
1094
+ });
1095
+ };
1096
+ var clonePreset = (data) => {
1097
+ return request(OpenAPI, {
1098
+ method: "POST",
1099
+ url: "/api/v1/presets/{presetId}/clone",
1100
+ path: {
1101
+ presetId: data.presetId
1102
+ },
1103
+ query: {
1104
+ withApprovers: data.withApprovers
1105
+ },
1106
+ errors: {
1107
+ 404: "Preset not found"
1108
+ }
1109
+ });
1110
+ };
1111
+ var presetSetElectionApproval = (data) => {
1112
+ return request(OpenAPI, {
1113
+ method: "PUT",
1114
+ url: "/api/v1/presets/{presetId}/approvals/elections/{electionId}",
1115
+ path: {
1116
+ presetId: data.presetId,
1117
+ electionId: data.electionId
1118
+ },
1119
+ body: data.requestBody,
1120
+ mediaType: "application/json",
1121
+ errors: {
1122
+ 403: "Forbidden action in this state",
1123
+ 404: "Preset not found"
1124
+ }
1125
+ });
1126
+ };
1127
+ var presetSetFinalApproval = (data) => {
1128
+ return request(OpenAPI, {
1129
+ method: "PUT",
1130
+ url: "/api/v1/presets/{presetId}/approvals/document",
1131
+ path: {
1132
+ presetId: data.presetId
1133
+ },
1134
+ body: data.requestBody,
1135
+ mediaType: "application/json",
1136
+ errors: {
1137
+ 404: "Preset not found"
1138
+ }
1139
+ });
1140
+ };
1141
+ var createPresetAuditTrailJson = (data) => {
1142
+ return request(OpenAPI, {
1143
+ method: "GET",
1144
+ url: "/api/v1/presets/{presetId}/audit_trail/json",
1145
+ path: {
1146
+ presetId: data.presetId
1147
+ }
1148
+ });
1149
+ };
1150
+ var createPresetAuditTrailXlsx = (data) => {
1151
+ return request(OpenAPI, {
1152
+ method: "GET",
1153
+ url: "/api/v1/presets/{presetId}/audit_trail/xlsx",
1154
+ path: {
1155
+ presetId: data.presetId
1156
+ },
1157
+ query: {
1158
+ timeZone: data.timeZone
1159
+ }
1160
+ });
1161
+ };
1162
+ var listNegotiations = (data) => {
1163
+ return request(OpenAPI, {
1164
+ method: "GET",
1165
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations",
1166
+ path: {
1167
+ subAccountId: data.subAccountId
1168
+ },
1169
+ query: {
1170
+ state: data.state,
1171
+ status: data.status,
1172
+ workflowType: data.workflowType,
1173
+ userId: data.userId,
1174
+ turn: data.turn,
1175
+ staleFrom: data.staleFrom,
1176
+ staleTo: data.staleTo,
1177
+ groupId: data.groupId,
1178
+ bulkSetIds: data.bulkSetIds,
1179
+ jobStatus: data.jobStatus,
1180
+ filters: data.filters,
1181
+ query: data.query,
1182
+ pageIndex: data.pageIndex,
1183
+ pageSize: data.pageSize,
1184
+ orderBy: data.orderBy,
1185
+ orderDirection: data.orderDirection,
1186
+ documentPublisherId: data.documentPublisherId,
1187
+ excludedUiStates: data.excludedUiStates,
1188
+ documentType: data.documentType,
1189
+ myEntityName: data.myEntityName,
1190
+ counterpartyEntityName: data.counterpartyEntityName,
1191
+ inBulkSet: data.inBulkSet,
1192
+ advisorRelationshipId: data.advisorRelationshipId,
1193
+ accessibleToAdvisor: data.accessibleToAdvisor,
1194
+ customReferenceId: data.customReferenceId,
1195
+ displayReferenceId: data.displayReferenceId,
1196
+ isForkedOrFork: data.isForkedOrFork,
1197
+ approverName: data.approverName,
1198
+ partyA: data.partyA,
1199
+ partyB: data.partyB,
1200
+ partyC: data.partyC,
1201
+ partyAny: data.partyAny,
1202
+ isTriparty: data.isTriparty,
1203
+ isOffline: data.isOffline,
1204
+ forkedFromOrTo: data.forkedFromOrTo
1205
+ }
1206
+ });
1207
+ };
1208
+ var createNegotiation = (data) => {
1209
+ return request(OpenAPI, {
1210
+ method: "POST",
1211
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations",
1212
+ path: {
1213
+ subAccountId: data.subAccountId
1214
+ },
1215
+ body: data.requestBody,
1216
+ mediaType: "application/json",
1217
+ errors: {
1218
+ 404: "Negotiation or election not found"
1219
+ }
1220
+ });
1221
+ };
1222
+ var setFinalApproval = (data) => {
1223
+ return request(OpenAPI, {
1224
+ method: "PUT",
1225
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/document",
1226
+ path: {
1227
+ subAccountId: data.subAccountId,
1228
+ negotiationId: data.negotiationId
1229
+ },
1230
+ body: data.requestBody,
1231
+ mediaType: "application/json"
1232
+ });
1233
+ };
1234
+ var downloadDashboardReportAsExcel = (data) => {
1235
+ return request(OpenAPI, {
1236
+ method: "GET",
1237
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/xlsx",
1238
+ path: {
1239
+ subAccountId: data.subAccountId
1240
+ },
1241
+ query: {
1242
+ documentId: data.documentId,
1243
+ timeZone: data.timeZone,
1244
+ state: data.state,
1245
+ status: data.status,
1246
+ workflowType: data.workflowType,
1247
+ userId: data.userId,
1248
+ turn: data.turn,
1249
+ staleFrom: data.staleFrom,
1250
+ staleTo: data.staleTo,
1251
+ groupId: data.groupId,
1252
+ bulkSetIds: data.bulkSetIds,
1253
+ jobStatus: data.jobStatus,
1254
+ filters: data.filters,
1255
+ query: data.query,
1256
+ pageIndex: data.pageIndex,
1257
+ pageSize: data.pageSize,
1258
+ orderBy: data.orderBy,
1259
+ orderDirection: data.orderDirection,
1260
+ documentPublisherId: data.documentPublisherId,
1261
+ excludedUiStates: data.excludedUiStates,
1262
+ documentType: data.documentType,
1263
+ myEntityName: data.myEntityName,
1264
+ counterpartyEntityName: data.counterpartyEntityName,
1265
+ inBulkSet: data.inBulkSet,
1266
+ advisorRelationshipId: data.advisorRelationshipId,
1267
+ accessibleToAdvisor: data.accessibleToAdvisor,
1268
+ customReferenceId: data.customReferenceId,
1269
+ displayReferenceId: data.displayReferenceId,
1270
+ isForkedOrFork: data.isForkedOrFork,
1271
+ approverName: data.approverName,
1272
+ partyA: data.partyA,
1273
+ partyB: data.partyB,
1274
+ partyC: data.partyC,
1275
+ partyAny: data.partyAny,
1276
+ isTriparty: data.isTriparty,
1277
+ isOffline: data.isOffline,
1278
+ requestingFromContext: data.requestingFromContext,
1279
+ forkedFromOrTo: data.forkedFromOrTo
1280
+ }
1281
+ });
1282
+ };
1283
+ var upgradeSchema = (data) => {
1284
+ return request(OpenAPI, {
1285
+ method: "PUT",
1286
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/upgrade",
1287
+ path: {
1288
+ subAccountId: data.subAccountId,
1289
+ negotiationId: data.negotiationId
1290
+ }
1291
+ });
1292
+ };
1293
+ var breakingChanges = (data) => {
1294
+ return request(OpenAPI, {
1295
+ method: "GET",
1296
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/breaking_changes",
1297
+ path: {
1298
+ subAccountId: data.subAccountId,
1299
+ negotiationId: data.negotiationId
1300
+ }
1301
+ });
1302
+ };
1303
+ var getAccessibleNegotiation = (data) => {
1304
+ return request(OpenAPI, {
1305
+ method: "GET",
1306
+ url: "/api/v1/negotiations/{negotiationId}",
1307
+ path: {
1308
+ negotiationId: data.negotiationId
1309
+ }
1310
+ });
1311
+ };
1312
+ var getNegotiation = (data) => {
1313
+ return request(OpenAPI, {
1314
+ method: "GET",
1315
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}",
1316
+ path: {
1317
+ subAccountId: data.subAccountId,
1318
+ negotiationId: data.negotiationId
1319
+ }
1320
+ });
1321
+ };
1322
+ var getExecutedNegotiationSummary = (data) => {
1323
+ return request(OpenAPI, {
1324
+ method: "GET",
1325
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/metadata",
1326
+ path: {
1327
+ subAccountId: data.subAccountId,
1328
+ negotiationId: data.negotiationId
1329
+ },
1330
+ errors: {
1331
+ 404: "Negotiation not found"
1332
+ }
1333
+ });
1334
+ };
1335
+ var getAsCdm = (data) => {
1336
+ return request(OpenAPI, {
1337
+ method: "GET",
1338
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/cdm",
1339
+ path: {
1340
+ subAccountId: data.subAccountId,
1341
+ negotiationId: data.negotiationId
1342
+ },
1343
+ errors: {
1344
+ 400: "CDM not available for this negotiation",
1345
+ 404: "Negotiation not found"
1346
+ }
1347
+ });
1348
+ };
1349
+ var getDownloadExecutedNegotiationsAsExcel = (data) => {
1350
+ return request(OpenAPI, {
1351
+ method: "GET",
1352
+ url: "/api/v1/subAccounts/{subAccountId}/executed_negotiations/xlsx",
1353
+ path: {
1354
+ subAccountId: data.subAccountId
1355
+ },
1356
+ query: {
1357
+ documentId: data.documentId,
1358
+ timeZone: data.timeZone
1359
+ },
1360
+ errors: {
1361
+ 404: "Negotiation not found"
1362
+ }
1363
+ });
1364
+ };
1365
+ var downloadExecutedNegotiationsAsExcel = (data) => {
1366
+ return request(OpenAPI, {
1367
+ method: "POST",
1368
+ url: "/api/v1/subAccounts/{subAccountId}/executed_negotiations/xlsx",
1369
+ path: {
1370
+ subAccountId: data.subAccountId
1371
+ },
1372
+ body: data.requestBody,
1373
+ mediaType: "application/json",
1374
+ errors: {
1375
+ 404: "Negotiation not found"
1376
+ }
1377
+ });
1378
+ };
1379
+ var getDownloadActiveNegotiationsReportAsExcel = (data) => {
1380
+ return request(OpenAPI, {
1381
+ method: "GET",
1382
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/analytics/xlsx",
1383
+ path: {
1384
+ subAccountId: data.subAccountId
1385
+ },
1386
+ query: {
1387
+ documentId: data.documentId,
1388
+ timeZone: data.timeZone
1389
+ },
1390
+ errors: {
1391
+ 404: "Negotiation not found"
1392
+ }
1393
+ });
1394
+ };
1395
+ var downloadActiveNegotiationsReportAsExcel = (data) => {
1396
+ return request(OpenAPI, {
1397
+ method: "POST",
1398
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/analytics/xlsx",
1399
+ path: {
1400
+ subAccountId: data.subAccountId
1401
+ },
1402
+ body: data.requestBody,
1403
+ mediaType: "application/json",
1404
+ errors: {
1405
+ 404: "Negotiation not found"
1406
+ }
1407
+ });
1408
+ };
1409
+ var downloadNegotiation = (data) => {
1410
+ return request(OpenAPI, {
1411
+ method: "GET",
1412
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/extension/{extension}",
1413
+ path: {
1414
+ subAccountId: data.subAccountId,
1415
+ negotiationId: data.negotiationId,
1416
+ extension: data.extension
1417
+ },
1418
+ query: {
1419
+ includeSignaturePages: data.includeSignaturePages,
1420
+ isLockedDocx: data.isLockedDocx,
1421
+ includeFormFields: data.includeFormFields
1422
+ }
1423
+ });
1424
+ };
1425
+ var downloadPreExecutionCounterpartyNegotiation = (data) => {
1426
+ return request(OpenAPI, {
1427
+ method: "GET",
1428
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/parties/{counterpartyId}/extension/{extension}",
1429
+ path: {
1430
+ subAccountId: data.subAccountId,
1431
+ negotiationId: data.negotiationId,
1432
+ counterpartyId: data.counterpartyId,
1433
+ extension: data.extension
1434
+ }
1435
+ });
1436
+ };
1437
+ var getSignedExecutedVersion = (data) => {
1438
+ return request(OpenAPI, {
1439
+ method: "GET",
1440
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/executed_version",
1441
+ path: {
1442
+ subAccountId: data.subAccountId,
1443
+ negotiationId: data.negotiationId
1444
+ },
1445
+ errors: {
1446
+ 404: "Missing document"
1447
+ }
1448
+ });
1449
+ };
1450
+ var setSignedExecutedVersion = (data) => {
1451
+ return request(OpenAPI, {
1452
+ method: "PUT",
1453
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/executed_version",
1454
+ path: {
1455
+ subAccountId: data.subAccountId,
1456
+ negotiationId: data.negotiationId
1457
+ },
1458
+ body: data.requestBody,
1459
+ mediaType: "application/pdf",
1460
+ errors: {
1461
+ 400: "The negotiation is not at the Review & Sign stage or there is already an executed version uploaded",
1462
+ 403: "The negotiation does not support uploading executed versions",
1463
+ 404: "The negotiation was not found"
1464
+ }
1465
+ });
1466
+ };
1467
+ var deleteSignedExecutedVersion = (data) => {
1468
+ return request(OpenAPI, {
1469
+ method: "DELETE",
1470
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/executed_version",
1471
+ path: {
1472
+ subAccountId: data.subAccountId,
1473
+ negotiationId: data.negotiationId
1474
+ },
1475
+ errors: {
1476
+ 403: "The negotiation does not support uploading executed versions"
1477
+ }
1478
+ });
1479
+ };
1480
+ var checkSignedExecutedVersion = (data) => {
1481
+ return request(OpenAPI, {
1482
+ method: "GET",
1483
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/executed_version/exists",
1484
+ path: {
1485
+ subAccountId: data.subAccountId,
1486
+ negotiationId: data.negotiationId
1487
+ },
1488
+ errors: {
1489
+ 403: "The negotiation has not yet been agreed"
1490
+ }
1491
+ });
1492
+ };
1493
+ var getNegotiationFilesSummary = (data) => {
1494
+ return request(OpenAPI, {
1495
+ method: "GET",
1496
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/negotiationFiles/summary",
1497
+ path: {
1498
+ subAccountId: data.subAccountId,
1499
+ negotiationId: data.negotiationId
1500
+ },
1501
+ errors: {
1502
+ 404: "No negotiation"
1503
+ }
1504
+ });
1505
+ };
1506
+ var createAuditTrailXlsx = (data) => {
1507
+ return request(OpenAPI, {
1508
+ method: "GET",
1509
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/audit_trail/xlsx",
1510
+ path: {
1511
+ subAccountId: data.subAccountId,
1512
+ negotiationId: data.negotiationId
1513
+ },
1514
+ query: {
1515
+ timeZone: data.timeZone
1516
+ }
1517
+ });
1518
+ };
1519
+ var createAuditTrailPdf = (data) => {
1520
+ return request(OpenAPI, {
1521
+ method: "GET",
1522
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/audit_trail/pdf",
1523
+ path: {
1524
+ subAccountId: data.subAccountId,
1525
+ negotiationId: data.negotiationId
1526
+ },
1527
+ query: {
1528
+ timeZone: data.timeZone
1529
+ }
1530
+ });
1531
+ };
1532
+ var createAuditTrailJson = (data) => {
1533
+ return request(OpenAPI, {
1534
+ method: "GET",
1535
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/audit_trail/json",
1536
+ path: {
1537
+ subAccountId: data.subAccountId,
1538
+ negotiationId: data.negotiationId
1539
+ }
1540
+ });
1541
+ };
1542
+ var createSigningPack = (data) => {
1543
+ return request(OpenAPI, {
1544
+ method: "GET",
1545
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/signingPack",
1546
+ path: {
1547
+ subAccountId: data.subAccountId,
1548
+ negotiationId: data.negotiationId
1549
+ }
1550
+ });
1551
+ };
1552
+ var downloadPostExecutionPack = (data) => {
1553
+ return request(OpenAPI, {
1554
+ method: "GET",
1555
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/postExecutionPack",
1556
+ path: {
1557
+ subAccountId: data.subAccountId,
1558
+ negotiationId: data.negotiationId
1559
+ },
1560
+ query: {
1561
+ timeZone: data.timeZone
1562
+ }
1563
+ });
1564
+ };
1565
+ var createSignaturePagePdf = (data) => {
1566
+ return request(OpenAPI, {
1567
+ method: "GET",
1568
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/signature/{pageId}/pdf",
1569
+ path: {
1570
+ subAccountId: data.subAccountId,
1571
+ negotiationId: data.negotiationId,
1572
+ pageId: data.pageId
1573
+ }
1574
+ });
1575
+ };
1576
+ var getSignedSignaturePagePdf = (data) => {
1577
+ return request(OpenAPI, {
1578
+ method: "GET",
1579
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/signature/{sigPageId}/signed/pdf",
1580
+ path: {
1581
+ subAccountId: data.subAccountId,
1582
+ negotiationId: data.negotiationId,
1583
+ sigPageId: data.sigPageId
1584
+ },
1585
+ errors: {
1586
+ 400: "Invalid state",
1587
+ 404: "Missing document"
1588
+ }
1589
+ });
1590
+ };
1591
+ var checkSignedSignaturePagePdf = (data) => {
1592
+ return request(OpenAPI, {
1593
+ method: "GET",
1594
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/signature/signed/pdf/exists",
1595
+ path: {
1596
+ subAccountId: data.subAccountId,
1597
+ negotiationId: data.negotiationId
1598
+ },
1599
+ errors: {
1600
+ 400: "Invalid state"
1601
+ }
1602
+ });
1603
+ };
1604
+ var setSignedSignaturePageForParty = (data) => {
1605
+ return request(OpenAPI, {
1606
+ method: "PUT",
1607
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/signature/{pageId}/signed/pdf",
1608
+ path: {
1609
+ subAccountId: data.subAccountId,
1610
+ negotiationId: data.negotiationId,
1611
+ pageId: data.pageId
1612
+ },
1613
+ body: data.requestBody,
1614
+ mediaType: "application/pdf"
1615
+ });
1616
+ };
1617
+ var deleteSignedSignaturePageForParty = (data) => {
1618
+ return request(OpenAPI, {
1619
+ method: "DELETE",
1620
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/signature/{pageId}/signed/pdf",
1621
+ path: {
1622
+ subAccountId: data.subAccountId,
1623
+ negotiationId: data.negotiationId,
1624
+ pageId: data.pageId
1625
+ }
1626
+ });
1627
+ };
1628
+ var getAuxiliaryDocument = (data) => {
1629
+ return request(OpenAPI, {
1630
+ method: "GET",
1631
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/auxiliary_document",
1632
+ path: {
1633
+ subAccountId: data.subAccountId,
1634
+ negotiationId: data.negotiationId
1635
+ },
1636
+ errors: {
1637
+ 404: "Missing document"
1638
+ }
1639
+ });
1640
+ };
1641
+ var setAuxiliaryDocument = (data) => {
1642
+ return request(OpenAPI, {
1643
+ method: "PUT",
1644
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/auxiliary_document",
1645
+ path: {
1646
+ subAccountId: data.subAccountId,
1647
+ negotiationId: data.negotiationId
1648
+ },
1649
+ body: data.requestBody,
1650
+ mediaType: "application/pdf",
1651
+ errors: {
1652
+ 400: "The negotiation is not at the Review & Sign stage or there is already an auxiliary document uploaded",
1653
+ 404: "The negotiation was not found"
1654
+ }
1655
+ });
1656
+ };
1657
+ var deleteAuxiliaryDocument = (data) => {
1658
+ return request(OpenAPI, {
1659
+ method: "DELETE",
1660
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/auxiliary_document",
1661
+ path: {
1662
+ subAccountId: data.subAccountId,
1663
+ negotiationId: data.negotiationId
1664
+ }
1665
+ });
1666
+ };
1667
+ var checkAuxiliaryDocument = (data) => {
1668
+ return request(OpenAPI, {
1669
+ method: "GET",
1670
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/auxiliary_document/exists",
1671
+ path: {
1672
+ subAccountId: data.subAccountId,
1673
+ negotiationId: data.negotiationId
1674
+ },
1675
+ errors: {
1676
+ 403: "Auxiliary document upload is not enabled for the document type or the negotiation has not yet been agreed"
1677
+ }
1678
+ });
1679
+ };
1680
+ var getOfflineNegotiatedDocument = (data) => {
1681
+ return request(OpenAPI, {
1682
+ method: "GET",
1683
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/offline_negotiated_document",
1684
+ path: {
1685
+ subAccountId: data.subAccountId,
1686
+ negotiationId: data.negotiationId
1687
+ },
1688
+ errors: {
1689
+ 404: "Missing document"
1690
+ }
1691
+ });
1692
+ };
1693
+ var setOfflineNegotiatedDocument = (data) => {
1694
+ return request(OpenAPI, {
1695
+ method: "PUT",
1696
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/offline_negotiated_document",
1697
+ path: {
1698
+ subAccountId: data.subAccountId,
1699
+ negotiationId: data.negotiationId
1700
+ },
1701
+ body: data.requestBody,
1702
+ mediaType: "application/pdf",
1703
+ errors: {
1704
+ 400: "The negotiation is not offline, is not at the Amending stage, or there is already an offline negotiated document uploaded",
1705
+ 404: "The negotiation was not found"
1706
+ }
1707
+ });
1708
+ };
1709
+ var deleteOfflineNegotiatedDocument = (data) => {
1710
+ return request(OpenAPI, {
1711
+ method: "DELETE",
1712
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/offline_negotiated_document",
1713
+ path: {
1714
+ subAccountId: data.subAccountId,
1715
+ negotiationId: data.negotiationId
1716
+ }
1717
+ });
1718
+ };
1719
+ var getAnnotatedOfflineNegotiatedDocument = (data) => {
1720
+ return request(OpenAPI, {
1721
+ method: "GET",
1722
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/offline_negotiated_document/annotated",
1723
+ path: {
1724
+ subAccountId: data.subAccountId,
1725
+ negotiationId: data.negotiationId
1726
+ },
1727
+ errors: {
1728
+ 400: "Extraction has not yet completed",
1729
+ 404: "Missing document"
1730
+ }
1731
+ });
1732
+ };
1733
+ var getOfflineNegotiatedDocumentAnnotations = (data) => {
1734
+ return request(OpenAPI, {
1735
+ method: "GET",
1736
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/offline_negotiated_document/annotations",
1737
+ path: {
1738
+ subAccountId: data.subAccountId,
1739
+ negotiationId: data.negotiationId
1740
+ },
1741
+ errors: {
1742
+ 400: "Extraction has not yet completed",
1743
+ 404: "Missing document"
1744
+ }
1745
+ });
1746
+ };
1747
+ var checkOfflineNegotiatedDocument = (data) => {
1748
+ return request(OpenAPI, {
1749
+ method: "GET",
1750
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/offline_negotiated_document/exists",
1751
+ path: {
1752
+ subAccountId: data.subAccountId,
1753
+ negotiationId: data.negotiationId
1754
+ },
1755
+ errors: {
1756
+ 403: "Extraction is not enabled for the document type or the negotiation is not offline"
1757
+ }
1758
+ });
1759
+ };
1760
+ var listDocuments = (data) => {
1761
+ return request(OpenAPI, {
1762
+ method: "GET",
1763
+ url: "/api/v1/documents",
1764
+ query: {
1765
+ state: data.state,
1766
+ subAccountId: data.subAccountId,
1767
+ documentPublisherId: data.documentPublisherId,
1768
+ documentPackIds: data.documentPackIds,
1769
+ templateContains: data.templateContains,
1770
+ supportsBulkUpload: data.supportsBulkUpload,
1771
+ hasNegotiations: data.hasNegotiations,
1772
+ year: data.year,
1773
+ abbreviation: data.abbreviation,
1774
+ law: data.law,
1775
+ publisherName: data.publisherName,
1776
+ query: data.query,
1777
+ orderBy: data.orderBy,
1778
+ onlyWithSchema: data.onlyWithSchema,
1779
+ includeTransitive: data.includeTransitive
1780
+ }
1781
+ });
1782
+ };
1783
+ var listDocumentsWithPagination = (data) => {
1784
+ return request(OpenAPI, {
1785
+ method: "GET",
1786
+ url: "/api/v1/documentsWithPaging",
1787
+ query: {
1788
+ pageIndex: data.pageIndex,
1789
+ pageSize: data.pageSize,
1790
+ state: data.state,
1791
+ subAccountId: data.subAccountId,
1792
+ documentPublisherId: data.documentPublisherId,
1793
+ documentPackIds: data.documentPackIds,
1794
+ templateContains: data.templateContains,
1795
+ supportsBulkUpload: data.supportsBulkUpload,
1796
+ hasNegotiations: data.hasNegotiations,
1797
+ year: data.year,
1798
+ abbreviation: data.abbreviation,
1799
+ law: data.law,
1800
+ publisherName: data.publisherName,
1801
+ query: data.query,
1802
+ orderBy: data.orderBy,
1803
+ onlyWithSchema: data.onlyWithSchema,
1804
+ includeTransitive: data.includeTransitive
1805
+ }
1806
+ });
1807
+ };
1808
+ var listDocumentsVersionsSummary = (data) => {
1809
+ return request(OpenAPI, {
1810
+ method: "GET",
1811
+ url: "/api/v1/documents/versions",
1812
+ query: {
1813
+ state: data.state,
1814
+ subAccountId: data.subAccountId,
1815
+ documentPublisherId: data.documentPublisherId,
1816
+ templateContains: data.templateContains,
1817
+ supportsBulkUpload: data.supportsBulkUpload,
1818
+ hasNegotiations: data.hasNegotiations,
1819
+ year: data.year,
1820
+ abbreviation: data.abbreviation,
1821
+ law: data.law,
1822
+ publisherName: data.publisherName,
1823
+ documentPackIds: data.documentPackIds,
1824
+ query: data.query,
1825
+ orderBy: data.orderBy
1826
+ }
1827
+ });
1828
+ };
1829
+ var getDocument = (data) => {
1830
+ return request(OpenAPI, {
1831
+ method: "GET",
1832
+ url: "/api/v1/documents/{documentId}",
1833
+ path: {
1834
+ documentId: data.documentId
1835
+ },
1836
+ errors: {
1837
+ 404: "Schema not found"
1838
+ }
1839
+ });
1840
+ };
1841
+ var getDocumentSchema = (data) => {
1842
+ return request(OpenAPI, {
1843
+ method: "GET",
1844
+ url: "/api/v1/documents/{documentId}/schemas/{version}",
1845
+ path: {
1846
+ documentId: data.documentId,
1847
+ version: data.version
1848
+ },
1849
+ query: {
1850
+ restrictedTo: data.restrictedTo
1851
+ },
1852
+ errors: {
1853
+ 404: "Schema not found"
1854
+ }
1855
+ });
1856
+ };
1857
+ var schemaAvailableAsCdm = (data) => {
1858
+ return request(OpenAPI, {
1859
+ method: "GET",
1860
+ url: "/api/v1/documents/{documentId}/schemas/{version}/availableAsCDM",
1861
+ path: {
1862
+ documentId: data.documentId,
1863
+ version: data.version
1864
+ },
1865
+ errors: {
1866
+ 404: "Document or schema version not found"
1867
+ }
1868
+ });
1869
+ };
1870
+ var documentRenderTemplate = (data) => {
1871
+ return request(OpenAPI, {
1872
+ method: "GET",
1873
+ url: "/api/v1/documents/{documentId}/schemas/{version}/preview",
1874
+ path: {
1875
+ documentId: data.documentId,
1876
+ version: data.version
1877
+ },
1878
+ errors: {
1879
+ 404: "Document or schema version not found"
1880
+ }
1881
+ });
1882
+ };
1883
+ var getAmendDefaults = (data) => {
1884
+ return request(OpenAPI, {
1885
+ method: "GET",
1886
+ url: "/api/v1/documents/{documentId}/schemas/{version}/amendDefaults",
1887
+ path: {
1888
+ documentId: data.documentId,
1889
+ version: data.version
1890
+ },
1891
+ errors: {
1892
+ 404: "Document or schema version not found"
1893
+ }
1894
+ });
1895
+ };
1896
+ var getLatestDocumentSchema = (data) => {
1897
+ return request(OpenAPI, {
1898
+ method: "GET",
1899
+ url: "/api/v1/documents/{documentId}/latest_schema",
1900
+ path: {
1901
+ documentId: data.documentId
1902
+ },
1903
+ errors: {
1904
+ 404: "Document or schema not found"
1905
+ }
1906
+ });
1907
+ };
1908
+ var forkNegotiation = (data) => {
1909
+ return request(OpenAPI, {
1910
+ method: "POST",
1911
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/restate",
1912
+ path: {
1913
+ subAccountId: data.subAccountId,
1914
+ negotiationId: data.negotiationId
1915
+ },
1916
+ errors: {
1917
+ 400: "The negotiation specified cannot be restated.",
1918
+ 404: "Negotiation or sub account not found"
1919
+ }
1920
+ });
1921
+ };
1922
+ var negotiationForkHistory = (data) => {
1923
+ return request(OpenAPI, {
1924
+ method: "GET",
1925
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/restatementHistory",
1926
+ path: {
1927
+ subAccountId: data.subAccountId,
1928
+ negotiationId: data.negotiationId
1929
+ },
1930
+ errors: {
1931
+ 400: "A negotiation in the history is missing",
1932
+ 404: "Negotiation or sub account not found"
1933
+ }
1934
+ });
1935
+ };
1936
+ var getOriginalAnswersForForkNegotiation = (data) => {
1937
+ return request(OpenAPI, {
1938
+ method: "GET",
1939
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{forkedNegotiationId}/originalAnswers",
1940
+ path: {
1941
+ subAccountId: data.subAccountId,
1942
+ forkedNegotiationId: data.forkedNegotiationId
1943
+ },
1944
+ errors: {
1945
+ 404: "Negotiation or sub account not found"
1946
+ }
1947
+ });
1948
+ };
1949
+ var notifyOfDraft = (data) => {
1950
+ return request(OpenAPI, {
1951
+ method: "POST",
1952
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/notifyOfDraft",
1953
+ path: {
1954
+ subAccountId: data.subAccountId,
1955
+ negotiationId: data.negotiationId
1956
+ },
1957
+ errors: {
1958
+ 404: "Negotiation not found"
1959
+ }
1960
+ });
1961
+ };
1962
+ var updateCustomFields = (data) => {
1963
+ return request(OpenAPI, {
1964
+ method: "PUT",
1965
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/customFields",
1966
+ path: {
1967
+ subAccountId: data.subAccountId,
1968
+ negotiationId: data.negotiationId
1969
+ },
1970
+ body: data.requestBody,
1971
+ mediaType: "application/json",
1972
+ errors: {
1973
+ 404: "Negotiation not found"
1974
+ }
1975
+ });
1976
+ };
1977
+ var markAsFinal = (data) => {
1978
+ return request(OpenAPI, {
1979
+ method: "PUT",
1980
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/markAsFinal",
1981
+ path: {
1982
+ subAccountId: data.subAccountId,
1983
+ negotiationId: data.negotiationId
1984
+ },
1985
+ errors: {
1986
+ 404: "Negotiation not found"
1987
+ }
1988
+ });
1989
+ };
1990
+ var editAnswers = (data) => {
1991
+ return request(OpenAPI, {
1992
+ method: "PUT",
1993
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/answers",
1994
+ path: {
1995
+ subAccountId: data.subAccountId,
1996
+ negotiationId: data.negotiationId
1997
+ },
1998
+ body: data.requestBody,
1999
+ mediaType: "application/json",
2000
+ errors: {
2001
+ 404: "Negotiation or election not found"
2002
+ }
2003
+ });
2004
+ };
2005
+ var editDefaultAnswers = (data) => {
2006
+ return request(OpenAPI, {
2007
+ method: "PUT",
2008
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/answers/defaults",
2009
+ path: {
2010
+ subAccountId: data.subAccountId,
2011
+ negotiationId: data.negotiationId
2012
+ },
2013
+ body: data.requestBody,
2014
+ mediaType: "application/json",
2015
+ errors: {
2016
+ 400: "Initial answers have already been set",
2017
+ 404: "Negotiation or election not found"
2018
+ }
2019
+ });
2020
+ };
2021
+ var acceptAllCounterpartyPositions = (data) => {
2022
+ return request(OpenAPI, {
2023
+ method: "PUT",
2024
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/acceptCpPosition/{partyId}",
2025
+ path: {
2026
+ subAccountId: data.subAccountId,
2027
+ negotiationId: data.negotiationId,
2028
+ partyId: data.partyId
2029
+ },
2030
+ query: {
2031
+ excludeNestedAnswers: data.excludeNestedAnswers
2032
+ },
2033
+ errors: {
2034
+ 400: "The counterparty's position is not available",
2035
+ 404: "Negotiation not found"
2036
+ }
2037
+ });
2038
+ };
2039
+ var acceptAllPresetPositions = (data) => {
2040
+ return request(OpenAPI, {
2041
+ method: "PUT",
2042
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/acceptPresetPosition",
2043
+ path: {
2044
+ subAccountId: data.subAccountId,
2045
+ negotiationId: data.negotiationId
2046
+ },
2047
+ errors: {
2048
+ 400: "The preset's position is not available",
2049
+ 404: "Negotiation not found"
2050
+ }
2051
+ });
2052
+ };
2053
+ var acceptAllCustodianTemplatePositions = (data) => {
2054
+ return request(OpenAPI, {
2055
+ method: "PUT",
2056
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/acceptCustodianTemplatePosition",
2057
+ path: {
2058
+ subAccountId: data.subAccountId,
2059
+ negotiationId: data.negotiationId
2060
+ },
2061
+ errors: {
2062
+ 400: "The custodian template position is not available",
2063
+ 404: "Negotiation not found"
2064
+ }
2065
+ });
2066
+ };
2067
+ var acceptAllPositionsFromPreviousVersion = (data) => {
2068
+ return request(OpenAPI, {
2069
+ method: "PUT",
2070
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/acceptPreviousPosition/{version}",
2071
+ path: {
2072
+ subAccountId: data.subAccountId,
2073
+ negotiationId: data.negotiationId,
2074
+ version: data.version
2075
+ },
2076
+ errors: {
2077
+ 400: "The previous version is not available",
2078
+ 404: "Negotiation not found"
2079
+ }
2080
+ });
2081
+ };
2082
+ var acceptAllPositionsFromFork = (data) => {
2083
+ return request(OpenAPI, {
2084
+ method: "PUT",
2085
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/acceptOriginalPosition/{forkedNegotiationId}",
2086
+ path: {
2087
+ subAccountId: data.subAccountId,
2088
+ negotiationId: data.negotiationId,
2089
+ forkedNegotiationId: data.forkedNegotiationId
2090
+ },
2091
+ errors: {
2092
+ 400: "The original fork position is not available for the specified version",
2093
+ 404: "Negotiation not found"
2094
+ }
2095
+ });
2096
+ };
2097
+ var getElectionAnswer = (data) => {
2098
+ return request(OpenAPI, {
2099
+ method: "GET",
2100
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/answers/elections/{electionId}",
2101
+ path: {
2102
+ subAccountId: data.subAccountId,
2103
+ negotiationId: data.negotiationId,
2104
+ electionId: data.electionId
2105
+ },
2106
+ query: {
2107
+ type: data.type
2108
+ },
2109
+ errors: {
2110
+ 404: "Negotiation not found"
2111
+ }
2112
+ });
2113
+ };
2114
+ var getMajorVersions = (data) => {
2115
+ return request(OpenAPI, {
2116
+ method: "GET",
2117
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/parties/{partyId}/versions",
2118
+ path: {
2119
+ subAccountId: data.subAccountId,
2120
+ negotiationId: data.negotiationId,
2121
+ partyId: data.partyId
2122
+ },
2123
+ errors: {
2124
+ 404: "Negotiation not found"
2125
+ }
2126
+ });
2127
+ };
2128
+ var getAllVersions = (data) => {
2129
+ return request(OpenAPI, {
2130
+ method: "GET",
2131
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/parties/{partyId}/versions/all",
2132
+ path: {
2133
+ subAccountId: data.subAccountId,
2134
+ negotiationId: data.negotiationId,
2135
+ partyId: data.partyId
2136
+ },
2137
+ errors: {
2138
+ 404: "Negotiation not found"
2139
+ }
2140
+ });
2141
+ };
2142
+ var getOtherPartyAnswers = (data) => {
2143
+ return request(OpenAPI, {
2144
+ method: "GET",
2145
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/parties/{counterpartyId}/versions/{version}",
2146
+ path: {
2147
+ subAccountId: data.subAccountId,
2148
+ negotiationId: data.negotiationId,
2149
+ counterpartyId: data.counterpartyId,
2150
+ version: data.version
2151
+ },
2152
+ errors: {
2153
+ 404: "Party answers not found of the party id for the specified version or negotiation not found"
2154
+ }
2155
+ });
2156
+ };
2157
+ var getPartyAnswers = (data) => {
2158
+ return request(OpenAPI, {
2159
+ method: "GET",
2160
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/versions/{version}",
2161
+ path: {
2162
+ subAccountId: data.subAccountId,
2163
+ negotiationId: data.negotiationId,
2164
+ version: data.version
2165
+ },
2166
+ errors: {
2167
+ 404: "Party answers not found for the specified version or negotiation not found"
2168
+ }
2169
+ });
2170
+ };
2171
+ var acceptCounterpartyPosition = (data) => {
2172
+ return request(OpenAPI, {
2173
+ method: "PUT",
2174
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/answers/elections/{electionId}/acceptCpPosition/{partyId}",
2175
+ path: {
2176
+ subAccountId: data.subAccountId,
2177
+ negotiationId: data.negotiationId,
2178
+ electionId: data.electionId,
2179
+ partyId: data.partyId
2180
+ },
2181
+ query: {
2182
+ excludeNestedAnswers: data.excludeNestedAnswers
2183
+ },
2184
+ errors: {
2185
+ 404: "Negotiation not found"
2186
+ }
2187
+ });
2188
+ };
2189
+ var getMultipleNestedAnswers = (data) => {
2190
+ return request(OpenAPI, {
2191
+ method: "POST",
2192
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/answers/nested/bulk",
2193
+ path: {
2194
+ subAccountId: data.subAccountId,
2195
+ negotiationId: data.negotiationId
2196
+ },
2197
+ body: data.requestBody,
2198
+ mediaType: "application/json",
2199
+ errors: {
2200
+ 400: "Too many nested answers IDs passed",
2201
+ 404: "Negotiation not found"
2202
+ }
2203
+ });
2204
+ };
2205
+ var setMultipleNestedAnswers = (data) => {
2206
+ return request(OpenAPI, {
2207
+ method: "PUT",
2208
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/answers/nested/bulk",
2209
+ path: {
2210
+ subAccountId: data.subAccountId,
2211
+ negotiationId: data.negotiationId
2212
+ },
2213
+ body: data.requestBody,
2214
+ mediaType: "application/json",
2215
+ errors: {
2216
+ 400: "Too many nested answers IDs passed",
2217
+ 404: "Negotiation not found"
2218
+ }
2219
+ });
2220
+ };
2221
+ var getNestedAnswers = (data) => {
2222
+ return request(OpenAPI, {
2223
+ method: "GET",
2224
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/answers/nested/{nestedAnswersId}",
2225
+ path: {
2226
+ subAccountId: data.subAccountId,
2227
+ negotiationId: data.negotiationId,
2228
+ nestedAnswersId: data.nestedAnswersId
2229
+ },
2230
+ errors: {
2231
+ 404: "Negotiation not found"
2232
+ }
2233
+ });
2234
+ };
2235
+ var setNestedAnswers = (data) => {
2236
+ return request(OpenAPI, {
2237
+ method: "PUT",
2238
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/answers/nested/{nestedAnswersId}",
2239
+ path: {
2240
+ subAccountId: data.subAccountId,
2241
+ negotiationId: data.negotiationId,
2242
+ nestedAnswersId: data.nestedAnswersId
2243
+ },
2244
+ body: data.requestBody,
2245
+ mediaType: "application/json",
2246
+ errors: {
2247
+ 404: "Negotiation not found"
2248
+ }
2249
+ });
2250
+ };
2251
+ var getPreviousMajorVersionsNestedAnswerElections = (data) => {
2252
+ return request(OpenAPI, {
2253
+ method: "GET",
2254
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/answers/nested/{nestedAnswersId}/previousElections",
2255
+ path: {
2256
+ subAccountId: data.subAccountId,
2257
+ negotiationId: data.negotiationId,
2258
+ nestedAnswersId: data.nestedAnswersId
2259
+ },
2260
+ errors: {
2261
+ 403: "Negotiation not in amending state",
2262
+ 404: "No previous versions found"
2263
+ }
2264
+ });
2265
+ };
2266
+ var getPreviousMajorVersionsNestedAnswerIds = (data) => {
2267
+ return request(OpenAPI, {
2268
+ method: "GET",
2269
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/answers/elections/{electionId}/previousAnswers",
2270
+ path: {
2271
+ subAccountId: data.subAccountId,
2272
+ negotiationId: data.negotiationId,
2273
+ electionId: data.electionId
2274
+ },
2275
+ errors: {
2276
+ 403: "Negotiation not in amending state",
2277
+ 404: "No previous versions found"
2278
+ }
2279
+ });
2280
+ };
2281
+ var acceptNestedAnswersCounterpartyPosition = (data) => {
2282
+ return request(OpenAPI, {
2283
+ method: "PUT",
2284
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/answers/nested/{nestedAnswersId}/acceptCpPosition/{partyId}",
2285
+ path: {
2286
+ subAccountId: data.subAccountId,
2287
+ negotiationId: data.negotiationId,
2288
+ nestedAnswersId: data.nestedAnswersId,
2289
+ partyId: data.partyId
2290
+ },
2291
+ errors: {
2292
+ 404: "Negotiation, nested answers ID or party not found"
2293
+ }
2294
+ });
2295
+ };
2296
+ var initialAnswers = (data) => {
2297
+ return request(OpenAPI, {
2298
+ method: "GET",
2299
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/initialAnswers",
2300
+ path: {
2301
+ subAccountId: data.subAccountId,
2302
+ negotiationId: data.negotiationId
2303
+ },
2304
+ errors: {
2305
+ 404: "Negotiation or election not found"
2306
+ }
2307
+ });
2308
+ };
2309
+ var assignToMe = (data) => {
2310
+ return request(OpenAPI, {
2311
+ method: "PUT",
2312
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/owner/myself",
2313
+ path: {
2314
+ subAccountId: data.subAccountId,
2315
+ negotiationId: data.negotiationId
2316
+ },
2317
+ errors: {
2318
+ 404: "Negotiation not found"
2319
+ }
2320
+ });
2321
+ };
2322
+ var assignUser = (data) => {
2323
+ return request(OpenAPI, {
2324
+ method: "PUT",
2325
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/owner/{userId}",
2326
+ path: {
2327
+ subAccountId: data.subAccountId,
2328
+ negotiationId: data.negotiationId,
2329
+ userId: data.userId
2330
+ },
2331
+ errors: {
2332
+ 400: "Invalid user",
2333
+ 404: "Negotiation or user not found"
2334
+ }
2335
+ });
2336
+ };
2337
+ var getPreviousActiveUsers = (data) => {
2338
+ return request(OpenAPI, {
2339
+ method: "GET",
2340
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/previousActiveUsers",
2341
+ path: {
2342
+ subAccountId: data.subAccountId,
2343
+ negotiationId: data.negotiationId
2344
+ },
2345
+ errors: {
2346
+ 400: "Invalid user",
2347
+ 404: "Negotiation not found"
2348
+ }
2349
+ });
2350
+ };
2351
+ var setCounterparties = (data) => {
2352
+ return request(OpenAPI, {
2353
+ method: "PUT",
2354
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/counterparties",
2355
+ path: {
2356
+ subAccountId: data.subAccountId,
2357
+ negotiationId: data.negotiationId
2358
+ },
2359
+ query: {
2360
+ strictLEI: data.strictLei
2361
+ },
2362
+ body: data.requestBody,
2363
+ mediaType: "application/json",
2364
+ errors: {
2365
+ 400: "Invalid or incomplete answers",
2366
+ 404: "Negotiation not found",
2367
+ 409: "Could not save new version"
2368
+ }
2369
+ });
2370
+ };
2371
+ var getExternalAttachment = (data) => {
2372
+ return request(OpenAPI, {
2373
+ method: "GET",
2374
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/attachment/{fileName}",
2375
+ path: {
2376
+ subAccountId: data.subAccountId,
2377
+ negotiationId: data.negotiationId,
2378
+ fileName: data.fileName
2379
+ },
2380
+ errors: {
2381
+ 404: "Missing document"
2382
+ }
2383
+ });
2384
+ };
2385
+ var deleteExternalAttachment = (data) => {
2386
+ return request(OpenAPI, {
2387
+ method: "DELETE",
2388
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/attachment/{fileName}",
2389
+ path: {
2390
+ subAccountId: data.subAccountId,
2391
+ negotiationId: data.negotiationId,
2392
+ fileName: data.fileName
2393
+ }
2394
+ });
2395
+ };
2396
+ var listExternalAttachments = (data) => {
2397
+ return request(OpenAPI, {
2398
+ method: "GET",
2399
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/attachment",
2400
+ path: {
2401
+ subAccountId: data.subAccountId,
2402
+ negotiationId: data.negotiationId
2403
+ },
2404
+ errors: {
2405
+ 403: "Invite attachment upload is not enabled for the document type"
2406
+ }
2407
+ });
2408
+ };
2409
+ var setExternalAttachment = (data) => {
2410
+ return request(OpenAPI, {
2411
+ method: "PUT",
2412
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/attachment",
2413
+ path: {
2414
+ subAccountId: data.subAccountId,
2415
+ negotiationId: data.negotiationId
2416
+ },
2417
+ body: data.requestBody,
2418
+ mediaType: "application/octet-stream",
2419
+ errors: {
2420
+ 400: "The file is too large or would exceed the maximum total size for all files, or the negotiation is not currently in draft",
2421
+ 404: "The negotiation was not found"
2422
+ }
2423
+ });
2424
+ };
2425
+ var setExternalAttachments = (data) => {
2426
+ return request(OpenAPI, {
2427
+ method: "POST",
2428
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/attachment",
2429
+ path: {
2430
+ subAccountId: data.subAccountId,
2431
+ negotiationId: data.negotiationId
2432
+ },
2433
+ formData: data.formData,
2434
+ mediaType: "multipart/form-data",
2435
+ errors: {
2436
+ 400: "The file(s) are too large or would exceed the maximum total size for all files, or the negotiation is not currently in draft",
2437
+ 404: "The negotiation was not found"
2438
+ }
2439
+ });
2440
+ };
2441
+ var getExecutionAttachment = (data) => {
2442
+ return request(OpenAPI, {
2443
+ method: "GET",
2444
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/executionAttachment/{fileName}",
2445
+ path: {
2446
+ subAccountId: data.subAccountId,
2447
+ negotiationId: data.negotiationId,
2448
+ fileName: data.fileName
2449
+ },
2450
+ errors: {
2451
+ 404: "Missing document"
2452
+ }
2453
+ });
2454
+ };
2455
+ var deleteExecutionAttachment = (data) => {
2456
+ return request(OpenAPI, {
2457
+ method: "DELETE",
2458
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/executionAttachment/{fileName}",
2459
+ path: {
2460
+ subAccountId: data.subAccountId,
2461
+ negotiationId: data.negotiationId,
2462
+ fileName: data.fileName
2463
+ }
2464
+ });
2465
+ };
2466
+ var listExecutionAttachments = (data) => {
2467
+ return request(OpenAPI, {
2468
+ method: "GET",
2469
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/executionAttachment",
2470
+ path: {
2471
+ subAccountId: data.subAccountId,
2472
+ negotiationId: data.negotiationId
2473
+ },
2474
+ errors: {
2475
+ 403: "Execution attachment upload is not enabled for the document type"
2476
+ }
2477
+ });
2478
+ };
2479
+ var setExecutionAttachment = (data) => {
2480
+ return request(OpenAPI, {
2481
+ method: "PUT",
2482
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/executionAttachment",
2483
+ path: {
2484
+ subAccountId: data.subAccountId,
2485
+ negotiationId: data.negotiationId
2486
+ },
2487
+ body: data.requestBody,
2488
+ mediaType: "application/pdf",
2489
+ errors: {
2490
+ 400: "The file is too large or would exceed the maximum total size for all execution files, or the negotiation is not currently in ExecutionAgreed",
2491
+ 404: "The negotiation was not found"
2492
+ }
2493
+ });
2494
+ };
2495
+ var setExecutionAttachments = (data) => {
2496
+ return request(OpenAPI, {
2497
+ method: "POST",
2498
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/executionAttachment",
2499
+ path: {
2500
+ subAccountId: data.subAccountId,
2501
+ negotiationId: data.negotiationId
2502
+ },
2503
+ formData: data.formData,
2504
+ mediaType: "multipart/form-data",
2505
+ errors: {
2506
+ 400: "The file(s) are too large or would exceed the maximum total size for all execution files, or the negotiation is not currently in ExecutionAgreed.",
2507
+ 404: "The negotiation was not found"
2508
+ }
2509
+ });
2510
+ };
2511
+ var renameExecutionAttachment = (data) => {
2512
+ return request(OpenAPI, {
2513
+ method: "PATCH",
2514
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/executionAttachment/{oldFileName}",
2515
+ path: {
2516
+ subAccountId: data.subAccountId,
2517
+ negotiationId: data.negotiationId,
2518
+ oldFileName: data.oldFileName
2519
+ },
2520
+ errors: {
2521
+ 400: "New filename is invalid",
2522
+ 404: "Old filename not found"
2523
+ }
2524
+ });
2525
+ };
2526
+ var setOwnerEntity = (data) => {
2527
+ return request(OpenAPI, {
2528
+ method: "PUT",
2529
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/owner",
2530
+ path: {
2531
+ subAccountId: data.subAccountId,
2532
+ negotiationId: data.negotiationId
2533
+ },
2534
+ body: data.requestBody,
2535
+ mediaType: "application/json",
2536
+ errors: {
2537
+ 400: "Invalid or incomplete answers",
2538
+ 404: "Negotiation not found",
2539
+ 409: "Could not save new version",
2540
+ 422: "Counterparty email address required"
2541
+ }
2542
+ });
2543
+ };
2544
+ var setReceiverEntity = (data) => {
2545
+ return request(OpenAPI, {
2546
+ method: "PUT",
2547
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/entities",
2548
+ path: {
2549
+ subAccountId: data.subAccountId,
2550
+ negotiationId: data.negotiationId
2551
+ },
2552
+ body: data.requestBody,
2553
+ mediaType: "application/json",
2554
+ errors: {
2555
+ 404: "Negotiation not found",
2556
+ 409: "Could not save new version"
2557
+ }
2558
+ });
2559
+ };
2560
+ var setPreset = (data) => {
2561
+ return request(OpenAPI, {
2562
+ method: "PUT",
2563
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/preset",
2564
+ path: {
2565
+ subAccountId: data.subAccountId,
2566
+ negotiationId: data.negotiationId
2567
+ },
2568
+ body: data.requestBody,
2569
+ mediaType: "application/json",
2570
+ errors: {
2571
+ 404: "Negotiation or preset not found"
2572
+ }
2573
+ });
2574
+ };
2575
+ var swapParties = (data) => {
2576
+ return request(OpenAPI, {
2577
+ method: "PUT",
2578
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/swapParties",
2579
+ path: {
2580
+ subAccountId: data.subAccountId,
2581
+ negotiationId: data.negotiationId
2582
+ },
2583
+ errors: {
2584
+ 403: "Forbidden action in this state",
2585
+ 404: "Negotiation not found"
2586
+ }
2587
+ });
2588
+ };
2589
+ var approveFinalDocument = (data) => {
2590
+ return request(OpenAPI, {
2591
+ method: "PUT",
2592
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/document/approve",
2593
+ path: {
2594
+ subAccountId: data.subAccountId,
2595
+ negotiationId: data.negotiationId
2596
+ },
2597
+ body: data.requestBody,
2598
+ mediaType: "application/json",
2599
+ errors: {
2600
+ 403: "action not permitted (negotiation is in wrong state)",
2601
+ 404: "Negotiation not found",
2602
+ 409: "Could not save new version"
2603
+ }
2604
+ });
2605
+ };
2606
+ var overrideApproveFinalDocument = (data) => {
2607
+ return request(OpenAPI, {
2608
+ method: "PUT",
2609
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/document/approve/override",
2610
+ path: {
2611
+ subAccountId: data.subAccountId,
2612
+ negotiationId: data.negotiationId
2613
+ },
2614
+ body: data.requestBody,
2615
+ mediaType: "application/json",
2616
+ errors: {
2617
+ 403: "action not permitted (negotiation is in wrong state)",
2618
+ 404: "Negotiation not found",
2619
+ 409: "Could not save new version"
2620
+ }
2621
+ });
2622
+ };
2623
+ var rejectFinalDocument = (data) => {
2624
+ return request(OpenAPI, {
2625
+ method: "PUT",
2626
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/document/reject",
2627
+ path: {
2628
+ subAccountId: data.subAccountId,
2629
+ negotiationId: data.negotiationId
2630
+ },
2631
+ body: data.requestBody,
2632
+ mediaType: "application/json",
2633
+ errors: {
2634
+ 403: "action not permitted (negotiation is in wrong state)",
2635
+ 404: "Negotiation not found",
2636
+ 409: "Could not save new version"
2637
+ }
2638
+ });
2639
+ };
2640
+ var overrideRejectFinalDocument = (data) => {
2641
+ return request(OpenAPI, {
2642
+ method: "PUT",
2643
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/document/reject/override",
2644
+ path: {
2645
+ subAccountId: data.subAccountId,
2646
+ negotiationId: data.negotiationId
2647
+ },
2648
+ body: data.requestBody,
2649
+ mediaType: "application/json",
2650
+ errors: {
2651
+ 403: "action not permitted (negotiation is in wrong state)",
2652
+ 404: "Negotiation not found",
2653
+ 409: "Could not save new version"
2654
+ }
2655
+ });
2656
+ };
2657
+ var sendToCounterparty = (data) => {
2658
+ return request(OpenAPI, {
2659
+ method: "PUT",
2660
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/sendToCounterparty",
2661
+ path: {
2662
+ subAccountId: data.subAccountId,
2663
+ negotiationId: data.negotiationId
2664
+ },
2665
+ body: data.requestBody,
2666
+ mediaType: "application/json",
2667
+ errors: {
2668
+ 403: "No counterparty is configured",
2669
+ 404: "Negotiation not found",
2670
+ 409: "Could not save new version"
2671
+ }
2672
+ });
2673
+ };
2674
+ var setGeneralCoverNote = (data) => {
2675
+ return request(OpenAPI, {
2676
+ method: "PUT",
2677
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/coverNote",
2678
+ path: {
2679
+ subAccountId: data.subAccountId,
2680
+ negotiationId: data.negotiationId
2681
+ },
2682
+ body: data.requestBody,
2683
+ mediaType: "application/json",
2684
+ errors: {
2685
+ 404: "Negotiation not found",
2686
+ 409: "Could not save new version"
2687
+ }
2688
+ });
2689
+ };
2690
+ var deleteGeneralCoverNote = (data) => {
2691
+ return request(OpenAPI, {
2692
+ method: "DELETE",
2693
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/coverNote",
2694
+ path: {
2695
+ subAccountId: data.subAccountId,
2696
+ negotiationId: data.negotiationId
2697
+ },
2698
+ errors: {
2699
+ 404: "Negotiation not found",
2700
+ 409: "Could not save new version"
2701
+ }
2702
+ });
2703
+ };
2704
+ var negotiationSendForApproval = (data) => {
2705
+ return request(OpenAPI, {
2706
+ method: "PUT",
2707
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/sendForApproval",
2708
+ path: {
2709
+ subAccountId: data.subAccountId,
2710
+ negotiationId: data.negotiationId
2711
+ },
2712
+ body: data.requestBody,
2713
+ mediaType: "application/json",
2714
+ errors: {
2715
+ 403: "Action not permitted (negotiation is in wrong state)",
2716
+ 404: "Negotiation not found",
2717
+ 409: "Could not save new version"
2718
+ }
2719
+ });
2720
+ };
2721
+ var changeSigningMode = (data) => {
2722
+ return request(OpenAPI, {
2723
+ method: "PUT",
2724
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/signingMode",
2725
+ path: {
2726
+ subAccountId: data.subAccountId,
2727
+ negotiationId: data.negotiationId
2728
+ },
2729
+ body: data.requestBody,
2730
+ mediaType: "application/json",
2731
+ errors: {
2732
+ 403: "Action not permitted (negotiation is in wrong state)",
2733
+ 404: "Negotiation not found"
2734
+ }
2735
+ });
2736
+ };
2737
+ var setElectionApproval = (data) => {
2738
+ return request(OpenAPI, {
2739
+ method: "PUT",
2740
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/elections/{electionId}",
2741
+ path: {
2742
+ subAccountId: data.subAccountId,
2743
+ negotiationId: data.negotiationId,
2744
+ electionId: data.electionId
2745
+ },
2746
+ body: data.requestBody,
2747
+ mediaType: "application/json",
2748
+ errors: {
2749
+ 404: "Preset not found"
2750
+ }
2751
+ });
2752
+ };
2753
+ var sendDocumentApprovalReminder = (data) => {
2754
+ return request(OpenAPI, {
2755
+ method: "PUT",
2756
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/document/reminder",
2757
+ path: {
2758
+ subAccountId: data.subAccountId,
2759
+ negotiationId: data.negotiationId
2760
+ },
2761
+ errors: {
2762
+ 400: "There is no pending approval or approval sent date",
2763
+ 404: "Negotiation or sub-account not found"
2764
+ }
2765
+ });
2766
+ };
2767
+ var sendElectionApprovalReminder = (data) => {
2768
+ return request(OpenAPI, {
2769
+ method: "PUT",
2770
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/elections/{electionId}/reminder",
2771
+ path: {
2772
+ subAccountId: data.subAccountId,
2773
+ negotiationId: data.negotiationId,
2774
+ electionId: data.electionId
2775
+ },
2776
+ errors: {
2777
+ 400: "There is no pending approval",
2778
+ 404: "Negotiation, sub-account or election id not found"
2779
+ }
2780
+ });
2781
+ };
2782
+ var addElectionApproval = (data) => {
2783
+ return request(OpenAPI, {
2784
+ method: "PUT",
2785
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/elections/{electionId}/approve",
2786
+ path: {
2787
+ subAccountId: data.subAccountId,
2788
+ negotiationId: data.negotiationId,
2789
+ electionId: data.electionId
2790
+ },
2791
+ body: data.requestBody,
2792
+ mediaType: "application/json",
2793
+ errors: {
2794
+ 403: "Action not permitted (negotiation is in the wrong state or you do not have permission)",
2795
+ 404: "Negotiation not found",
2796
+ 409: "Could not save new version"
2797
+ }
2798
+ });
2799
+ };
2800
+ var addElectionRejection = (data) => {
2801
+ return request(OpenAPI, {
2802
+ method: "PUT",
2803
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/elections/{electionId}/reject",
2804
+ path: {
2805
+ subAccountId: data.subAccountId,
2806
+ negotiationId: data.negotiationId,
2807
+ electionId: data.electionId
2808
+ },
2809
+ body: data.requestBody,
2810
+ mediaType: "application/json",
2811
+ errors: {
2812
+ 403: "Action not permitted (negotiation is in the wrong state or you do not have permission)",
2813
+ 404: "Negotiation not found",
2814
+ 409: "Could not save new version"
2815
+ }
2816
+ });
2817
+ };
2818
+ var overrideElectionApproval = (data) => {
2819
+ return request(OpenAPI, {
2820
+ method: "PUT",
2821
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/elections/{electionId}/approve/override",
2822
+ path: {
2823
+ subAccountId: data.subAccountId,
2824
+ negotiationId: data.negotiationId,
2825
+ electionId: data.electionId
2826
+ },
2827
+ body: data.requestBody,
2828
+ mediaType: "application/json",
2829
+ errors: {
2830
+ 403: "Action not permitted (negotiation is in the wrong state or you do not have permission)",
2831
+ 404: "Negotiation not found",
2832
+ 409: "Could not save new version"
2833
+ }
2834
+ });
2835
+ };
2836
+ var overrideElectionRejection = (data) => {
2837
+ return request(OpenAPI, {
2838
+ method: "PUT",
2839
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/elections/{electionId}/reject/override",
2840
+ path: {
2841
+ subAccountId: data.subAccountId,
2842
+ negotiationId: data.negotiationId,
2843
+ electionId: data.electionId
2844
+ },
2845
+ body: data.requestBody,
2846
+ mediaType: "application/json",
2847
+ errors: {
2848
+ 403: "Action not permitted (negotiation is in the wrong state or you do not have permission)",
2849
+ 404: "Negotiation not found",
2850
+ 409: "Could not save new version"
2851
+ }
2852
+ });
2853
+ };
2854
+ var getApprovalHistory = (data) => {
2855
+ return request(OpenAPI, {
2856
+ method: "GET",
2857
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/history",
2858
+ path: {
2859
+ subAccountId: data.subAccountId,
2860
+ negotiationId: data.negotiationId
2861
+ }
2862
+ });
2863
+ };
2864
+ var getApprovalRound = (data) => {
2865
+ return request(OpenAPI, {
2866
+ method: "GET",
2867
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/{roundId}",
2868
+ path: {
2869
+ subAccountId: data.subAccountId,
2870
+ negotiationId: data.negotiationId,
2871
+ roundId: data.roundId
2872
+ }
2873
+ });
2874
+ };
2875
+ var addApprovalComment = (data) => {
2876
+ return request(OpenAPI, {
2877
+ method: "POST",
2878
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/comment",
2879
+ path: {
2880
+ subAccountId: data.subAccountId,
2881
+ negotiationId: data.negotiationId
2882
+ },
2883
+ body: data.requestBody,
2884
+ mediaType: "application/json",
2885
+ errors: {
2886
+ 403: "Comment value is empty"
2887
+ }
2888
+ });
2889
+ };
2890
+ var editApprovalComment = (data) => {
2891
+ return request(OpenAPI, {
2892
+ method: "PUT",
2893
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/comment/{approvalCommentId}",
2894
+ path: {
2895
+ subAccountId: data.subAccountId,
2896
+ negotiationId: data.negotiationId,
2897
+ approvalCommentId: data.approvalCommentId
2898
+ },
2899
+ body: data.requestBody,
2900
+ mediaType: "application/json",
2901
+ errors: {
2902
+ 403: "Comment value is empty"
2903
+ }
2904
+ });
2905
+ };
2906
+ var deleteApprovalComment = (data) => {
2907
+ return request(OpenAPI, {
2908
+ method: "DELETE",
2909
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/comment/{approvalCommentId}",
2910
+ path: {
2911
+ subAccountId: data.subAccountId,
2912
+ negotiationId: data.negotiationId,
2913
+ approvalCommentId: data.approvalCommentId
2914
+ },
2915
+ errors: {
2916
+ 403: "Action not permitted (user does not have permission)"
2917
+ }
2918
+ });
2919
+ };
2920
+ var getApprovalComments = (data) => {
2921
+ return request(OpenAPI, {
2922
+ method: "GET",
2923
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/comments/all",
2924
+ path: {
2925
+ subAccountId: data.subAccountId,
2926
+ negotiationId: data.negotiationId
2927
+ },
2928
+ errors: {
2929
+ 404: "Negotiation not found"
2930
+ }
2931
+ });
2932
+ };
2933
+ var markApprovalCommentsAsViewed = (data) => {
2934
+ return request(OpenAPI, {
2935
+ method: "PUT",
2936
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/comments/markAsRead",
2937
+ path: {
2938
+ subAccountId: data.subAccountId,
2939
+ negotiationId: data.negotiationId
2940
+ },
2941
+ body: data.requestBody,
2942
+ mediaType: "application/json",
2943
+ errors: {
2944
+ 404: "Negotiation not found"
2945
+ }
2946
+ });
2947
+ };
2948
+ var sendToCounterpartyInitial = (data) => {
2949
+ return request(OpenAPI, {
2950
+ method: "PUT",
2951
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/sendToCounterparty/initial",
2952
+ path: {
2953
+ subAccountId: data.subAccountId,
2954
+ negotiationId: data.negotiationId
2955
+ },
2956
+ body: data.requestBody,
2957
+ mediaType: "application/json",
2958
+ errors: {
2959
+ 403: "No counterparty is configured",
2960
+ 404: "Negotiation not found",
2961
+ 409: "Could not save new version"
2962
+ }
2963
+ });
2964
+ };
2965
+ var markAsOffline = (data) => {
2966
+ return request(OpenAPI, {
2967
+ method: "PUT",
2968
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/markAsOffline",
2969
+ path: {
2970
+ subAccountId: data.subAccountId,
2971
+ negotiationId: data.negotiationId
2972
+ },
2973
+ errors: {
2974
+ 403: "No counterparty is configured",
2975
+ 404: "Negotiation not found",
2976
+ 409: "Could not save new version"
2977
+ }
2978
+ });
2979
+ };
2980
+ var confirm = (data) => {
2981
+ return request(OpenAPI, {
2982
+ method: "PUT",
2983
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/confirm",
2984
+ path: {
2985
+ subAccountId: data.subAccountId,
2986
+ negotiationId: data.negotiationId
2987
+ },
2988
+ errors: {
2989
+ 400: "Invalid, incomplete or mismatching answers",
2990
+ 404: "Negotiation not found",
2991
+ 409: "Could not save new version"
2992
+ }
2993
+ });
2994
+ };
2995
+ var cancel = (data) => {
2996
+ return request(OpenAPI, {
2997
+ method: "PUT",
2998
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/cancel",
2999
+ path: {
3000
+ subAccountId: data.subAccountId,
3001
+ negotiationId: data.negotiationId
3002
+ },
3003
+ body: data.requestBody,
3004
+ mediaType: "application/json",
3005
+ errors: {
3006
+ 404: "Negotiation not found"
3007
+ }
3008
+ });
3009
+ };
3010
+ var cancelNegotiations = (data) => {
3011
+ return request(OpenAPI, {
3012
+ method: "PUT",
3013
+ url: "/api/v1/subAccounts/{subAccountId}/cancelNegotiations",
3014
+ path: {
3015
+ subAccountId: data.subAccountId
3016
+ },
3017
+ body: data.requestBody,
3018
+ mediaType: "application/json"
3019
+ });
3020
+ };
3021
+ var retract = (data) => {
3022
+ return request(OpenAPI, {
3023
+ method: "PUT",
3024
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/retract",
3025
+ path: {
3026
+ subAccountId: data.subAccountId,
3027
+ negotiationId: data.negotiationId
3028
+ },
3029
+ body: data.requestBody,
3030
+ mediaType: "application/json",
3031
+ errors: {
3032
+ 404: "Negotiation not found"
3033
+ }
3034
+ });
3035
+ };
3036
+ var confirmExecutionVersion = (data) => {
3037
+ return request(OpenAPI, {
3038
+ method: "PUT",
3039
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/confirmExecutionVersion",
3040
+ path: {
3041
+ subAccountId: data.subAccountId,
3042
+ negotiationId: data.negotiationId
3043
+ },
3044
+ errors: {
3045
+ 404: "Negotiation not found"
3046
+ }
3047
+ });
3048
+ };
3049
+ var revertToAmending = (data) => {
3050
+ return request(OpenAPI, {
3051
+ method: "PUT",
3052
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/revertToAmending",
3053
+ path: {
3054
+ subAccountId: data.subAccountId,
3055
+ negotiationId: data.negotiationId
3056
+ },
3057
+ body: data.requestBody,
3058
+ mediaType: "application/json",
3059
+ errors: {
3060
+ 404: "Negotiation not found"
3061
+ }
3062
+ });
3063
+ };
3064
+ var getComments = (data) => {
3065
+ return request(OpenAPI, {
3066
+ method: "GET",
3067
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/timeline/comments",
3068
+ path: {
3069
+ subAccountId: data.subAccountId,
3070
+ negotiationId: data.negotiationId
3071
+ },
3072
+ errors: {
3073
+ 404: "Negotiation not found"
3074
+ }
3075
+ });
3076
+ };
3077
+ var getCommentSummary = (data) => {
3078
+ return request(OpenAPI, {
3079
+ method: "GET",
3080
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/commentSummary",
3081
+ path: {
3082
+ subAccountId: data.subAccountId,
3083
+ negotiationId: data.negotiationId
3084
+ },
3085
+ query: {
3086
+ summaryContext: data.summaryContext,
3087
+ unreadOnly: data.unreadOnly
3088
+ },
3089
+ errors: {
3090
+ 400: "The specified summaryContext is not available for this negotiation.",
3091
+ 403: "The AI comment summerisation feature has not been enabled for this account.",
3092
+ 404: "Negotiation not found or No comments to summarise.",
3093
+ 503: "Unable to fetch a summary, the generated summary may have been discarded if it contained inappropriate content."
3094
+ }
3095
+ });
3096
+ };
3097
+ var getTimelineActivity = (data) => {
3098
+ return request(OpenAPI, {
3099
+ method: "GET",
3100
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/timeline/activities",
3101
+ path: {
3102
+ subAccountId: data.subAccountId,
3103
+ negotiationId: data.negotiationId
3104
+ },
3105
+ query: {
3106
+ orderDirection: data.orderDirection
3107
+ },
3108
+ errors: {
3109
+ 404: "Negotiation not found"
3110
+ }
3111
+ });
3112
+ };
3113
+ var getChannelTimeline = (data) => {
3114
+ return request(OpenAPI, {
3115
+ method: "GET",
3116
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/timeline/{channel}",
3117
+ path: {
3118
+ subAccountId: data.subAccountId,
3119
+ negotiationId: data.negotiationId,
3120
+ channel: data.channel
3121
+ },
3122
+ query: {
3123
+ orderDirection: data.orderDirection
3124
+ },
3125
+ errors: {
3126
+ 404: "Negotiation not found"
3127
+ }
3128
+ });
3129
+ };
3130
+ var getTimeline = (data) => {
3131
+ return request(OpenAPI, {
3132
+ method: "GET",
3133
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/timeline",
3134
+ path: {
3135
+ subAccountId: data.subAccountId,
3136
+ negotiationId: data.negotiationId
3137
+ },
3138
+ query: {
3139
+ orderDirection: data.orderDirection
3140
+ },
3141
+ errors: {
3142
+ 404: "Negotiation not found"
3143
+ }
3144
+ });
3145
+ };
3146
+ var markEventsAsViewed = (data) => {
3147
+ return request(OpenAPI, {
3148
+ method: "POST",
3149
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/timeline",
3150
+ path: {
3151
+ subAccountId: data.subAccountId,
3152
+ negotiationId: data.negotiationId
3153
+ },
3154
+ errors: {
3155
+ 404: "Negotiation not found"
3156
+ }
3157
+ });
3158
+ };
3159
+ var markActivityEventsAsViewed = (data) => {
3160
+ return request(OpenAPI, {
3161
+ method: "PUT",
3162
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/timeline/activities/markAsRead",
3163
+ path: {
3164
+ subAccountId: data.subAccountId,
3165
+ negotiationId: data.negotiationId
3166
+ },
3167
+ body: data.requestBody,
3168
+ mediaType: "application/json",
3169
+ errors: {
3170
+ 404: "Negotiation not found"
3171
+ }
3172
+ });
3173
+ };
3174
+ var markCommentEventsAsViewed = (data) => {
3175
+ return request(OpenAPI, {
3176
+ method: "PUT",
3177
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/timeline/comments/markAsRead",
3178
+ path: {
3179
+ subAccountId: data.subAccountId,
3180
+ negotiationId: data.negotiationId
3181
+ },
3182
+ body: data.requestBody,
3183
+ mediaType: "application/json",
3184
+ errors: {
3185
+ 404: "Negotiation not found"
3186
+ }
3187
+ });
3188
+ };
3189
+ var addComment = (data) => {
3190
+ return request(OpenAPI, {
3191
+ method: "POST",
3192
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/timeline/{channel}/comments",
3193
+ path: {
3194
+ subAccountId: data.subAccountId,
3195
+ negotiationId: data.negotiationId,
3196
+ channel: data.channel
3197
+ },
3198
+ body: data.requestBody,
3199
+ mediaType: "application/json"
3200
+ });
3201
+ };
3202
+ var queueGenerateNegotiationDocumentJob = (data) => {
3203
+ return request(OpenAPI, {
3204
+ method: "POST",
3205
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/generateDocument",
3206
+ path: {
3207
+ subAccountId: data.subAccountId,
3208
+ negotiationId: data.negotiationId
3209
+ },
3210
+ body: data.requestBody,
3211
+ mediaType: "application/json"
3212
+ });
3213
+ };
3214
+ var updateComment = (data) => {
3215
+ return request(OpenAPI, {
3216
+ method: "PUT",
3217
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/timeline/{channel}/comments/{eventId}",
3218
+ path: {
3219
+ subAccountId: data.subAccountId,
3220
+ negotiationId: data.negotiationId,
3221
+ eventId: data.eventId,
3222
+ channel: data.channel
3223
+ },
3224
+ body: data.requestBody,
3225
+ mediaType: "application/json"
3226
+ });
3227
+ };
3228
+ var deleteComment = (data) => {
3229
+ return request(OpenAPI, {
3230
+ method: "DELETE",
3231
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/timeline/{channel}/comments/{eventId}",
3232
+ path: {
3233
+ subAccountId: data.subAccountId,
3234
+ negotiationId: data.negotiationId,
3235
+ eventId: data.eventId,
3236
+ channel: data.channel
3237
+ },
3238
+ body: data.requestBody,
3239
+ mediaType: "application/json"
3240
+ });
3241
+ };
3242
+ var updateSubAccount = (data) => {
3243
+ return request(OpenAPI, {
3244
+ method: "PUT",
3245
+ url: "/api/v1/subAccounts/{subAccountId}",
3246
+ path: {
3247
+ subAccountId: data.subAccountId
3248
+ },
3249
+ body: data.requestBody,
3250
+ mediaType: "application/json",
3251
+ errors: {
3252
+ 404: "Sub-account not found"
3253
+ }
3254
+ });
3255
+ };
3256
+ var getSubAccount = (data) => {
3257
+ return request(OpenAPI, {
3258
+ method: "GET",
3259
+ url: "/api/v1/subAccounts/{subAccountId}",
3260
+ path: {
3261
+ subAccountId: data.subAccountId
3262
+ }
3263
+ });
3264
+ };
3265
+ var listSubAccounts = (data = {}) => {
3266
+ return request(OpenAPI, {
3267
+ method: "GET",
3268
+ url: "/api/v1/subAccounts",
3269
+ query: {
3270
+ minimal: data.minimal,
3271
+ subAccountName: data.subAccountName
3272
+ }
3273
+ });
3274
+ };
3275
+ var getLegacyStatistics = (data) => {
3276
+ return request(OpenAPI, {
3277
+ method: "GET",
3278
+ url: "/api/v1/subAccounts/{subAccountId}/statistics",
3279
+ path: {
3280
+ subAccountId: data.subAccountId
3281
+ },
3282
+ query: {
3283
+ documentPublisherId: data.documentPublisherId
3284
+ },
3285
+ errors: {
3286
+ 404: "Sub-account not found"
3287
+ }
3288
+ });
3289
+ };
3290
+ var getStatistics = (data) => {
3291
+ return request(OpenAPI, {
3292
+ method: "GET",
3293
+ url: "/api/v2/subAccounts/{subAccountId}/statistics",
3294
+ path: {
3295
+ subAccountId: data.subAccountId
3296
+ },
3297
+ query: {
3298
+ documentPublisherId: data.documentPublisherId,
3299
+ isDraft: data.isDraft,
3300
+ isCompleted: data.isCompleted,
3301
+ isCancelled: data.isCancelled,
3302
+ isAmendAndRestate: data.isAmendAndRestate,
3303
+ isTriparty: data.isTriparty,
3304
+ isOffline: data.isOffline,
3305
+ isAdvisorAccessible: data.isAdvisorAccessible,
3306
+ isConfirmedTemplate: data.isConfirmedTemplate,
3307
+ creationDateFrom: data.creationDateFrom,
3308
+ creationDateTo: data.creationDateTo,
3309
+ advisorRelationshipId: data.advisorRelationshipId
3310
+ },
3311
+ errors: {
3312
+ 404: "Sub-account not found"
3313
+ }
3314
+ });
3315
+ };
3316
+ var getUserStatistics = (data) => {
3317
+ return request(OpenAPI, {
3318
+ method: "GET",
3319
+ url: "/api/v2/subAccounts/{subAccountId}/statistics/users/{userId}",
3320
+ path: {
3321
+ subAccountId: data.subAccountId,
3322
+ userId: data.userId
3323
+ },
3324
+ query: {
3325
+ documentPublisherId: data.documentPublisherId,
3326
+ isDraft: data.isDraft,
3327
+ isCompleted: data.isCompleted,
3328
+ isCancelled: data.isCancelled,
3329
+ isAmendAndRestate: data.isAmendAndRestate,
3330
+ isTriparty: data.isTriparty,
3331
+ isOffline: data.isOffline,
3332
+ isAdvisorAccessible: data.isAdvisorAccessible,
3333
+ isConfirmedTemplate: data.isConfirmedTemplate,
3334
+ creationDateFrom: data.creationDateFrom,
3335
+ creationDateTo: data.creationDateTo,
3336
+ advisorRelationshipId: data.advisorRelationshipId
3337
+ },
3338
+ errors: {
3339
+ 404: "Sub-account not found"
3340
+ }
3341
+ });
3342
+ };
3343
+ var getStatisticsOverview = (data) => {
3344
+ return request(OpenAPI, {
3345
+ method: "GET",
3346
+ url: "/api/v2/subAccounts/{subAccountId}/statisticsOverview",
3347
+ path: {
3348
+ subAccountId: data.subAccountId
3349
+ },
3350
+ errors: {
3351
+ 404: "Sub-account not found"
3352
+ }
3353
+ });
3354
+ };
3355
+ var assignEntity = (data) => {
3356
+ return request(OpenAPI, {
3357
+ method: "PUT",
3358
+ url: "/api/v1/subAccounts/{subAccountId}/entity",
3359
+ path: {
3360
+ subAccountId: data.subAccountId
3361
+ },
3362
+ body: data.requestBody,
3363
+ mediaType: "application/json",
3364
+ errors: {
3365
+ 404: "Subaccount or Entity not found",
3366
+ 409: "Entity is already assigned to a subaccount in this account"
3367
+ }
3368
+ });
3369
+ };
3370
+ var moveEntity = (data) => {
3371
+ return request(OpenAPI, {
3372
+ method: "PUT",
3373
+ url: "/api/v1/subAccounts/{subAccountId}/entity/{entityId}/move",
3374
+ path: {
3375
+ entityId: data.entityId,
3376
+ subAccountId: data.subAccountId
3377
+ },
3378
+ body: data.requestBody,
3379
+ mediaType: "application/json",
3380
+ errors: {
3381
+ 404: "Entity could not be found on the Sub-Account",
3382
+ 419: "Entity cannot be moved from and to the same Sub-Account"
3383
+ }
3384
+ });
3385
+ };
3386
+ var auditTrailForSubAccountAsJson = (data) => {
3387
+ return request(OpenAPI, {
3388
+ method: "GET",
3389
+ url: "/api/v1/subAccounts/{subAccountId}/audit_trail/json",
3390
+ path: {
3391
+ subAccountId: data.subAccountId
3392
+ },
3393
+ query: {
3394
+ yearMonths: data.yearMonths
3395
+ }
3396
+ });
3397
+ };
3398
+ var auditTrailForSubAccountAsExcel = (data) => {
3399
+ return request(OpenAPI, {
3400
+ method: "GET",
3401
+ url: "/api/v1/subAccounts/{subAccountId}/audit_trail/xlsx",
3402
+ path: {
3403
+ subAccountId: data.subAccountId
3404
+ },
3405
+ query: {
3406
+ yearMonths: data.yearMonths
3407
+ }
3408
+ });
3409
+ };
3410
+ var auditTrailFilters = () => {
3411
+ return request(OpenAPI, {
3412
+ method: "GET",
3413
+ url: "/api/v1/account/audit_trail/filters"
3414
+ });
3415
+ };
3416
+ var auditTrailForAccountAsJson = (data) => {
3417
+ return request(OpenAPI, {
3418
+ method: "GET",
3419
+ url: "/api/v1/account/audit_trail/json",
3420
+ query: {
3421
+ includeSubAccountEvents: data.includeSubAccountEvents,
3422
+ yearMonths: data.yearMonths
3423
+ }
3424
+ });
3425
+ };
3426
+ var auditTrailForAccountAsExcel = (data) => {
3427
+ return request(OpenAPI, {
3428
+ method: "GET",
3429
+ url: "/api/v1/account/audit_trail/xlsx",
3430
+ query: {
3431
+ includeSubAccountEvents: data.includeSubAccountEvents,
3432
+ yearMonths: data.yearMonths
3433
+ }
3434
+ });
3435
+ };
3436
+ var emailPreferences = () => {
3437
+ return request(OpenAPI, {
3438
+ method: "GET",
3439
+ url: "/api/v1/emailPreferences"
3440
+ });
3441
+ };
3442
+ var patchEmailPreferences = (data) => {
3443
+ return request(OpenAPI, {
3444
+ method: "PATCH",
3445
+ url: "/api/v1/emailPreferences",
3446
+ body: data.requestBody,
3447
+ mediaType: "application/json"
3448
+ });
3449
+ };
3450
+ var listPotentialNegotiationAdvisors = (data) => {
3451
+ return request(OpenAPI, {
3452
+ method: "GET",
3453
+ url: "/api/v1/advisor/subAccounts/{subAccountId}/negotiations/{negotiationId}/potentialAdvisors",
3454
+ path: {
3455
+ subAccountId: data.subAccountId,
3456
+ negotiationId: data.negotiationId
3457
+ }
3458
+ });
3459
+ };
3460
+ var listPotentialPresetAdvisors = (data) => {
3461
+ return request(OpenAPI, {
3462
+ method: "GET",
3463
+ url: "/api/v1/advisor/subAccounts/{subAccountId}/presets/{presetId}/potentialAdvisors",
3464
+ path: {
3465
+ subAccountId: data.subAccountId,
3466
+ presetId: data.presetId
3467
+ }
3468
+ });
3469
+ };
3470
+ var getAccountRelationshipSummaries = () => {
3471
+ return request(OpenAPI, {
3472
+ method: "GET",
3473
+ url: "/api/v1/advisor/accounts/relationships/summary",
3474
+ errors: {
3475
+ 403: "The request is from advisor"
3476
+ }
3477
+ });
3478
+ };
3479
+ var listAdvisorsForWorkspace = (data) => {
3480
+ return request(OpenAPI, {
3481
+ method: "GET",
3482
+ url: "/api/v1/advisor/subAccounts/{subAccountId}/listAdvisors",
3483
+ path: {
3484
+ subAccountId: data.subAccountId
3485
+ }
3486
+ });
3487
+ };
3488
+ var grantNegotiationsAccess = (data) => {
3489
+ return request(OpenAPI, {
3490
+ method: "POST",
3491
+ url: "/api/v1/advisor/subAccounts/{subAccountId}/relationships/{relationshipId}/negotiations",
3492
+ path: {
3493
+ relationshipId: data.relationshipId,
3494
+ subAccountId: data.subAccountId
3495
+ },
3496
+ body: data.requestBody,
3497
+ mediaType: "application/json"
3498
+ });
3499
+ };
3500
+ var revokeNegotiationsAccess = (data) => {
3501
+ return request(OpenAPI, {
3502
+ method: "DELETE",
3503
+ url: "/api/v1/advisor/subAccounts/{subAccountId}/relationships/{relationshipId}/negotiations",
3504
+ path: {
3505
+ relationshipId: data.relationshipId,
3506
+ subAccountId: data.subAccountId
3507
+ },
3508
+ body: data.requestBody,
3509
+ mediaType: "application/json"
3510
+ });
3511
+ };
3512
+ var grantAllNegotiationsAccess = (data) => {
3513
+ return request(OpenAPI, {
3514
+ method: "PUT",
3515
+ url: "/api/v1/advisor/subAccounts/{subAccountId}/relationships/{relationshipId}/negotiations/all",
3516
+ path: {
3517
+ relationshipId: data.relationshipId,
3518
+ subAccountId: data.subAccountId
3519
+ }
3520
+ });
3521
+ };
3522
+ var grantPresetsAccess = (data) => {
3523
+ return request(OpenAPI, {
3524
+ method: "POST",
3525
+ url: "/api/v1/advisor/subAccounts/{subAccountId}/relationships/{relationshipId}/presets",
3526
+ path: {
3527
+ relationshipId: data.relationshipId,
3528
+ subAccountId: data.subAccountId
3529
+ },
3530
+ body: data.requestBody,
3531
+ mediaType: "application/json"
3532
+ });
3533
+ };
3534
+ var revokePresetsAccess = (data) => {
3535
+ return request(OpenAPI, {
3536
+ method: "DELETE",
3537
+ url: "/api/v1/advisor/subAccounts/{subAccountId}/relationships/{relationshipId}/presets",
3538
+ path: {
3539
+ relationshipId: data.relationshipId,
3540
+ subAccountId: data.subAccountId
3541
+ },
3542
+ body: data.requestBody,
3543
+ mediaType: "application/json"
3544
+ });
3545
+ };
3546
+ var createGroup = (data) => {
3547
+ return request(OpenAPI, {
3548
+ method: "POST",
3549
+ url: "/api/v1/subAccounts/{subAccountId}/negotiationGroups",
3550
+ path: {
3551
+ subAccountId: data.subAccountId
3552
+ },
3553
+ body: data.requestBody,
3554
+ mediaType: "application/json"
3555
+ });
3556
+ };
3557
+ var getGroupNames = (data) => {
3558
+ return request(OpenAPI, {
3559
+ method: "GET",
3560
+ url: "/api/v1/subAccounts/{subAccountId}/negotiationGroups",
3561
+ path: {
3562
+ subAccountId: data.subAccountId
3563
+ }
3564
+ });
3565
+ };
3566
+ var updateGroupName = (data) => {
3567
+ return request(OpenAPI, {
3568
+ method: "PUT",
3569
+ url: "/api/v1/subAccounts/{subAccountId}/negotiationGroups/{negotiationGroupId}",
3570
+ path: {
3571
+ subAccountId: data.subAccountId,
3572
+ negotiationGroupId: data.negotiationGroupId
3573
+ },
3574
+ body: data.requestBody,
3575
+ mediaType: "application/json",
3576
+ errors: {
3577
+ 404: "Negotiation group not found"
3578
+ }
3579
+ });
3580
+ };
3581
+ var getNegotiationDeltas = (data) => {
3582
+ return request(OpenAPI, {
3583
+ method: "PUT",
3584
+ url: "/api/v1/subAccounts/{subAccountId}/negotiationGroups/deltas/calculate",
3585
+ path: {
3586
+ subAccountId: data.subAccountId
3587
+ },
3588
+ body: data.requestBody,
3589
+ mediaType: "application/json"
3590
+ });
3591
+ };
3592
+ var updateNegotiationsToMatch = (data) => {
3593
+ return request(OpenAPI, {
3594
+ method: "PUT",
3595
+ url: "/api/v1/subAccounts/{subAccountId}/negotiationGroups/deltas/apply",
3596
+ path: {
3597
+ subAccountId: data.subAccountId
3598
+ },
3599
+ body: data.requestBody,
3600
+ mediaType: "application/json",
3601
+ errors: {
3602
+ 409: "One or more negotiations could not be updated, so none were updated."
3603
+ }
3604
+ });
3605
+ };
3606
+ var suggestGroupName = (data) => {
3607
+ return request(OpenAPI, {
3608
+ method: "GET",
3609
+ url: "/api/v1/subAccounts/{subAccountId}/negotiationGroups/nameSuggestions",
3610
+ path: {
3611
+ subAccountId: data.subAccountId
3612
+ },
3613
+ query: {
3614
+ desiredName: data.desiredName
3615
+ }
3616
+ });
3617
+ };
3618
+ var updateGroupMembers = (data) => {
3619
+ return request(OpenAPI, {
3620
+ method: "PUT",
3621
+ url: "/api/v1/subAccounts/{subAccountId}/negotiationGroups/{negotiationGroupId}/members",
3622
+ path: {
3623
+ subAccountId: data.subAccountId,
3624
+ negotiationGroupId: data.negotiationGroupId
3625
+ },
3626
+ body: data.requestBody,
3627
+ mediaType: "application/json",
3628
+ errors: {
3629
+ 404: "Negotiation group not found"
3630
+ }
3631
+ });
3632
+ };
3633
+ var getNegotiationsGroup = (data) => {
3634
+ return request(OpenAPI, {
3635
+ method: "GET",
3636
+ url: "/api/v1/subAccounts/{subAccountId}/negotiationGroups/{negotiationGroupId}/negotiations",
3637
+ path: {
3638
+ subAccountId: data.subAccountId,
3639
+ negotiationGroupId: data.negotiationGroupId
3640
+ }
3641
+ });
3642
+ };
3643
+ var sendGroupToCounterparty = (data) => {
3644
+ return request(OpenAPI, {
3645
+ method: "PUT",
3646
+ url: "/api/v1/subAccounts/{subAccountId}/negotiationGroups/{negotiationGroupId}/sendToCounterparty",
3647
+ path: {
3648
+ subAccountId: data.subAccountId,
3649
+ negotiationGroupId: data.negotiationGroupId
3650
+ },
3651
+ body: data.requestBody,
3652
+ mediaType: "application/json",
3653
+ errors: {
3654
+ 403: "Unauthorised access of the negotiation group and the Sub-Account",
3655
+ 409: "Could not save new version"
3656
+ }
3657
+ });
3658
+ };
3659
+ var createBulkSet = (data) => {
3660
+ return request(OpenAPI, {
3661
+ method: "POST",
3662
+ url: "/api/v1/subAccounts/{subAccountId}/bulkSets",
3663
+ path: {
3664
+ subAccountId: data.subAccountId
3665
+ },
3666
+ body: data.requestBody,
3667
+ mediaType: "application/json"
3668
+ });
3669
+ };
3670
+ var listBulkSets = (data) => {
3671
+ return request(OpenAPI, {
3672
+ method: "GET",
3673
+ url: "/api/v1/subAccounts/{subAccountId}/bulkSets",
3674
+ path: {
3675
+ subAccountId: data.subAccountId
3676
+ }
3677
+ });
3678
+ };
3679
+ var getBulkSet = (data) => {
3680
+ return request(OpenAPI, {
3681
+ method: "GET",
3682
+ url: "/api/v1/bulkSets/{bulkSetId}",
3683
+ path: {
3684
+ bulkSetId: data.bulkSetId
3685
+ }
3686
+ });
3687
+ };
3688
+ var updateAttachDocx = (data) => {
3689
+ return request(OpenAPI, {
3690
+ method: "PUT",
3691
+ url: "/api/v1/bulkSets/{bulkSetId}/updateAttachDocx",
3692
+ path: {
3693
+ bulkSetId: data.bulkSetId
3694
+ }
3695
+ });
3696
+ };
3697
+ var updateCoverNote = (data) => {
3698
+ return request(OpenAPI, {
3699
+ method: "PUT",
3700
+ url: "/api/v1/bulkSets/{bulkSetId}/coverNote",
3701
+ path: {
3702
+ bulkSetId: data.bulkSetId
3703
+ },
3704
+ body: data.requestBody,
3705
+ mediaType: "application/json"
3706
+ });
3707
+ };
3708
+ var deleteCoverNote = (data) => {
3709
+ return request(OpenAPI, {
3710
+ method: "DELETE",
3711
+ url: "/api/v1/bulkSets/{bulkSetId}/coverNote",
3712
+ path: {
3713
+ bulkSetId: data.bulkSetId
3714
+ }
3715
+ });
3716
+ };
3717
+ var bulkSetsJobCount = (data) => {
3718
+ return request(OpenAPI, {
3719
+ method: "GET",
3720
+ url: "/api/v1/subAccounts/{subAccountId}/bulkSets/count",
3721
+ path: {
3722
+ subAccountId: data.subAccountId
3723
+ }
3724
+ });
3725
+ };
3726
+ var cancelNegotiationsJobCount = (data) => {
3727
+ return request(OpenAPI, {
3728
+ method: "GET",
3729
+ url: "/api/v1/subAccounts/{subAccountId}/cancelNegotiationJobCount",
3730
+ path: {
3731
+ subAccountId: data.subAccountId
3732
+ }
3733
+ });
3734
+ };
3735
+ var sendBulkSetToCounterpartiesInitial = (data) => {
3736
+ return request(OpenAPI, {
3737
+ method: "PUT",
3738
+ url: "/api/v1/bulkSets/{bulkSetId}/sendToCounterparty/initial",
3739
+ path: {
3740
+ bulkSetId: data.bulkSetId
3741
+ }
3742
+ });
3743
+ };
3744
+ var setBulkSetAttachments = (data) => {
3745
+ return request(OpenAPI, {
3746
+ method: "POST",
3747
+ url: "/api/v1/bulkSets/{bulkSetId}/attachment",
3748
+ path: {
3749
+ bulkSetId: data.bulkSetId
3750
+ },
3751
+ formData: data.formData,
3752
+ mediaType: "multipart/form-data",
3753
+ errors: {
3754
+ 400: "The file(s) are too large or would exceed the maximum total size for all files",
3755
+ 404: "The bulk set was not found"
3756
+ }
3757
+ });
3758
+ };
3759
+ var deleteBulkSetAttachment = (data) => {
3760
+ return request(OpenAPI, {
3761
+ method: "DELETE",
3762
+ url: "/api/v1/bulkSets/{bulkSetId}/attachment/{fileName}",
3763
+ path: {
3764
+ bulkSetId: data.bulkSetId,
3765
+ fileName: data.fileName
3766
+ }
3767
+ });
3768
+ };
3769
+ var getBulkSetAttachment = (data) => {
3770
+ return request(OpenAPI, {
3771
+ method: "GET",
3772
+ url: "/api/v1/bulkSets/{bulkSetId}/attachment/{fileName}",
3773
+ path: {
3774
+ bulkSetId: data.bulkSetId,
3775
+ fileName: data.fileName
3776
+ }
3777
+ });
3778
+ };
3779
+ var validateDraftReceiverEmails = (data) => {
3780
+ return request(OpenAPI, {
3781
+ method: "POST",
3782
+ url: "/api/v1/subAccounts/{subAccountId}/bulkSets/validateEmails",
3783
+ path: {
3784
+ subAccountId: data.subAccountId
3785
+ },
3786
+ body: data.requestBody,
3787
+ mediaType: "application/json"
3788
+ });
3789
+ };
3790
+ var getDraftingNotes = (data) => {
3791
+ return request(OpenAPI, {
3792
+ method: "GET",
3793
+ url: "/api/v1/documents/{documentId}/subAccounts/{subAccountId}/draftingNotes",
3794
+ path: {
3795
+ documentId: data.documentId,
3796
+ subAccountId: data.subAccountId
3797
+ }
3798
+ });
3799
+ };
3800
+ var updateDraftingNotes = (data) => {
3801
+ return request(OpenAPI, {
3802
+ method: "POST",
3803
+ url: "/api/v1/documents/{documentId}/subAccounts/{subAccountId}/draftingNotes",
3804
+ path: {
3805
+ documentId: data.documentId,
3806
+ subAccountId: data.subAccountId
3807
+ },
3808
+ errors: {
3809
+ 400: "Update drafting notes failed"
3810
+ }
3811
+ });
3812
+ };
3813
+ var deleteDraftingNotesDocument = (data) => {
3814
+ return request(OpenAPI, {
3815
+ method: "DELETE",
3816
+ url: "/api/v1/documents/{documentId}/subAccounts/{subAccountId}/draftingNotes",
3817
+ path: {
3818
+ documentId: data.documentId,
3819
+ subAccountId: data.subAccountId
3820
+ }
3821
+ });
3822
+ };
3823
+ var updateDocumentDraftingNote = (data) => {
3824
+ return request(OpenAPI, {
3825
+ method: "PUT",
3826
+ url: "/api/v1/documents/{documentId}/subAccounts/{subAccountId}/draftingNote/noteType/{noteType}",
3827
+ path: {
3828
+ documentId: data.documentId,
3829
+ subAccountId: data.subAccountId,
3830
+ noteType: data.noteType
3831
+ },
3832
+ errors: {
3833
+ 400: "Drafting note update failed"
3834
+ }
3835
+ });
3836
+ };
3837
+ var deleteDocumentDraftingNote = (data) => {
3838
+ return request(OpenAPI, {
3839
+ method: "DELETE",
3840
+ url: "/api/v1/documents/{documentId}/subAccounts/{subAccountId}/draftingNote/noteType/{noteType}",
3841
+ path: {
3842
+ documentId: data.documentId,
3843
+ subAccountId: data.subAccountId,
3844
+ noteType: data.noteType
3845
+ },
3846
+ errors: {
3847
+ 400: "Deletion of drafting note failed",
3848
+ 404: "No document draftinmg note exist for the specified type"
3849
+ }
3850
+ });
3851
+ };
3852
+ var updateDocumentElectionDraftingNote = (data) => {
3853
+ return request(OpenAPI, {
3854
+ method: "PUT",
3855
+ url: "/api/v1/documents/{documentId}/subAccounts/{subAccountId}/draftingNote/elections/{electionId}/noteType/{noteType}",
3856
+ path: {
3857
+ documentId: data.documentId,
3858
+ subAccountId: data.subAccountId,
3859
+ electionId: data.electionId,
3860
+ noteType: data.noteType
3861
+ },
3862
+ errors: {
3863
+ 400: "Drafting note update failed"
3864
+ }
3865
+ });
3866
+ };
3867
+ var deleteDocumentElectionDraftingNote = (data) => {
3868
+ return request(OpenAPI, {
3869
+ method: "DELETE",
3870
+ url: "/api/v1/documents/{documentId}/subAccounts/{subAccountId}/draftingNote/elections/{electionId}/noteType/{noteType}",
3871
+ path: {
3872
+ documentId: data.documentId,
3873
+ subAccountId: data.subAccountId,
3874
+ electionId: data.electionId,
3875
+ noteType: data.noteType
3876
+ },
3877
+ errors: {
3878
+ 400: "Deletion of drafting note failed",
3879
+ 404: "No document draftinmg note exist for the specified type"
3880
+ }
3881
+ });
3882
+ };
3883
+ var getNegotiationDraftingNotes = (data) => {
3884
+ return request(OpenAPI, {
3885
+ method: "GET",
3886
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/negotiationDraftingNotes",
3887
+ path: {
3888
+ subAccountId: data.subAccountId,
3889
+ negotiationId: data.negotiationId
3890
+ }
3891
+ });
3892
+ };
3893
+ var getDraftingNotesDocument = (data) => {
3894
+ return request(OpenAPI, {
3895
+ method: "GET",
3896
+ url: "/api/v1/subAccounts/{subAccountId}/draftingNotes",
3897
+ path: {
3898
+ subAccountId: data.subAccountId
3899
+ }
3900
+ });
3901
+ };
3902
+ var obtainConsent = () => {
3903
+ return request(OpenAPI, {
3904
+ method: "GET",
3905
+ url: "/api/v1/docusign/connect",
3906
+ errors: {
3907
+ 308: "Redirects user to the DocuSign consent form"
3908
+ }
3909
+ });
3910
+ };
3911
+ var getNegotiationESignStatus = (data) => {
3912
+ return request(OpenAPI, {
3913
+ method: "GET",
3914
+ url: "/api/v1/docusign/status/subAccounts/{subAccountId}/negotiations/{negotiationId}",
3915
+ path: {
3916
+ subAccountId: data.subAccountId,
3917
+ negotiationId: data.negotiationId
3918
+ }
3919
+ });
3920
+ };
3921
+ var consentCodeCallback = () => {
3922
+ return request(OpenAPI, {
3923
+ method: "GET",
3924
+ url: "/api/v1/docusign/redirectCodeCallback",
3925
+ errors: {
3926
+ 308: "Redirects the user back to the negotiation signing page"
3927
+ }
3928
+ });
3929
+ };
3930
+ var generateAndMaybeSendEnvelope = (data) => {
3931
+ return request(OpenAPI, {
3932
+ method: "GET",
3933
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/signWithDocuSign",
3934
+ path: {
3935
+ subAccountId: data.subAccountId,
3936
+ negotiationId: data.negotiationId
3937
+ },
3938
+ errors: {
3939
+ 400: "DocuSign API errors"
3940
+ }
3941
+ });
3942
+ };
3943
+ var voidESignEnvelopeForNegotiation = (data) => {
3944
+ return request(OpenAPI, {
3945
+ method: "PUT",
3946
+ url: "/api/v1/esign/{subAccountId}/negotiations/{negotiationId}/cancelSession",
3947
+ path: {
3948
+ subAccountId: data.subAccountId,
3949
+ negotiationId: data.negotiationId
3950
+ },
3951
+ errors: {
3952
+ 400: "DocuSign API errors"
3953
+ }
3954
+ });
3955
+ };
3956
+ var usersWithNegotiationAccess = (data) => {
3957
+ return request(OpenAPI, {
3958
+ method: "GET",
3959
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/users",
3960
+ path: {
3961
+ subAccountId: data.subAccountId,
3962
+ negotiationId: data.negotiationId
3963
+ },
3964
+ query: {
3965
+ potentialApproversOnly: data.potentialApproversOnly
3966
+ }
3967
+ });
3968
+ };
3969
+ var negotiationRenderTemplate = (data) => {
3970
+ return request(OpenAPI, {
3971
+ method: "GET",
3972
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/preview",
3973
+ path: {
3974
+ subAccountId: data.subAccountId,
3975
+ negotiationId: data.negotiationId
3976
+ },
3977
+ errors: {
3978
+ 404: "Negotiation not found"
3979
+ }
3980
+ });
3981
+ };
3982
+ var presetRenderTemplate = (data) => {
3983
+ return request(OpenAPI, {
3984
+ method: "GET",
3985
+ url: "/api/v1/presets/{presetId}/preview",
3986
+ path: {
3987
+ presetId: data.presetId
3988
+ },
3989
+ errors: {
3990
+ 404: "Preset not found"
3991
+ }
3992
+ });
3993
+ };
3994
+ var getAllNegotiationCommentsForSubAccount = (data) => {
3995
+ return request(OpenAPI, {
3996
+ method: "GET",
3997
+ url: "/api/v1/subAccounts/{subAccountId}/comments/xlsx",
3998
+ path: {
3999
+ subAccountId: data.subAccountId
4000
+ },
4001
+ query: {
4002
+ yearMonths: data.yearMonths
4003
+ }
4004
+ });
4005
+ };
4006
+ var getWatchers = (data) => {
4007
+ return request(OpenAPI, {
4008
+ method: "GET",
4009
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/watchers",
4010
+ path: {
4011
+ negotiationId: data.negotiationId,
4012
+ subAccountId: data.subAccountId
4013
+ },
4014
+ errors: {
4015
+ 403: "You do not have access to the specified sub account"
4016
+ }
4017
+ });
4018
+ };
4019
+ var addWatchers = (data) => {
4020
+ return request(OpenAPI, {
4021
+ method: "POST",
4022
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/watchers",
4023
+ path: {
4024
+ negotiationId: data.negotiationId,
4025
+ subAccountId: data.subAccountId
4026
+ },
4027
+ body: data.requestBody,
4028
+ mediaType: "application/json",
4029
+ errors: {
4030
+ 403: "You do not have access to the specified sub account"
4031
+ }
4032
+ });
4033
+ };
4034
+ var removeWatchers = (data) => {
4035
+ return request(OpenAPI, {
4036
+ method: "POST",
4037
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/removeWatchers",
4038
+ path: {
4039
+ negotiationId: data.negotiationId,
4040
+ subAccountId: data.subAccountId
4041
+ },
4042
+ body: data.requestBody,
4043
+ mediaType: "application/json",
4044
+ errors: {
4045
+ 403: "You do not have access to the specified sub account"
4046
+ }
4047
+ });
4048
+ };
4049
+ var negotiationsFilter = (data) => {
4050
+ return request(OpenAPI, {
4051
+ method: "GET",
4052
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/filters/{filter}",
4053
+ path: {
4054
+ subAccountId: data.subAccountId,
4055
+ filter: data.filter
4056
+ },
4057
+ query: {
4058
+ query: data.query,
4059
+ searchContext: data.searchContext,
4060
+ pageIndex: data.pageIndex,
4061
+ pageSize: data.pageSize
4062
+ },
4063
+ errors: {
4064
+ 403: "You do not have access to the specified sub account"
4065
+ }
4066
+ });
4067
+ };
4068
+ var negotiationGetDocumentSchema = (data) => {
4069
+ return request(OpenAPI, {
4070
+ method: "GET",
4071
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/schema",
4072
+ path: {
4073
+ subAccountId: data.subAccountId,
4074
+ negotiationId: data.negotiationId
4075
+ },
4076
+ errors: {
4077
+ 404: "Schema not found"
4078
+ }
4079
+ });
4080
+ };
4081
+ var presetGetDocumentSchema = (data) => {
4082
+ return request(OpenAPI, {
4083
+ method: "GET",
4084
+ url: "/api/v1/presets/{presetId}/schema",
4085
+ path: {
4086
+ presetId: data.presetId
4087
+ },
4088
+ errors: {
4089
+ 404: "Schema not found"
4090
+ }
4091
+ });
4092
+ };
4093
+ var documentsFilter = (data) => {
4094
+ return request(OpenAPI, {
4095
+ method: "GET",
4096
+ url: "/api/v1/subAccounts/{subAccountId}/documents/filters/{filter}",
4097
+ path: {
4098
+ subAccountId: data.subAccountId,
4099
+ filter: data.filter
4100
+ },
4101
+ query: {
4102
+ query: data.query,
4103
+ pageIndex: data.pageIndex,
4104
+ pageSize: data.pageSize
4105
+ },
4106
+ errors: {
4107
+ 403: "You do not have access to the specified sub account"
4108
+ }
4109
+ });
4110
+ };
4111
+ var grantWindow = () => {
4112
+ return request(OpenAPI, {
4113
+ method: "POST",
4114
+ url: "/api/v1/supportAccess/window",
4115
+ errors: {
4116
+ 400: "Maximum limit on access duration exceeded"
4117
+ }
4118
+ });
4119
+ };
4120
+ var getWindow = () => {
4121
+ return request(OpenAPI, {
4122
+ method: "GET",
4123
+ url: "/api/v1/supportAccess/window",
4124
+ errors: {
4125
+ 404: "No access provided for the requester or the access is expired"
4126
+ }
4127
+ });
4128
+ };
4129
+ var extendWindow = () => {
4130
+ return request(OpenAPI, {
4131
+ method: "PUT",
4132
+ url: "/api/v1/supportAccess/window",
4133
+ errors: {
4134
+ 404: "No access provided for the requester"
4135
+ }
4136
+ });
4137
+ };
4138
+ var revokeWindow = () => {
4139
+ return request(OpenAPI, {
4140
+ method: "DELETE",
4141
+ url: "/api/v1/supportAccess/window"
4142
+ });
4143
+ };
4144
+ var getExtractionResults = (data) => {
4145
+ return request(OpenAPI, {
4146
+ method: "GET",
4147
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/extraction/getResults",
4148
+ path: {
4149
+ subAccountId: data.subAccountId,
4150
+ negotiationId: data.negotiationId
4151
+ },
4152
+ errors: {
4153
+ 404: "Extraction has not started for this negotiation"
4154
+ }
4155
+ });
4156
+ };
4157
+ var scheduleExtraction = (data) => {
4158
+ return request(OpenAPI, {
4159
+ method: "PUT",
4160
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/extraction/start",
4161
+ path: {
4162
+ subAccountId: data.subAccountId,
4163
+ negotiationId: data.negotiationId
4164
+ },
4165
+ errors: {
4166
+ 403: "Extraction is not enabled for the document type or the negotiation is not offline"
4167
+ }
4168
+ });
4169
+ };
4170
+ var updateSelectedElections = (data) => {
4171
+ return request(OpenAPI, {
4172
+ method: "PUT",
4173
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/extraction/elections",
4174
+ path: {
4175
+ subAccountId: data.subAccountId,
4176
+ negotiationId: data.negotiationId
4177
+ },
4178
+ body: data.requestBody,
4179
+ mediaType: "application/json",
4180
+ errors: {
4181
+ 404: "Negotiation or election not found"
4182
+ }
4183
+ });
4184
+ };
4185
+ var updateExtractionFeedback = (data) => {
4186
+ return request(OpenAPI, {
4187
+ method: "PUT",
4188
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/extraction/feedback",
4189
+ path: {
4190
+ subAccountId: data.subAccountId,
4191
+ negotiationId: data.negotiationId
4192
+ },
4193
+ body: data.requestBody,
4194
+ mediaType: "application/json",
4195
+ errors: {
4196
+ 404: "Negotiation or election not found"
4197
+ }
4198
+ });
4199
+ };
4200
+ var updateUserAnswers = (data) => {
4201
+ return request(OpenAPI, {
4202
+ method: "PUT",
4203
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/extraction/answers",
4204
+ path: {
4205
+ subAccountId: data.subAccountId,
4206
+ negotiationId: data.negotiationId
4207
+ },
4208
+ body: data.requestBody,
4209
+ mediaType: "application/json",
4210
+ errors: {
4211
+ 404: "Negotiation or election not found"
4212
+ }
4213
+ });
4214
+ };
4215
+ var resetUserAnswers = (data) => {
4216
+ return request(OpenAPI, {
4217
+ method: "POST",
4218
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/extraction/resetAnswers",
4219
+ path: {
4220
+ subAccountId: data.subAccountId,
4221
+ negotiationId: data.negotiationId
4222
+ },
4223
+ body: data.requestBody,
4224
+ mediaType: "application/json",
4225
+ errors: {
4226
+ 404: "Negotiation or election not found"
4227
+ }
4228
+ });
4229
+ };
4230
+ var cancelExtraction = (data) => {
4231
+ return request(OpenAPI, {
4232
+ method: "PUT",
4233
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/extraction/cancel",
4234
+ path: {
4235
+ subAccountId: data.subAccountId,
4236
+ negotiationId: data.negotiationId
4237
+ },
4238
+ errors: {
4239
+ 403: "Extraction has not started for the negotiation or has already been accepted"
4240
+ }
4241
+ });
4242
+ };
4243
+ var applyExtractedAnswers = (data) => {
4244
+ return request(OpenAPI, {
4245
+ method: "PUT",
4246
+ url: "/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/extraction/apply",
4247
+ path: {
4248
+ subAccountId: data.subAccountId,
4249
+ negotiationId: data.negotiationId
4250
+ },
4251
+ errors: {
4252
+ 403: "Extraction has not started for the negotiation or has already been accepted"
4253
+ }
4254
+ });
4255
+ };
4256
+ // Annotate the CommonJS export names for ESM import in node:
4257
+ 0 && (module.exports = {
4258
+ ApiError,
4259
+ CancelError,
4260
+ CancelablePromise,
4261
+ OpenAPI,
4262
+ acceptAllCounterpartyPositions,
4263
+ acceptAllCustodianTemplatePositions,
4264
+ acceptAllPositionsFromFork,
4265
+ acceptAllPositionsFromPreviousVersion,
4266
+ acceptAllPresetPositions,
4267
+ acceptCounterpartyPosition,
4268
+ acceptNestedAnswersCounterpartyPosition,
4269
+ accountSummary,
4270
+ addApprovalComment,
4271
+ addComment,
4272
+ addElectionApproval,
4273
+ addElectionRejection,
4274
+ addWatchers,
4275
+ applyExtractedAnswers,
4276
+ approveFinalDocument,
4277
+ assignEntity,
4278
+ assignToMe,
4279
+ assignUser,
4280
+ auditTrailFilters,
4281
+ auditTrailForAccountAsExcel,
4282
+ auditTrailForAccountAsJson,
4283
+ auditTrailForSubAccountAsExcel,
4284
+ auditTrailForSubAccountAsJson,
4285
+ authPing,
4286
+ breakingChanges,
4287
+ bulkSetsJobCount,
4288
+ cancel,
4289
+ cancelExtraction,
4290
+ cancelNegotiations,
4291
+ cancelNegotiationsJobCount,
4292
+ changeSigningMode,
4293
+ checkAuxiliaryDocument,
4294
+ checkOfflineNegotiatedDocument,
4295
+ checkSignedExecutedVersion,
4296
+ checkSignedSignaturePagePdf,
4297
+ clonePreset,
4298
+ confirm,
4299
+ confirmExecutionVersion,
4300
+ consentCodeCallback,
4301
+ createAuditTrailJson,
4302
+ createAuditTrailPdf,
4303
+ createAuditTrailXlsx,
4304
+ createBulkSet,
4305
+ createGroup,
4306
+ createNegotiation,
4307
+ createPreset,
4308
+ createPresetAuditTrailJson,
4309
+ createPresetAuditTrailXlsx,
4310
+ createSignaturePagePdf,
4311
+ createSigningPack,
4312
+ deleteApprovalComment,
4313
+ deleteAuxiliaryDocument,
4314
+ deleteBulkSetAttachment,
4315
+ deleteComment,
4316
+ deleteCoverNote,
4317
+ deleteDocumentDraftingNote,
4318
+ deleteDocumentElectionDraftingNote,
4319
+ deleteDraftingNotesDocument,
4320
+ deleteEntity,
4321
+ deleteExecutionAttachment,
4322
+ deleteExternalAttachment,
4323
+ deleteGeneralCoverNote,
4324
+ deleteOfflineNegotiatedDocument,
4325
+ deletePreset,
4326
+ deleteSignedExecutedVersion,
4327
+ deleteSignedSignaturePageForParty,
4328
+ documentRenderTemplate,
4329
+ documentsFilter,
4330
+ downloadActiveNegotiationsReportAsExcel,
4331
+ downloadDashboardReportAsExcel,
4332
+ downloadExecutedNegotiationsAsExcel,
4333
+ downloadNegotiation,
4334
+ downloadPostExecutionPack,
4335
+ downloadPreExecutionCounterpartyNegotiation,
4336
+ downloadPreset,
4337
+ editAnswers,
4338
+ editApprovalComment,
4339
+ editDefaultAnswers,
4340
+ emailPreferences,
4341
+ extendWindow,
4342
+ forkNegotiation,
4343
+ generateAndMaybeSendEnvelope,
4344
+ getAccessibleNegotiation,
4345
+ getAccountRelationshipSummaries,
4346
+ getAllNegotiationCommentsForSubAccount,
4347
+ getAllVersions,
4348
+ getAmendDefaults,
4349
+ getAnnotatedOfflineNegotiatedDocument,
4350
+ getApprovalComments,
4351
+ getApprovalHistory,
4352
+ getApprovalRound,
4353
+ getAsCdm,
4354
+ getAuxiliaryDocument,
4355
+ getBulkSet,
4356
+ getBulkSetAttachment,
4357
+ getChannelTimeline,
4358
+ getCommentSummary,
4359
+ getComments,
4360
+ getCompanyByEntityId,
4361
+ getDocument,
4362
+ getDocumentSchema,
4363
+ getDownloadActiveNegotiationsReportAsExcel,
4364
+ getDownloadExecutedNegotiationsAsExcel,
4365
+ getDraftingNotes,
4366
+ getDraftingNotesDocument,
4367
+ getElectionAnswer,
4368
+ getExecutedNegotiationSummary,
4369
+ getExecutionAttachment,
4370
+ getExternalAttachment,
4371
+ getExtractionResults,
4372
+ getGroupNames,
4373
+ getLatestDocumentSchema,
4374
+ getLegacyStatistics,
4375
+ getMajorVersions,
4376
+ getMultipleNestedAnswers,
4377
+ getNegotiation,
4378
+ getNegotiationDeltas,
4379
+ getNegotiationDraftingNotes,
4380
+ getNegotiationESignStatus,
4381
+ getNegotiationFilesSummary,
4382
+ getNegotiationsGroup,
4383
+ getNestedAnswers,
4384
+ getOfflineNegotiatedDocument,
4385
+ getOfflineNegotiatedDocumentAnnotations,
4386
+ getOriginalAnswersForForkNegotiation,
4387
+ getOtherPartyAnswers,
4388
+ getPartyAnswers,
4389
+ getPreset,
4390
+ getPreviousActiveUsers,
4391
+ getPreviousMajorVersionsNestedAnswerElections,
4392
+ getPreviousMajorVersionsNestedAnswerIds,
4393
+ getProfile,
4394
+ getSecurityContext,
4395
+ getSettings,
4396
+ getSignedExecutedVersion,
4397
+ getSignedSignaturePagePdf,
4398
+ getSsoConfig,
4399
+ getStatistics,
4400
+ getStatisticsOverview,
4401
+ getSubAccount,
4402
+ getTimeline,
4403
+ getTimelineActivity,
4404
+ getUserStatistics,
4405
+ getUsers,
4406
+ getUsersForPicker,
4407
+ getWatchers,
4408
+ getWindow,
4409
+ grantAllNegotiationsAccess,
4410
+ grantNegotiationsAccess,
4411
+ grantPresetsAccess,
4412
+ grantWindow,
4413
+ initialAnswers,
4414
+ listAdvisorsForWorkspace,
4415
+ listAllPresetsForSubAccountV1,
4416
+ listAllPresetsForSubAccountV2,
4417
+ listBulkSets,
4418
+ listDocuments,
4419
+ listDocumentsVersionsSummary,
4420
+ listDocumentsWithPagination,
4421
+ listEntities,
4422
+ listExecutionAttachments,
4423
+ listExternalAttachments,
4424
+ listNegotiations,
4425
+ listPotentialNegotiationAdvisors,
4426
+ listPotentialPresetAdvisors,
4427
+ listPresets,
4428
+ listSubAccounts,
4429
+ markActivityEventsAsViewed,
4430
+ markApprovalCommentsAsViewed,
4431
+ markAsFinal,
4432
+ markAsOffline,
4433
+ markCommentEventsAsViewed,
4434
+ markEventsAsViewed,
4435
+ moveEntity,
4436
+ negotiationForkHistory,
4437
+ negotiationGetDocumentSchema,
4438
+ negotiationRenderTemplate,
4439
+ negotiationSendForApproval,
4440
+ negotiationsFilter,
4441
+ notifyOfDraft,
4442
+ obtainConsent,
4443
+ overrideApproveFinalDocument,
4444
+ overrideElectionApproval,
4445
+ overrideElectionRejection,
4446
+ overrideRejectFinalDocument,
4447
+ patchEmailPreferences,
4448
+ presetEditAnswers,
4449
+ presetGetDocumentSchema,
4450
+ presetGetMultipleNestedAnswers,
4451
+ presetGetNestedAnswers,
4452
+ presetRenderTemplate,
4453
+ presetSendForApproval,
4454
+ presetSetElectionApproval,
4455
+ presetSetFinalApproval,
4456
+ presetSetMultipleNestedAnswers,
4457
+ presetSetNestedAnswers,
4458
+ presetSwapParties,
4459
+ queueGenerateNegotiationDocumentJob,
4460
+ rejectFinalDocument,
4461
+ removeWatchers,
4462
+ renameExecutionAttachment,
4463
+ resetUserAnswers,
4464
+ retract,
4465
+ revertToAmending,
4466
+ revokeNegotiationsAccess,
4467
+ revokePresetsAccess,
4468
+ revokeWindow,
4469
+ scheduleExtraction,
4470
+ schemaAvailableAsCdm,
4471
+ searchEntity,
4472
+ sendBulkSetToCounterpartiesInitial,
4473
+ sendChaserEmail,
4474
+ sendDocumentApprovalReminder,
4475
+ sendElectionApprovalReminder,
4476
+ sendGroupToCounterparty,
4477
+ sendToCounterparty,
4478
+ sendToCounterpartyInitial,
4479
+ setAuxiliaryDocument,
4480
+ setBulkSetAttachments,
4481
+ setCounterparties,
4482
+ setElectionApproval,
4483
+ setExecutionAttachment,
4484
+ setExecutionAttachments,
4485
+ setExternalAttachment,
4486
+ setExternalAttachments,
4487
+ setFinalApproval,
4488
+ setGeneralCoverNote,
4489
+ setMultipleNestedAnswers,
4490
+ setNestedAnswers,
4491
+ setOfflineNegotiatedDocument,
4492
+ setOwnerEntity,
4493
+ setPreset,
4494
+ setReceiverEntity,
4495
+ setSignedExecutedVersion,
4496
+ setSignedSignaturePageForParty,
4497
+ suggestGroupName,
4498
+ swapParties,
4499
+ unsubscribe,
4500
+ updateAttachDocx,
4501
+ updateComment,
4502
+ updateCoverNote,
4503
+ updateCustomFields,
4504
+ updateDocumentDraftingNote,
4505
+ updateDocumentElectionDraftingNote,
4506
+ updateDraftingNotes,
4507
+ updateExtractionFeedback,
4508
+ updateGroupMembers,
4509
+ updateGroupName,
4510
+ updateMetadata,
4511
+ updateNegotiationsToMatch,
4512
+ updateSelectedElections,
4513
+ updateSubAccount,
4514
+ updateUserAnswers,
4515
+ upgradePresetSchema,
4516
+ upgradeSchema,
4517
+ usersWithNegotiationAccess,
4518
+ validateDraftReceiverEmails,
4519
+ validateEntities,
4520
+ version,
4521
+ voidESignEnvelopeForNegotiation
4522
+ });
4523
+ //# sourceMappingURL=index.cjs.map