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