asposeslidescloud 22.1.0 → 22.1.1

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/api.d.ts ADDED
@@ -0,0 +1,3452 @@
1
+ import http = require("http");
2
+ import { Configuration } from "./internal/configuration";
3
+ import * as model from "./model";
4
+ export * from "./model";
5
+ export declare class SlidesApi {
6
+ private _configuration;
7
+ readonly configuration: Configuration;
8
+ /**
9
+ * @param appSid Client Id.
10
+ * @param appKey Client Secret.
11
+ * @param baseUrl Base api Url.
12
+ * @param authBaseUrl Base authentication Url.
13
+ * @param debugMode A value indicating whether debug mode. In debug mode all requests and responses are logged to console.
14
+ * @param timeout Timeout (in seconds) for an operation. Applies to the Slides operation, not to the HTTP request.
15
+ */
16
+ constructor(appSid: string, appKey: string, baseUrl?: string, authBaseUrl?: string, debugMode?: boolean, timeout?: number);
17
+ /**
18
+ * Changes the placement of selected shapes on the slide. Aligns shapes to the margins or the edge of the slide or aligns them relative to each other.
19
+ * @param name Document name.
20
+ * @param slideIndex Slide index.
21
+ * @param alignmentType Alignment type that will be applied to the shapes.
22
+ * @param alignToSlide If true, shapes will be aligned relative to the slide edges.
23
+ * @param shapes Shapes indexes.
24
+ * @param password Document password.
25
+ * @param folder Document folder.
26
+ * @param storage Document storage.
27
+ */
28
+ alignShapes(name: string, slideIndex: number, alignmentType: model.ShapesAlignmentType, alignToSlide?: boolean, shapes?: Array<number>, password?: string, folder?: string, storage?: string): Promise<{
29
+ response: http.ClientResponse;
30
+ body: model.Shapes;
31
+ }>;
32
+ /**
33
+ * Changes the placement of selected shapes on the master slide. Aligns shapes to the margins or the edge of the slide or aligns them relative to each other.
34
+ * @param name Document name.
35
+ * @param slideIndex Parent slide index.
36
+ * @param slideType Slide type (master, layout or notes).
37
+ * @param alignmentType Alignment type that will be applied to the shapes.
38
+ * @param alignToSlide If true, shapes will be aligned relative to the slide edges.
39
+ * @param shapes Shapes indexes.
40
+ * @param password Document password.
41
+ * @param folder Document folder.
42
+ * @param storage Document storage.
43
+ */
44
+ alignSpecialSlideShapes(name: string, slideIndex: number, slideType: model.SpecialSlideType, alignmentType: model.ShapesAlignmentType, alignToSlide?: boolean, shapes?: Array<number>, password?: string, folder?: string, storage?: string): Promise<{
45
+ response: http.ClientResponse;
46
+ body: model.Shapes;
47
+ }>;
48
+ /**
49
+ * Changes the placement of selected shapes on the slide. Aligns shapes to the margins or the edge of the slide or aligns them relative to each other (for group shapes only).
50
+ * @param name Document name.
51
+ * @param slideIndex Slide index.
52
+ * @param path Shape path (for smart art and group shapes).
53
+ * @param alignmentType Alignment type that will be applied to the shapes.
54
+ * @param alignToSlide If true, shapes will be aligned relative to the slide edges.
55
+ * @param shapes Shapes indexes.
56
+ * @param password Document password.
57
+ * @param folder Document folder.
58
+ * @param storage Document storage.
59
+ */
60
+ alignSubshapes(name: string, slideIndex: number, path: string, alignmentType: model.ShapesAlignmentType, alignToSlide?: boolean, shapes?: Array<number>, password?: string, folder?: string, storage?: string): Promise<{
61
+ response: http.ClientResponse;
62
+ body: model.Shapes;
63
+ }>;
64
+ /**
65
+ * Convert presentation from request content to format specified.
66
+ * @param document Document data.
67
+ * @param format Export format.
68
+ * @param password Document password.
69
+ * @param storage Document storage.
70
+ * @param fontsFolder Custom fonts folder.
71
+ * @param slides The indices of the slides to be converted. If not specified, all slides are converted by default.
72
+ * @param options Export options.
73
+ */
74
+ convert(document: Buffer, format: model.ExportFormat, password?: string, storage?: string, fontsFolder?: string, slides?: Array<number>, options?: model.ExportOptions): Promise<{
75
+ response: http.ClientResponse;
76
+ body: Buffer;
77
+ }>;
78
+ /**
79
+ * Convert presentation from request content to format specified.
80
+ * @param document Document data.
81
+ * @param format Export format.
82
+ * @param outPath Path to save result.
83
+ * @param password Document password.
84
+ * @param storage Document storage.
85
+ * @param fontsFolder Custom fonts folder.
86
+ * @param slides The indices of the slides to be converted. If not specified, all slides are converted by default.
87
+ * @param options Export options.
88
+ */
89
+ convertAndSave(document: Buffer, format: model.ExportFormat, outPath: string, password?: string, storage?: string, fontsFolder?: string, slides?: Array<number>, options?: model.ExportOptions): Promise<{
90
+ response: http.ClientResponse;
91
+ }>;
92
+ /**
93
+ * Copy file
94
+ * @param srcPath Source file path e.g. '/folder/file.ext'
95
+ * @param destPath Destination file path
96
+ * @param srcStorageName Source storage name
97
+ * @param destStorageName Destination storage name
98
+ * @param versionId File version ID to copy
99
+ */
100
+ copyFile(srcPath: string, destPath: string, srcStorageName?: string, destStorageName?: string, versionId?: string): Promise<{
101
+ response: http.ClientResponse;
102
+ }>;
103
+ /**
104
+ * Copy folder
105
+ * @param srcPath Source folder path e.g. '/src'
106
+ * @param destPath Destination folder path e.g. '/dst'
107
+ * @param srcStorageName Source storage name
108
+ * @param destStorageName Destination storage name
109
+ */
110
+ copyFolder(srcPath: string, destPath: string, srcStorageName?: string, destStorageName?: string): Promise<{
111
+ response: http.ClientResponse;
112
+ }>;
113
+ /**
114
+ * Copy layoutSlide from source presentation.
115
+ * @param name Document name.
116
+ * @param cloneFrom Name of the document to clone layoutSlide from.
117
+ * @param cloneFromPosition Position of cloned layout slide.
118
+ * @param cloneFromPassword Password for the document to clone layoutSlide from.
119
+ * @param cloneFromStorage Storage of the document to clone layoutSlide from.
120
+ * @param password Document password.
121
+ * @param folder Document folder.
122
+ * @param storage Document storage.
123
+ */
124
+ copyLayoutSlide(name: string, cloneFrom: string, cloneFromPosition: number, cloneFromPassword?: string, cloneFromStorage?: string, password?: string, folder?: string, storage?: string): Promise<{
125
+ response: http.ClientResponse;
126
+ body: model.LayoutSlide;
127
+ }>;
128
+ /**
129
+ * Copy masterSlide from source presentation.
130
+ * @param name Document name.
131
+ * @param cloneFrom Name of the document to clone masterSlide from.
132
+ * @param cloneFromPosition Position of cloned master slide.
133
+ * @param cloneFromPassword Password for the document to clone masterSlide from.
134
+ * @param cloneFromStorage Storage of the document to clone masterSlide from.
135
+ * @param applyToAll True to apply cloned master slide to every existing slide.
136
+ * @param password Document password.
137
+ * @param folder Document folder.
138
+ * @param storage Document storage.
139
+ */
140
+ copyMasterSlide(name: string, cloneFrom: string, cloneFromPosition: number, cloneFromPassword?: string, cloneFromStorage?: string, applyToAll?: boolean, password?: string, folder?: string, storage?: string): Promise<{
141
+ response: http.ClientResponse;
142
+ body: model.MasterSlide;
143
+ }>;
144
+ /**
145
+ * Copy a slide from the current or another presentation.
146
+ * @param name Document name.
147
+ * @param slideToCopy The index of the slide to be copied from the source presentation.
148
+ * @param position The target position at which to copy the slide. Copy to the end by default.
149
+ * @param source Name of the document to copy a slide from.
150
+ * @param sourcePassword Password for the document to copy a slide from.
151
+ * @param sourceStorage Template storage name.
152
+ * @param password Document password.
153
+ * @param folder Document folder.
154
+ * @param storage Document storage.
155
+ */
156
+ copySlide(name: string, slideToCopy: number, position?: number, source?: string, sourcePassword?: string, sourceStorage?: string, password?: string, folder?: string, storage?: string): Promise<{
157
+ response: http.ClientResponse;
158
+ body: model.Slides;
159
+ }>;
160
+ /**
161
+ * Add an effect to slide animation.
162
+ * @param name Document name.
163
+ * @param slideIndex Slide index.
164
+ * @param effect Animation effect DTO.
165
+ * @param password Document password.
166
+ * @param folder Document folder.
167
+ * @param storage Document storage.
168
+ */
169
+ createAnimationEffect(name: string, slideIndex: number, effect: model.Effect, password?: string, folder?: string, storage?: string): Promise<{
170
+ response: http.ClientResponse;
171
+ body: model.SlideAnimation;
172
+ }>;
173
+ /**
174
+ * Set slide animation.
175
+ * @param name Document name.
176
+ * @param slideIndex Slide index.
177
+ * @param sequence Animation sequence DTO.
178
+ * @param password Document password.
179
+ * @param folder Document folder.
180
+ * @param storage Document storage.
181
+ */
182
+ createAnimationInteractiveSequence(name: string, slideIndex: number, sequence: model.InteractiveSequence, password?: string, folder?: string, storage?: string): Promise<{
183
+ response: http.ClientResponse;
184
+ body: model.SlideAnimation;
185
+ }>;
186
+ /**
187
+ * Add an animation effect to a slide interactive sequence.
188
+ * @param name Document name.
189
+ * @param slideIndex Slide index.
190
+ * @param sequenceIndex The position of the interactive sequence.
191
+ * @param effect Animation effect DTO.
192
+ * @param password Document password.
193
+ * @param folder Document folder.
194
+ * @param storage Document storage.
195
+ */
196
+ createAnimationInteractiveSequenceEffect(name: string, slideIndex: number, sequenceIndex: number, effect: model.Effect, password?: string, folder?: string, storage?: string): Promise<{
197
+ response: http.ClientResponse;
198
+ body: model.SlideAnimation;
199
+ }>;
200
+ /**
201
+ * Add a new category to a chart.
202
+ * @param name Document name.
203
+ * @param slideIndex Slide index.
204
+ * @param shapeIndex Shape index.
205
+ * @param category Category DTO.
206
+ * @param password Document password.
207
+ * @param folder Document folder.
208
+ * @param storage Document storage.
209
+ */
210
+ createChartCategory(name: string, slideIndex: number, shapeIndex: number, category: model.ChartCategory, password?: string, folder?: string, storage?: string): Promise<{
211
+ response: http.ClientResponse;
212
+ body: model.Chart;
213
+ }>;
214
+ /**
215
+ * Add a new data point to a chart series.
216
+ * @param name Document name.
217
+ * @param slideIndex Slide index.
218
+ * @param shapeIndex Shape index.
219
+ * @param seriesIndex Series index.
220
+ * @param dataPoint Data point DTO.
221
+ * @param password Document password.
222
+ * @param folder Document folder.
223
+ * @param storage Document storage.
224
+ */
225
+ createChartDataPoint(name: string, slideIndex: number, shapeIndex: number, seriesIndex: number, dataPoint: model.DataPoint, password?: string, folder?: string, storage?: string): Promise<{
226
+ response: http.ClientResponse;
227
+ body: model.Chart;
228
+ }>;
229
+ /**
230
+ * Add a new series to a chart.
231
+ * @param name Document name.
232
+ * @param slideIndex Slide index.
233
+ * @param shapeIndex Shape index (must be a chart).
234
+ * @param series Series DTO.
235
+ * @param password Document password.
236
+ * @param folder Document folder.
237
+ * @param storage Document storage.
238
+ */
239
+ createChartSeries(name: string, slideIndex: number, shapeIndex: number, series: model.Series, password?: string, folder?: string, storage?: string): Promise<{
240
+ response: http.ClientResponse;
241
+ body: model.Chart;
242
+ }>;
243
+ /**
244
+ * Adds the comment on the slide.
245
+ * @param name Document name.
246
+ * @param slideIndex Slide index.
247
+ * @param dto Comment DTO.
248
+ * @param password Document password.
249
+ * @param folder Document folder.
250
+ * @param storage Document storage.
251
+ */
252
+ createComment(name: string, slideIndex: number, dto: model.SlideComment, password?: string, folder?: string, storage?: string): Promise<{
253
+ response: http.ClientResponse;
254
+ body: model.SlideComments;
255
+ }>;
256
+ /**
257
+ * Adds the comment on the slide.
258
+ * @param document Document data.
259
+ * @param slideIndex Slide index.
260
+ * @param dto Comment DTO.
261
+ * @param password Document password.
262
+ */
263
+ createCommentOnline(document: Buffer, slideIndex: number, dto: model.SlideComment, password?: string): Promise<{
264
+ response: http.ClientResponse;
265
+ body: Buffer;
266
+ }>;
267
+ /**
268
+ * Create the folder
269
+ * @param path Folder path to create e.g. 'folder_1/folder_2/'
270
+ * @param storageName Storage name
271
+ */
272
+ createFolder(path?: string, storageName?: string): Promise<{
273
+ response: http.ClientResponse;
274
+ }>;
275
+ /**
276
+ * Adds an image watermark to each slide of the presentation. Image can be provided as a part of the form or withing PictureFrame DTO for detailed customization. Both options are applicable simultaneously.
277
+ * @param name Document name.
278
+ * @param image Image data.
279
+ * @param pictureFrame PictureFrame DTO
280
+ * @param password Document password.
281
+ * @param folder Document folder.
282
+ * @param storage Document storage.
283
+ */
284
+ createImageWatermark(name: string, image?: Buffer, pictureFrame?: model.PictureFrame, password?: string, folder?: string, storage?: string): Promise<{
285
+ response: http.ClientResponse;
286
+ }>;
287
+ /**
288
+ * Adds an image watermark to each slide of the presentation. Image can be provided as a part of the form or withing PictureFrame DTO for detailed customization. Both options are applicable simultaneously.
289
+ * @param document Document data.
290
+ * @param image Image data.
291
+ * @param pictureFrame PictureFrame DTO.
292
+ * @param password Document password.
293
+ */
294
+ createImageWatermarkOnline(document: Buffer, image?: Buffer, pictureFrame?: model.PictureFrame, password?: string): Promise<{
295
+ response: http.ClientResponse;
296
+ body: Buffer;
297
+ }>;
298
+ /**
299
+ * Add new notes slide.
300
+ * @param name Document name.
301
+ * @param slideIndex Slide index.
302
+ * @param dto A NotesSlide object with notes slide data.
303
+ * @param password Document password.
304
+ * @param folder Document folder.
305
+ * @param storage Document storage.
306
+ */
307
+ createNotesSlide(name: string, slideIndex: number, dto: model.NotesSlide, password?: string, folder?: string, storage?: string): Promise<{
308
+ response: http.ClientResponse;
309
+ body: model.NotesSlide;
310
+ }>;
311
+ /**
312
+ * Creates new paragraph.
313
+ * @param name Document name.
314
+ * @param slideIndex Slide index.
315
+ * @param shapeIndex Shape index.
316
+ * @param dto Paragraph DTO.
317
+ * @param position Position of the new paragraph in the list. Default is at the end of the list.
318
+ * @param password Document password.
319
+ * @param folder Document folder.
320
+ * @param storage Document storage.
321
+ */
322
+ createParagraph(name: string, slideIndex: number, shapeIndex: number, dto: model.Paragraph, position?: number, password?: string, folder?: string, storage?: string): Promise<{
323
+ response: http.ClientResponse;
324
+ body: model.Paragraph;
325
+ }>;
326
+ /**
327
+ * Creates new portion.
328
+ * @param name Document name.
329
+ * @param slideIndex Slide index.
330
+ * @param shapeIndex Shape index.
331
+ * @param paragraphIndex Paragraph index.
332
+ * @param dto Portion DTO.
333
+ * @param position Position of the new portion in the list. Default is at the end of the list.
334
+ * @param password Document password.
335
+ * @param folder Document folder.
336
+ * @param storage Document storage.
337
+ */
338
+ createPortion(name: string, slideIndex: number, shapeIndex: number, paragraphIndex: number, dto: model.Portion, position?: number, password?: string, folder?: string, storage?: string): Promise<{
339
+ response: http.ClientResponse;
340
+ body: model.Portion;
341
+ }>;
342
+ /**
343
+ * Create a presentation.
344
+ * @param name Document name.
345
+ * @param data Source presentation binary data.
346
+ * @param inputPassword The password for source presentation.
347
+ * @param password The document password.
348
+ * @param folder Document folder.
349
+ * @param storage Document storage.
350
+ */
351
+ createPresentation(name: string, data?: Buffer, inputPassword?: string, password?: string, folder?: string, storage?: string): Promise<{
352
+ response: http.ClientResponse;
353
+ body: model.Document;
354
+ }>;
355
+ /**
356
+ * Create a presentation from an existing source.
357
+ * @param name Document name.
358
+ * @param sourcePath Source file path.
359
+ * @param sourcePassword Source file password.
360
+ * @param sourceStorage Source storage name.
361
+ * @param password The document password.
362
+ * @param folder Document folder.
363
+ * @param storage Document storage.
364
+ */
365
+ createPresentationFromSource(name: string, sourcePath?: string, sourcePassword?: string, sourceStorage?: string, password?: string, folder?: string, storage?: string): Promise<{
366
+ response: http.ClientResponse;
367
+ body: model.Document;
368
+ }>;
369
+ /**
370
+ * Create a presentation.
371
+ * @param name Document name.
372
+ * @param templatePath Template file path.
373
+ * @param data Document input data.
374
+ * @param templatePassword Template file password.
375
+ * @param templateStorage Template storage name.
376
+ * @param isImageDataEmbedded True if image data is embedded.
377
+ * @param password The document password.
378
+ * @param folder Document folder.
379
+ * @param storage Document storage.
380
+ */
381
+ createPresentationFromTemplate(name: string, templatePath: string, data?: string, templatePassword?: string, templateStorage?: string, isImageDataEmbedded?: boolean, password?: string, folder?: string, storage?: string): Promise<{
382
+ response: http.ClientResponse;
383
+ body: model.Document;
384
+ }>;
385
+ /**
386
+ * Create a section starting at a specified slide index.
387
+ * @param name Document name.
388
+ * @param sectionName Section name.
389
+ * @param slideIndex Slide index (one-based).
390
+ * @param password Document password.
391
+ * @param folder Document folder.
392
+ * @param storage Document storage.
393
+ */
394
+ createSection(name: string, sectionName: string, slideIndex: number, password?: string, folder?: string, storage?: string): Promise<{
395
+ response: http.ClientResponse;
396
+ body: model.Sections;
397
+ }>;
398
+ /**
399
+ * Create new shape.
400
+ * @param name Document name.
401
+ * @param slideIndex Slide index.
402
+ * @param dto Shape DTO.
403
+ * @param shapeToClone Optional index for clone shape instead of adding a new one.
404
+ * @param position Position of the new shape in the list. Default is at the end of the list.
405
+ * @param password Document password.
406
+ * @param folder Document folder.
407
+ * @param storage Document storage.
408
+ */
409
+ createShape(name: string, slideIndex: number, dto?: model.ShapeBase, shapeToClone?: number, position?: number, password?: string, folder?: string, storage?: string): Promise<{
410
+ response: http.ClientResponse;
411
+ body: model.ShapeBase;
412
+ }>;
413
+ /**
414
+ * Create a slide.
415
+ * @param name Document name.
416
+ * @param layoutAlias Alias of layout slide for new slide. Alias may be the type of layout, name of layout slide or index
417
+ * @param position The target position at which to create the slide. Add to the end by default.
418
+ * @param password Document password.
419
+ * @param folder Document folder.
420
+ * @param storage Document storage.
421
+ */
422
+ createSlide(name: string, layoutAlias?: string, position?: number, password?: string, folder?: string, storage?: string): Promise<{
423
+ response: http.ClientResponse;
424
+ body: model.Slides;
425
+ }>;
426
+ /**
427
+ * Add an effect to special slide (master, layout, notes) animation.
428
+ * @param name Document name.
429
+ * @param slideIndex Parent slide index.
430
+ * @param slideType Slide type (master, layout or notes).
431
+ * @param effect Animation effect DTO.
432
+ * @param password Document password.
433
+ * @param folder Document folder.
434
+ * @param storage Document storage.
435
+ */
436
+ createSpecialSlideAnimationEffect(name: string, slideIndex: number, slideType: model.SpecialSlideType, effect: model.Effect, password?: string, folder?: string, storage?: string): Promise<{
437
+ response: http.ClientResponse;
438
+ body: model.SlideAnimation;
439
+ }>;
440
+ /**
441
+ * Set special slide (master, layout, notes) animation.
442
+ * @param name Document name.
443
+ * @param slideIndex Parent slide index.
444
+ * @param slideType Slide type (master, layout or notes).
445
+ * @param sequence Animation sequence DTO.
446
+ * @param password Document password.
447
+ * @param folder Document folder.
448
+ * @param storage Document storage.
449
+ */
450
+ createSpecialSlideAnimationInteractiveSequence(name: string, slideIndex: number, slideType: model.SpecialSlideType, sequence: model.InteractiveSequence, password?: string, folder?: string, storage?: string): Promise<{
451
+ response: http.ClientResponse;
452
+ body: model.SlideAnimation;
453
+ }>;
454
+ /**
455
+ * Add an animation effect to a special slide (master, layout, notes) interactive sequence.
456
+ * @param name Document name.
457
+ * @param slideIndex Parent slide index.
458
+ * @param slideType Slide type (master, layout or notes).
459
+ * @param sequenceIndex The position of the interactive sequence.
460
+ * @param effect Animation effect DTO.
461
+ * @param password Document password.
462
+ * @param folder Document folder.
463
+ * @param storage Document storage.
464
+ */
465
+ createSpecialSlideAnimationInteractiveSequenceEffect(name: string, slideIndex: number, slideType: model.SpecialSlideType, sequenceIndex: number, effect: model.Effect, password?: string, folder?: string, storage?: string): Promise<{
466
+ response: http.ClientResponse;
467
+ body: model.SlideAnimation;
468
+ }>;
469
+ /**
470
+ * Creates new paragraph.
471
+ * @param name Document name.
472
+ * @param slideIndex Parent slide index.
473
+ * @param slideType Slide type (master, layout or notes).
474
+ * @param shapeIndex Shape index.
475
+ * @param dto Paragraph DTO.
476
+ * @param position Position of the new paragraph in the list. Default is at the end of the list.
477
+ * @param password Document password.
478
+ * @param folder Document folder.
479
+ * @param storage Document storage.
480
+ */
481
+ createSpecialSlideParagraph(name: string, slideIndex: number, slideType: model.SpecialSlideType, shapeIndex: number, dto: model.Paragraph, position?: number, password?: string, folder?: string, storage?: string): Promise<{
482
+ response: http.ClientResponse;
483
+ body: model.Paragraph;
484
+ }>;
485
+ /**
486
+ * Creates new portion.
487
+ * @param name Document name.
488
+ * @param slideIndex Parent slide index.
489
+ * @param slideType Slide type (master, layout or notes).
490
+ * @param shapeIndex Shape index.
491
+ * @param paragraphIndex Paragraph index.
492
+ * @param dto Portion DTO.
493
+ * @param position Position of the new portion in the list. Default is at the end of the list.
494
+ * @param password Document password.
495
+ * @param folder Document folder.
496
+ * @param storage Document storage.
497
+ */
498
+ createSpecialSlidePortion(name: string, slideIndex: number, slideType: model.SpecialSlideType, shapeIndex: number, paragraphIndex: number, dto: model.Portion, position?: number, password?: string, folder?: string, storage?: string): Promise<{
499
+ response: http.ClientResponse;
500
+ body: model.Portion;
501
+ }>;
502
+ /**
503
+ * Create new shape.
504
+ * @param name Document name.
505
+ * @param slideIndex Parent slide index.
506
+ * @param slideType Slide type (master, layout or notes).
507
+ * @param dto Shape DTO.
508
+ * @param shapeToClone Optional index for clone shape instead of adding a new one.
509
+ * @param position Position of the new shape in the list. Default is at the end of the list.
510
+ * @param password Document password.
511
+ * @param folder Document folder.
512
+ * @param storage Document storage.
513
+ */
514
+ createSpecialSlideShape(name: string, slideIndex: number, slideType: model.SpecialSlideType, dto?: model.ShapeBase, shapeToClone?: number, position?: number, password?: string, folder?: string, storage?: string): Promise<{
515
+ response: http.ClientResponse;
516
+ body: model.ShapeBase;
517
+ }>;
518
+ /**
519
+ * Create new shape (for smart art and group shapes).
520
+ * @param name Document name.
521
+ * @param slideIndex Parent slide index.
522
+ * @param slideType Slide type (master, layout or notes).
523
+ * @param path Shape path.
524
+ * @param dto Shape DTO.
525
+ * @param shapeToClone Optional index for clone shape instead of adding a new one.
526
+ * @param position Position of the new shape in the list. Default is at the end of the list.
527
+ * @param password Document password.
528
+ * @param folder Document folder.
529
+ * @param storage Document storage.
530
+ */
531
+ createSpecialSlideSubshape(name: string, slideIndex: number, slideType: model.SpecialSlideType, path?: string, dto?: model.ShapeBase, shapeToClone?: number, position?: number, password?: string, folder?: string, storage?: string): Promise<{
532
+ response: http.ClientResponse;
533
+ body: model.ShapeBase;
534
+ }>;
535
+ /**
536
+ * Creates new paragraph (for smart art and group shapes).
537
+ * @param name Document name.
538
+ * @param slideIndex Parent slide index.
539
+ * @param slideType Slide type (master, layout or notes).
540
+ * @param path Shape path.
541
+ * @param shapeIndex Shape index.
542
+ * @param dto Paragraph DTO.
543
+ * @param position Position of the new paragraph in the list. Default is at the end of the list.
544
+ * @param password Document password.
545
+ * @param folder Document folder.
546
+ * @param storage Document storage.
547
+ */
548
+ createSpecialSlideSubshapeParagraph(name: string, slideIndex: number, slideType: model.SpecialSlideType, path: string, shapeIndex: number, dto: model.Paragraph, position?: number, password?: string, folder?: string, storage?: string): Promise<{
549
+ response: http.ClientResponse;
550
+ body: model.Paragraph;
551
+ }>;
552
+ /**
553
+ * Creates new portion (for smart art and group shapes).
554
+ * @param name Document name.
555
+ * @param slideIndex Parent slide index.
556
+ * @param slideType Slide type (master, layout or notes).
557
+ * @param path Shape path.
558
+ * @param shapeIndex Shape index.
559
+ * @param paragraphIndex Paragraph index.
560
+ * @param dto Portion DTO.
561
+ * @param position Position of the new portion in the list. Default is at the end of the list.
562
+ * @param password Document password.
563
+ * @param folder Document folder.
564
+ * @param storage Document storage.
565
+ */
566
+ createSpecialSlideSubshapePortion(name: string, slideIndex: number, slideType: model.SpecialSlideType, path: string, shapeIndex: number, paragraphIndex: number, dto: model.Portion, position?: number, password?: string, folder?: string, storage?: string): Promise<{
567
+ response: http.ClientResponse;
568
+ body: model.Portion;
569
+ }>;
570
+ /**
571
+ * Create new shape (for smart art and group shapes).
572
+ * @param name Document name.
573
+ * @param slideIndex Slide index.
574
+ * @param path Shape path.
575
+ * @param dto Shape DTO.
576
+ * @param shapeToClone Optional index for clone shape instead of adding a new one.
577
+ * @param position Position of the new shape in the list. Default is at the end of the list.
578
+ * @param password Document password.
579
+ * @param folder Document folder.
580
+ * @param storage Document storage.
581
+ */
582
+ createSubshape(name: string, slideIndex: number, path?: string, dto?: model.ShapeBase, shapeToClone?: number, position?: number, password?: string, folder?: string, storage?: string): Promise<{
583
+ response: http.ClientResponse;
584
+ body: model.ShapeBase;
585
+ }>;
586
+ /**
587
+ * Creates new paragraph (for smart art and group shapes).
588
+ * @param name Document name.
589
+ * @param slideIndex Slide index.
590
+ * @param path Shape path.
591
+ * @param shapeIndex Shape index.
592
+ * @param dto Paragraph DTO.
593
+ * @param position Position of the new paragraph in the list. Default is at the end of the list.
594
+ * @param password Document password.
595
+ * @param folder Document folder.
596
+ * @param storage Document storage.
597
+ */
598
+ createSubshapeParagraph(name: string, slideIndex: number, path: string, shapeIndex: number, dto: model.Paragraph, position?: number, password?: string, folder?: string, storage?: string): Promise<{
599
+ response: http.ClientResponse;
600
+ body: model.Paragraph;
601
+ }>;
602
+ /**
603
+ * Creates new portion (for smart art and group shapes).
604
+ * @param name Document name.
605
+ * @param slideIndex Slide index.
606
+ * @param path Shape path.
607
+ * @param shapeIndex Shape index.
608
+ * @param paragraphIndex Paragraph index.
609
+ * @param dto Portion DTO.
610
+ * @param position Position of the new portion in the list. Default is at the end of the list.
611
+ * @param password Document password.
612
+ * @param folder Document folder.
613
+ * @param storage Document storage.
614
+ */
615
+ createSubshapePortion(name: string, slideIndex: number, path: string, shapeIndex: number, paragraphIndex: number, dto: model.Portion, position?: number, password?: string, folder?: string, storage?: string): Promise<{
616
+ response: http.ClientResponse;
617
+ body: model.Portion;
618
+ }>;
619
+ /**
620
+ * Adds a text watermark to each slide of the presentation. Text watermark can be setup via method arguments or withing Shape DTO for detailed customization. Both options are applicable simultaneously.
621
+ * @param name Document name.
622
+ * @param shape Shape DTO
623
+ * @param fontHeight Watermark font height.
624
+ * @param text Watermark text.
625
+ * @param fontName Watermark font name.
626
+ * @param fontColor Watermark font color.
627
+ * @param password Document password.
628
+ * @param folder Document folder.
629
+ * @param storage Document storage.
630
+ */
631
+ createWatermark(name: string, shape?: model.Shape, fontHeight?: number, text?: string, fontName?: string, fontColor?: string, password?: string, folder?: string, storage?: string): Promise<{
632
+ response: http.ClientResponse;
633
+ }>;
634
+ /**
635
+ * Adds a text watermark to each slide of the presentation. Text watermark can be setup via method arguments or withing Shape DTO for detailed customization. Both options are applicable simultaneously.
636
+ * @param document Document data.
637
+ * @param shape Shape DTO
638
+ * @param fontHeight Watermark font height.
639
+ * @param text Watermark text.
640
+ * @param fontName Watermark font name.
641
+ * @param fontColor Watermark font color.
642
+ * @param password Document password.
643
+ */
644
+ createWatermarkOnline(document: Buffer, shape?: model.Shape, fontHeight?: number, text?: string, fontName?: string, fontColor?: string, password?: string): Promise<{
645
+ response: http.ClientResponse;
646
+ body: Buffer;
647
+ }>;
648
+ /**
649
+ * Remove animation from a slide.
650
+ * @param name Document name.
651
+ * @param slideIndex Slide index.
652
+ * @param password Document password.
653
+ * @param folder Document folder.
654
+ * @param storage Document storage.
655
+ */
656
+ deleteAnimation(name: string, slideIndex: number, password?: string, folder?: string, storage?: string): Promise<{
657
+ response: http.ClientResponse;
658
+ body: model.SlideAnimation;
659
+ }>;
660
+ /**
661
+ * Remove an effect from slide animation.
662
+ * @param name Document name.
663
+ * @param slideIndex Slide index.
664
+ * @param effectIndex Index of the effect to be removed.
665
+ * @param password Document password.
666
+ * @param folder Document folder.
667
+ * @param storage Document storage.
668
+ */
669
+ deleteAnimationEffect(name: string, slideIndex: number, effectIndex: number, password?: string, folder?: string, storage?: string): Promise<{
670
+ response: http.ClientResponse;
671
+ body: model.SlideAnimation;
672
+ }>;
673
+ /**
674
+ * Remove an interactive sequence from slide animation.
675
+ * @param name Document name.
676
+ * @param slideIndex Slide index.
677
+ * @param sequenceIndex The index of an interactive sequence to be deleted.
678
+ * @param password Document password.
679
+ * @param folder Document folder.
680
+ * @param storage Document storage.
681
+ */
682
+ deleteAnimationInteractiveSequence(name: string, slideIndex: number, sequenceIndex: number, password?: string, folder?: string, storage?: string): Promise<{
683
+ response: http.ClientResponse;
684
+ body: model.SlideAnimation;
685
+ }>;
686
+ /**
687
+ * Remove an effect from slide animation interactive sequence.
688
+ * @param name Document name.
689
+ * @param slideIndex Slide index.
690
+ * @param sequenceIndex Interactive sequence index.
691
+ * @param effectIndex Index of the effect to be removed.
692
+ * @param password Document password.
693
+ * @param folder Document folder.
694
+ * @param storage Document storage.
695
+ */
696
+ deleteAnimationInteractiveSequenceEffect(name: string, slideIndex: number, sequenceIndex: number, effectIndex: number, password?: string, folder?: string, storage?: string): Promise<{
697
+ response: http.ClientResponse;
698
+ body: model.SlideAnimation;
699
+ }>;
700
+ /**
701
+ * Clear all interactive sequences from slide animation.
702
+ * @param name Document name.
703
+ * @param slideIndex Slide index.
704
+ * @param password Document password.
705
+ * @param folder Document folder.
706
+ * @param storage Document storage.
707
+ */
708
+ deleteAnimationInteractiveSequences(name: string, slideIndex: number, password?: string, folder?: string, storage?: string): Promise<{
709
+ response: http.ClientResponse;
710
+ body: model.SlideAnimation;
711
+ }>;
712
+ /**
713
+ * Clear main sequence in slide animation.
714
+ * @param name Document name.
715
+ * @param slideIndex Slide index.
716
+ * @param password Document password.
717
+ * @param folder Document folder.
718
+ * @param storage Document storage.
719
+ */
720
+ deleteAnimationMainSequence(name: string, slideIndex: number, password?: string, folder?: string, storage?: string): Promise<{
721
+ response: http.ClientResponse;
722
+ body: model.SlideAnimation;
723
+ }>;
724
+ /**
725
+ * Remove background from a slide.
726
+ * @param name Document name.
727
+ * @param slideIndex Slide index.
728
+ * @param password Document password.
729
+ * @param folder Document folder.
730
+ * @param storage Document storage.
731
+ */
732
+ deleteBackground(name: string, slideIndex: number, password?: string, folder?: string, storage?: string): Promise<{
733
+ response: http.ClientResponse;
734
+ body: model.SlideBackground;
735
+ }>;
736
+ /**
737
+ * Delete a category from a chart.
738
+ * @param name Document name.
739
+ * @param slideIndex Slide index.
740
+ * @param shapeIndex Shape index.
741
+ * @param categoryIndex Category index.
742
+ * @param password Document password.
743
+ * @param folder Document folder.
744
+ * @param storage Document storage.
745
+ */
746
+ deleteChartCategory(name: string, slideIndex: number, shapeIndex: number, categoryIndex: number, password?: string, folder?: string, storage?: string): Promise<{
747
+ response: http.ClientResponse;
748
+ body: model.Chart;
749
+ }>;
750
+ /**
751
+ * Delete a data point from a chart series.
752
+ * @param name Document name.
753
+ * @param slideIndex Slide index.
754
+ * @param shapeIndex Shape index.
755
+ * @param seriesIndex Series index.
756
+ * @param pointIndex Data point index.
757
+ * @param password Document password.
758
+ * @param folder Document folder.
759
+ * @param storage Document storage.
760
+ */
761
+ deleteChartDataPoint(name: string, slideIndex: number, shapeIndex: number, seriesIndex: number, pointIndex: number, password?: string, folder?: string, storage?: string): Promise<{
762
+ response: http.ClientResponse;
763
+ body: model.Chart;
764
+ }>;
765
+ /**
766
+ * Delete a series from a chart.
767
+ * @param name Document name.
768
+ * @param slideIndex Slide index.
769
+ * @param shapeIndex Shape index (must be a chart).
770
+ * @param seriesIndex Series index.
771
+ * @param password Document password.
772
+ * @param folder Document folder.
773
+ * @param storage Document storage.
774
+ */
775
+ deleteChartSeries(name: string, slideIndex: number, shapeIndex: number, seriesIndex: number, password?: string, folder?: string, storage?: string): Promise<{
776
+ response: http.ClientResponse;
777
+ body: model.Chart;
778
+ }>;
779
+ /**
780
+ * Removes comments of the specified author from the presentation. If author value is not provided all comments will be removed.
781
+ * @param name Document name.
782
+ * @param author Author of comments.
783
+ * @param password Document password.
784
+ * @param folder Document folder.
785
+ * @param storage Document storage.
786
+ */
787
+ deleteComments(name: string, author?: string, password?: string, folder?: string, storage?: string): Promise<{
788
+ response: http.ClientResponse;
789
+ }>;
790
+ /**
791
+ * Removes comments of the specified author from the presentation. If author value is not provided all comments will be removed.
792
+ * @param document Document data.
793
+ * @param author Author of comments.
794
+ * @param password Document password.
795
+ */
796
+ deleteCommentsOnline(document: Buffer, author?: string, password?: string): Promise<{
797
+ response: http.ClientResponse;
798
+ body: Buffer;
799
+ }>;
800
+ /**
801
+ * Clean document properties.
802
+ * @param name Document name.
803
+ * @param password Document password.
804
+ * @param folder Document folder.
805
+ * @param storage Document storage.
806
+ */
807
+ deleteDocumentProperties(name: string, password?: string, folder?: string, storage?: string): Promise<{
808
+ response: http.ClientResponse;
809
+ body: model.DocumentProperties;
810
+ }>;
811
+ /**
812
+ * Delete document property.
813
+ * @param name Document name.
814
+ * @param propertyName The property name.
815
+ * @param password Document password.
816
+ * @param folder Document folder.
817
+ * @param storage Document storage.
818
+ */
819
+ deleteDocumentProperty(name: string, propertyName: string, password?: string, folder?: string, storage?: string): Promise<{
820
+ response: http.ClientResponse;
821
+ body: model.DocumentProperties;
822
+ }>;
823
+ /**
824
+ * Delete file
825
+ * @param path File path e.g. '/folder/file.ext'
826
+ * @param storageName Storage name
827
+ * @param versionId File version ID to delete
828
+ */
829
+ deleteFile(path?: string, storageName?: string, versionId?: string): Promise<{
830
+ response: http.ClientResponse;
831
+ }>;
832
+ /**
833
+ * Delete folder
834
+ * @param path Folder path e.g. '/folder'
835
+ * @param storageName Storage name
836
+ * @param recursive Enable to delete folders, subfolders and files
837
+ */
838
+ deleteFolder(path?: string, storageName?: string, recursive?: boolean): Promise<{
839
+ response: http.ClientResponse;
840
+ }>;
841
+ /**
842
+ * Remove notes slide.
843
+ * @param name Document name.
844
+ * @param slideIndex Slide index.
845
+ * @param password Document password.
846
+ * @param folder Document folder.
847
+ * @param storage Document storage.
848
+ */
849
+ deleteNotesSlide(name: string, slideIndex: number, password?: string, folder?: string, storage?: string): Promise<{
850
+ response: http.ClientResponse;
851
+ body: model.Slide;
852
+ }>;
853
+ /**
854
+ * Remove a paragraph.
855
+ * @param name Document name.
856
+ * @param slideIndex Slide index.
857
+ * @param shapeIndex Shape index.
858
+ * @param paragraphIndex Paragraph index.
859
+ * @param password Document password.
860
+ * @param folder Document folder.
861
+ * @param storage Document storage.
862
+ */
863
+ deleteParagraph(name: string, slideIndex: number, shapeIndex: number, paragraphIndex: number, password?: string, folder?: string, storage?: string): Promise<{
864
+ response: http.ClientResponse;
865
+ body: model.Paragraphs;
866
+ }>;
867
+ /**
868
+ * Remove a range of paragraphs.
869
+ * @param name Document name.
870
+ * @param slideIndex Slide index.
871
+ * @param shapeIndex Shape index.
872
+ * @param paragraphs The indices of the paragraphs to be deleted; delete all by default.
873
+ * @param password Document password.
874
+ * @param folder Document folder.
875
+ * @param storage Document storage.
876
+ */
877
+ deleteParagraphs(name: string, slideIndex: number, shapeIndex: number, paragraphs?: Array<number>, password?: string, folder?: string, storage?: string): Promise<{
878
+ response: http.ClientResponse;
879
+ body: model.Paragraphs;
880
+ }>;
881
+ /**
882
+ * Remove a portion.
883
+ * @param name Document name.
884
+ * @param slideIndex Slide index.
885
+ * @param shapeIndex Shape index.
886
+ * @param paragraphIndex Paragraph index.
887
+ * @param portionIndex Portion index.
888
+ * @param password Document password.
889
+ * @param folder Document folder.
890
+ * @param storage Document storage.
891
+ */
892
+ deletePortion(name: string, slideIndex: number, shapeIndex: number, paragraphIndex: number, portionIndex: number, password?: string, folder?: string, storage?: string): Promise<{
893
+ response: http.ClientResponse;
894
+ body: model.Portions;
895
+ }>;
896
+ /**
897
+ * Remove a range of portions.
898
+ * @param name Document name.
899
+ * @param slideIndex Slide index.
900
+ * @param shapeIndex Shape index.
901
+ * @param paragraphIndex Paragraph index.
902
+ * @param portions The indices of the portions to be deleted; delete all by default.
903
+ * @param password Document password.
904
+ * @param folder Document folder.
905
+ * @param storage Document storage.
906
+ */
907
+ deletePortions(name: string, slideIndex: number, shapeIndex: number, paragraphIndex: number, portions?: Array<number>, password?: string, folder?: string, storage?: string): Promise<{
908
+ response: http.ClientResponse;
909
+ body: model.Portions;
910
+ }>;
911
+ /**
912
+ * Resets all presentation protection settings.
913
+ * @param name Document name.
914
+ * @param password Presentation password.
915
+ * @param folder Document folder.
916
+ * @param storage Document storage.
917
+ */
918
+ deleteProtection(name: string, password?: string, folder?: string, storage?: string): Promise<{
919
+ response: http.ClientResponse;
920
+ body: model.ProtectionProperties;
921
+ }>;
922
+ /**
923
+ * Resets all presentation protection settings.
924
+ * @param document Document data.
925
+ * @param password Presentation password.
926
+ */
927
+ deleteProtectionOnline(document: Buffer, password: string): Promise<{
928
+ response: http.ClientResponse;
929
+ body: Buffer;
930
+ }>;
931
+ /**
932
+ * Delete a presentation section.
933
+ * @param name Document name.
934
+ * @param sectionIndex Section index.
935
+ * @param withSlides True to delete the slides related to the deleted section; move them to the remaining sections otherwise.
936
+ * @param password Document password.
937
+ * @param folder Document folder.
938
+ * @param storage Document storage.
939
+ */
940
+ deleteSection(name: string, sectionIndex: number, withSlides?: boolean, password?: string, folder?: string, storage?: string): Promise<{
941
+ response: http.ClientResponse;
942
+ body: model.Sections;
943
+ }>;
944
+ /**
945
+ * Delete presentation sections.
946
+ * @param name Document name.
947
+ * @param sections The indices of the sections to be deleted; delete all by default.
948
+ * @param withSlides True to delete the slides related to the deleted sections; move them to the remaining sections otherwise.
949
+ * @param password Document password.
950
+ * @param folder Document folder.
951
+ * @param storage Document storage.
952
+ */
953
+ deleteSections(name: string, sections?: Array<number>, withSlides?: boolean, password?: string, folder?: string, storage?: string): Promise<{
954
+ response: http.ClientResponse;
955
+ body: model.Sections;
956
+ }>;
957
+ /**
958
+ * Remove a shape.
959
+ * @param name Document name.
960
+ * @param slideIndex Slide index.
961
+ * @param shapeIndex Shape index.
962
+ * @param password Document password.
963
+ * @param folder Document folder.
964
+ * @param storage Document storage.
965
+ */
966
+ deleteShape(name: string, slideIndex: number, shapeIndex: number, password?: string, folder?: string, storage?: string): Promise<{
967
+ response: http.ClientResponse;
968
+ body: model.Shapes;
969
+ }>;
970
+ /**
971
+ * Remove a range of shapes.
972
+ * @param name Document name.
973
+ * @param slideIndex Slide index.
974
+ * @param shapes The indices of the shapes to be deleted; delete all by default.
975
+ * @param password Document password.
976
+ * @param folder Document folder.
977
+ * @param storage Document storage.
978
+ */
979
+ deleteShapes(name: string, slideIndex: number, shapes?: Array<number>, password?: string, folder?: string, storage?: string): Promise<{
980
+ response: http.ClientResponse;
981
+ body: model.Shapes;
982
+ }>;
983
+ /**
984
+ * Delete a presentation slide by index.
985
+ * @param name Document name.
986
+ * @param slideIndex Slide index.
987
+ * @param password Document password.
988
+ * @param folder Document folder.
989
+ * @param storage Document storage.
990
+ */
991
+ deleteSlide(name: string, slideIndex: number, password?: string, folder?: string, storage?: string): Promise<{
992
+ response: http.ClientResponse;
993
+ body: model.Slides;
994
+ }>;
995
+ /**
996
+ * Removes comments of the specified author from the slide. If author value is not provided all comments will be removed.
997
+ * @param name Document name.
998
+ * @param slideIndex Slide index.
999
+ * @param author Author of comments.
1000
+ * @param password Document password.
1001
+ * @param folder Document folder.
1002
+ * @param storage Document storage.
1003
+ */
1004
+ deleteSlideComments(name: string, slideIndex: number, author?: string, password?: string, folder?: string, storage?: string): Promise<{
1005
+ response: http.ClientResponse;
1006
+ body: model.SlideComments;
1007
+ }>;
1008
+ /**
1009
+ * Removes comments of the specified author from the slide. If author value is not provided all comments will be removed.
1010
+ * @param document Document data.
1011
+ * @param slideIndex
1012
+ * @param author Author of comments.
1013
+ * @param password Document password.
1014
+ */
1015
+ deleteSlideCommentsOnline(document: Buffer, slideIndex: number, author?: string, password?: string): Promise<{
1016
+ response: http.ClientResponse;
1017
+ body: Buffer;
1018
+ }>;
1019
+ /**
1020
+ * Delete presentation slides.
1021
+ * @param name Document name.
1022
+ * @param slides The indices of the slides to be deleted; delete all by default.
1023
+ * @param password Document password.
1024
+ * @param folder Document folder.
1025
+ * @param storage Document storage.
1026
+ */
1027
+ deleteSlides(name: string, slides?: Array<number>, password?: string, folder?: string, storage?: string): Promise<{
1028
+ response: http.ClientResponse;
1029
+ body: model.Slides;
1030
+ }>;
1031
+ /**
1032
+ * Remove animation from a special slide (master, layout, notes).
1033
+ * @param name Document name.
1034
+ * @param slideIndex Parent slide index.
1035
+ * @param slideType Slide type (master, layout or notes).
1036
+ * @param password Document password.
1037
+ * @param folder Document folder.
1038
+ * @param storage Document storage.
1039
+ */
1040
+ deleteSpecialSlideAnimation(name: string, slideIndex: number, slideType: model.SpecialSlideType, password?: string, folder?: string, storage?: string): Promise<{
1041
+ response: http.ClientResponse;
1042
+ body: model.SlideAnimation;
1043
+ }>;
1044
+ /**
1045
+ * Remove an effect from special slide (master, layout, notes) animation.
1046
+ * @param name Document name.
1047
+ * @param slideIndex Parent slide index.
1048
+ * @param slideType Slide type (master, layout or notes).
1049
+ * @param effectIndex Index of the effect to be removed.
1050
+ * @param password Document password.
1051
+ * @param folder Document folder.
1052
+ * @param storage Document storage.
1053
+ */
1054
+ deleteSpecialSlideAnimationEffect(name: string, slideIndex: number, slideType: model.SpecialSlideType, effectIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1055
+ response: http.ClientResponse;
1056
+ body: model.SlideAnimation;
1057
+ }>;
1058
+ /**
1059
+ * Remove an interactive sequence from special slide (master, layout, notes) animation.
1060
+ * @param name Document name.
1061
+ * @param slideIndex Parent slide index.
1062
+ * @param slideType Slide type (master, layout or notes).
1063
+ * @param sequenceIndex The index of an interactive sequence to be deleted.
1064
+ * @param password Document password.
1065
+ * @param folder Document folder.
1066
+ * @param storage Document storage.
1067
+ */
1068
+ deleteSpecialSlideAnimationInteractiveSequence(name: string, slideIndex: number, slideType: model.SpecialSlideType, sequenceIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1069
+ response: http.ClientResponse;
1070
+ body: model.SlideAnimation;
1071
+ }>;
1072
+ /**
1073
+ * Remove an effect from special slide (master, layout, notes) animation interactive sequence.
1074
+ * @param name Document name.
1075
+ * @param slideIndex Parent slide index.
1076
+ * @param slideType Slide type (master, layout or notes).
1077
+ * @param sequenceIndex Interactive sequence index.
1078
+ * @param effectIndex Index of the effect to be removed.
1079
+ * @param password Document password.
1080
+ * @param folder Document folder.
1081
+ * @param storage Document storage.
1082
+ */
1083
+ deleteSpecialSlideAnimationInteractiveSequenceEffect(name: string, slideIndex: number, slideType: model.SpecialSlideType, sequenceIndex: number, effectIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1084
+ response: http.ClientResponse;
1085
+ body: model.SlideAnimation;
1086
+ }>;
1087
+ /**
1088
+ * Clear all interactive sequences from special slide (master, layout, notes) animation.
1089
+ * @param name Document name.
1090
+ * @param slideIndex Parent slide index.
1091
+ * @param slideType Slide type (master, layout or notes).
1092
+ * @param password Document password.
1093
+ * @param folder Document folder.
1094
+ * @param storage Document storage.
1095
+ */
1096
+ deleteSpecialSlideAnimationInteractiveSequences(name: string, slideIndex: number, slideType: model.SpecialSlideType, password?: string, folder?: string, storage?: string): Promise<{
1097
+ response: http.ClientResponse;
1098
+ body: model.SlideAnimation;
1099
+ }>;
1100
+ /**
1101
+ * Clear main sequence in special slide (master, layout, notes) animation.
1102
+ * @param name Document name.
1103
+ * @param slideIndex Parent slide index.
1104
+ * @param slideType Slide type (master, layout or notes).
1105
+ * @param password Document password.
1106
+ * @param folder Document folder.
1107
+ * @param storage Document storage.
1108
+ */
1109
+ deleteSpecialSlideAnimationMainSequence(name: string, slideIndex: number, slideType: model.SpecialSlideType, password?: string, folder?: string, storage?: string): Promise<{
1110
+ response: http.ClientResponse;
1111
+ body: model.SlideAnimation;
1112
+ }>;
1113
+ /**
1114
+ * Remove a paragraph.
1115
+ * @param name Document name.
1116
+ * @param slideIndex Parent slide index.
1117
+ * @param slideType Slide type (master, layout or notes).
1118
+ * @param shapeIndex Shape index.
1119
+ * @param paragraphIndex Paragraph index.
1120
+ * @param password Document password.
1121
+ * @param folder Document folder.
1122
+ * @param storage Document storage.
1123
+ */
1124
+ deleteSpecialSlideParagraph(name: string, slideIndex: number, slideType: model.SpecialSlideType, shapeIndex: number, paragraphIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1125
+ response: http.ClientResponse;
1126
+ body: model.Paragraphs;
1127
+ }>;
1128
+ /**
1129
+ * Remove a range of paragraphs.
1130
+ * @param name Document name.
1131
+ * @param slideIndex Parent slide index.
1132
+ * @param slideType Slide type (master, layout or notes).
1133
+ * @param shapeIndex Shape index.
1134
+ * @param paragraphs The indices of the shapes to be deleted; delete all by default.
1135
+ * @param password Document password.
1136
+ * @param folder Document folder.
1137
+ * @param storage Document storage.
1138
+ */
1139
+ deleteSpecialSlideParagraphs(name: string, slideIndex: number, slideType: model.SpecialSlideType, shapeIndex: number, paragraphs?: Array<number>, password?: string, folder?: string, storage?: string): Promise<{
1140
+ response: http.ClientResponse;
1141
+ body: model.Paragraphs;
1142
+ }>;
1143
+ /**
1144
+ * Remove a portion.
1145
+ * @param name Document name.
1146
+ * @param slideIndex Parent slide index.
1147
+ * @param slideType Slide type (master, layout or notes).
1148
+ * @param shapeIndex Shape index.
1149
+ * @param paragraphIndex Paragraph index.
1150
+ * @param portionIndex Portion index.
1151
+ * @param password Document password.
1152
+ * @param folder Document folder.
1153
+ * @param storage Document storage.
1154
+ */
1155
+ deleteSpecialSlidePortion(name: string, slideIndex: number, slideType: model.SpecialSlideType, shapeIndex: number, paragraphIndex: number, portionIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1156
+ response: http.ClientResponse;
1157
+ body: model.Portions;
1158
+ }>;
1159
+ /**
1160
+ * Remove a range of portions.
1161
+ * @param name Document name.
1162
+ * @param slideIndex Parent slide index.
1163
+ * @param slideType Slide type (master, layout or notes).
1164
+ * @param shapeIndex Shape index.
1165
+ * @param paragraphIndex Paragraph index.
1166
+ * @param portions The indices of the shapes to be deleted; delete all by default.
1167
+ * @param password Document password.
1168
+ * @param folder Document folder.
1169
+ * @param storage Document storage.
1170
+ */
1171
+ deleteSpecialSlidePortions(name: string, slideIndex: number, slideType: model.SpecialSlideType, shapeIndex: number, paragraphIndex: number, portions?: Array<number>, password?: string, folder?: string, storage?: string): Promise<{
1172
+ response: http.ClientResponse;
1173
+ body: model.Portions;
1174
+ }>;
1175
+ /**
1176
+ * Remove a shape.
1177
+ * @param name Document name.
1178
+ * @param slideIndex Parent slide index.
1179
+ * @param slideType Slide type (master, layout or notes).
1180
+ * @param shapeIndex Shape index.
1181
+ * @param password Document password.
1182
+ * @param folder Document folder.
1183
+ * @param storage Document storage.
1184
+ */
1185
+ deleteSpecialSlideShape(name: string, slideIndex: number, slideType: model.SpecialSlideType, shapeIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1186
+ response: http.ClientResponse;
1187
+ body: model.Shapes;
1188
+ }>;
1189
+ /**
1190
+ * Remove a range of shapes.
1191
+ * @param name Document name.
1192
+ * @param slideIndex Parent slide index.
1193
+ * @param slideType Slide type (master, layout or notes).
1194
+ * @param shapes The indices of the shapes to be deleted; delete all by default.
1195
+ * @param password Document password.
1196
+ * @param folder Document folder.
1197
+ * @param storage Document storage.
1198
+ */
1199
+ deleteSpecialSlideShapes(name: string, slideIndex: number, slideType: model.SpecialSlideType, shapes?: Array<number>, password?: string, folder?: string, storage?: string): Promise<{
1200
+ response: http.ClientResponse;
1201
+ body: model.Shapes;
1202
+ }>;
1203
+ /**
1204
+ * Remove a shape (for smart art and group shapes).
1205
+ * @param name Document name.
1206
+ * @param slideIndex Parent slide index.
1207
+ * @param slideType Slide type (master, layout or notes).
1208
+ * @param path Shape path.
1209
+ * @param shapeIndex Shape index.
1210
+ * @param password Document password.
1211
+ * @param folder Document folder.
1212
+ * @param storage Document storage.
1213
+ */
1214
+ deleteSpecialSlideSubshape(name: string, slideIndex: number, slideType: model.SpecialSlideType, path: string, shapeIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1215
+ response: http.ClientResponse;
1216
+ body: model.Shapes;
1217
+ }>;
1218
+ /**
1219
+ * Remove a paragraph (for smart art and group shapes).
1220
+ * @param name Document name.
1221
+ * @param slideIndex Parent slide index.
1222
+ * @param slideType Slide type (master, layout or notes).
1223
+ * @param path Shape path.
1224
+ * @param shapeIndex Shape index.
1225
+ * @param paragraphIndex Paragraph index.
1226
+ * @param password Document password.
1227
+ * @param folder Document folder.
1228
+ * @param storage Document storage.
1229
+ */
1230
+ deleteSpecialSlideSubshapeParagraph(name: string, slideIndex: number, slideType: model.SpecialSlideType, path: string, shapeIndex: number, paragraphIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1231
+ response: http.ClientResponse;
1232
+ body: model.Paragraphs;
1233
+ }>;
1234
+ /**
1235
+ * Remove a range of paragraphs (for smart art and group shapes).
1236
+ * @param name Document name.
1237
+ * @param slideIndex Parent slide index.
1238
+ * @param slideType Slide type (master, layout or notes).
1239
+ * @param path Shape path.
1240
+ * @param shapeIndex Shape index.
1241
+ * @param paragraphs The indices of the shapes to be deleted; delete all by default.
1242
+ * @param password Document password.
1243
+ * @param folder Document folder.
1244
+ * @param storage Document storage.
1245
+ */
1246
+ deleteSpecialSlideSubshapeParagraphs(name: string, slideIndex: number, slideType: model.SpecialSlideType, path: string, shapeIndex: number, paragraphs?: Array<number>, password?: string, folder?: string, storage?: string): Promise<{
1247
+ response: http.ClientResponse;
1248
+ body: model.Paragraphs;
1249
+ }>;
1250
+ /**
1251
+ * Remove a portion (for smart art and group shapes).
1252
+ * @param name Document name.
1253
+ * @param slideIndex Parent slide index.
1254
+ * @param slideType Slide type (master, layout or notes).
1255
+ * @param path Shape path.
1256
+ * @param shapeIndex Shape index.
1257
+ * @param paragraphIndex Paragraph index.
1258
+ * @param portionIndex Portion index.
1259
+ * @param password Document password.
1260
+ * @param folder Document folder.
1261
+ * @param storage Document storage.
1262
+ */
1263
+ deleteSpecialSlideSubshapePortion(name: string, slideIndex: number, slideType: model.SpecialSlideType, path: string, shapeIndex: number, paragraphIndex: number, portionIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1264
+ response: http.ClientResponse;
1265
+ body: model.Portions;
1266
+ }>;
1267
+ /**
1268
+ * Remove a range of portions (for smart art and group shapes).
1269
+ * @param name Document name.
1270
+ * @param slideIndex Parent slide index.
1271
+ * @param slideType Slide type (master, layout or notes).
1272
+ * @param path Shape path.
1273
+ * @param shapeIndex Shape index.
1274
+ * @param paragraphIndex Paragraph index.
1275
+ * @param portions The indices of the shapes to be deleted; delete all by default.
1276
+ * @param password Document password.
1277
+ * @param folder Document folder.
1278
+ * @param storage Document storage.
1279
+ */
1280
+ deleteSpecialSlideSubshapePortions(name: string, slideIndex: number, slideType: model.SpecialSlideType, path: string, shapeIndex: number, paragraphIndex: number, portions?: Array<number>, password?: string, folder?: string, storage?: string): Promise<{
1281
+ response: http.ClientResponse;
1282
+ body: model.Portions;
1283
+ }>;
1284
+ /**
1285
+ * Remove a range of shapes (for smart art and group shapes).
1286
+ * @param name Document name.
1287
+ * @param slideIndex Parent slide index.
1288
+ * @param slideType Slide type (master, layout or notes).
1289
+ * @param path Shape path.
1290
+ * @param shapes The indices of the shapes to be deleted; delete all by default.
1291
+ * @param password Document password.
1292
+ * @param folder Document folder.
1293
+ * @param storage Document storage.
1294
+ */
1295
+ deleteSpecialSlideSubshapes(name: string, slideIndex: number, slideType: model.SpecialSlideType, path?: string, shapes?: Array<number>, password?: string, folder?: string, storage?: string): Promise<{
1296
+ response: http.ClientResponse;
1297
+ body: model.Shapes;
1298
+ }>;
1299
+ /**
1300
+ * Remove a shape (for smart art and group shapes).
1301
+ * @param name Document name.
1302
+ * @param slideIndex Slide index.
1303
+ * @param path Shape path.
1304
+ * @param shapeIndex Shape index.
1305
+ * @param password Document password.
1306
+ * @param folder Document folder.
1307
+ * @param storage Document storage.
1308
+ */
1309
+ deleteSubshape(name: string, slideIndex: number, path: string, shapeIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1310
+ response: http.ClientResponse;
1311
+ body: model.Shapes;
1312
+ }>;
1313
+ /**
1314
+ * Remove a paragraph (for smart art and group shapes).
1315
+ * @param name Document name.
1316
+ * @param slideIndex Slide index.
1317
+ * @param path Shape path.
1318
+ * @param shapeIndex Shape index.
1319
+ * @param paragraphIndex Paragraph index.
1320
+ * @param password Document password.
1321
+ * @param folder Document folder.
1322
+ * @param storage Document storage.
1323
+ */
1324
+ deleteSubshapeParagraph(name: string, slideIndex: number, path: string, shapeIndex: number, paragraphIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1325
+ response: http.ClientResponse;
1326
+ body: model.Paragraphs;
1327
+ }>;
1328
+ /**
1329
+ * Remove a range of paragraphs (for smart art and group shapes).
1330
+ * @param name Document name.
1331
+ * @param slideIndex Slide index.
1332
+ * @param path Shape path.
1333
+ * @param shapeIndex Shape index.
1334
+ * @param paragraphs The indices of the paragraphs to be deleted; delete all by default.
1335
+ * @param password Document password.
1336
+ * @param folder Document folder.
1337
+ * @param storage Document storage.
1338
+ */
1339
+ deleteSubshapeParagraphs(name: string, slideIndex: number, path: string, shapeIndex: number, paragraphs?: Array<number>, password?: string, folder?: string, storage?: string): Promise<{
1340
+ response: http.ClientResponse;
1341
+ body: model.Paragraphs;
1342
+ }>;
1343
+ /**
1344
+ * Remove a portion (for smart art and group shapes).
1345
+ * @param name Document name.
1346
+ * @param slideIndex Slide index.
1347
+ * @param path Shape path.
1348
+ * @param shapeIndex Shape index.
1349
+ * @param paragraphIndex Paragraph index.
1350
+ * @param portionIndex Portion index.
1351
+ * @param password Document password.
1352
+ * @param folder Document folder.
1353
+ * @param storage Document storage.
1354
+ */
1355
+ deleteSubshapePortion(name: string, slideIndex: number, path: string, shapeIndex: number, paragraphIndex: number, portionIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1356
+ response: http.ClientResponse;
1357
+ body: model.Portions;
1358
+ }>;
1359
+ /**
1360
+ * Remove a range of portions (for smart art and group shapes).
1361
+ * @param name Document name.
1362
+ * @param slideIndex Slide index.
1363
+ * @param path Shape path.
1364
+ * @param shapeIndex Shape index.
1365
+ * @param paragraphIndex Paragraph index.
1366
+ * @param portions The indices of the portions to be deleted; delete all by default.
1367
+ * @param password Document password.
1368
+ * @param folder Document folder.
1369
+ * @param storage Document storage.
1370
+ */
1371
+ deleteSubshapePortions(name: string, slideIndex: number, path: string, shapeIndex: number, paragraphIndex: number, portions?: Array<number>, password?: string, folder?: string, storage?: string): Promise<{
1372
+ response: http.ClientResponse;
1373
+ body: model.Portions;
1374
+ }>;
1375
+ /**
1376
+ * Remove a range of shapes (for smart art and group shapes).
1377
+ * @param name Document name.
1378
+ * @param slideIndex Slide index.
1379
+ * @param path Shape path.
1380
+ * @param shapes The indices of the shapes to be deleted; delete all by default.
1381
+ * @param password Document password.
1382
+ * @param folder Document folder.
1383
+ * @param storage Document storage.
1384
+ */
1385
+ deleteSubshapes(name: string, slideIndex: number, path?: string, shapes?: Array<number>, password?: string, folder?: string, storage?: string): Promise<{
1386
+ response: http.ClientResponse;
1387
+ body: model.Shapes;
1388
+ }>;
1389
+ /**
1390
+ * Removes shapes with name \&quot;watermark\&quot; from the presentation.
1391
+ * @param name Document name.
1392
+ * @param shapeName Name of the watermark shape. If null, default value \"watermark\"is used.
1393
+ * @param password Document password.
1394
+ * @param folder Document folder.
1395
+ * @param storage Document storage.
1396
+ */
1397
+ deleteWatermark(name: string, shapeName?: string, password?: string, folder?: string, storage?: string): Promise<{
1398
+ response: http.ClientResponse;
1399
+ }>;
1400
+ /**
1401
+ * Removes shapes with name \&quot;watermark\&quot; from the presentation.
1402
+ * @param document Document data.
1403
+ * @param shapeName Name of the watermark shape. If null, default value \"watermark\"is used.
1404
+ * @param password Document password.
1405
+ */
1406
+ deleteWatermarkOnline(document: Buffer, shapeName?: string, password?: string): Promise<{
1407
+ response: http.ClientResponse;
1408
+ body: Buffer;
1409
+ }>;
1410
+ /**
1411
+ * Download file
1412
+ * @param path File path e.g. '/folder/file.ext'
1413
+ * @param storageName Storage name
1414
+ * @param versionId File version ID to download
1415
+ */
1416
+ downloadFile(path?: string, storageName?: string, versionId?: string): Promise<{
1417
+ response: http.ClientResponse;
1418
+ body: Buffer;
1419
+ }>;
1420
+ /**
1421
+ * Get image in specified format.
1422
+ * @param name Document name.
1423
+ * @param index Image index.
1424
+ * @param format Export format (png, jpg, gif).
1425
+ * @param password Document password.
1426
+ * @param folder Document folder.
1427
+ * @param storage Document storage.
1428
+ */
1429
+ downloadImage(name: string, index: number, format: model.ImageExportFormat, password?: string, folder?: string, storage?: string): Promise<{
1430
+ response: http.ClientResponse;
1431
+ body: Buffer;
1432
+ }>;
1433
+ /**
1434
+ * Get image binary data.
1435
+ * @param name Document name.
1436
+ * @param index Image index.
1437
+ * @param password Document password.
1438
+ * @param folder Document folder.
1439
+ * @param storage Document storage.
1440
+ */
1441
+ downloadImageDefaultFormat(name: string, index: number, password?: string, folder?: string, storage?: string): Promise<{
1442
+ response: http.ClientResponse;
1443
+ body: Buffer;
1444
+ }>;
1445
+ /**
1446
+ * Get image binary data.
1447
+ * @param document Document data.
1448
+ * @param index Image index.
1449
+ * @param password Document password.
1450
+ */
1451
+ downloadImageDefaultFormatOnline(document: Buffer, index: number, password?: string): Promise<{
1452
+ response: http.ClientResponse;
1453
+ body: Buffer;
1454
+ }>;
1455
+ /**
1456
+ * Get image in specified format.
1457
+ * @param document Document data.
1458
+ * @param index Image index.
1459
+ * @param format Export format (png, jpg, gif).
1460
+ * @param password Document password.
1461
+ */
1462
+ downloadImageOnline(document: Buffer, index: number, format: model.ImageExportFormat, password?: string): Promise<{
1463
+ response: http.ClientResponse;
1464
+ body: Buffer;
1465
+ }>;
1466
+ /**
1467
+ * Get all presentation images in specified format.
1468
+ * @param name
1469
+ * @param format Export format (png, jpg, gif).
1470
+ * @param password Document password.
1471
+ * @param folder Document folder.
1472
+ * @param storage Document storage.
1473
+ */
1474
+ downloadImages(name: string, format: model.ImageExportFormat, password?: string, folder?: string, storage?: string): Promise<{
1475
+ response: http.ClientResponse;
1476
+ body: Buffer;
1477
+ }>;
1478
+ /**
1479
+ * Get all presentation images.
1480
+ * @param name
1481
+ * @param password Document password.
1482
+ * @param folder Document folder.
1483
+ * @param storage Document storage.
1484
+ */
1485
+ downloadImagesDefaultFormat(name: string, password?: string, folder?: string, storage?: string): Promise<{
1486
+ response: http.ClientResponse;
1487
+ body: Buffer;
1488
+ }>;
1489
+ /**
1490
+ * Get all presentation images.
1491
+ * @param document Document data.
1492
+ * @param password Document password.
1493
+ */
1494
+ downloadImagesDefaultFormatOnline(document: Buffer, password?: string): Promise<{
1495
+ response: http.ClientResponse;
1496
+ body: Buffer;
1497
+ }>;
1498
+ /**
1499
+ * Get all presentation images in specified format.
1500
+ * @param document Document data.
1501
+ * @param format Export format (png, jpg, gif).
1502
+ * @param password Document password.
1503
+ */
1504
+ downloadImagesOnline(document: Buffer, format: model.ImageExportFormat, password?: string): Promise<{
1505
+ response: http.ClientResponse;
1506
+ body: Buffer;
1507
+ }>;
1508
+ /**
1509
+ * Convert notes slide to the specified image format.
1510
+ * @param name Document name.
1511
+ * @param slideIndex Slide index.
1512
+ * @param format Output file format.
1513
+ * @param width Output file width.
1514
+ * @param height Output file height.
1515
+ * @param password Document password.
1516
+ * @param folder Document folder.
1517
+ * @param storage Document storage.
1518
+ * @param fontsFolder Storage folder containing custom fonts to be used with the document.
1519
+ */
1520
+ downloadNotesSlide(name: string, slideIndex: number, format: model.NotesSlideExportFormat, width?: number, height?: number, password?: string, folder?: string, storage?: string, fontsFolder?: string): Promise<{
1521
+ response: http.ClientResponse;
1522
+ body: Buffer;
1523
+ }>;
1524
+ /**
1525
+ * Convert notes slide to the specified image format.
1526
+ * @param document Document data.
1527
+ * @param slideIndex Slide index.
1528
+ * @param format Output file format.
1529
+ * @param width Output file width.
1530
+ * @param height Output file height.
1531
+ * @param password Document password.
1532
+ * @param fontsFolder Storage folder containing custom fonts to be used with the document.
1533
+ */
1534
+ downloadNotesSlideOnline(document: Buffer, slideIndex: number, format: model.NotesSlideExportFormat, width?: number, height?: number, password?: string, fontsFolder?: string): Promise<{
1535
+ response: http.ClientResponse;
1536
+ body: Buffer;
1537
+ }>;
1538
+ /**
1539
+ * Convert Mathematical Text to MathML Format
1540
+ * @param name Document name.
1541
+ * @param slideIndex Slide index.
1542
+ * @param shapeIndex Shape index.
1543
+ * @param paragraphIndex Paragraph index.
1544
+ * @param portionIndex Portion index.
1545
+ * @param password Document password.
1546
+ * @param folder Document folder.
1547
+ * @param storage Document storage.
1548
+ */
1549
+ downloadPortionAsMathMl(name: string, slideIndex: number, shapeIndex: number, paragraphIndex: number, portionIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1550
+ response: http.ClientResponse;
1551
+ body: Buffer;
1552
+ }>;
1553
+ /**
1554
+ * Save a presentation to a specified format.
1555
+ * @param name Document name.
1556
+ * @param format Export format.
1557
+ * @param options Export options.
1558
+ * @param password Document password.
1559
+ * @param folder Document folder.
1560
+ * @param storage Document storage.
1561
+ * @param fontsFolder Custom fonts folder.
1562
+ * @param slides The indices of the slides to be saved. If not specified, all slides are saved by default.
1563
+ */
1564
+ downloadPresentation(name: string, format: model.ExportFormat, options?: model.ExportOptions, password?: string, folder?: string, storage?: string, fontsFolder?: string, slides?: Array<number>): Promise<{
1565
+ response: http.ClientResponse;
1566
+ body: Buffer;
1567
+ }>;
1568
+ /**
1569
+ * Render shape to specified picture format.
1570
+ * @param name Presentation name.
1571
+ * @param slideIndex Slide index.
1572
+ * @param shapeIndex Index of shape starting from 1
1573
+ * @param format Export picture format.
1574
+ * @param options export options
1575
+ * @param scaleX X scale ratio.
1576
+ * @param scaleY Y scale ratio.
1577
+ * @param bounds Shape thumbnail bounds type.
1578
+ * @param password Document password.
1579
+ * @param folder Presentation folder.
1580
+ * @param storage Presentation storage.
1581
+ * @param fontsFolder Fonts folder.
1582
+ */
1583
+ downloadShape(name: string, slideIndex: number, shapeIndex: number, format: model.ShapeExportFormat, options?: model.IShapeExportOptions, scaleX?: number, scaleY?: number, bounds?: model.ShapeThumbnailBounds, password?: string, folder?: string, storage?: string, fontsFolder?: string): Promise<{
1584
+ response: http.ClientResponse;
1585
+ body: Buffer;
1586
+ }>;
1587
+ /**
1588
+ * Render shape to specified picture format.
1589
+ * @param document Document data.
1590
+ * @param slideIndex Slide index.
1591
+ * @param shapeIndex Index of shape starting from 1
1592
+ * @param format Export picture format.
1593
+ * @param scaleX X scale ratio.
1594
+ * @param scaleY Y scale ratio.
1595
+ * @param bounds Shape thumbnail bounds type.
1596
+ * @param password Document password.
1597
+ * @param storage Document storage.
1598
+ * @param fontsFolder Fonts folder.
1599
+ * @param options Export options.
1600
+ */
1601
+ downloadShapeOnline(document: Buffer, slideIndex: number, shapeIndex: number, format: model.ShapeExportFormat, scaleX?: number, scaleY?: number, bounds?: model.ShapeThumbnailBounds, password?: string, storage?: string, fontsFolder?: string, options?: model.IShapeExportOptions): Promise<{
1602
+ response: http.ClientResponse;
1603
+ body: Buffer;
1604
+ }>;
1605
+ /**
1606
+ * Save a slide to a specified format.
1607
+ * @param name Document name.
1608
+ * @param slideIndex Slide index.
1609
+ * @param format Output file format.
1610
+ * @param options Export options.
1611
+ * @param width Output file width; 0 to not adjust the size. Default is 0.
1612
+ * @param height Output file height; 0 to not adjust the size. Default is 0.
1613
+ * @param password Document password.
1614
+ * @param folder Document folder.
1615
+ * @param storage Document storage.
1616
+ * @param fontsFolder Storage folder containing custom fonts to be used with the document.
1617
+ */
1618
+ downloadSlide(name: string, slideIndex: number, format: model.SlideExportFormat, options?: model.ExportOptions, width?: number, height?: number, password?: string, folder?: string, storage?: string, fontsFolder?: string): Promise<{
1619
+ response: http.ClientResponse;
1620
+ body: Buffer;
1621
+ }>;
1622
+ /**
1623
+ * Save a slide to a specified format.
1624
+ * @param document Document data.
1625
+ * @param slideIndex Slide index.
1626
+ * @param format Output file format.
1627
+ * @param width Output file width; 0 to not adjust the size. Default is 0.
1628
+ * @param height Output file height; 0 to not adjust the size. Default is 0.
1629
+ * @param password Document password.
1630
+ * @param storage Document storage.
1631
+ * @param fontsFolder Storage folder containing custom fonts to be used with the document.
1632
+ * @param options Export options.
1633
+ */
1634
+ downloadSlideOnline(document: Buffer, slideIndex: number, format: model.SlideExportFormat, width?: number, height?: number, password?: string, storage?: string, fontsFolder?: string, options?: model.ExportOptions): Promise<{
1635
+ response: http.ClientResponse;
1636
+ body: Buffer;
1637
+ }>;
1638
+ /**
1639
+ * Render shape to specified picture format.
1640
+ * @param name Presentation name.
1641
+ * @param slideIndex Parent slide index.
1642
+ * @param slideType Slide type (master, layout or notes).
1643
+ * @param shapeIndex Index of shape starting from 1
1644
+ * @param format Export picture format.
1645
+ * @param options Export options
1646
+ * @param scaleX X scale ratio.
1647
+ * @param scaleY Y scale ratio.
1648
+ * @param bounds Shape thumbnail bounds type.
1649
+ * @param password Document password.
1650
+ * @param folder Presentation folder.
1651
+ * @param storage Presentation storage.
1652
+ * @param fontsFolder Fonts folder.
1653
+ */
1654
+ downloadSpecialSlideShape(name: string, slideIndex: number, slideType: model.SpecialSlideType, shapeIndex: number, format: model.ShapeExportFormat, options?: model.IShapeExportOptions, scaleX?: number, scaleY?: number, bounds?: model.ShapeThumbnailBounds, password?: string, folder?: string, storage?: string, fontsFolder?: string): Promise<{
1655
+ response: http.ClientResponse;
1656
+ body: Buffer;
1657
+ }>;
1658
+ /**
1659
+ * Render shape to specified picture format (for smart art and group shapes).
1660
+ * @param name Presentation name.
1661
+ * @param slideIndex Parent slide index.
1662
+ * @param slideType Slide type (master, layout or notes).
1663
+ * @param path Shape path.
1664
+ * @param shapeIndex Index of shape starting from 1
1665
+ * @param format Export picture format.
1666
+ * @param options export options
1667
+ * @param scaleX X scale ratio.
1668
+ * @param scaleY Y scale ratio.
1669
+ * @param bounds Shape thumbnail bounds type.
1670
+ * @param password Document password.
1671
+ * @param folder Presentation folder.
1672
+ * @param storage Presentation storage.
1673
+ * @param fontsFolder Fonts folder.
1674
+ */
1675
+ downloadSpecialSlideSubshape(name: string, slideIndex: number, slideType: model.SpecialSlideType, path: string, shapeIndex: number, format: model.ShapeExportFormat, options?: model.IShapeExportOptions, scaleX?: number, scaleY?: number, bounds?: model.ShapeThumbnailBounds, password?: string, folder?: string, storage?: string, fontsFolder?: string): Promise<{
1676
+ response: http.ClientResponse;
1677
+ body: Buffer;
1678
+ }>;
1679
+ /**
1680
+ * Render shape to specified picture format (for smart art and group shapes).
1681
+ * @param name Presentation name.
1682
+ * @param slideIndex Slide index.
1683
+ * @param path Shape path.
1684
+ * @param shapeIndex Index of shape starting from 1
1685
+ * @param format Export picture format.
1686
+ * @param options export options
1687
+ * @param scaleX X scale ratio.
1688
+ * @param scaleY Y scale ratio.
1689
+ * @param bounds Shape thumbnail bounds type.
1690
+ * @param password Document password.
1691
+ * @param folder Presentation folder.
1692
+ * @param storage Presentation storage.
1693
+ * @param fontsFolder Fonts folder.
1694
+ */
1695
+ downloadSubshape(name: string, slideIndex: number, path: string, shapeIndex: number, format: model.ShapeExportFormat, options?: model.IShapeExportOptions, scaleX?: number, scaleY?: number, bounds?: model.ShapeThumbnailBounds, password?: string, folder?: string, storage?: string, fontsFolder?: string): Promise<{
1696
+ response: http.ClientResponse;
1697
+ body: Buffer;
1698
+ }>;
1699
+ /**
1700
+ * Read slide animation effects.
1701
+ * @param name Document name.
1702
+ * @param slideIndex Slide index.
1703
+ * @param shapeIndex Shape index. If specified, only effects related to that shape are returned.
1704
+ * @param paragraphIndex Paragraph index.
1705
+ * @param password Document password.
1706
+ * @param folder Document folder.
1707
+ * @param storage Document storage.
1708
+ */
1709
+ getAnimation(name: string, slideIndex: number, shapeIndex?: number, paragraphIndex?: number, password?: string, folder?: string, storage?: string): Promise<{
1710
+ response: http.ClientResponse;
1711
+ body: model.SlideAnimation;
1712
+ }>;
1713
+ /**
1714
+ * Get API info.
1715
+ */
1716
+ getApiInfo(): Promise<{
1717
+ response: http.ClientResponse;
1718
+ body: model.ApiInfo;
1719
+ }>;
1720
+ /**
1721
+ * Read slide background info.
1722
+ * @param name Document name.
1723
+ * @param slideIndex Slide index.
1724
+ * @param password Document password.
1725
+ * @param folder Document folder.
1726
+ * @param storage Document storage.
1727
+ */
1728
+ getBackground(name: string, slideIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1729
+ response: http.ClientResponse;
1730
+ body: model.SlideBackground;
1731
+ }>;
1732
+ /**
1733
+ * Read slide theme color scheme info.
1734
+ * @param name Document name.
1735
+ * @param slideIndex Slide index.
1736
+ * @param password Document password.
1737
+ * @param folder Document folder.
1738
+ * @param storage Document storage.
1739
+ */
1740
+ getColorScheme(name: string, slideIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1741
+ response: http.ClientResponse;
1742
+ body: model.ColorScheme;
1743
+ }>;
1744
+ /**
1745
+ * Get disc usage
1746
+ * @param storageName Storage name
1747
+ */
1748
+ getDiscUsage(storageName?: string): Promise<{
1749
+ response: http.ClientResponse;
1750
+ body: model.DiscUsage;
1751
+ }>;
1752
+ /**
1753
+ * Read presentation document properties.
1754
+ * @param name Document name.
1755
+ * @param password Document password.
1756
+ * @param folder Document folder.
1757
+ * @param storage Document storage.
1758
+ */
1759
+ getDocumentProperties(name: string, password?: string, folder?: string, storage?: string): Promise<{
1760
+ response: http.ClientResponse;
1761
+ body: model.DocumentProperties;
1762
+ }>;
1763
+ /**
1764
+ * Read presentation document property.
1765
+ * @param name Document name.
1766
+ * @param propertyName The property name.
1767
+ * @param password Document password.
1768
+ * @param folder Document folder.
1769
+ * @param storage Document storage.
1770
+ */
1771
+ getDocumentProperty(name: string, propertyName: string, password?: string, folder?: string, storage?: string): Promise<{
1772
+ response: http.ClientResponse;
1773
+ body: model.DocumentProperty;
1774
+ }>;
1775
+ /**
1776
+ * Get file versions
1777
+ * @param path File path e.g. '/file.ext'
1778
+ * @param storageName Storage name
1779
+ */
1780
+ getFileVersions(path?: string, storageName?: string): Promise<{
1781
+ response: http.ClientResponse;
1782
+ body: model.FileVersions;
1783
+ }>;
1784
+ /**
1785
+ * Get all files and folders within a folder
1786
+ * @param path Folder path e.g. '/folder'
1787
+ * @param storageName Storage name
1788
+ */
1789
+ getFilesList(path?: string, storageName?: string): Promise<{
1790
+ response: http.ClientResponse;
1791
+ body: model.FilesList;
1792
+ }>;
1793
+ /**
1794
+ * Read slide theme font scheme info.
1795
+ * @param name Document name.
1796
+ * @param slideIndex Slide index.
1797
+ * @param password Document password.
1798
+ * @param folder Document folder.
1799
+ * @param storage Document storage.
1800
+ */
1801
+ getFontScheme(name: string, slideIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1802
+ response: http.ClientResponse;
1803
+ body: model.FontScheme;
1804
+ }>;
1805
+ /**
1806
+ * Read slide theme format scheme info.
1807
+ * @param name Document name.
1808
+ * @param slideIndex Slide index.
1809
+ * @param password Document password.
1810
+ * @param folder Document folder.
1811
+ * @param storage Document storage.
1812
+ */
1813
+ getFormatScheme(name: string, slideIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1814
+ response: http.ClientResponse;
1815
+ body: model.FormatScheme;
1816
+ }>;
1817
+ /**
1818
+ * Read presentation layoutSlide info.
1819
+ * @param name Document name.
1820
+ * @param slideIndex Slide index.
1821
+ * @param password Document password.
1822
+ * @param folder Document folder.
1823
+ * @param storage Document storage.
1824
+ */
1825
+ getLayoutSlide(name: string, slideIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1826
+ response: http.ClientResponse;
1827
+ body: model.LayoutSlide;
1828
+ }>;
1829
+ /**
1830
+ * Read presentation layoutSlides info.
1831
+ * @param name Document name.
1832
+ * @param password Document password.
1833
+ * @param folder Document folder.
1834
+ * @param storage Document storage.
1835
+ */
1836
+ getLayoutSlides(name: string, password?: string, folder?: string, storage?: string): Promise<{
1837
+ response: http.ClientResponse;
1838
+ body: model.LayoutSlides;
1839
+ }>;
1840
+ /**
1841
+ * Read presentation masterSlide info.
1842
+ * @param name Document name.
1843
+ * @param slideIndex Slide index.
1844
+ * @param password Document password.
1845
+ * @param folder Document folder.
1846
+ * @param storage Document storage.
1847
+ */
1848
+ getMasterSlide(name: string, slideIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1849
+ response: http.ClientResponse;
1850
+ body: model.MasterSlide;
1851
+ }>;
1852
+ /**
1853
+ * Read presentation masterSlides info.
1854
+ * @param name Document name.
1855
+ * @param password Document password.
1856
+ * @param folder Document folder.
1857
+ * @param storage Document storage.
1858
+ */
1859
+ getMasterSlides(name: string, password?: string, folder?: string, storage?: string): Promise<{
1860
+ response: http.ClientResponse;
1861
+ body: model.MasterSlides;
1862
+ }>;
1863
+ /**
1864
+ * Read notes slide info.
1865
+ * @param name Document name.
1866
+ * @param slideIndex Slide index.
1867
+ * @param password Document password.
1868
+ * @param folder Document folder.
1869
+ * @param storage Document storage.
1870
+ */
1871
+ getNotesSlide(name: string, slideIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1872
+ response: http.ClientResponse;
1873
+ body: model.NotesSlide;
1874
+ }>;
1875
+ /**
1876
+ * Get header/footer info for the notes slide.
1877
+ * @param name Document name.
1878
+ * @param slideIndex Slide index.
1879
+ * @param password Document password.
1880
+ * @param folder Document folder.
1881
+ * @param storage Document storage.
1882
+ */
1883
+ getNotesSlideHeaderFooter(name: string, slideIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1884
+ response: http.ClientResponse;
1885
+ body: model.NotesSlideHeaderFooter;
1886
+ }>;
1887
+ /**
1888
+ * Read notes slide info.
1889
+ * @param document Document data.
1890
+ * @param slideIndex Slide index.
1891
+ * @param password Document password.
1892
+ */
1893
+ getNotesSlideOnline(document: Buffer, slideIndex: number, password?: string): Promise<{
1894
+ response: http.ClientResponse;
1895
+ body: model.NotesSlide;
1896
+ }>;
1897
+ /**
1898
+ * Read shape paragraph info.
1899
+ * @param name Document name.
1900
+ * @param slideIndex Slide index.
1901
+ * @param shapeIndex Shape index.
1902
+ * @param paragraphIndex Paragraph index.
1903
+ * @param password Document password.
1904
+ * @param folder Document folder.
1905
+ * @param storage Document storage.
1906
+ */
1907
+ getParagraph(name: string, slideIndex: number, shapeIndex: number, paragraphIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1908
+ response: http.ClientResponse;
1909
+ body: model.Paragraph;
1910
+ }>;
1911
+ /**
1912
+ * Read shape paragraphs info.
1913
+ * @param name Document name.
1914
+ * @param slideIndex Slide index.
1915
+ * @param shapeIndex Shape index.
1916
+ * @param password Document password.
1917
+ * @param folder Document folder.
1918
+ * @param storage Document storage.
1919
+ */
1920
+ getParagraphs(name: string, slideIndex: number, shapeIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1921
+ response: http.ClientResponse;
1922
+ body: model.Paragraphs;
1923
+ }>;
1924
+ /**
1925
+ * Read slide placeholder info.
1926
+ * @param name Document name.
1927
+ * @param slideIndex Slide index.
1928
+ * @param placeholderIndex Placeholder index.
1929
+ * @param password Document password.
1930
+ * @param folder Document folder.
1931
+ * @param storage Document storage.
1932
+ */
1933
+ getPlaceholder(name: string, slideIndex: number, placeholderIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1934
+ response: http.ClientResponse;
1935
+ body: model.Placeholder;
1936
+ }>;
1937
+ /**
1938
+ * Read slide placeholders info.
1939
+ * @param name Document name.
1940
+ * @param slideIndex Slide index.
1941
+ * @param password Document password.
1942
+ * @param folder Document folder.
1943
+ * @param storage Document storage.
1944
+ */
1945
+ getPlaceholders(name: string, slideIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1946
+ response: http.ClientResponse;
1947
+ body: model.Placeholders;
1948
+ }>;
1949
+ /**
1950
+ * Read paragraph portion info.
1951
+ * @param name Document name.
1952
+ * @param slideIndex Slide index.
1953
+ * @param shapeIndex Shape index.
1954
+ * @param paragraphIndex Paragraph index.
1955
+ * @param portionIndex Portion index.
1956
+ * @param password Document password.
1957
+ * @param folder Document folder.
1958
+ * @param storage Document storage.
1959
+ */
1960
+ getPortion(name: string, slideIndex: number, shapeIndex: number, paragraphIndex: number, portionIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1961
+ response: http.ClientResponse;
1962
+ body: model.Portion;
1963
+ }>;
1964
+ /**
1965
+ * Read paragraph portions info.
1966
+ * @param name Document name.
1967
+ * @param slideIndex Slide index.
1968
+ * @param shapeIndex Shape index.
1969
+ * @param paragraphIndex Paragraph index.
1970
+ * @param password Document password.
1971
+ * @param folder Document folder.
1972
+ * @param storage Document storage.
1973
+ */
1974
+ getPortions(name: string, slideIndex: number, shapeIndex: number, paragraphIndex: number, password?: string, folder?: string, storage?: string): Promise<{
1975
+ response: http.ClientResponse;
1976
+ body: model.Portions;
1977
+ }>;
1978
+ /**
1979
+ * Read presentation info.
1980
+ * @param name Document name.
1981
+ * @param password Document password.
1982
+ * @param folder Document folder.
1983
+ * @param storage Document storage.
1984
+ */
1985
+ getPresentation(name: string, password?: string, folder?: string, storage?: string): Promise<{
1986
+ response: http.ClientResponse;
1987
+ body: model.Document;
1988
+ }>;
1989
+ /**
1990
+ * Read presentation images info.
1991
+ * @param name Document name.
1992
+ * @param password Document password.
1993
+ * @param folder Document folder.
1994
+ * @param storage Document storage.
1995
+ */
1996
+ getPresentationImages(name: string, password?: string, folder?: string, storage?: string): Promise<{
1997
+ response: http.ClientResponse;
1998
+ body: model.Images;
1999
+ }>;
2000
+ /**
2001
+ * Extract presentation text items.
2002
+ * @param name Document name.
2003
+ * @param withEmpty True to incude empty items.
2004
+ * @param password Document password.
2005
+ * @param folder Document folder.
2006
+ * @param storage Document storage.
2007
+ */
2008
+ getPresentationTextItems(name: string, withEmpty?: boolean, password?: string, folder?: string, storage?: string): Promise<{
2009
+ response: http.ClientResponse;
2010
+ body: model.TextItems;
2011
+ }>;
2012
+ /**
2013
+ * Read presentation protection properties.
2014
+ * @param name Document name.
2015
+ * @param password Document password.
2016
+ * @param folder Document folder.
2017
+ * @param storage Document storage.
2018
+ */
2019
+ getProtectionProperties(name: string, password?: string, folder?: string, storage?: string): Promise<{
2020
+ response: http.ClientResponse;
2021
+ body: model.ProtectionProperties;
2022
+ }>;
2023
+ /**
2024
+ * Read presentation sections info.
2025
+ * @param name Document name.
2026
+ * @param password Document password.
2027
+ * @param folder Document folder.
2028
+ * @param storage Document storage.
2029
+ */
2030
+ getSections(name: string, password?: string, folder?: string, storage?: string): Promise<{
2031
+ response: http.ClientResponse;
2032
+ body: model.Sections;
2033
+ }>;
2034
+ /**
2035
+ * Read slide shape info.
2036
+ * @param name Document name.
2037
+ * @param slideIndex Slide index.
2038
+ * @param shapeIndex Shape index.
2039
+ * @param password Document password.
2040
+ * @param folder Document folder.
2041
+ * @param storage Document storage.
2042
+ */
2043
+ getShape(name: string, slideIndex: number, shapeIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2044
+ response: http.ClientResponse;
2045
+ body: model.ShapeBase;
2046
+ }>;
2047
+ /**
2048
+ * Returns geometry path of the shape
2049
+ * @param name Document name.
2050
+ * @param slideIndex Slide index.
2051
+ * @param shapeIndex Shape index.
2052
+ * @param password Document password.
2053
+ * @param folder Document folder.
2054
+ * @param storage Document storage.
2055
+ */
2056
+ getShapeGeometryPath(name: string, slideIndex: number, shapeIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2057
+ response: http.ClientResponse;
2058
+ body: model.GeometryPaths;
2059
+ }>;
2060
+ /**
2061
+ * Read slide shapes info.
2062
+ * @param name Document name.
2063
+ * @param slideIndex Slide index.
2064
+ * @param password Document password.
2065
+ * @param folder Document folder.
2066
+ * @param storage Document storage.
2067
+ */
2068
+ getShapes(name: string, slideIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2069
+ response: http.ClientResponse;
2070
+ body: model.Shapes;
2071
+ }>;
2072
+ /**
2073
+ * Read presentation slide info.
2074
+ * @param name Document name.
2075
+ * @param slideIndex Slide index.
2076
+ * @param password Document password.
2077
+ * @param folder Document folder.
2078
+ * @param storage Document storage.
2079
+ */
2080
+ getSlide(name: string, slideIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2081
+ response: http.ClientResponse;
2082
+ body: model.Slide;
2083
+ }>;
2084
+ /**
2085
+ * Read presentation slide comments.
2086
+ * @param name Document name.
2087
+ * @param slideIndex Slide index.
2088
+ * @param password Document password.
2089
+ * @param folder Document folder.
2090
+ * @param storage Document storage.
2091
+ */
2092
+ getSlideComments(name: string, slideIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2093
+ response: http.ClientResponse;
2094
+ body: model.SlideComments;
2095
+ }>;
2096
+ /**
2097
+ * Get footer info for the slide.
2098
+ * @param name Document name.
2099
+ * @param slideIndex The position of the slide to be reordered.
2100
+ * @param password Document password.
2101
+ * @param folder Document folder.
2102
+ * @param storage Document storage.
2103
+ */
2104
+ getSlideHeaderFooter(name: string, slideIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2105
+ response: http.ClientResponse;
2106
+ body: model.HeaderFooter;
2107
+ }>;
2108
+ /**
2109
+ * Read slide images info.
2110
+ * @param name Document name.
2111
+ * @param slideIndex Slide index.
2112
+ * @param password Document password.
2113
+ * @param folder Document folder.
2114
+ * @param storage Document storage.
2115
+ */
2116
+ getSlideImages(name: string, slideIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2117
+ response: http.ClientResponse;
2118
+ body: model.Images;
2119
+ }>;
2120
+ /**
2121
+ * Read presentation slide properties.
2122
+ * @param name Document name.
2123
+ * @param password Document password.
2124
+ * @param folder Document folder.
2125
+ * @param storage Document storage.
2126
+ */
2127
+ getSlideProperties(name: string, password?: string, folder?: string, storage?: string): Promise<{
2128
+ response: http.ClientResponse;
2129
+ body: model.SlideProperties;
2130
+ }>;
2131
+ /**
2132
+ * Extract slide text items.
2133
+ * @param name Document name.
2134
+ * @param slideIndex Slide index.
2135
+ * @param withEmpty True to include empty items.
2136
+ * @param password Document password.
2137
+ * @param folder Document folder.
2138
+ * @param storage Document storage.
2139
+ */
2140
+ getSlideTextItems(name: string, slideIndex: number, withEmpty?: boolean, password?: string, folder?: string, storage?: string): Promise<{
2141
+ response: http.ClientResponse;
2142
+ body: model.TextItems;
2143
+ }>;
2144
+ /**
2145
+ * Read presentation slides info.
2146
+ * @param name Document name.
2147
+ * @param password Document password.
2148
+ * @param folder Document folder.
2149
+ * @param storage Document storage.
2150
+ */
2151
+ getSlides(name: string, password?: string, folder?: string, storage?: string): Promise<{
2152
+ response: http.ClientResponse;
2153
+ body: model.Slides;
2154
+ }>;
2155
+ /**
2156
+ * Read special slide (master, layout, notes) animation effects.
2157
+ * @param name Document name.
2158
+ * @param slideIndex Parent slide index.
2159
+ * @param slideType Slide type (master, layout or notes).
2160
+ * @param shapeIndex Shape index. If specified, only effects related to that shape are returned.
2161
+ * @param paragraphIndex Paragraph index. If specified, only effects related to that paragraph are returned.
2162
+ * @param password Document password.
2163
+ * @param folder Document folder.
2164
+ * @param storage Document storage.
2165
+ */
2166
+ getSpecialSlideAnimation(name: string, slideIndex: number, slideType: model.SpecialSlideType, shapeIndex?: number, paragraphIndex?: number, password?: string, folder?: string, storage?: string): Promise<{
2167
+ response: http.ClientResponse;
2168
+ body: model.SlideAnimation;
2169
+ }>;
2170
+ /**
2171
+ * Read shape paragraph info.
2172
+ * @param name Document name.
2173
+ * @param slideIndex Parent slide index.
2174
+ * @param slideType Slide type (master, layout or notes).
2175
+ * @param shapeIndex Shape index.
2176
+ * @param paragraphIndex Paragraph index.
2177
+ * @param password Document password.
2178
+ * @param folder Document folder.
2179
+ * @param storage Document storage.
2180
+ */
2181
+ getSpecialSlideParagraph(name: string, slideIndex: number, slideType: model.SpecialSlideType, shapeIndex: number, paragraphIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2182
+ response: http.ClientResponse;
2183
+ body: model.Paragraph;
2184
+ }>;
2185
+ /**
2186
+ * Read special shape paragraphs info.
2187
+ * @param name Document name.
2188
+ * @param slideIndex Parent slide index.
2189
+ * @param slideType Slide type (master, layout or notes).
2190
+ * @param shapeIndex Shape index.
2191
+ * @param password Document password.
2192
+ * @param folder Document folder.
2193
+ * @param storage Document storage.
2194
+ */
2195
+ getSpecialSlideParagraphs(name: string, slideIndex: number, slideType: model.SpecialSlideType, shapeIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2196
+ response: http.ClientResponse;
2197
+ body: model.Paragraphs;
2198
+ }>;
2199
+ /**
2200
+ * Read paragraph portion info.
2201
+ * @param name Document name.
2202
+ * @param slideIndex Parent slide index.
2203
+ * @param slideType Slide type (master, layout or notes).
2204
+ * @param shapeIndex Shape index.
2205
+ * @param paragraphIndex Paragraph index.
2206
+ * @param portionIndex Portion index.
2207
+ * @param password Document password.
2208
+ * @param folder Document folder.
2209
+ * @param storage Document storage.
2210
+ */
2211
+ getSpecialSlidePortion(name: string, slideIndex: number, slideType: model.SpecialSlideType, shapeIndex: number, paragraphIndex: number, portionIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2212
+ response: http.ClientResponse;
2213
+ body: model.Portion;
2214
+ }>;
2215
+ /**
2216
+ * Read paragraph portions info.
2217
+ * @param name Document name.
2218
+ * @param slideIndex Parent slide index.
2219
+ * @param slideType Slide type (master, layout or notes).
2220
+ * @param shapeIndex Shape index.
2221
+ * @param paragraphIndex Paragraph index.
2222
+ * @param password Document password.
2223
+ * @param folder Document folder.
2224
+ * @param storage Document storage.
2225
+ */
2226
+ getSpecialSlidePortions(name: string, slideIndex: number, slideType: model.SpecialSlideType, shapeIndex: number, paragraphIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2227
+ response: http.ClientResponse;
2228
+ body: model.Portions;
2229
+ }>;
2230
+ /**
2231
+ * Read special slide shape info.
2232
+ * @param name Document name.
2233
+ * @param slideIndex Parent slide index.
2234
+ * @param slideType Slide type (master, layout or notes).
2235
+ * @param shapeIndex Shape index.
2236
+ * @param password Document password.
2237
+ * @param folder Document folder.
2238
+ * @param storage Document storage.
2239
+ */
2240
+ getSpecialSlideShape(name: string, slideIndex: number, slideType: model.SpecialSlideType, shapeIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2241
+ response: http.ClientResponse;
2242
+ body: model.ShapeBase;
2243
+ }>;
2244
+ /**
2245
+ * Read special slide shapes info.
2246
+ * @param name Document name.
2247
+ * @param slideIndex Parent slide index.
2248
+ * @param slideType Slide type (master, layout or notes).
2249
+ * @param password Document password.
2250
+ * @param folder Document folder.
2251
+ * @param storage Document storage.
2252
+ */
2253
+ getSpecialSlideShapes(name: string, slideIndex: number, slideType: model.SpecialSlideType, password?: string, folder?: string, storage?: string): Promise<{
2254
+ response: http.ClientResponse;
2255
+ body: model.Shapes;
2256
+ }>;
2257
+ /**
2258
+ * Read special slide shape info (for smart art and group shapes).
2259
+ * @param name Document name.
2260
+ * @param slideIndex Parent slide index.
2261
+ * @param slideType Slide type (master, layout or notes).
2262
+ * @param path Shape path.
2263
+ * @param shapeIndex Shape index.
2264
+ * @param password Document password.
2265
+ * @param folder Document folder.
2266
+ * @param storage Document storage.
2267
+ */
2268
+ getSpecialSlideSubshape(name: string, slideIndex: number, slideType: model.SpecialSlideType, path: string, shapeIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2269
+ response: http.ClientResponse;
2270
+ body: model.ShapeBase;
2271
+ }>;
2272
+ /**
2273
+ * Read shape paragraph info (for smart art and group shapes).
2274
+ * @param name Document name.
2275
+ * @param slideIndex Parent slide index.
2276
+ * @param slideType Slide type (master, layout or notes).
2277
+ * @param path Shape path.
2278
+ * @param shapeIndex Shape index.
2279
+ * @param paragraphIndex Paragraph index.
2280
+ * @param password Document password.
2281
+ * @param folder Document folder.
2282
+ * @param storage Document storage.
2283
+ */
2284
+ getSpecialSlideSubshapeParagraph(name: string, slideIndex: number, slideType: model.SpecialSlideType, path: string, shapeIndex: number, paragraphIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2285
+ response: http.ClientResponse;
2286
+ body: model.Paragraph;
2287
+ }>;
2288
+ /**
2289
+ * Read shape paragraphs info (for smart art and group shapes).
2290
+ * @param name Document name.
2291
+ * @param slideIndex Parent slide index.
2292
+ * @param slideType Slide type (master, layout or notes).
2293
+ * @param path Shape path.
2294
+ * @param shapeIndex Shape index.
2295
+ * @param password Document password.
2296
+ * @param folder Document folder.
2297
+ * @param storage Document storage.
2298
+ */
2299
+ getSpecialSlideSubshapeParagraphs(name: string, slideIndex: number, slideType: model.SpecialSlideType, path: string, shapeIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2300
+ response: http.ClientResponse;
2301
+ body: model.Paragraphs;
2302
+ }>;
2303
+ /**
2304
+ * Read paragraph portion info (for smart art and group shapes).
2305
+ * @param name Document name.
2306
+ * @param slideIndex Parent slide index.
2307
+ * @param slideType Slide type (master, layout or notes).
2308
+ * @param path Shape path.
2309
+ * @param shapeIndex Shape index.
2310
+ * @param paragraphIndex Paragraph index.
2311
+ * @param portionIndex Portion index.
2312
+ * @param password Document password.
2313
+ * @param folder Document folder.
2314
+ * @param storage Document storage.
2315
+ */
2316
+ getSpecialSlideSubshapePortion(name: string, slideIndex: number, slideType: model.SpecialSlideType, path: string, shapeIndex: number, paragraphIndex: number, portionIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2317
+ response: http.ClientResponse;
2318
+ body: model.Portion;
2319
+ }>;
2320
+ /**
2321
+ * Read paragraph portions info (for smart art and group shapes).
2322
+ * @param name Document name.
2323
+ * @param slideIndex Parent slide index.
2324
+ * @param slideType Slide type (master, layout or notes).
2325
+ * @param path Shape path.
2326
+ * @param shapeIndex Shape index.
2327
+ * @param paragraphIndex Paragraph index.
2328
+ * @param password Document password.
2329
+ * @param folder Document folder.
2330
+ * @param storage Document storage.
2331
+ */
2332
+ getSpecialSlideSubshapePortions(name: string, slideIndex: number, slideType: model.SpecialSlideType, path: string, shapeIndex: number, paragraphIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2333
+ response: http.ClientResponse;
2334
+ body: model.Portions;
2335
+ }>;
2336
+ /**
2337
+ * Read special slide shapes info.
2338
+ * @param name Document name.
2339
+ * @param slideIndex Parent slide index.
2340
+ * @param slideType Slide type (master, layout or notes).
2341
+ * @param path Shape path (for smart art and group shapes).
2342
+ * @param password Document password.
2343
+ * @param folder Document folder.
2344
+ * @param storage Document storage.
2345
+ */
2346
+ getSpecialSlideSubshapes(name: string, slideIndex: number, slideType: model.SpecialSlideType, path?: string, password?: string, folder?: string, storage?: string): Promise<{
2347
+ response: http.ClientResponse;
2348
+ body: model.Shapes;
2349
+ }>;
2350
+ /**
2351
+ * Read slide shape info (for smart art and group shapes).
2352
+ * @param name Document name.
2353
+ * @param slideIndex Slide index.
2354
+ * @param path Shape path.
2355
+ * @param shapeIndex Shape index.
2356
+ * @param password Document password.
2357
+ * @param folder Document folder.
2358
+ * @param storage Document storage.
2359
+ */
2360
+ getSubshape(name: string, slideIndex: number, path: string, shapeIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2361
+ response: http.ClientResponse;
2362
+ body: model.ShapeBase;
2363
+ }>;
2364
+ /**
2365
+ * Read shape paragraph info (for smart art and group shapes).
2366
+ * @param name Document name.
2367
+ * @param slideIndex Slide index.
2368
+ * @param path Shape path.
2369
+ * @param shapeIndex Shape index.
2370
+ * @param paragraphIndex Paragraph index.
2371
+ * @param password Document password.
2372
+ * @param folder Document folder.
2373
+ * @param storage Document storage.
2374
+ */
2375
+ getSubshapeParagraph(name: string, slideIndex: number, path: string, shapeIndex: number, paragraphIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2376
+ response: http.ClientResponse;
2377
+ body: model.Paragraph;
2378
+ }>;
2379
+ /**
2380
+ * Read shape paragraphs info (for smart art and group shapes).
2381
+ * @param name Document name.
2382
+ * @param slideIndex Slide index.
2383
+ * @param path Shape path.
2384
+ * @param shapeIndex Shape index.
2385
+ * @param password Document password.
2386
+ * @param folder Document folder.
2387
+ * @param storage Document storage.
2388
+ */
2389
+ getSubshapeParagraphs(name: string, slideIndex: number, path: string, shapeIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2390
+ response: http.ClientResponse;
2391
+ body: model.Paragraphs;
2392
+ }>;
2393
+ /**
2394
+ * Read paragraph portion info (for smart art and group shapes).
2395
+ * @param name Document name.
2396
+ * @param slideIndex Slide index.
2397
+ * @param path Shape path.
2398
+ * @param shapeIndex Shape index.
2399
+ * @param paragraphIndex Paragraph index.
2400
+ * @param portionIndex Portion index.
2401
+ * @param password Document password.
2402
+ * @param folder Document folder.
2403
+ * @param storage Document storage.
2404
+ */
2405
+ getSubshapePortion(name: string, slideIndex: number, path: string, shapeIndex: number, paragraphIndex: number, portionIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2406
+ response: http.ClientResponse;
2407
+ body: model.Portion;
2408
+ }>;
2409
+ /**
2410
+ * Read paragraph portions info (for smart art and group shapes).
2411
+ * @param name Document name.
2412
+ * @param slideIndex Slide index.
2413
+ * @param path Shape path.
2414
+ * @param shapeIndex Shape index.
2415
+ * @param paragraphIndex Paragraph index.
2416
+ * @param password Document password.
2417
+ * @param folder Document folder.
2418
+ * @param storage Document storage.
2419
+ */
2420
+ getSubshapePortions(name: string, slideIndex: number, path: string, shapeIndex: number, paragraphIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2421
+ response: http.ClientResponse;
2422
+ body: model.Portions;
2423
+ }>;
2424
+ /**
2425
+ * Read slide shapes info.
2426
+ * @param name Document name.
2427
+ * @param slideIndex Slide index.
2428
+ * @param path Shape path (for smart art and group shapes).
2429
+ * @param password Document password.
2430
+ * @param folder Document folder.
2431
+ * @param storage Document storage.
2432
+ */
2433
+ getSubshapes(name: string, slideIndex: number, path?: string, password?: string, folder?: string, storage?: string): Promise<{
2434
+ response: http.ClientResponse;
2435
+ body: model.Shapes;
2436
+ }>;
2437
+ /**
2438
+ * Read slide theme info.
2439
+ * @param name Document name.
2440
+ * @param slideIndex Slide index.
2441
+ * @param password Document password.
2442
+ * @param folder Document folder.
2443
+ * @param storage Document storage.
2444
+ */
2445
+ getTheme(name: string, slideIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2446
+ response: http.ClientResponse;
2447
+ body: model.Theme;
2448
+ }>;
2449
+ /**
2450
+ * Read presentation document properties.
2451
+ * @param name Document name.
2452
+ * @param password Document password.
2453
+ * @param folder Document folder.
2454
+ * @param storage Document storage.
2455
+ */
2456
+ getViewProperties(name: string, password?: string, folder?: string, storage?: string): Promise<{
2457
+ response: http.ClientResponse;
2458
+ body: model.ViewProperties;
2459
+ }>;
2460
+ /**
2461
+ * Create presentation document from html.
2462
+ * @param name Document name.
2463
+ * @param html HTML data.
2464
+ * @param password Document password.
2465
+ * @param folder Document folder.
2466
+ * @param storage Document storage.
2467
+ */
2468
+ importFromHtml(name: string, html?: string, password?: string, folder?: string, storage?: string): Promise<{
2469
+ response: http.ClientResponse;
2470
+ body: model.Document;
2471
+ }>;
2472
+ /**
2473
+ * Create presentation document from pdf or append pdf to an existing presentation.
2474
+ * @param name Document name.
2475
+ * @param pdf PDF data.
2476
+ * @param password Document password.
2477
+ * @param folder Document folder.
2478
+ * @param storage Document storage.
2479
+ */
2480
+ importFromPdf(name: string, pdf?: Buffer, password?: string, folder?: string, storage?: string): Promise<{
2481
+ response: http.ClientResponse;
2482
+ body: model.Document;
2483
+ }>;
2484
+ /**
2485
+ * Merge the presentation with other presentations specified in the request parameter.
2486
+ * @param name Document name.
2487
+ * @param request PresentationsMergeRequest with a list of presentations to merge.
2488
+ * @param password Document password.
2489
+ * @param folder Document folder.
2490
+ * @param storage Document storage.
2491
+ */
2492
+ merge(name: string, request: model.PresentationsMergeRequest, password?: string, folder?: string, storage?: string): Promise<{
2493
+ response: http.ClientResponse;
2494
+ body: model.Document;
2495
+ }>;
2496
+ /**
2497
+ * Merges presentations or some of their slides specified in the request parameter. Result will be save in the storage.
2498
+ * @param outPath Path to save result.
2499
+ * @param files Files to merge
2500
+ * @param request Merge request.
2501
+ * @param storage Document storage.
2502
+ */
2503
+ mergeAndSaveOnline(outPath: string, files?: Array<Buffer>, request?: model.OrderedMergeRequest, storage?: string): Promise<{
2504
+ response: http.ClientResponse;
2505
+ }>;
2506
+ /**
2507
+ * Merges presentations or some of their slides specified in the request parameter. Returns result file in the response.
2508
+ * @param files Files to merge
2509
+ * @param request Merge request.
2510
+ * @param storage Document storage.
2511
+ */
2512
+ mergeOnline(files?: Array<Buffer>, request?: model.OrderedMergeRequest, storage?: string): Promise<{
2513
+ response: http.ClientResponse;
2514
+ body: Buffer;
2515
+ }>;
2516
+ /**
2517
+ * Move file
2518
+ * @param srcPath Source file path e.g. '/src.ext'
2519
+ * @param destPath Destination file path e.g. '/dest.ext'
2520
+ * @param srcStorageName Source storage name
2521
+ * @param destStorageName Destination storage name
2522
+ * @param versionId File version ID to move
2523
+ */
2524
+ moveFile(srcPath: string, destPath: string, srcStorageName?: string, destStorageName?: string, versionId?: string): Promise<{
2525
+ response: http.ClientResponse;
2526
+ }>;
2527
+ /**
2528
+ * Move folder
2529
+ * @param srcPath Folder path to move e.g. '/folder'
2530
+ * @param destPath Destination folder path to move to e.g '/dst'
2531
+ * @param srcStorageName Source storage name
2532
+ * @param destStorageName Destination storage name
2533
+ */
2534
+ moveFolder(srcPath: string, destPath: string, srcStorageName?: string, destStorageName?: string): Promise<{
2535
+ response: http.ClientResponse;
2536
+ }>;
2537
+ /**
2538
+ * Move presentation section to a specified position.
2539
+ * @param name Document name.
2540
+ * @param sectionIndex The position of the section to be reordered.
2541
+ * @param newPosition The new position of the reordered section.
2542
+ * @param password Document password.
2543
+ * @param folder Document folder.
2544
+ * @param storage Document storage.
2545
+ */
2546
+ moveSection(name: string, sectionIndex: number, newPosition: number, password?: string, folder?: string, storage?: string): Promise<{
2547
+ response: http.ClientResponse;
2548
+ body: model.Sections;
2549
+ }>;
2550
+ /**
2551
+ * Reorder presentation slide position.
2552
+ * @param name Document name.
2553
+ * @param slideIndex The position of the slide to be reordered.
2554
+ * @param newPosition The new position of the reordered slide.
2555
+ * @param password Document password.
2556
+ * @param folder Document folder.
2557
+ * @param storage Document storage.
2558
+ */
2559
+ moveSlide(name: string, slideIndex: number, newPosition: number, password?: string, folder?: string, storage?: string): Promise<{
2560
+ response: http.ClientResponse;
2561
+ body: model.Slides;
2562
+ }>;
2563
+ /**
2564
+ * Get info whether a notes slide exists.
2565
+ * @param name Document name.
2566
+ * @param slideIndex Slide index.
2567
+ * @param password Document password.
2568
+ * @param folder Document folder.
2569
+ * @param storage Document storage.
2570
+ */
2571
+ notesSlideExists(name: string, slideIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2572
+ response: http.ClientResponse;
2573
+ body: model.EntityExists;
2574
+ }>;
2575
+ /**
2576
+ * Get info whether a notes slide exists.
2577
+ * @param document Document data.
2578
+ * @param slideIndex Slide index.
2579
+ * @param password Document password.
2580
+ */
2581
+ notesSlideExistsOnline(document: Buffer, slideIndex: number, password?: string): Promise<{
2582
+ response: http.ClientResponse;
2583
+ body: model.EntityExists;
2584
+ }>;
2585
+ /**
2586
+ * Check if file or folder exists
2587
+ * @param path File or folder path e.g. '/file.ext' or '/folder'
2588
+ * @param storageName Storage name
2589
+ * @param versionId File version ID
2590
+ */
2591
+ objectExists(path?: string, storageName?: string, versionId?: string): Promise<{
2592
+ response: http.ClientResponse;
2593
+ body: model.ObjectExist;
2594
+ }>;
2595
+ /**
2596
+ * Merge the presentation with other presentations or some of their slides specified in the request parameter.
2597
+ * @param name Document name.
2598
+ * @param request OrderedMergeRequest with a list of presentations and slide indices to merge.
2599
+ * @param password Document password.
2600
+ * @param folder Document folder.
2601
+ * @param storage Document storage.
2602
+ */
2603
+ orderedMerge(name: string, request: model.OrderedMergeRequest, password?: string, folder?: string, storage?: string): Promise<{
2604
+ response: http.ClientResponse;
2605
+ body: model.Document;
2606
+ }>;
2607
+ /**
2608
+ * Performs slides pipeline.
2609
+ * @param pipeline A Pipeline object.
2610
+ * @param files Files to upload with the pipeline
2611
+ */
2612
+ pipeline(pipeline: model.Pipeline, files?: Array<Buffer>): Promise<{
2613
+ response: http.ClientResponse;
2614
+ body: Buffer;
2615
+ }>;
2616
+ /**
2617
+ * Reorder presentation slides positions.
2618
+ * @param name Document name.
2619
+ * @param oldPositions A comma separated array of positions of slides to be reordered.
2620
+ * @param newPositions A comma separated array of new slide positions.
2621
+ * @param password Document password.
2622
+ * @param folder Document folder.
2623
+ * @param storage Document storage.
2624
+ */
2625
+ reorderSlides(name: string, oldPositions?: Array<number>, newPositions?: Array<number>, password?: string, folder?: string, storage?: string): Promise<{
2626
+ response: http.ClientResponse;
2627
+ body: model.Slides;
2628
+ }>;
2629
+ /**
2630
+ * Replace text with a new value.
2631
+ * @param name Document name.
2632
+ * @param oldValue Text value to be replaced.
2633
+ * @param newValue Text value to replace with.
2634
+ * @param ignoreCase True if character case must be ignored.
2635
+ * @param password Document password.
2636
+ * @param folder Document folder.
2637
+ * @param storage Document storage.
2638
+ */
2639
+ replacePresentationText(name: string, oldValue: string, newValue: string, ignoreCase?: boolean, password?: string, folder?: string, storage?: string): Promise<{
2640
+ response: http.ClientResponse;
2641
+ body: model.DocumentReplaceResult;
2642
+ }>;
2643
+ /**
2644
+ * Replace text with a new value.
2645
+ * @param document Document data.
2646
+ * @param oldValue Text value to be replaced.
2647
+ * @param newValue Text value to replace with.
2648
+ * @param ignoreCase True if character case must be ignored.
2649
+ * @param password Document password.
2650
+ */
2651
+ replacePresentationTextOnline(document: Buffer, oldValue: string, newValue: string, ignoreCase?: boolean, password?: string): Promise<{
2652
+ response: http.ClientResponse;
2653
+ body: Buffer;
2654
+ }>;
2655
+ /**
2656
+ * Replace text with a new value.
2657
+ * @param name Document name.
2658
+ * @param slideIndex Slide index.
2659
+ * @param oldValue Text value to be replaced.
2660
+ * @param newValue Text value to replace with.
2661
+ * @param ignoreCase True if character case must be ignored.
2662
+ * @param password Document password.
2663
+ * @param folder Document folder.
2664
+ * @param storage Document storage.
2665
+ */
2666
+ replaceSlideText(name: string, slideIndex: number, oldValue: string, newValue: string, ignoreCase?: boolean, password?: string, folder?: string, storage?: string): Promise<{
2667
+ response: http.ClientResponse;
2668
+ body: model.SlideReplaceResult;
2669
+ }>;
2670
+ /**
2671
+ * Replace slide text with a new value.
2672
+ * @param document Document data.
2673
+ * @param slideIndex Index of target slide.
2674
+ * @param oldValue Text value to be replaced.
2675
+ * @param newValue Text value to replace with.
2676
+ * @param ignoreCase True if character case must be ignored.
2677
+ * @param password Document password.
2678
+ */
2679
+ replaceSlideTextOnline(document: Buffer, slideIndex: number, oldValue: string, newValue: string, ignoreCase?: boolean, password?: string): Promise<{
2680
+ response: http.ClientResponse;
2681
+ body: Buffer;
2682
+ }>;
2683
+ /**
2684
+ * Convert Mathematical Text to MathML Format and saves result to the storage
2685
+ * @param name Document name.
2686
+ * @param slideIndex Slide index.
2687
+ * @param shapeIndex Shape index.
2688
+ * @param paragraphIndex Paragraph index.
2689
+ * @param portionIndex Portion index.
2690
+ * @param outPath Path to save result.
2691
+ * @param password Document password.
2692
+ * @param folder Presentation folder.
2693
+ * @param storage Presentation storage.
2694
+ */
2695
+ savePortionAsMathMl(name: string, slideIndex: number, shapeIndex: number, paragraphIndex: number, portionIndex: number, outPath: string, password?: string, folder?: string, storage?: string): Promise<{
2696
+ response: http.ClientResponse;
2697
+ }>;
2698
+ /**
2699
+ * Save a presentation to a specified format.
2700
+ * @param name Document name.
2701
+ * @param format Export format.
2702
+ * @param outPath Output path.
2703
+ * @param options Export options.
2704
+ * @param password Document password.
2705
+ * @param folder Document folder.
2706
+ * @param storage Document storage.
2707
+ * @param fontsFolder Custom fonts folder.
2708
+ * @param slides The indices of the slides to be saved. If not specified, all slides are saved by default.
2709
+ */
2710
+ savePresentation(name: string, format: model.ExportFormat, outPath: string, options?: model.ExportOptions, password?: string, folder?: string, storage?: string, fontsFolder?: string, slides?: Array<number>): Promise<{
2711
+ response: http.ClientResponse;
2712
+ }>;
2713
+ /**
2714
+ * Render shape to specified picture format.
2715
+ * @param name Presentation name.
2716
+ * @param slideIndex Slide index.
2717
+ * @param shapeIndex Index of shape starting from 1
2718
+ * @param format Export picture format.
2719
+ * @param outPath Output path.
2720
+ * @param options export options
2721
+ * @param scaleX X scale ratio.
2722
+ * @param scaleY Y scale ratio.
2723
+ * @param bounds Shape thumbnail bounds type.
2724
+ * @param password Document password.
2725
+ * @param folder Presentation folder.
2726
+ * @param storage Presentation storage.
2727
+ * @param fontsFolder Fonts folder.
2728
+ */
2729
+ saveShape(name: string, slideIndex: number, shapeIndex: number, format: model.ShapeExportFormat, outPath: string, options?: model.IShapeExportOptions, scaleX?: number, scaleY?: number, bounds?: model.ShapeThumbnailBounds, password?: string, folder?: string, storage?: string, fontsFolder?: string): Promise<{
2730
+ response: http.ClientResponse;
2731
+ }>;
2732
+ /**
2733
+ * Render shape to specified picture format.
2734
+ * @param document Document data.
2735
+ * @param slideIndex Slide index.
2736
+ * @param shapeIndex Index of shape starting from 1
2737
+ * @param format Export picture format.
2738
+ * @param outPath Path to save result.
2739
+ * @param scaleX X scale ratio.
2740
+ * @param scaleY Y scale ratio.
2741
+ * @param bounds Shape thumbnail bounds type.
2742
+ * @param password Document password.
2743
+ * @param storage Document storage.
2744
+ * @param fontsFolder Fonts folder.
2745
+ * @param options Export options.
2746
+ */
2747
+ saveShapeOnline(document: Buffer, slideIndex: number, shapeIndex: number, format: model.ShapeExportFormat, outPath: string, scaleX?: number, scaleY?: number, bounds?: model.ShapeThumbnailBounds, password?: string, storage?: string, fontsFolder?: string, options?: model.IShapeExportOptions): Promise<{
2748
+ response: http.ClientResponse;
2749
+ }>;
2750
+ /**
2751
+ * Save a slide to a specified format.
2752
+ * @param name Document name.
2753
+ * @param slideIndex Slide index.
2754
+ * @param format Output file format.
2755
+ * @param outPath Path to upload the output file to.
2756
+ * @param options Export options.
2757
+ * @param width Output file width; 0 to not adjust the size. Default is 0.
2758
+ * @param height Output file height; 0 to not adjust the size. Default is 0.
2759
+ * @param password Document password.
2760
+ * @param folder Document folder.
2761
+ * @param storage Document storage.
2762
+ * @param fontsFolder Storage folder containing custom fonts to be used with the document.
2763
+ */
2764
+ saveSlide(name: string, slideIndex: number, format: model.SlideExportFormat, outPath: string, options?: model.ExportOptions, width?: number, height?: number, password?: string, folder?: string, storage?: string, fontsFolder?: string): Promise<{
2765
+ response: http.ClientResponse;
2766
+ }>;
2767
+ /**
2768
+ * Save a slide to a specified format.
2769
+ * @param document Document data.
2770
+ * @param slideIndex Slide index.
2771
+ * @param format Output file format.
2772
+ * @param outPath Path to save result.
2773
+ * @param width Output file width; 0 to not adjust the size. Default is 0.
2774
+ * @param height Output file height; 0 to not adjust the size. Default is 0.
2775
+ * @param password Document password.
2776
+ * @param storage Document storage.
2777
+ * @param fontsFolder Storage folder containing custom fonts to be used with the document.
2778
+ * @param options Export options.
2779
+ */
2780
+ saveSlideOnline(document: Buffer, slideIndex: number, format: model.SlideExportFormat, outPath: string, width?: number, height?: number, password?: string, storage?: string, fontsFolder?: string, options?: model.ExportOptions): Promise<{
2781
+ response: http.ClientResponse;
2782
+ }>;
2783
+ /**
2784
+ * Render shape to specified picture format.
2785
+ * @param name Presentation name.
2786
+ * @param slideIndex Parent slide index.
2787
+ * @param slideType Slide type (master, layout or notes).
2788
+ * @param shapeIndex Index of shape starting from 1
2789
+ * @param format Export picture format.
2790
+ * @param outPath Output path.
2791
+ * @param options export options
2792
+ * @param scaleX X scale ratio.
2793
+ * @param scaleY Y scale ratio.
2794
+ * @param bounds Shape thumbnail bounds type.
2795
+ * @param password Document password.
2796
+ * @param folder Presentation folder.
2797
+ * @param storage Presentation storage.
2798
+ * @param fontsFolder Fonts folder.
2799
+ */
2800
+ saveSpecialSlideShape(name: string, slideIndex: number, slideType: model.SpecialSlideType, shapeIndex: number, format: model.ShapeExportFormat, outPath: string, options?: model.IShapeExportOptions, scaleX?: number, scaleY?: number, bounds?: model.ShapeThumbnailBounds, password?: string, folder?: string, storage?: string, fontsFolder?: string): Promise<{
2801
+ response: http.ClientResponse;
2802
+ }>;
2803
+ /**
2804
+ * Render shape to specified picture format.
2805
+ * @param name Presentation name.
2806
+ * @param slideIndex Parent slide index.
2807
+ * @param slideType Slide type (master, layout or notes).
2808
+ * @param path Shape path (for smart art and group shapes).
2809
+ * @param shapeIndex Index of shape starting from 1
2810
+ * @param format Export picture format.
2811
+ * @param outPath Output path.
2812
+ * @param options export options
2813
+ * @param scaleX X scale ratio.
2814
+ * @param scaleY Y scale ratio.
2815
+ * @param bounds Shape thumbnail bounds type.
2816
+ * @param password Document password.
2817
+ * @param folder Presentation folder.
2818
+ * @param storage Presentation storage.
2819
+ * @param fontsFolder Fonts folder.
2820
+ */
2821
+ saveSpecialSlideSubshape(name: string, slideIndex: number, slideType: model.SpecialSlideType, path: string, shapeIndex: number, format: model.ShapeExportFormat, outPath: string, options?: model.IShapeExportOptions, scaleX?: number, scaleY?: number, bounds?: model.ShapeThumbnailBounds, password?: string, folder?: string, storage?: string, fontsFolder?: string): Promise<{
2822
+ response: http.ClientResponse;
2823
+ }>;
2824
+ /**
2825
+ * Render shape to specified picture format.
2826
+ * @param name Presentation name.
2827
+ * @param slideIndex Slide index.
2828
+ * @param path Shape path (for smart art and group shapes).
2829
+ * @param shapeIndex Index of shape starting from 1
2830
+ * @param format Export picture format.
2831
+ * @param outPath Output path.
2832
+ * @param options export options
2833
+ * @param scaleX X scale ratio.
2834
+ * @param scaleY Y scale ratio.
2835
+ * @param bounds Shape thumbnail bounds type.
2836
+ * @param password Document password.
2837
+ * @param folder Presentation folder.
2838
+ * @param storage Presentation storage.
2839
+ * @param fontsFolder Fonts folder.
2840
+ */
2841
+ saveSubshape(name: string, slideIndex: number, path: string, shapeIndex: number, format: model.ShapeExportFormat, outPath: string, options?: model.IShapeExportOptions, scaleX?: number, scaleY?: number, bounds?: model.ShapeThumbnailBounds, password?: string, folder?: string, storage?: string, fontsFolder?: string): Promise<{
2842
+ response: http.ClientResponse;
2843
+ }>;
2844
+ /**
2845
+ * Set slide animation.
2846
+ * @param name Document name.
2847
+ * @param slideIndex Slide index.
2848
+ * @param animation Animation DTO.
2849
+ * @param password Document password.
2850
+ * @param folder Document folder.
2851
+ * @param storage Document storage.
2852
+ */
2853
+ setAnimation(name: string, slideIndex: number, animation: model.SlideAnimation, password?: string, folder?: string, storage?: string): Promise<{
2854
+ response: http.ClientResponse;
2855
+ body: model.SlideAnimation;
2856
+ }>;
2857
+ /**
2858
+ * Set background for a slide.
2859
+ * @param name Document name.
2860
+ * @param slideIndex Slide index.
2861
+ * @param background Slide background update data.
2862
+ * @param password Document password.
2863
+ * @param folder Document folder.
2864
+ * @param storage Document storage.
2865
+ */
2866
+ setBackground(name: string, slideIndex: number, background: model.SlideBackground, password?: string, folder?: string, storage?: string): Promise<{
2867
+ response: http.ClientResponse;
2868
+ body: model.SlideBackground;
2869
+ }>;
2870
+ /**
2871
+ * Set background color for a slide.
2872
+ * @param name Document name.
2873
+ * @param slideIndex Slide index.
2874
+ * @param color Slide background target color in RRGGBB format.
2875
+ * @param password Document password.
2876
+ * @param folder Document folder.
2877
+ * @param storage Document storage.
2878
+ */
2879
+ setBackgroundColor(name: string, slideIndex: number, color: string, password?: string, folder?: string, storage?: string): Promise<{
2880
+ response: http.ClientResponse;
2881
+ body: model.SlideBackground;
2882
+ }>;
2883
+ /**
2884
+ * Set document properties.
2885
+ * @param name Document name.
2886
+ * @param properties New properties.
2887
+ * @param password Document password.
2888
+ * @param folder Document folder.
2889
+ * @param storage Document storage.
2890
+ */
2891
+ setDocumentProperties(name: string, properties: model.DocumentProperties, password?: string, folder?: string, storage?: string): Promise<{
2892
+ response: http.ClientResponse;
2893
+ body: model.DocumentProperties;
2894
+ }>;
2895
+ /**
2896
+ * Set document property.
2897
+ * @param name Document name.
2898
+ * @param propertyName The property name.
2899
+ * @param property Property with the value.
2900
+ * @param password Document password.
2901
+ * @param folder Document folder.
2902
+ * @param storage Document storage.
2903
+ */
2904
+ setDocumentProperty(name: string, propertyName: string, property: model.DocumentProperty, password?: string, folder?: string, storage?: string): Promise<{
2905
+ response: http.ClientResponse;
2906
+ body: model.DocumentProperty;
2907
+ }>;
2908
+ /**
2909
+ * Set header/footer the notes slide.
2910
+ * @param name Document name.
2911
+ * @param slideIndex Slide index.
2912
+ * @param dto Header/footer to set.
2913
+ * @param password Document password.
2914
+ * @param folder Document folder.
2915
+ * @param storage Document storage.
2916
+ */
2917
+ setNotesSlideHeaderFooter(name: string, slideIndex: number, dto: model.NotesSlideHeaderFooter, password?: string, folder?: string, storage?: string): Promise<{
2918
+ response: http.ClientResponse;
2919
+ body: model.NotesSlideHeaderFooter;
2920
+ }>;
2921
+ /**
2922
+ * Set footers for all slides in a presentation.
2923
+ * @param name Document name.
2924
+ * @param dto HeaderFooter instance.
2925
+ * @param password Document password.
2926
+ * @param folder Document folder.
2927
+ * @param storage Document storage.
2928
+ */
2929
+ setPresentationHeaderFooter(name: string, dto: model.HeaderFooter, password?: string, folder?: string, storage?: string): Promise<{
2930
+ response: http.ClientResponse;
2931
+ body: model.Document;
2932
+ }>;
2933
+ /**
2934
+ * Updates presentation protection properties.
2935
+ * @param name Document name.
2936
+ * @param dto Protection properties.
2937
+ * @param password Document password.
2938
+ * @param folder Document folder.
2939
+ * @param storage Document storage.
2940
+ */
2941
+ setProtection(name: string, dto: model.ProtectionProperties, password?: string, folder?: string, storage?: string): Promise<{
2942
+ response: http.ClientResponse;
2943
+ body: model.ProtectionProperties;
2944
+ }>;
2945
+ /**
2946
+ * Sets presentation protection options.
2947
+ * @param document Document data.
2948
+ * @param dto Protection properties.
2949
+ * @param password Document password.
2950
+ */
2951
+ setProtectionOnline(document: Buffer, dto: model.ProtectionProperties, password?: string): Promise<{
2952
+ response: http.ClientResponse;
2953
+ body: Buffer;
2954
+ }>;
2955
+ /**
2956
+ * Replace existing presentation sections with the ones provided in the sections DTO.
2957
+ * @param name Document name.
2958
+ * @param sections Sections DTO.
2959
+ * @param password Document password.
2960
+ * @param folder Document folder.
2961
+ * @param storage Document storage.
2962
+ */
2963
+ setSections(name: string, sections: model.Sections, password?: string, folder?: string, storage?: string): Promise<{
2964
+ response: http.ClientResponse;
2965
+ body: model.Sections;
2966
+ }>;
2967
+ /**
2968
+ * Sets geometry path to the shape
2969
+ * @param name Document name.
2970
+ * @param slideIndex Slide index.
2971
+ * @param shapeIndex Shape index.
2972
+ * @param dto Geometry paths DTO.
2973
+ * @param password Document password.
2974
+ * @param folder Document folder.
2975
+ * @param storage Document storage.
2976
+ */
2977
+ setShapeGeometryPath(name: string, slideIndex: number, shapeIndex: number, dto: model.GeometryPaths, password?: string, folder?: string, storage?: string): Promise<{
2978
+ response: http.ClientResponse;
2979
+ body: model.ShapeBase;
2980
+ }>;
2981
+ /**
2982
+ * Set footer the slide.
2983
+ * @param name Document name.
2984
+ * @param slideIndex The position of the slide to be reordered.
2985
+ * @param dto Footer to set.
2986
+ * @param password Document password.
2987
+ * @param folder Document folder.
2988
+ * @param storage Document storage.
2989
+ */
2990
+ setSlideHeaderFooter(name: string, slideIndex: number, dto: model.HeaderFooter, password?: string, folder?: string, storage?: string): Promise<{
2991
+ response: http.ClientResponse;
2992
+ body: model.HeaderFooter;
2993
+ }>;
2994
+ /**
2995
+ * Update presentation slide properties.
2996
+ * @param name Document name.
2997
+ * @param dto The view properties data.
2998
+ * @param password Document password.
2999
+ * @param folder Document folder.
3000
+ * @param storage Document storage.
3001
+ */
3002
+ setSlideProperties(name: string, dto: model.SlideProperties, password?: string, folder?: string, storage?: string): Promise<{
3003
+ response: http.ClientResponse;
3004
+ body: model.SlideProperties;
3005
+ }>;
3006
+ /**
3007
+ * Set special slide (master, layout, notes) animation.
3008
+ * @param name Document name.
3009
+ * @param slideIndex Parent slide index.
3010
+ * @param slideType Slide type (master, layout or notes).
3011
+ * @param animation Animation DTO.
3012
+ * @param password Document password.
3013
+ * @param folder Document folder.
3014
+ * @param storage Document storage.
3015
+ */
3016
+ setSpecialSlideAnimation(name: string, slideIndex: number, slideType: model.SpecialSlideType, animation: model.SlideAnimation, password?: string, folder?: string, storage?: string): Promise<{
3017
+ response: http.ClientResponse;
3018
+ body: model.SlideAnimation;
3019
+ }>;
3020
+ /**
3021
+ * Update presentation document properties.
3022
+ * @param name Document name.
3023
+ * @param dto The view properties data.
3024
+ * @param password Document password.
3025
+ * @param folder Document folder.
3026
+ * @param storage Document storage.
3027
+ */
3028
+ setViewProperties(name: string, dto: model.ViewProperties, password?: string, folder?: string, storage?: string): Promise<{
3029
+ response: http.ClientResponse;
3030
+ body: model.ViewProperties;
3031
+ }>;
3032
+ /**
3033
+ * Splitting presentations. Create one image per slide.
3034
+ * @param name Document name.
3035
+ * @param options Export options.
3036
+ * @param format Export format. Default value is jpeg.
3037
+ * @param width The width of created images.
3038
+ * @param height The height of created images.
3039
+ * @param from The start slide number for splitting, if is not specified splitting starts from the first slide of the presentation.
3040
+ * @param to The last slide number for splitting, if is not specified splitting ends at the last slide of the document.
3041
+ * @param destFolder Folder on storage where images are going to be uploaded. If not specified then images are uploaded to same folder as presentation.
3042
+ * @param password Document password.
3043
+ * @param folder Document folder.
3044
+ * @param storage Document storage.
3045
+ * @param fontsFolder Custom fonts folder.
3046
+ */
3047
+ split(name: string, options?: model.ExportOptions, format?: model.SlideExportFormat, width?: number, height?: number, from?: number, to?: number, destFolder?: string, password?: string, folder?: string, storage?: string, fontsFolder?: string): Promise<{
3048
+ response: http.ClientResponse;
3049
+ body: model.SplitDocumentResult;
3050
+ }>;
3051
+ /**
3052
+ * Splits PowerPoint presentation slides from the specified range into separate files and exports them in the specified file format. If the range is not provided all slides will be processed.
3053
+ * @param document Document data.
3054
+ * @param format ExportFormat
3055
+ * @param destFolder Folder on storage where images are going to be uploaded. If not specified then images are uploaded to the root folder.
3056
+ * @param width Slide width.
3057
+ * @param height Slide height.
3058
+ * @param from The start slide number for splitting, if is not specified splitting starts from the first slide of the presentation.
3059
+ * @param to The last slide number for splitting, if is not specified splitting ends at the last slide of the document.
3060
+ * @param password Document password.
3061
+ * @param storage Document storage.
3062
+ * @param fontsFolder Custom fonts folder.
3063
+ */
3064
+ splitAndSaveOnline(document: Buffer, format: model.SlideExportFormat, destFolder?: string, width?: number, height?: number, from?: number, to?: number, password?: string, storage?: string, fontsFolder?: string): Promise<{
3065
+ response: http.ClientResponse;
3066
+ body: model.SplitDocumentResult;
3067
+ }>;
3068
+ /**
3069
+ * Splits PowerPoint presentation slides from the specified range into separate files and exports them in the specified file format. If the range is not provided all slides will be processed.
3070
+ * @param document Document data.
3071
+ * @param format ExportFormat
3072
+ * @param width Slide width.
3073
+ * @param height Slide height.
3074
+ * @param from The start slide number for splitting, if is not specified splitting starts from the first slide of the presentation.
3075
+ * @param to The last slide number for splitting, if is not specified splitting ends at the last slide of the document.
3076
+ * @param password Document password.
3077
+ * @param storage Document storage.
3078
+ * @param fontsFolder Custom fonts folder.
3079
+ */
3080
+ splitOnline(document: Buffer, format: model.SlideExportFormat, width?: number, height?: number, from?: number, to?: number, password?: string, storage?: string, fontsFolder?: string): Promise<{
3081
+ response: http.ClientResponse;
3082
+ body: Buffer;
3083
+ }>;
3084
+ /**
3085
+ * Check if storage exists
3086
+ * @param storageName Storage name
3087
+ */
3088
+ storageExists(storageName: string): Promise<{
3089
+ response: http.ClientResponse;
3090
+ body: model.StorageExist;
3091
+ }>;
3092
+ /**
3093
+ * Modify an animation effect for a slide.
3094
+ * @param name Document name.
3095
+ * @param slideIndex Slide index.
3096
+ * @param effectIndex The position of the effect to be modified.
3097
+ * @param effect Animation effect DTO.
3098
+ * @param password Document password.
3099
+ * @param folder Document folder.
3100
+ * @param storage Document storage.
3101
+ */
3102
+ updateAnimationEffect(name: string, slideIndex: number, effectIndex: number, effect: model.Effect, password?: string, folder?: string, storage?: string): Promise<{
3103
+ response: http.ClientResponse;
3104
+ body: model.SlideAnimation;
3105
+ }>;
3106
+ /**
3107
+ * Modify an animation effect for a slide interactive sequence.
3108
+ * @param name Document name.
3109
+ * @param slideIndex Slide index.
3110
+ * @param sequenceIndex The position of the interactive sequence.
3111
+ * @param effectIndex The position of the effect to be modified.
3112
+ * @param effect Animation effect DTO.
3113
+ * @param password Document password.
3114
+ * @param folder Document folder.
3115
+ * @param storage Document storage.
3116
+ */
3117
+ updateAnimationInteractiveSequenceEffect(name: string, slideIndex: number, sequenceIndex: number, effectIndex: number, effect: model.Effect, password?: string, folder?: string, storage?: string): Promise<{
3118
+ response: http.ClientResponse;
3119
+ body: model.SlideAnimation;
3120
+ }>;
3121
+ /**
3122
+ * Update a chart category.
3123
+ * @param name Document name.
3124
+ * @param slideIndex Slide index.
3125
+ * @param shapeIndex Shape index.
3126
+ * @param categoryIndex Category index.
3127
+ * @param category Category DTO.
3128
+ * @param password Document password.
3129
+ * @param folder Document folder.
3130
+ * @param storage Document storage.
3131
+ */
3132
+ updateChartCategory(name: string, slideIndex: number, shapeIndex: number, categoryIndex: number, category: model.ChartCategory, password?: string, folder?: string, storage?: string): Promise<{
3133
+ response: http.ClientResponse;
3134
+ body: model.Chart;
3135
+ }>;
3136
+ /**
3137
+ * Update a data point in a chart series.
3138
+ * @param name Document name.
3139
+ * @param slideIndex Slide index.
3140
+ * @param shapeIndex Shape index.
3141
+ * @param seriesIndex Series index.
3142
+ * @param pointIndex Data point index.
3143
+ * @param dataPoint Data point DTO.
3144
+ * @param password Document password.
3145
+ * @param folder Document folder.
3146
+ * @param storage Document storage.
3147
+ */
3148
+ updateChartDataPoint(name: string, slideIndex: number, shapeIndex: number, seriesIndex: number, pointIndex: number, dataPoint: model.DataPoint, password?: string, folder?: string, storage?: string): Promise<{
3149
+ response: http.ClientResponse;
3150
+ body: model.Chart;
3151
+ }>;
3152
+ /**
3153
+ * Update a series in a chart.
3154
+ * @param name Document name.
3155
+ * @param slideIndex Slide index.
3156
+ * @param shapeIndex Shape index (must be a chart).
3157
+ * @param seriesIndex Series index.
3158
+ * @param series Series DTO.
3159
+ * @param password Document password.
3160
+ * @param folder Document folder.
3161
+ * @param storage Document storage.
3162
+ */
3163
+ updateChartSeries(name: string, slideIndex: number, shapeIndex: number, seriesIndex: number, series: model.Series, password?: string, folder?: string, storage?: string): Promise<{
3164
+ response: http.ClientResponse;
3165
+ body: model.Chart;
3166
+ }>;
3167
+ /**
3168
+ * Update a layoutSlide.
3169
+ * @param name Document name.
3170
+ * @param slideIndex Slide index.
3171
+ * @param slideDto Slide update data.
3172
+ * @param password Document password.
3173
+ * @param folder Document folder.
3174
+ * @param storage Document storage.
3175
+ */
3176
+ updateLayoutSlide(name: string, slideIndex: number, slideDto: model.LayoutSlide, password?: string, folder?: string, storage?: string): Promise<{
3177
+ response: http.ClientResponse;
3178
+ body: model.LayoutSlide;
3179
+ }>;
3180
+ /**
3181
+ * Update notes slide properties.
3182
+ * @param name Document name.
3183
+ * @param slideIndex Slide index.
3184
+ * @param dto A NotesSlide object with notes slide data.
3185
+ * @param password Document password.
3186
+ * @param folder Document folder.
3187
+ * @param storage Document storage.
3188
+ */
3189
+ updateNotesSlide(name: string, slideIndex: number, dto: model.NotesSlide, password?: string, folder?: string, storage?: string): Promise<{
3190
+ response: http.ClientResponse;
3191
+ body: model.NotesSlide;
3192
+ }>;
3193
+ /**
3194
+ * Update paragraph properties.
3195
+ * @param name Document name.
3196
+ * @param slideIndex Slide index.
3197
+ * @param shapeIndex Shape index.
3198
+ * @param paragraphIndex Paragraph index.
3199
+ * @param dto Paragraph DTO.
3200
+ * @param password Document password.
3201
+ * @param folder Document folder.
3202
+ * @param storage Document storage.
3203
+ */
3204
+ updateParagraph(name: string, slideIndex: number, shapeIndex: number, paragraphIndex: number, dto: model.Paragraph, password?: string, folder?: string, storage?: string): Promise<{
3205
+ response: http.ClientResponse;
3206
+ body: model.Paragraph;
3207
+ }>;
3208
+ /**
3209
+ * Update portion properties.
3210
+ * @param name Document name.
3211
+ * @param slideIndex Slide index.
3212
+ * @param shapeIndex Shape index.
3213
+ * @param paragraphIndex Paragraph index.
3214
+ * @param portionIndex Portion index.
3215
+ * @param dto Portion DTO.
3216
+ * @param password Document password.
3217
+ * @param folder Document folder.
3218
+ * @param storage Document storage.
3219
+ */
3220
+ updatePortion(name: string, slideIndex: number, shapeIndex: number, paragraphIndex: number, portionIndex: number, dto: model.Portion, password?: string, folder?: string, storage?: string): Promise<{
3221
+ response: http.ClientResponse;
3222
+ body: model.Portion;
3223
+ }>;
3224
+ /**
3225
+ * Update section name.
3226
+ * @param name Document name.
3227
+ * @param sectionIndex The position of the section to be updated.
3228
+ * @param sectionName Section name.
3229
+ * @param password Document password.
3230
+ * @param folder Document folder.
3231
+ * @param storage Document storage.
3232
+ */
3233
+ updateSection(name: string, sectionIndex: number, sectionName: string, password?: string, folder?: string, storage?: string): Promise<{
3234
+ response: http.ClientResponse;
3235
+ body: model.Sections;
3236
+ }>;
3237
+ /**
3238
+ * Update shape properties.
3239
+ * @param name Document name.
3240
+ * @param slideIndex Slide index.
3241
+ * @param shapeIndex Shape index.
3242
+ * @param dto Shape DTO.
3243
+ * @param password Document password.
3244
+ * @param folder Document folder.
3245
+ * @param storage Document storage.
3246
+ */
3247
+ updateShape(name: string, slideIndex: number, shapeIndex: number, dto: model.ShapeBase, password?: string, folder?: string, storage?: string): Promise<{
3248
+ response: http.ClientResponse;
3249
+ body: model.ShapeBase;
3250
+ }>;
3251
+ /**
3252
+ * Update a slide.
3253
+ * @param name Document name.
3254
+ * @param slideIndex Slide index.
3255
+ * @param slideDto Slide update data.
3256
+ * @param password Document password.
3257
+ * @param folder Document folder.
3258
+ * @param storage Document storage.
3259
+ */
3260
+ updateSlide(name: string, slideIndex: number, slideDto: model.Slide, password?: string, folder?: string, storage?: string): Promise<{
3261
+ response: http.ClientResponse;
3262
+ body: model.Slide;
3263
+ }>;
3264
+ /**
3265
+ * Modify an animation effect for a special slide (master, layout, notes).
3266
+ * @param name Document name.
3267
+ * @param slideIndex Parent slide index.
3268
+ * @param slideType Slide type (master, layout or notes).
3269
+ * @param effectIndex The position of the effect to be modified.
3270
+ * @param effect Animation effect DTO.
3271
+ * @param password Document password.
3272
+ * @param folder Document folder.
3273
+ * @param storage Document storage.
3274
+ */
3275
+ updateSpecialSlideAnimationEffect(name: string, slideIndex: number, slideType: model.SpecialSlideType, effectIndex: number, effect: model.Effect, password?: string, folder?: string, storage?: string): Promise<{
3276
+ response: http.ClientResponse;
3277
+ body: model.SlideAnimation;
3278
+ }>;
3279
+ /**
3280
+ * Modify an animation effect for a special slide (master, layout, notes) interactive sequence.
3281
+ * @param name Document name.
3282
+ * @param slideIndex Parent slide index.
3283
+ * @param slideType Slide type (master, layout or notes).
3284
+ * @param sequenceIndex The position of the interactive sequence.
3285
+ * @param effectIndex The position of the effect to be modified.
3286
+ * @param effect Animation effect DTO.
3287
+ * @param password Document password.
3288
+ * @param folder Document folder.
3289
+ * @param storage Document storage.
3290
+ */
3291
+ updateSpecialSlideAnimationInteractiveSequenceEffect(name: string, slideIndex: number, slideType: model.SpecialSlideType, sequenceIndex: number, effectIndex: number, effect: model.Effect, password?: string, folder?: string, storage?: string): Promise<{
3292
+ response: http.ClientResponse;
3293
+ body: model.SlideAnimation;
3294
+ }>;
3295
+ /**
3296
+ * Update paragraph properties.
3297
+ * @param name Document name.
3298
+ * @param slideIndex Parent slide index.
3299
+ * @param slideType Slide type (master, layout or notes).
3300
+ * @param shapeIndex Shape index.
3301
+ * @param paragraphIndex Paragraph index.
3302
+ * @param dto Paragraph DTO.
3303
+ * @param password Document password.
3304
+ * @param folder Document folder.
3305
+ * @param storage Document storage.
3306
+ */
3307
+ updateSpecialSlideParagraph(name: string, slideIndex: number, slideType: model.SpecialSlideType, shapeIndex: number, paragraphIndex: number, dto: model.Paragraph, password?: string, folder?: string, storage?: string): Promise<{
3308
+ response: http.ClientResponse;
3309
+ body: model.Paragraph;
3310
+ }>;
3311
+ /**
3312
+ * Update portion properties.
3313
+ * @param name Document name.
3314
+ * @param slideIndex Parent slide index.
3315
+ * @param slideType Slide type (master, layout or notes).
3316
+ * @param shapeIndex Shape index.
3317
+ * @param paragraphIndex Paragraph index.
3318
+ * @param portionIndex Portion index.
3319
+ * @param dto Portion DTO.
3320
+ * @param password Document password.
3321
+ * @param folder Document folder.
3322
+ * @param storage Document storage.
3323
+ */
3324
+ updateSpecialSlidePortion(name: string, slideIndex: number, slideType: model.SpecialSlideType, shapeIndex: number, paragraphIndex: number, portionIndex: number, dto: model.Portion, password?: string, folder?: string, storage?: string): Promise<{
3325
+ response: http.ClientResponse;
3326
+ body: model.Portion;
3327
+ }>;
3328
+ /**
3329
+ * Update shape properties.
3330
+ * @param name Document name.
3331
+ * @param slideIndex Parent slide index.
3332
+ * @param slideType Slide type (master, layout or notes).
3333
+ * @param shapeIndex Shape index.
3334
+ * @param dto Shape DTO.
3335
+ * @param password Document password.
3336
+ * @param folder Document folder.
3337
+ * @param storage Document storage.
3338
+ */
3339
+ updateSpecialSlideShape(name: string, slideIndex: number, slideType: model.SpecialSlideType, shapeIndex: number, dto: model.ShapeBase, password?: string, folder?: string, storage?: string): Promise<{
3340
+ response: http.ClientResponse;
3341
+ body: model.ShapeBase;
3342
+ }>;
3343
+ /**
3344
+ * Update shape properties (for smart art and group shapes).
3345
+ * @param name Document name.
3346
+ * @param slideIndex Parent slide index.
3347
+ * @param slideType Slide type (master, layout or notes).
3348
+ * @param path Shape path.
3349
+ * @param shapeIndex Shape index.
3350
+ * @param dto Shape DTO.
3351
+ * @param password Document password.
3352
+ * @param folder Document folder.
3353
+ * @param storage Document storage.
3354
+ */
3355
+ updateSpecialSlideSubshape(name: string, slideIndex: number, slideType: model.SpecialSlideType, path: string, shapeIndex: number, dto: model.ShapeBase, password?: string, folder?: string, storage?: string): Promise<{
3356
+ response: http.ClientResponse;
3357
+ body: model.ShapeBase;
3358
+ }>;
3359
+ /**
3360
+ * Update paragraph properties (for smart art and group shapes).
3361
+ * @param name Document name.
3362
+ * @param slideIndex Parent slide index.
3363
+ * @param slideType Slide type (master, layout or notes).
3364
+ * @param path Shape path.
3365
+ * @param shapeIndex Shape index.
3366
+ * @param paragraphIndex Paragraph index.
3367
+ * @param dto Paragraph DTO.
3368
+ * @param password Document password.
3369
+ * @param folder Document folder.
3370
+ * @param storage Document storage.
3371
+ */
3372
+ updateSpecialSlideSubshapeParagraph(name: string, slideIndex: number, slideType: model.SpecialSlideType, path: string, shapeIndex: number, paragraphIndex: number, dto: model.Paragraph, password?: string, folder?: string, storage?: string): Promise<{
3373
+ response: http.ClientResponse;
3374
+ body: model.Paragraph;
3375
+ }>;
3376
+ /**
3377
+ * Update portion properties (for smart art and group shapes).
3378
+ * @param name Document name.
3379
+ * @param slideIndex Parent slide index.
3380
+ * @param slideType Slide type (master, layout or notes).
3381
+ * @param path Shape path.
3382
+ * @param shapeIndex Shape index.
3383
+ * @param paragraphIndex Paragraph index.
3384
+ * @param portionIndex Portion index.
3385
+ * @param dto Portion DTO.
3386
+ * @param password Document password.
3387
+ * @param folder Document folder.
3388
+ * @param storage Document storage.
3389
+ */
3390
+ updateSpecialSlideSubshapePortion(name: string, slideIndex: number, slideType: model.SpecialSlideType, path: string, shapeIndex: number, paragraphIndex: number, portionIndex: number, dto: model.Portion, password?: string, folder?: string, storage?: string): Promise<{
3391
+ response: http.ClientResponse;
3392
+ body: model.Portion;
3393
+ }>;
3394
+ /**
3395
+ * Update shape properties (for smart art and group shapes).
3396
+ * @param name Document name.
3397
+ * @param slideIndex Slide index.
3398
+ * @param path Shape path.
3399
+ * @param shapeIndex Shape index.
3400
+ * @param dto Shape DTO.
3401
+ * @param password Document password.
3402
+ * @param folder Document folder.
3403
+ * @param storage Document storage.
3404
+ */
3405
+ updateSubshape(name: string, slideIndex: number, path: string, shapeIndex: number, dto: model.ShapeBase, password?: string, folder?: string, storage?: string): Promise<{
3406
+ response: http.ClientResponse;
3407
+ body: model.ShapeBase;
3408
+ }>;
3409
+ /**
3410
+ * Update paragraph properties (for smart art and group shapes).
3411
+ * @param name Document name.
3412
+ * @param slideIndex Slide index.
3413
+ * @param path Shape path.
3414
+ * @param shapeIndex Shape index.
3415
+ * @param paragraphIndex Paragraph index.
3416
+ * @param dto Paragraph DTO.
3417
+ * @param password Document password.
3418
+ * @param folder Document folder.
3419
+ * @param storage Document storage.
3420
+ */
3421
+ updateSubshapeParagraph(name: string, slideIndex: number, path: string, shapeIndex: number, paragraphIndex: number, dto: model.Paragraph, password?: string, folder?: string, storage?: string): Promise<{
3422
+ response: http.ClientResponse;
3423
+ body: model.Paragraph;
3424
+ }>;
3425
+ /**
3426
+ * Update portion properties (for smart art and group shapes).
3427
+ * @param name Document name.
3428
+ * @param slideIndex Slide index.
3429
+ * @param path Shape path.
3430
+ * @param shapeIndex Shape index.
3431
+ * @param paragraphIndex Paragraph index.
3432
+ * @param portionIndex Portion index.
3433
+ * @param dto Portion DTO.
3434
+ * @param password Document password.
3435
+ * @param folder Document folder.
3436
+ * @param storage Document storage.
3437
+ */
3438
+ updateSubshapePortion(name: string, slideIndex: number, path: string, shapeIndex: number, paragraphIndex: number, portionIndex: number, dto: model.Portion, password?: string, folder?: string, storage?: string): Promise<{
3439
+ response: http.ClientResponse;
3440
+ body: model.Portion;
3441
+ }>;
3442
+ /**
3443
+ * Upload file
3444
+ * @param path Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header.
3445
+ * @param file File to upload
3446
+ * @param storageName Storage name
3447
+ */
3448
+ uploadFile(path: string, file: Buffer, storageName?: string): Promise<{
3449
+ response: http.ClientResponse;
3450
+ body: model.FilesUploadResult;
3451
+ }>;
3452
+ }