@types/office-js-preview 1.0.366 → 1.0.367
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.
office-js-preview/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Office.js (https://github.com/OfficeD
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Tue, 10 Jan 2023
|
|
11
|
+
* Last updated: Tue, 10 Jan 2023 23:32:54 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
|
|
14
14
|
|
office-js-preview/index.d.ts
CHANGED
|
@@ -12370,6 +12370,89 @@ declare namespace Office {
|
|
|
12370
12370
|
* of type `Office.AsyncResult`. Any errors encountered will be provided in the `asyncResult.error` property.
|
|
12371
12371
|
*/
|
|
12372
12372
|
prependAsync(data: string, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
12373
|
+
/**
|
|
12374
|
+
* Prepends HTML or plain text to the beginning of a message or appointment body when the mail item is sent.
|
|
12375
|
+
*
|
|
12376
|
+
* To use `prependOnSendAsync`, you must specify a supplementary permission in the manifest. Details vary with the type of manifest. For guidance,
|
|
12377
|
+
* see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Understanding Outlook add-in permissions}.
|
|
12378
|
+
*
|
|
12379
|
+
* @remarks
|
|
12380
|
+
* [Api set: Mailbox preview]
|
|
12381
|
+
*
|
|
12382
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
|
|
12383
|
+
*
|
|
12384
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
12385
|
+
*
|
|
12386
|
+
* **Recommended**: Call `getTypeAsync`, then pass its returned value to the `options.coercionType` parameter.
|
|
12387
|
+
*
|
|
12388
|
+
* **Important**: When implementing `prependOnSendAsync`, keep the following in mind.
|
|
12389
|
+
*
|
|
12390
|
+
* - In a {@link https://learn.microsoft.com/office/dev/add-ins/outlook/smart-alerts-onmessagesend-walkthrough | Smart Alerts add-in},
|
|
12391
|
+
* the prepend-on-send feature runs first.
|
|
12392
|
+
*
|
|
12393
|
+
* - A new line is added after the prepended content.
|
|
12394
|
+
*
|
|
12395
|
+
* - If multiple active add-ins call `prependOnSendAsync`, the order of the inserted content depends on the order in which the add-in runs.
|
|
12396
|
+
* The content of the last run add-in appears above previously prepended content.
|
|
12397
|
+
*
|
|
12398
|
+
* - If the add-in attempts to insert HTML into a plain text body, the content won't be prepended. Conversely, plain text will be inserted into an HTML body.
|
|
12399
|
+
*
|
|
12400
|
+
* **Errors**:
|
|
12401
|
+
*
|
|
12402
|
+
* - `DataExceedsMaximumSize`: The `data` parameter exceeds 5,000 characters.
|
|
12403
|
+
*
|
|
12404
|
+
* - `InvalidFormatError`: The `options.coercionType` parameter is set to `Office.CoercionType.Html`, but the item body is in plain text format.
|
|
12405
|
+
*
|
|
12406
|
+
* @param data - The string to be prepended to the beginning of the message or appointment body. The string is limited to 5,000 characters.
|
|
12407
|
+
* @param options - An object literal that contains one or more of the following properties:-
|
|
12408
|
+
* `asyncContext`: Any object that can be accessed in the callback function.
|
|
12409
|
+
* `coercionType`: The desired format for the body. The string in the `data` parameter is converted to this format.
|
|
12410
|
+
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
12411
|
+
* of type `Office.AsyncResult`. Any errors encountered will be provided in the `asyncResult.error` property.
|
|
12412
|
+
*
|
|
12413
|
+
* @beta
|
|
12414
|
+
*/
|
|
12415
|
+
prependOnSendAsync(data: string, options: Office.AsyncContextOptions & CoercionTypeOptions, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
12416
|
+
/**
|
|
12417
|
+
* Prepends HTML or plain text to the beginning of a message or appointment body when the mail item is sent.
|
|
12418
|
+
*
|
|
12419
|
+
* To use `prependOnSendAsync`, you must specify a supplementary permission in the manifest. Details vary with the type of manifest. For guidance,
|
|
12420
|
+
* see {@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Understanding Outlook add-in permissions}.
|
|
12421
|
+
*
|
|
12422
|
+
* @remarks
|
|
12423
|
+
* [Api set: Mailbox preview]
|
|
12424
|
+
*
|
|
12425
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions | Minimum permission level}**: **read/write item**
|
|
12426
|
+
*
|
|
12427
|
+
* **{@link https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points | Applicable Outlook mode}**: Compose
|
|
12428
|
+
*
|
|
12429
|
+
* **Recommended**: Call `getTypeAsync`, then pass its returned value to the `options.coercionType` parameter.
|
|
12430
|
+
*
|
|
12431
|
+
* **Important**: When implementing `prependOnSendAsync`, keep the following in mind.
|
|
12432
|
+
*
|
|
12433
|
+
* - In a {@link https://learn.microsoft.com/office/dev/add-ins/outlook/smart-alerts-onmessagesend-walkthrough | Smart Alerts add-in},
|
|
12434
|
+
* the prepend-on-send feature runs first.
|
|
12435
|
+
*
|
|
12436
|
+
* - A new line is added after the prepended content.
|
|
12437
|
+
*
|
|
12438
|
+
* - If multiple active add-ins call `prependOnSendAsync`, the order of the inserted content depends on the order in which the add-in runs.
|
|
12439
|
+
* The content of the last run add-in appears above previously prepended content.
|
|
12440
|
+
*
|
|
12441
|
+
* - If the add-in attempts to insert HTML into a plain text body, the content won't be prepended. Conversely, plain text will be inserted into an HTML body.
|
|
12442
|
+
*
|
|
12443
|
+
* **Errors**:
|
|
12444
|
+
*
|
|
12445
|
+
* - `DataExceedsMaximumSize`: The `data` parameter exceeds 5,000 characters.
|
|
12446
|
+
*
|
|
12447
|
+
* - `InvalidFormatError`: The `options.coercionType` parameter is set to `Office.CoercionType.Html`, but the item body is in plain text format.
|
|
12448
|
+
*
|
|
12449
|
+
* @param data - The string to be prepended to the beginning of the message or appointment body. The string is limited to 5,000 characters.
|
|
12450
|
+
* @param callback - Optional. When the method completes, the function passed in the `callback` parameter is called with a single parameter
|
|
12451
|
+
* of type `Office.AsyncResult`. Any errors encountered will be provided in the `asyncResult.error` property.
|
|
12452
|
+
*
|
|
12453
|
+
* @beta
|
|
12454
|
+
*/
|
|
12455
|
+
prependOnSendAsync(data: string, callback?: (asyncResult: Office.AsyncResult<void>) => void): void;
|
|
12373
12456
|
/**
|
|
12374
12457
|
* Replaces the entire body with the specified text.
|
|
12375
12458
|
*
|
office-js-preview/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js-preview",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.367",
|
|
4
4
|
"description": "TypeScript definitions for Office.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "6132609b76d4cd6f4f61f15043e31a8fd7138e99620adc1297d247b5f9cea0cc",
|
|
49
49
|
"typeScriptVersion": "4.2"
|
|
50
50
|
}
|