From e67858639d27566bfdab9b424ce7ef68330df89c Mon Sep 17 00:00:00 2001 From: Elizabeth Samuel Date: Tue, 18 Dec 2018 15:56:53 -0800 Subject: [PATCH] office-js, office-js-preview: Remove attachmentId char limit --- types/office-js-preview/index.d.ts | 68 +++++++++++++++--------------- types/office-js/index.d.ts | 68 +++++++++++++++--------------- 2 files changed, 68 insertions(+), 68 deletions(-) diff --git a/types/office-js-preview/index.d.ts b/types/office-js-preview/index.d.ts index 9586128f82..4d41651189 100644 --- a/types/office-js-preview/index.d.ts +++ b/types/office-js-preview/index.d.ts @@ -10288,19 +10288,19 @@ declare namespace Office { * * In addition to this signature, the method also has the following signatures: * - * `removeAttachmentAsync(attachmentIndex: string): void;` + * `removeAttachmentAsync(attachmentId: string): void;` * - * `removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void;` + * `removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void;` * - * `removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult) => void): void;` + * `removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult) => void): void;` * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. * @param options Optional. An object literal that contains one or more of the following properties. * asyncContext: Developers can provide any object they wish to access in the callback method. * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of type Office.AsyncResult. * If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure. */ - removeAttachmentAsync(attachmentIndex: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult) => void): void; + removeAttachmentAsync(attachmentId: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult) => void): void; /** * Removes an attachment from a message or appointment. * @@ -10320,9 +10320,9 @@ declare namespace Office { * * ErrorsInvalidAttachmentId - The attachment identifier does not exist. * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. */ - removeAttachmentAsync(attachmentIndex: string): void; + removeAttachmentAsync(attachmentId: string): void; /** * Removes an attachment from a message or appointment. * @@ -10342,11 +10342,11 @@ declare namespace Office { * * ErrorsInvalidAttachmentId - The attachment identifier does not exist. * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. * @param options Optional. An object literal that contains one or more of the following properties. * asyncContext: Developers can provide any object they wish to access in the callback method. */ - removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void; + removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void; /** * Removes an attachment from a message or appointment. * @@ -10367,12 +10367,12 @@ declare namespace Office { * * ErrorsInvalidAttachmentId - The attachment identifier does not exist. * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of * type Office.AsyncResult. * If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure. */ - removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult) => void): void; + removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult) => void): void; /** * Removes an event handler for a supported event. * @@ -11614,7 +11614,7 @@ declare namespace Office { * * ErrorsInvalidAttachmentId - The attachment identifier does not exist. * - * @param attachmentId The identifier of the attachment you want to get. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment you want to get. * @param options Optional. An object literal that contains one or more of the following properties. * asyncContext: Developers can provide any object they wish to access in the callback method. * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter, @@ -12196,20 +12196,20 @@ declare namespace Office { * * In addition to this signature, the method also has the following signatures: * - * `removeAttachmentAsync(attachmentIndex: string): void;` + * `removeAttachmentAsync(attachmentId: string): void;` * - * `removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void;` + * `removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void;` * - * `removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult) => void): void;` + * `removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult) => void): void;` * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. * @param options Optional. An object literal that contains one or more of the following properties. * asyncContext: Developers can provide any object they wish to access in the callback method. * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of * type Office.AsyncResult. * If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure. */ - removeAttachmentAsync(attachmentIndex: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult) => void): void; + removeAttachmentAsync(attachmentId: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult) => void): void; /** * Removes an attachment from a message or appointment. * @@ -12229,9 +12229,9 @@ declare namespace Office { * * ErrorsInvalidAttachmentId - The attachment identifier does not exist. * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. */ - removeAttachmentAsync(attachmentIndex: string): void; + removeAttachmentAsync(attachmentId: string): void; /** * Removes an attachment from a message or appointment. * @@ -12251,11 +12251,11 @@ declare namespace Office { * * ErrorsInvalidAttachmentId - The attachment identifier does not exist. * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. * @param options Optional. An object literal that contains one or more of the following properties. * asyncContext: Developers can provide any object they wish to access in the callback method. */ - removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void; + removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void; /** * Removes an attachment from a message or appointment. * @@ -12275,12 +12275,12 @@ declare namespace Office { * * ErrorsInvalidAttachmentId - The attachment identifier does not exist. * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of * type {@link Offfice.AsyncResult}. * If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure. */ - removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult) => void): void; + removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult) => void): void; /** * Asynchronously saves an item. @@ -13693,20 +13693,20 @@ declare namespace Office { * * In addition to this signature, the method also has the following signatures: * - * `removeAttachmentAsync(attachmentIndex: string): void;` + * `removeAttachmentAsync(attachmentId: string): void;` * - * `removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void;` + * `removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void;` * - * `removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult) => void): void;` + * `removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult) => void): void;` * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. * @param options Optional. An object literal that contains one or more of the following properties. * asyncContext: Developers can provide any object they wish to access in the callback method. * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of * type Office.AsyncResult. * If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure. */ - removeAttachmentAsync(attachmentIndex: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult) => void): void; + removeAttachmentAsync(attachmentId: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult) => void): void; /** * Removes an attachment from a message or appointment. * @@ -13726,9 +13726,9 @@ declare namespace Office { * * ErrorsInvalidAttachmentId - The attachment identifier does not exist. * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. */ - removeAttachmentAsync(attachmentIndex: string): void; + removeAttachmentAsync(attachmentId: string): void; /** * Removes an attachment from a message or appointment. * @@ -13748,11 +13748,11 @@ declare namespace Office { * * ErrorsInvalidAttachmentId - The attachment identifier does not exist. * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. * @param options Optional. An object literal that contains one or more of the following properties. * asyncContext: Developers can provide any object they wish to access in the callback method. */ - removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void; + removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void; /** * Removes an attachment from a message or appointment. * @@ -13772,12 +13772,12 @@ declare namespace Office { * * ErrorsInvalidAttachmentId - The attachment identifier does not exist. * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of * type Office.AsyncResult. * If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure. */ - removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult) => void): void; + removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult) => void): void; /** * Removes an event handler for a supported event. * diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 8c19b56626..c59c277872 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -10288,19 +10288,19 @@ declare namespace Office { * * In addition to this signature, the method also has the following signatures: * - * `removeAttachmentAsync(attachmentIndex: string): void;` + * `removeAttachmentAsync(attachmentId: string): void;` * - * `removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void;` + * `removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void;` * - * `removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult) => void): void;` + * `removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult) => void): void;` * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. * @param options Optional. An object literal that contains one or more of the following properties. * asyncContext: Developers can provide any object they wish to access in the callback method. * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of type Office.AsyncResult. * If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure. */ - removeAttachmentAsync(attachmentIndex: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult) => void): void; + removeAttachmentAsync(attachmentId: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult) => void): void; /** * Removes an attachment from a message or appointment. * @@ -10320,9 +10320,9 @@ declare namespace Office { * * ErrorsInvalidAttachmentId - The attachment identifier does not exist. * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. */ - removeAttachmentAsync(attachmentIndex: string): void; + removeAttachmentAsync(attachmentId: string): void; /** * Removes an attachment from a message or appointment. * @@ -10342,11 +10342,11 @@ declare namespace Office { * * ErrorsInvalidAttachmentId - The attachment identifier does not exist. * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. * @param options Optional. An object literal that contains one or more of the following properties. * asyncContext: Developers can provide any object they wish to access in the callback method. */ - removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void; + removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void; /** * Removes an attachment from a message or appointment. * @@ -10367,12 +10367,12 @@ declare namespace Office { * * ErrorsInvalidAttachmentId - The attachment identifier does not exist. * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of * type Office.AsyncResult. * If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure. */ - removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult) => void): void; + removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult) => void): void; /** * Removes an event handler for a supported event. * @@ -11614,7 +11614,7 @@ declare namespace Office { * * ErrorsInvalidAttachmentId - The attachment identifier does not exist. * - * @param attachmentId The identifier of the attachment you want to get. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment you want to get. * @param options Optional. An object literal that contains one or more of the following properties. * asyncContext: Developers can provide any object they wish to access in the callback method. * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter, @@ -12196,20 +12196,20 @@ declare namespace Office { * * In addition to this signature, the method also has the following signatures: * - * `removeAttachmentAsync(attachmentIndex: string): void;` + * `removeAttachmentAsync(attachmentId: string): void;` * - * `removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void;` + * `removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void;` * - * `removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult) => void): void;` + * `removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult) => void): void;` * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. * @param options Optional. An object literal that contains one or more of the following properties. * asyncContext: Developers can provide any object they wish to access in the callback method. * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of * type Office.AsyncResult. * If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure. */ - removeAttachmentAsync(attachmentIndex: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult) => void): void; + removeAttachmentAsync(attachmentId: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult) => void): void; /** * Removes an attachment from a message or appointment. * @@ -12229,9 +12229,9 @@ declare namespace Office { * * ErrorsInvalidAttachmentId - The attachment identifier does not exist. * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. */ - removeAttachmentAsync(attachmentIndex: string): void; + removeAttachmentAsync(attachmentId: string): void; /** * Removes an attachment from a message or appointment. * @@ -12251,11 +12251,11 @@ declare namespace Office { * * ErrorsInvalidAttachmentId - The attachment identifier does not exist. * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. * @param options Optional. An object literal that contains one or more of the following properties. * asyncContext: Developers can provide any object they wish to access in the callback method. */ - removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void; + removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void; /** * Removes an attachment from a message or appointment. * @@ -12275,12 +12275,12 @@ declare namespace Office { * * ErrorsInvalidAttachmentId - The attachment identifier does not exist. * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of * type {@link Offfice.AsyncResult}. * If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure. */ - removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult) => void): void; + removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult) => void): void; /** * Asynchronously saves an item. @@ -13693,20 +13693,20 @@ declare namespace Office { * * In addition to this signature, the method also has the following signatures: * - * `removeAttachmentAsync(attachmentIndex: string): void;` + * `removeAttachmentAsync(attachmentId: string): void;` * - * `removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void;` + * `removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void;` * - * `removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult) => void): void;` + * `removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult) => void): void;` * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. * @param options Optional. An object literal that contains one or more of the following properties. * asyncContext: Developers can provide any object they wish to access in the callback method. * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of * type Office.AsyncResult. * If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure. */ - removeAttachmentAsync(attachmentIndex: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult) => void): void; + removeAttachmentAsync(attachmentId: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult) => void): void; /** * Removes an attachment from a message or appointment. * @@ -13726,9 +13726,9 @@ declare namespace Office { * * ErrorsInvalidAttachmentId - The attachment identifier does not exist. * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. */ - removeAttachmentAsync(attachmentIndex: string): void; + removeAttachmentAsync(attachmentId: string): void; /** * Removes an attachment from a message or appointment. * @@ -13748,11 +13748,11 @@ declare namespace Office { * * ErrorsInvalidAttachmentId - The attachment identifier does not exist. * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. * @param options Optional. An object literal that contains one or more of the following properties. * asyncContext: Developers can provide any object they wish to access in the callback method. */ - removeAttachmentAsync(attachmentIndex: string, options: Office.AsyncContextOptions): void; + removeAttachmentAsync(attachmentId: string, options: Office.AsyncContextOptions): void; /** * Removes an attachment from a message or appointment. * @@ -13772,12 +13772,12 @@ declare namespace Office { * * ErrorsInvalidAttachmentId - The attachment identifier does not exist. * - * @param attachmentIndex The identifier of the attachment to remove. The maximum length of the string is 100 characters. + * @param attachmentId The identifier of the attachment to remove. * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of * type Office.AsyncResult. * If removing the attachment fails, the asyncResult.error property will contain an error code with the reason for the failure. */ - removeAttachmentAsync(attachmentIndex: string, callback: (result: AsyncResult) => void): void; + removeAttachmentAsync(attachmentId: string, callback: (result: AsyncResult) => void): void; /** * Removes an event handler for a supported event. *