@types/office-js 1.0.270 → 1.0.273

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/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.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 08 Aug 2022 18:02:22 GMT
11
+ * Last updated: Mon, 29 Aug 2022 23:32:43 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
14
14
 
office-js/index.d.ts CHANGED
@@ -10956,7 +10956,7 @@ declare namespace Office {
10956
10956
  */
10957
10957
  optionalAttendees: EmailAddressDetails[];
10958
10958
  /**
10959
- * Gets the email address of the meeting organizer for a specified meeting.
10959
+ * Gets the meeting organizer's email properties.
10960
10960
  *
10961
10961
  * @remarks
10962
10962
  *
@@ -16581,6 +16581,13 @@ declare namespace Office {
16581
16581
  *
16582
16582
  * There are a maximum of 5 notifications per message. Setting more will return a `NumberOfNotificationMessagesExceeded` error.
16583
16583
  *
16584
+ * **Important**:
16585
+ *
16586
+ * - Only one notification of type {@link https://docs.microsoft.com/javascript/api/outlook/office.mailboxenums.itemnotificationmessagetype#fields | InsightMessage}
16587
+ * is allowed per add-in. Attempting to add more will throw an error.
16588
+ *
16589
+ * - In modern Outlook on the web, you can add an `InsightMessage` notification only in Compose mode.
16590
+ *
16584
16591
  * @remarks
16585
16592
  * [Api set: Mailbox 1.3]
16586
16593
  *
@@ -16603,6 +16610,13 @@ declare namespace Office {
16603
16610
  *
16604
16611
  * There are a maximum of 5 notifications per message. Setting more will return a `NumberOfNotificationMessagesExceeded` error.
16605
16612
  *
16613
+ * **Important**:
16614
+ *
16615
+ * - Only one notification of type {@link https://docs.microsoft.com/javascript/api/outlook/office.mailboxenums.itemnotificationmessagetype#fields | InsightMessage}
16616
+ * is allowed per add-in. Attempting to add more will throw an error.
16617
+ *
16618
+ * - In modern Outlook on the web, you can add an `InsightMessage` notification only in Compose mode.
16619
+ *
16606
16620
  * @remarks
16607
16621
  * [Api set: Mailbox 1.3]
16608
16622
  *
@@ -19290,6 +19304,224 @@ declare namespace Excel {
19290
19304
  function run<T>(context: OfficeExtension.ClientRequestContext, batch: (context: Excel.RequestContext) => Promise<T>): Promise<T>;
19291
19305
  function postprocessBindingDescriptor(response: any): any;
19292
19306
  function getDataCommonPostprocess(response: any, callArgs: any): any;
19307
+ /**
19308
+ * Represents an `AllowEditRange` object found in a worksheet. This object works with worksheet protection properties.
19309
+ When worksheet protection is enabled, an `AllowEditRange` object can be used to allow editing of a specific range, while maintaining protection on the rest of the worksheet.
19310
+ *
19311
+ * @remarks
19312
+ * [Api set: ExcelApiOnline 1.1]
19313
+ */
19314
+ class AllowEditRange extends OfficeExtension.ClientObject {
19315
+ /** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
19316
+ context: RequestContext;
19317
+ /**
19318
+ * Specifies the range associated with the object.
19319
+ Worksheet protection must be disabled or paused for this method to work properly.
19320
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to set the range.
19321
+ *
19322
+ * @remarks
19323
+ * [Api set: ExcelApiOnline 1.1]
19324
+ */
19325
+ address: string;
19326
+ /**
19327
+ * Specifies if the object is password protected.
19328
+ *
19329
+ * @remarks
19330
+ * [Api set: ExcelApiOnline 1.1]
19331
+ */
19332
+ readonly isPasswordProtected: boolean;
19333
+ /**
19334
+ * Specifies the title of the object.
19335
+ Worksheet protection must be disabled or paused for this method to work properly.
19336
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to set the title.
19337
+ If there is already an existing `AllowEditRange` with the same string, or if the string is `null` or empty (""), then this method throws an `InvalidArgument` error and fails to set the title.
19338
+ *
19339
+ * @remarks
19340
+ * [Api set: ExcelApiOnline 1.1]
19341
+ */
19342
+ title: string;
19343
+ /**
19344
+ * Sets multiple properties of an object at the same time. You can pass either a plain object with the appropriate properties, or another API object of the same type.
19345
+ * @param properties A JavaScript object with properties that are structured isomorphically to the properties of the object on which the method is called.
19346
+ * @param options Provides an option to suppress errors if the properties object tries to set any read-only properties.
19347
+ */
19348
+ set(properties: Interfaces.AllowEditRangeUpdateData, options?: OfficeExtension.UpdateOptions): void;
19349
+ /** Sets multiple properties on the object at the same time, based on an existing loaded object. */
19350
+ set(properties: Excel.AllowEditRange): void;
19351
+ /**
19352
+ * Deletes the object from the `AllowEditRangeCollection`.
19353
+ Worksheet protection must be disabled or paused for this method to work properly.
19354
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails the delete operation.
19355
+ *
19356
+ * @remarks
19357
+ * [Api set: ExcelApiOnline 1.1]
19358
+ */
19359
+ delete(): void;
19360
+ /**
19361
+ * Pauses worksheet protection for the object for the user in the current session.
19362
+ This method does nothing if worksheet protection isn't enabled or is already paused.
19363
+ If worksheet protection cannot be paused, this method throws an `UnsupportedOperation` error and fails to pause protection for the object.
19364
+ If the password is incorrect, then this method throws a `BadPassword` error and fails to pause protection for the object.
19365
+ If a password is supplied but the object does not require a password, the inputted password will be ignored and the operation will succeed.
19366
+ *
19367
+ * @remarks
19368
+ * [Api set: ExcelApiOnline 1.1]
19369
+ *
19370
+ * @param password The password associated with the `AllowEditRange` object.
19371
+ */
19372
+ pauseProtection(password?: string): void;
19373
+ /**
19374
+ * Changes the password associated with the object.
19375
+ Setting the password string as empty ("") or `null` will remove password protection from the object.
19376
+ Worksheet protection must be disabled or paused for this method to work properly.
19377
+ If worksheet protection is enabled and not paused, then this method throws an `AccessDenied` error and the set operation fails.
19378
+ *
19379
+ * @remarks
19380
+ * [Api set: ExcelApiOnline 1.1]
19381
+ *
19382
+ * @param password The password associated with the `AllowEditRange` object.
19383
+ */
19384
+ setPassword(password?: string): void;
19385
+ /**
19386
+ * Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
19387
+ *
19388
+ * @param options Provides options for which properties of the object to load.
19389
+ */
19390
+ load(options?: Excel.Interfaces.AllowEditRangeLoadOptions): Excel.AllowEditRange;
19391
+ /**
19392
+ * Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
19393
+ *
19394
+ * @param propertyNames A comma-delimited string or an array of strings that specify the properties to load.
19395
+ */
19396
+ load(propertyNames?: string | string[]): Excel.AllowEditRange;
19397
+ /**
19398
+ * Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
19399
+ *
19400
+ * @param propertyNamesAndPaths `propertyNamesAndPaths.select` is a comma-delimited string that specifies the properties to load, and `propertyNamesAndPaths.expand` is a comma-delimited string that specifies the navigation properties to load.
19401
+ */
19402
+ load(propertyNamesAndPaths?: {
19403
+ select?: string;
19404
+ expand?: string;
19405
+ }): Excel.AllowEditRange;
19406
+ /**
19407
+ * Overrides the JavaScript `toJSON()` method in order to provide more useful output when an API object is passed to `JSON.stringify()`. (`JSON.stringify`, in turn, calls the `toJSON` method of the object that is passed to it.)
19408
+ * Whereas the original Excel.AllowEditRange object is an API object, the `toJSON` method returns a plain JavaScript object (typed as `Excel.Interfaces.AllowEditRangeData`) that contains shallow copies of any loaded child properties from the original object.
19409
+ */
19410
+ toJSON(): Excel.Interfaces.AllowEditRangeData;
19411
+ }
19412
+ /**
19413
+ * Represents the set of `AllowEditRange` objects found in a worksheet. `AllowEditRange` objects work with worksheet protection properties.
19414
+ When worksheet protection is enabled, an `AllowEditRange` object can be used to allow editing of a specific range, while maintaining protection on the rest of the worksheet.
19415
+ *
19416
+ * @remarks
19417
+ * [Api set: ExcelApiOnline 1.1]
19418
+ */
19419
+ class AllowEditRangeCollection extends OfficeExtension.ClientObject {
19420
+ /** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
19421
+ context: RequestContext;
19422
+ /** Gets the loaded child items in this collection. */
19423
+ readonly items: Excel.AllowEditRange[];
19424
+ /**
19425
+ * Adds an `AllowEditRange` object to the worksheet.
19426
+ Worksheet protection must be disabled or paused for this method to work properly.
19427
+ If worksheet protection is enabled and not paused, then this method throws an `AccessDenied` error and the add operation fails.
19428
+ *
19429
+ * @remarks
19430
+ * [Api set: ExcelApiOnline 1.1]
19431
+ *
19432
+ * @param title The title string of the `AllowEditRange` object to be added.
19433
+ * @param rangeAddress The range address of the `AllowEditRange` object to be added.
19434
+ * @param options Additional options to be added to the `AllowEditRange` object, such as the password.
19435
+ */
19436
+ add(title: string, rangeAddress: string, options?: Excel.AllowEditRangeOptions): void;
19437
+ /**
19438
+ * Returns the number of `AllowEditRange` objects in the collection.
19439
+ *
19440
+ * @remarks
19441
+ * [Api set: ExcelApiOnline 1.1]
19442
+ */
19443
+ getCount(): OfficeExtension.ClientResult<number>;
19444
+ /**
19445
+ * Gets the `AllowEditRange` object by its title.
19446
+ *
19447
+ * @remarks
19448
+ * [Api set: ExcelApiOnline 1.1]
19449
+ *
19450
+ * @param key The title of the `AllowEditRange`.
19451
+ * @returns The `AllowEditRange` with the title. If there is no `AllowEditRange` with the given title, then an `ItemNotFound` error is thrown.
19452
+ */
19453
+ getItem(key: string): Excel.AllowEditRange;
19454
+ /**
19455
+ * Returns an `AllowEditRange` object by its index in the collection.
19456
+ *
19457
+ * @remarks
19458
+ * [Api set: ExcelApiOnline 1.1]
19459
+ *
19460
+ * @param index The index of the `AllowEditRange` object in the collection.
19461
+ * @returns The `AllowEditRange` at the given index.
19462
+ */
19463
+ getItemAt(index: number): Excel.AllowEditRange;
19464
+ /**
19465
+ * Gets the `AllowEditRange` object by its title.
19466
+ *
19467
+ * @remarks
19468
+ * [Api set: ExcelApiOnline 1.1]
19469
+ *
19470
+ * @param key The title of the `AllowEditRange`.
19471
+ * @returns The `AllowEditRange` with the title. If there is no `AllowEditRange` with the given title, then this method returns an object with its `isNullObject` property set to `true`. For further information, see {@link https://docs.microsoft.com/office/dev/add-ins/develop/application-specific-api-model#ornullobject-methods-and-properties | *OrNullObject methods and properties}.
19472
+ */
19473
+ getItemOrNullObject(key: string): Excel.AllowEditRange;
19474
+ /**
19475
+ * Pauses worksheet protection for all `AllowEditRange` objects found in this worksheet that have the given password for the user in the current session.
19476
+ This method does nothing if worksheet protection isn't enabled or is paused.
19477
+ If worksheet protection cannot be paused, this method throws an `UnsupportedOperation` error and fails to pause protection for the range.
19478
+ If the password does not match any `AllowEditRange` objects in the collection, then this method throws a `BadPassword` error and fails to pause protection for any range in the collection.
19479
+ *
19480
+ * @remarks
19481
+ * [Api set: ExcelApiOnline 1.1]
19482
+ *
19483
+ * @param password The password to pause protection on the `AllowEditRange` objects.
19484
+ */
19485
+ pauseProtection(password: string): void;
19486
+ /**
19487
+ * Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
19488
+ *
19489
+ * @param options Provides options for which properties of the object to load.
19490
+ */
19491
+ load(options?: Excel.Interfaces.AllowEditRangeCollectionLoadOptions & Excel.Interfaces.CollectionLoadOptions): Excel.AllowEditRangeCollection;
19492
+ /**
19493
+ * Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
19494
+ *
19495
+ * @param propertyNames A comma-delimited string or an array of strings that specify the properties to load.
19496
+ */
19497
+ load(propertyNames?: string | string[]): Excel.AllowEditRangeCollection;
19498
+ /**
19499
+ * Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
19500
+ *
19501
+ * @param propertyNamesAndPaths `propertyNamesAndPaths.select` is a comma-delimited string that specifies the properties to load, and `propertyNamesAndPaths.expand` is a comma-delimited string that specifies the navigation properties to load.
19502
+ */
19503
+ load(propertyNamesAndPaths?: OfficeExtension.LoadOption): Excel.AllowEditRangeCollection;
19504
+ /**
19505
+ * Overrides the JavaScript `toJSON()` method in order to provide more useful output when an API object is passed to `JSON.stringify()`. (`JSON.stringify`, in turn, calls the `toJSON` method of the object that is passed to it.)
19506
+ * Whereas the original `Excel.AllowEditRangeCollection` object is an API object, the `toJSON` method returns a plain JavaScript object (typed as `Excel.Interfaces.AllowEditRangeCollectionData`) that contains an "items" array with shallow copies of any loaded properties from the collection's items.
19507
+ */
19508
+ toJSON(): Excel.Interfaces.AllowEditRangeCollectionData;
19509
+ }
19510
+ /**
19511
+ * The interface used to construct optional fields of the `AllowEditRange` object.
19512
+ *
19513
+ * @remarks
19514
+ * [Api set: ExcelApiOnline 1.1]
19515
+ */
19516
+ interface AllowEditRangeOptions {
19517
+ /**
19518
+ * The password associated with the `AllowEditRange`.
19519
+ *
19520
+ * @remarks
19521
+ * [Api set: ExcelApiOnline 1.1]
19522
+ */
19523
+ password?: string;
19524
+ }
19293
19525
  /**
19294
19526
  * Notifies when a worksheet is moved within a workbook.
19295
19527
 
@@ -21070,6 +21302,13 @@ declare namespace Excel {
21070
21302
  * [Api set: ExcelApi 1.14]
21071
21303
  */
21072
21304
  interface WorksheetProtectionChangedEventArgs {
21305
+ /**
21306
+ * Specifies if any of the `AllowEditRange` objects have changed.
21307
+ *
21308
+ * @remarks
21309
+ * [Api set: ExcelApiOnline 1.1]
21310
+ */
21311
+ allowEditRangesChanged: boolean;
21073
21312
  /**
21074
21313
  * Gets the current protection status of the worksheet.
21075
21314
  *
@@ -21077,6 +21316,20 @@ declare namespace Excel {
21077
21316
  * [Api set: ExcelApi 1.14]
21078
21317
  */
21079
21318
  isProtected: boolean;
21319
+ /**
21320
+ * Specifies if the `WorksheetProtectionOptions` have changed.
21321
+ *
21322
+ * @remarks
21323
+ * [Api set: ExcelApiOnline 1.1]
21324
+ */
21325
+ protectionOptionsChanged: boolean;
21326
+ /**
21327
+ * Specifies if the worksheet password has changed.
21328
+ *
21329
+ * @remarks
21330
+ * [Api set: ExcelApiOnline 1.1]
21331
+ */
21332
+ sheetPasswordChanged: boolean;
21080
21333
  /**
21081
21334
  * The source of the event. It can be local or remote (through co-authoring).
21082
21335
  *
@@ -23364,6 +23617,35 @@ declare namespace Excel {
23364
23617
  class WorksheetProtection extends OfficeExtension.ClientObject {
23365
23618
  /** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
23366
23619
  context: RequestContext;
23620
+ /**
23621
+ * Specifies the `AllowEditRangeCollection` object found in this worksheet. This is a collection of `AllowEditRange` objects, which work with worksheet protection properties.
23622
+ When worksheet protection is enabled, an `AllowEditRange` object can be used to allow editing of a specific range, while maintaining protection on the rest of the worksheet.
23623
+ *
23624
+ * @remarks
23625
+ * [Api set: ExcelApiOnline 1.1]
23626
+ */
23627
+ readonly allowEditRanges: Excel.AllowEditRangeCollection;
23628
+ /**
23629
+ * Specifies if protection can be paused for this worksheet.
23630
+ *
23631
+ * @remarks
23632
+ * [Api set: ExcelApiOnline 1.1]
23633
+ */
23634
+ readonly canPauseProtection: boolean;
23635
+ /**
23636
+ * Specifies if the sheet is password protected.
23637
+ *
23638
+ * @remarks
23639
+ * [Api set: ExcelApiOnline 1.1]
23640
+ */
23641
+ readonly isPasswordProtected: boolean;
23642
+ /**
23643
+ * Specifies if worksheet protection is paused.
23644
+ *
23645
+ * @remarks
23646
+ * [Api set: ExcelApiOnline 1.1]
23647
+ */
23648
+ readonly isPaused: boolean;
23367
23649
  /**
23368
23650
  * Specifies the protection options for the worksheet.
23369
23651
  *
@@ -23378,6 +23660,38 @@ declare namespace Excel {
23378
23660
  * [Api set: ExcelApi 1.2]
23379
23661
  */
23380
23662
  readonly protected: boolean;
23663
+ /**
23664
+ * Specifies the protection options saved in the worksheet.
23665
+ This will return the same `WorksheetProtectionOptions` object regardless of the worksheet protection state.
23666
+ *
23667
+ * @remarks
23668
+ * [Api set: ExcelApiOnline 1.1]
23669
+ */
23670
+ readonly savedOptions: Excel.WorksheetProtectionOptions;
23671
+ /**
23672
+ * Specifies if the password can be used to unlock worksheet protection.
23673
+ This method doesn't change the worksheet protection state.
23674
+ If a password is inputted but no password is required to unlock worksheet protection, this method will return false.
23675
+ *
23676
+ * @remarks
23677
+ * [Api set: ExcelApiOnline 1.1]
23678
+ *
23679
+ * @param password The password to check against the protected worksheet.
23680
+ * @returns Returns `true` if the password can be used to unlock worksheet protection. Otherwise, returns `false`.
23681
+ */
23682
+ checkPassword(password?: string): OfficeExtension.ClientResult<boolean>;
23683
+ /**
23684
+ * Pauses worksheet protection for the given worksheet object for the user in the current session.
23685
+ This method does nothing if worksheet protection isn't enabled or is already paused.
23686
+ If the password is incorrect, then this method throws an `InvalidArgument` error and fails to pause protection.
23687
+ This method does not change the protection state if worksheet protection is not enabled or already paused.
23688
+ *
23689
+ * @remarks
23690
+ * [Api set: ExcelApiOnline 1.1]
23691
+ *
23692
+ * @param password The password associated with the protected worksheet.
23693
+ */
23694
+ pauseProtection(password?: string): void;
23381
23695
  /**
23382
23696
  * Protects a worksheet. Fails if the worksheet has already been protected.
23383
23697
  *
@@ -23388,6 +23702,27 @@ declare namespace Excel {
23388
23702
  * @param password Optional. Sheet protection password.
23389
23703
  */
23390
23704
  protect(options?: Excel.WorksheetProtectionOptions, password?: string): void;
23705
+ /**
23706
+ * Resumes worksheet protection for the given worksheet object for the user in a given session.
23707
+ Worksheet protection must be paused for this method to work. If worksheet protection is not paused, then this method will not change the protection state of the worksheet.
23708
+ *
23709
+ * @remarks
23710
+ * [Api set: ExcelApiOnline 1.1]
23711
+ */
23712
+ resumeProtection(): void;
23713
+ /**
23714
+ * Changes the password associated with the `WorksheetProtection` object.
23715
+ Setting the password as an empty string ("") or as `null` will remove password protection from the `WorksheetProtection` object.
23716
+ Worksheet protection must be enabled and paused for this method to work properly.
23717
+ If worksheet protection is disabled, this method throws an `InvalidOperation` error and fails to change the password.
23718
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to change the password.
23719
+ *
23720
+ * @remarks
23721
+ * [Api set: ExcelApiOnline 1.1]
23722
+ *
23723
+ * @param password The password associated with the `WorksheetProtection` object.
23724
+ */
23725
+ setPassword(password?: string): void;
23391
23726
  /**
23392
23727
  * Unprotects a worksheet.
23393
23728
  *
@@ -23397,6 +23732,17 @@ declare namespace Excel {
23397
23732
  * @param password Sheet protection password.
23398
23733
  */
23399
23734
  unprotect(password?: string): void;
23735
+ /**
23736
+ * Change the worksheet protection options associated with the `WorksheetProtection` object.
23737
+ Worksheet protection must be disabled or paused for this method to work properly.
23738
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to change the worksheet protection options.
23739
+ *
23740
+ * @remarks
23741
+ * [Api set: ExcelApiOnline 1.1]
23742
+ *
23743
+ * @param options The options interface associated with the `WorksheetProtection` object.
23744
+ */
23745
+ updateOptions(options: Excel.WorksheetProtectionOptions): void;
23400
23746
  /**
23401
23747
  * Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
23402
23748
  *
@@ -23794,7 +24140,7 @@ declare namespace Excel {
23794
24140
  */
23795
24141
  readonly linkedDataTypeState: Excel.LinkedDataTypeState[][];
23796
24142
  /**
23797
- * Represents Excel's number format code for the given range.
24143
+ * Represents Excel's number format code for the given range. For more information about Excel number formatting, see {@link https://support.microsoft.com/office/number-format-codes-5026bbd6-04bc-48cd-bf33-80f18b4eae68 | Number format codes}.
23798
24144
  *
23799
24145
  * @remarks
23800
24146
  * [Api set: ExcelApi 1.1]
@@ -24662,11 +25008,11 @@ declare namespace Excel {
24662
25008
  expand?: string;
24663
25009
  }): Excel.Range;
24664
25010
  /**
24665
- * Track the object for automatic adjustment based on surrounding changes in the document. This call is a shorthand for `context.trackedObjects.add(thisObject)`. If you are using this object across `.sync` calls and outside the sequential execution of a ".run" batch, and get an "InvalidObjectPath" error when setting a property or invoking a method on the object, you needed to have added the object to the tracked object collection when the object was first created.
25011
+ * Track the object for automatic adjustment based on surrounding changes in the document. This call is a shorthand for {@link https://docs.microsoft.com/javascript/api/office/officeextension.clientrequestcontext#office-officeextension-clientrequestcontext-trackedobjects-member | context.trackedObjects.add(thisObject)}. If you are using this object across `.sync` calls and outside the sequential execution of a ".run" batch, and get an "InvalidObjectPath" error when setting a property or invoking a method on the object, you need to add the object to the tracked object collection when the object was first created.
24666
25012
  */
24667
25013
  track(): Excel.Range;
24668
25014
  /**
24669
- * Release the memory associated with this object, if it has previously been tracked. This call is shorthand for `context.trackedObjects.remove(thisObject)`. Having many tracked objects slows down the host application, so please remember to free any objects you add, once you're done using them. You will need to call `context.sync()` before the memory release takes effect.
25015
+ * Release the memory associated with this object, if it has previously been tracked. This call is shorthand for {@link https://docs.microsoft.com/javascript/api/office/officeextension.clientrequestcontext#office-officeextension-clientrequestcontext-trackedobjects-member | context.trackedObjects.remove(thisObject)}. Having many tracked objects slows down the host application, so please remember to free any objects you add, once you're done using them. You will need to call `context.sync()` before the memory release takes effect.
24670
25016
  */
24671
25017
  untrack(): Excel.Range;
24672
25018
  /**
@@ -25042,11 +25388,11 @@ declare namespace Excel {
25042
25388
  expand?: string;
25043
25389
  }): Excel.RangeAreas;
25044
25390
  /**
25045
- * Track the object for automatic adjustment based on surrounding changes in the document. This call is a shorthand for `context.trackedObjects.add(thisObject)`. If you are using this object across `.sync` calls and outside the sequential execution of a ".run" batch, and get an "InvalidObjectPath" error when setting a property or invoking a method on the object, you needed to have added the object to the tracked object collection when the object was first created.
25391
+ * Track the object for automatic adjustment based on surrounding changes in the document. This call is a shorthand for {@link https://docs.microsoft.com/javascript/api/office/officeextension.clientrequestcontext#office-officeextension-clientrequestcontext-trackedobjects-member | context.trackedObjects.add(thisObject)}. If you are using this object across `.sync` calls and outside the sequential execution of a ".run" batch, and get an "InvalidObjectPath" error when setting a property or invoking a method on the object, you need to add the object to the tracked object collection when the object was first created.
25046
25392
  */
25047
25393
  track(): Excel.RangeAreas;
25048
25394
  /**
25049
- * Release the memory associated with this object, if it has previously been tracked. This call is shorthand for `context.trackedObjects.remove(thisObject)`. Having many tracked objects slows down the host application, so please remember to free any objects you add, once you're done using them. You will need to call `context.sync()` before the memory release takes effect.
25395
+ * Release the memory associated with this object, if it has previously been tracked. This call is shorthand for {@link https://docs.microsoft.com/javascript/api/office/officeextension.clientrequestcontext#office-officeextension-clientrequestcontext-trackedobjects-member | context.trackedObjects.remove(thisObject)}. Having many tracked objects slows down the host application, so please remember to free any objects you add, once you're done using them. You will need to call `context.sync()` before the memory release takes effect.
25050
25396
  */
25051
25397
  untrack(): Excel.RangeAreas;
25052
25398
  /**
@@ -25126,11 +25472,11 @@ declare namespace Excel {
25126
25472
  expand?: string;
25127
25473
  }): Excel.WorkbookRangeAreas;
25128
25474
  /**
25129
- * Track the object for automatic adjustment based on surrounding changes in the document. This call is a shorthand for `context.trackedObjects.add(thisObject)`. If you are using this object across `.sync` calls and outside the sequential execution of a ".run" batch, and get an "InvalidObjectPath" error when setting a property or invoking a method on the object, you needed to have added the object to the tracked object collection when the object was first created.
25475
+ * Track the object for automatic adjustment based on surrounding changes in the document. This call is a shorthand for {@link https://docs.microsoft.com/javascript/api/office/officeextension.clientrequestcontext#office-officeextension-clientrequestcontext-trackedobjects-member | context.trackedObjects.add(thisObject)}. If you are using this object across `.sync` calls and outside the sequential execution of a ".run" batch, and get an "InvalidObjectPath" error when setting a property or invoking a method on the object, you need to add the object to the tracked object collection when the object was first created.
25130
25476
  */
25131
25477
  track(): Excel.WorkbookRangeAreas;
25132
25478
  /**
25133
- * Release the memory associated with this object, if it has previously been tracked. This call is shorthand for `context.trackedObjects.remove(thisObject)`. Having many tracked objects slows down the host application, so please remember to free any objects you add, once you're done using them. You will need to call `context.sync()` before the memory release takes effect.
25479
+ * Release the memory associated with this object, if it has previously been tracked. This call is shorthand for {@link https://docs.microsoft.com/javascript/api/office/officeextension.clientrequestcontext#office-officeextension-clientrequestcontext-trackedobjects-member | context.trackedObjects.remove(thisObject)}. Having many tracked objects slows down the host application, so please remember to free any objects you add, once you're done using them. You will need to call `context.sync()` before the memory release takes effect.
25134
25480
  */
25135
25481
  untrack(): Excel.WorkbookRangeAreas;
25136
25482
  /**
@@ -33335,8 +33681,8 @@ declare namespace Excel {
33335
33681
  * [Api set: ExcelApi 1.14]
33336
33682
  *
33337
33683
  * @param columnIndex The zero-based column index, which represents which column filter needs to be cleared.
33338
- If the index value is not supported(for example, if the value is a negative number, or if the value is greater than the number of available columns in the range),
33339
- then an `InvalidArgument` exception will be thrown.
33684
+ If the index value is not supported (for example, if the value is a negative number, or if the value is greater than the number of available columns in the range),
33685
+ then an `InvalidArgument` error will be thrown.
33340
33686
  */
33341
33687
  clearColumnCriteria(columnIndex: number): void;
33342
33688
  /**
@@ -37437,7 +37783,8 @@ declare namespace Excel {
37437
37783
  */
37438
37784
  readonly font: Excel.ConditionalRangeFont;
37439
37785
  /**
37440
- * Represents Excel's number format code for the given range. Cleared if `null` is passed in.
37786
+ * Represents Excel's number format code for the given range. For more information about Excel number formatting, see {@link https://support.microsoft.com/office/number-format-codes-5026bbd6-04bc-48cd-bf33-80f18b4eae68 | Number format codes}.
37787
+ Cleared if `null` is passed in.
37441
37788
  *
37442
37789
  * @remarks
37443
37790
  * [Api set: ExcelApi 1.6]
@@ -38177,7 +38524,7 @@ declare namespace Excel {
38177
38524
  /** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
38178
38525
  context: RequestContext;
38179
38526
  /**
38180
- * Gets the name of the table style.
38527
+ * Specifies the name of the table style.
38181
38528
  *
38182
38529
  * @remarks
38183
38530
  * [Api set: ExcelApi 1.10]
@@ -38341,7 +38688,7 @@ declare namespace Excel {
38341
38688
  /** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
38342
38689
  context: RequestContext;
38343
38690
  /**
38344
- * Gets the name of the PivotTable style.
38691
+ * Specifies the name of the PivotTable style.
38345
38692
  *
38346
38693
  * @remarks
38347
38694
  * [Api set: ExcelApi 1.10]
@@ -38505,7 +38852,7 @@ declare namespace Excel {
38505
38852
  /** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
38506
38853
  context: RequestContext;
38507
38854
  /**
38508
- * Gets the name of the slicer style.
38855
+ * Specifies the name of the slicer style.
38509
38856
  *
38510
38857
  * @remarks
38511
38858
  * [Api set: ExcelApi 1.10]
@@ -38669,7 +39016,7 @@ declare namespace Excel {
38669
39016
  /** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
38670
39017
  context: RequestContext;
38671
39018
  /**
38672
- * Gets the name of the timeline style.
39019
+ * Specifies the name of the timeline style.
38673
39020
  *
38674
39021
  * @remarks
38675
39022
  * [Api set: ExcelApi 1.10]
@@ -39406,7 +39753,8 @@ declare namespace Excel {
39406
39753
  /** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
39407
39754
  context: RequestContext;
39408
39755
  /**
39409
- * Refreshes all the data connections in the collection.
39756
+ * Refreshes data connections in the collection, such as from a PivotTable to a Power BI dataset, or a Data Model to a table or range in the same workbook.
39757
+ Data connections unsupported by this method are: Power Query connections, data connections outside the original workbook (except Power BI connections), and connections to data protected by a firewall.
39410
39758
  *
39411
39759
  * @remarks
39412
39760
  * [Api set: ExcelApi 1.7]
@@ -44133,7 +44481,7 @@ declare namespace Excel {
44133
44481
  }
44134
44482
  /**
44135
44483
  * @remarks
44136
- * [Api set: ExcelApi 1.1 for All, Formats, and Contents. 1.7 for Hyperlinks and RemoveHyperlinks.]
44484
+ * [Api set: ExcelApi 1.1]
44137
44485
  */
44138
44486
  enum ClearApplyTo {
44139
44487
  /**
@@ -45535,7 +45883,7 @@ declare namespace Excel {
45535
45883
  }
45536
45884
  /**
45537
45885
  * @remarks
45538
- * [Api set: ExcelApi 1.1 for Unknown, Empty, String, Integer, Double, Boolean, Error. 1.7 for RichValue]
45886
+ * [Api set: ExcelApi 1.1]
45539
45887
  */
45540
45888
  enum RangeValueType {
45541
45889
  /**
@@ -45787,7 +46135,7 @@ declare namespace Excel {
45787
46135
  /**
45788
46136
  * `Unknown` indicates that the type of data change is not one of the listed types.
45789
46137
  * @remarks
45790
- * [Api set: ExcelApi The name of this value was 'Others' in ExcelApi 1.7]
46138
+ * [Api set: ExcelApi 1.8. The name of this value was 'Others' in ExcelApi 1.7]
45791
46139
  */
45792
46140
  unknown = "Unknown",
45793
46141
  /**
@@ -52795,6 +53143,7 @@ declare namespace Excel {
52795
53143
  requestAborted = "RequestAborted",
52796
53144
  responsePayloadSizeLimitExceeded = "ResponsePayloadSizeLimitExceeded",
52797
53145
  unsupportedFeature = "UnsupportedFeature",
53146
+ unsupportedFillType = "UnsupportedFillType",
52798
53147
  unsupportedOperation = "UnsupportedOperation",
52799
53148
  unsupportedSheet = "UnsupportedSheet",
52800
53149
  invalidOperationInCellEditMode = "InvalidOperationInCellEditMode"
@@ -52813,6 +53162,32 @@ declare namespace Excel {
52813
53162
  */
52814
53163
  $skip?: number;
52815
53164
  }
53165
+ /** An interface for updating data on the AllowEditRange object, for use in `allowEditRange.set({ ... })`. */
53166
+ interface AllowEditRangeUpdateData {
53167
+ /**
53168
+ * Specifies the range associated with the object.
53169
+ Worksheet protection must be disabled or paused for this method to work properly.
53170
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to set the range.
53171
+ *
53172
+ * @remarks
53173
+ * [Api set: ExcelApiOnline 1.1]
53174
+ */
53175
+ address?: string;
53176
+ /**
53177
+ * Specifies the title of the object.
53178
+ Worksheet protection must be disabled or paused for this method to work properly.
53179
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to set the title.
53180
+ If there is already an existing `AllowEditRange` with the same string, or if the string is `null` or empty (""), then this method throws an `InvalidArgument` error and fails to set the title.
53181
+ *
53182
+ * @remarks
53183
+ * [Api set: ExcelApiOnline 1.1]
53184
+ */
53185
+ title?: string;
53186
+ }
53187
+ /** An interface for updating data on the AllowEditRangeCollection object, for use in `allowEditRangeCollection.set({ ... })`. */
53188
+ interface AllowEditRangeCollectionUpdateData {
53189
+ items?: Excel.Interfaces.AllowEditRangeData[];
53190
+ }
52816
53191
  /** An interface for updating data on the QueryCollection object, for use in `queryCollection.set({ ... })`. */
52817
53192
  interface QueryCollectionUpdateData {
52818
53193
  items?: Excel.Interfaces.QueryData[];
@@ -53041,7 +53416,7 @@ declare namespace Excel {
53041
53416
  */
53042
53417
  hyperlink?: Excel.RangeHyperlink;
53043
53418
  /**
53044
- * Represents Excel's number format code for the given range.
53419
+ * Represents Excel's number format code for the given range. For more information about Excel number formatting, see {@link https://support.microsoft.com/office/number-format-codes-5026bbd6-04bc-48cd-bf33-80f18b4eae68 | Number format codes}.
53045
53420
  *
53046
53421
  * @remarks
53047
53422
  * [Api set: ExcelApi 1.1]
@@ -56504,7 +56879,8 @@ declare namespace Excel {
56504
56879
  */
56505
56880
  font?: Excel.Interfaces.ConditionalRangeFontUpdateData;
56506
56881
  /**
56507
- * Represents Excel's number format code for the given range. Cleared if `null` is passed in.
56882
+ * Represents Excel's number format code for the given range. For more information about Excel number formatting, see {@link https://support.microsoft.com/office/number-format-codes-5026bbd6-04bc-48cd-bf33-80f18b4eae68 | Number format codes}.
56883
+ Cleared if `null` is passed in.
56508
56884
  *
56509
56885
  * @remarks
56510
56886
  * [Api set: ExcelApi 1.6]
@@ -56769,7 +57145,7 @@ declare namespace Excel {
56769
57145
  /** An interface for updating data on the TableStyle object, for use in `tableStyle.set({ ... })`. */
56770
57146
  interface TableStyleUpdateData {
56771
57147
  /**
56772
- * Gets the name of the table style.
57148
+ * Specifies the name of the table style.
56773
57149
  *
56774
57150
  * @remarks
56775
57151
  * [Api set: ExcelApi 1.10]
@@ -56783,7 +57159,7 @@ declare namespace Excel {
56783
57159
  /** An interface for updating data on the PivotTableStyle object, for use in `pivotTableStyle.set({ ... })`. */
56784
57160
  interface PivotTableStyleUpdateData {
56785
57161
  /**
56786
- * Gets the name of the PivotTable style.
57162
+ * Specifies the name of the PivotTable style.
56787
57163
  *
56788
57164
  * @remarks
56789
57165
  * [Api set: ExcelApi 1.10]
@@ -56797,7 +57173,7 @@ declare namespace Excel {
56797
57173
  /** An interface for updating data on the SlicerStyle object, for use in `slicerStyle.set({ ... })`. */
56798
57174
  interface SlicerStyleUpdateData {
56799
57175
  /**
56800
- * Gets the name of the slicer style.
57176
+ * Specifies the name of the slicer style.
56801
57177
  *
56802
57178
  * @remarks
56803
57179
  * [Api set: ExcelApi 1.10]
@@ -56811,7 +57187,7 @@ declare namespace Excel {
56811
57187
  /** An interface for updating data on the TimelineStyle object, for use in `timelineStyle.set({ ... })`. */
56812
57188
  interface TimelineStyleUpdateData {
56813
57189
  /**
56814
- * Gets the name of the timeline style.
57190
+ * Specifies the name of the timeline style.
56815
57191
  *
56816
57192
  * @remarks
56817
57193
  * [Api set: ExcelApi 1.10]
@@ -57586,6 +57962,39 @@ declare namespace Excel {
57586
57962
  interface NamedSheetViewCollectionUpdateData {
57587
57963
  items?: Excel.Interfaces.NamedSheetViewData[];
57588
57964
  }
57965
+ /** An interface describing the data returned by calling `allowEditRange.toJSON()`. */
57966
+ interface AllowEditRangeData {
57967
+ /**
57968
+ * Specifies the range associated with the object.
57969
+ Worksheet protection must be disabled or paused for this method to work properly.
57970
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to set the range.
57971
+ *
57972
+ * @remarks
57973
+ * [Api set: ExcelApiOnline 1.1]
57974
+ */
57975
+ address?: string;
57976
+ /**
57977
+ * Specifies if the object is password protected.
57978
+ *
57979
+ * @remarks
57980
+ * [Api set: ExcelApiOnline 1.1]
57981
+ */
57982
+ isPasswordProtected?: boolean;
57983
+ /**
57984
+ * Specifies the title of the object.
57985
+ Worksheet protection must be disabled or paused for this method to work properly.
57986
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to set the title.
57987
+ If there is already an existing `AllowEditRange` with the same string, or if the string is `null` or empty (""), then this method throws an `InvalidArgument` error and fails to set the title.
57988
+ *
57989
+ * @remarks
57990
+ * [Api set: ExcelApiOnline 1.1]
57991
+ */
57992
+ title?: string;
57993
+ }
57994
+ /** An interface describing the data returned by calling `allowEditRangeCollection.toJSON()`. */
57995
+ interface AllowEditRangeCollectionData {
57996
+ items?: Excel.Interfaces.AllowEditRangeData[];
57997
+ }
57589
57998
  /** An interface describing the data returned by calling `query.toJSON()`. */
57590
57999
  interface QueryData {
57591
58000
  /**
@@ -58115,6 +58524,35 @@ declare namespace Excel {
58115
58524
  }
58116
58525
  /** An interface describing the data returned by calling `worksheetProtection.toJSON()`. */
58117
58526
  interface WorksheetProtectionData {
58527
+ /**
58528
+ * Specifies the `AllowEditRangeCollection` object found in this worksheet. This is a collection of `AllowEditRange` objects, which work with worksheet protection properties.
58529
+ When worksheet protection is enabled, an `AllowEditRange` object can be used to allow editing of a specific range, while maintaining protection on the rest of the worksheet.
58530
+ *
58531
+ * @remarks
58532
+ * [Api set: ExcelApiOnline 1.1]
58533
+ */
58534
+ allowEditRanges?: Excel.Interfaces.AllowEditRangeData[];
58535
+ /**
58536
+ * Specifies if protection can be paused for this worksheet.
58537
+ *
58538
+ * @remarks
58539
+ * [Api set: ExcelApiOnline 1.1]
58540
+ */
58541
+ canPauseProtection?: boolean;
58542
+ /**
58543
+ * Specifies if the sheet is password protected.
58544
+ *
58545
+ * @remarks
58546
+ * [Api set: ExcelApiOnline 1.1]
58547
+ */
58548
+ isPasswordProtected?: boolean;
58549
+ /**
58550
+ * Specifies if worksheet protection is paused.
58551
+ *
58552
+ * @remarks
58553
+ * [Api set: ExcelApiOnline 1.1]
58554
+ */
58555
+ isPaused?: boolean;
58118
58556
  /**
58119
58557
  * Specifies the protection options for the worksheet.
58120
58558
  *
@@ -58129,6 +58567,14 @@ declare namespace Excel {
58129
58567
  * [Api set: ExcelApi 1.2]
58130
58568
  */
58131
58569
  protected?: boolean;
58570
+ /**
58571
+ * Specifies the protection options saved in the worksheet.
58572
+ This will return the same `WorksheetProtectionOptions` object regardless of the worksheet protection state.
58573
+ *
58574
+ * @remarks
58575
+ * [Api set: ExcelApiOnline 1.1]
58576
+ */
58577
+ savedOptions?: Excel.WorksheetProtectionOptions;
58132
58578
  }
58133
58579
  /** An interface describing the data returned by calling `range.toJSON()`. */
58134
58580
  interface RangeData {
@@ -58275,7 +58721,7 @@ declare namespace Excel {
58275
58721
  */
58276
58722
  linkedDataTypeState?: Excel.LinkedDataTypeState[][];
58277
58723
  /**
58278
- * Represents Excel's number format code for the given range.
58724
+ * Represents Excel's number format code for the given range. For more information about Excel number formatting, see {@link https://support.microsoft.com/office/number-format-codes-5026bbd6-04bc-48cd-bf33-80f18b4eae68 | Number format codes}.
58279
58725
  *
58280
58726
  * @remarks
58281
58727
  * [Api set: ExcelApi 1.1]
@@ -62607,7 +63053,8 @@ declare namespace Excel {
62607
63053
  */
62608
63054
  font?: Excel.Interfaces.ConditionalRangeFontData;
62609
63055
  /**
62610
- * Represents Excel's number format code for the given range. Cleared if `null` is passed in.
63056
+ * Represents Excel's number format code for the given range. For more information about Excel number formatting, see {@link https://support.microsoft.com/office/number-format-codes-5026bbd6-04bc-48cd-bf33-80f18b4eae68 | Number format codes}.
63057
+ Cleared if `null` is passed in.
62611
63058
  *
62612
63059
  * @remarks
62613
63060
  * [Api set: ExcelApi 1.6]
@@ -62865,7 +63312,7 @@ declare namespace Excel {
62865
63312
  /** An interface describing the data returned by calling `tableStyle.toJSON()`. */
62866
63313
  interface TableStyleData {
62867
63314
  /**
62868
- * Gets the name of the table style.
63315
+ * Specifies the name of the table style.
62869
63316
  *
62870
63317
  * @remarks
62871
63318
  * [Api set: ExcelApi 1.10]
@@ -62886,7 +63333,7 @@ declare namespace Excel {
62886
63333
  /** An interface describing the data returned by calling `pivotTableStyle.toJSON()`. */
62887
63334
  interface PivotTableStyleData {
62888
63335
  /**
62889
- * Gets the name of the PivotTable style.
63336
+ * Specifies the name of the PivotTable style.
62890
63337
  *
62891
63338
  * @remarks
62892
63339
  * [Api set: ExcelApi 1.10]
@@ -62907,7 +63354,7 @@ declare namespace Excel {
62907
63354
  /** An interface describing the data returned by calling `slicerStyle.toJSON()`. */
62908
63355
  interface SlicerStyleData {
62909
63356
  /**
62910
- * Gets the name of the slicer style.
63357
+ * Specifies the name of the slicer style.
62911
63358
  *
62912
63359
  * @remarks
62913
63360
  * [Api set: ExcelApi 1.10]
@@ -62928,7 +63375,7 @@ declare namespace Excel {
62928
63375
  /** An interface describing the data returned by calling `timelineStyle.toJSON()`. */
62929
63376
  interface TimelineStyleData {
62930
63377
  /**
62931
- * Gets the name of the timeline style.
63378
+ * Specifies the name of the timeline style.
62932
63379
  *
62933
63380
  * @remarks
62934
63381
  * [Api set: ExcelApi 1.10]
@@ -64035,6 +64482,84 @@ declare namespace Excel {
64035
64482
  */
64036
64483
  value?: T;
64037
64484
  }
64485
+ /**
64486
+ * Represents an `AllowEditRange` object found in a worksheet. This object works with worksheet protection properties.
64487
+ When worksheet protection is enabled, an `AllowEditRange` object can be used to allow editing of a specific range, while maintaining protection on the rest of the worksheet.
64488
+ *
64489
+ * @remarks
64490
+ * [Api set: ExcelApiOnline 1.1]
64491
+ */
64492
+ interface AllowEditRangeLoadOptions {
64493
+ /**
64494
+ Specifying `$all` for the LoadOptions loads all the scalar properties (e.g.: `Range.address`) but not the navigational properties (e.g.: `Range.format.fill.color`).
64495
+ */
64496
+ $all?: boolean;
64497
+ /**
64498
+ * Specifies the range associated with the object.
64499
+ Worksheet protection must be disabled or paused for this method to work properly.
64500
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to set the range.
64501
+ *
64502
+ * @remarks
64503
+ * [Api set: ExcelApiOnline 1.1]
64504
+ */
64505
+ address?: boolean;
64506
+ /**
64507
+ * Specifies if the object is password protected.
64508
+ *
64509
+ * @remarks
64510
+ * [Api set: ExcelApiOnline 1.1]
64511
+ */
64512
+ isPasswordProtected?: boolean;
64513
+ /**
64514
+ * Specifies the title of the object.
64515
+ Worksheet protection must be disabled or paused for this method to work properly.
64516
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to set the title.
64517
+ If there is already an existing `AllowEditRange` with the same string, or if the string is `null` or empty (""), then this method throws an `InvalidArgument` error and fails to set the title.
64518
+ *
64519
+ * @remarks
64520
+ * [Api set: ExcelApiOnline 1.1]
64521
+ */
64522
+ title?: boolean;
64523
+ }
64524
+ /**
64525
+ * Represents the set of `AllowEditRange` objects found in a worksheet. `AllowEditRange` objects work with worksheet protection properties.
64526
+ When worksheet protection is enabled, an `AllowEditRange` object can be used to allow editing of a specific range, while maintaining protection on the rest of the worksheet.
64527
+ *
64528
+ * @remarks
64529
+ * [Api set: ExcelApiOnline 1.1]
64530
+ */
64531
+ interface AllowEditRangeCollectionLoadOptions {
64532
+ /**
64533
+ Specifying `$all` for the LoadOptions loads all the scalar properties (e.g.: `Range.address`) but not the navigational properties (e.g.: `Range.format.fill.color`).
64534
+ */
64535
+ $all?: boolean;
64536
+ /**
64537
+ * For EACH ITEM in the collection: Specifies the range associated with the object.
64538
+ Worksheet protection must be disabled or paused for this method to work properly.
64539
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to set the range.
64540
+ *
64541
+ * @remarks
64542
+ * [Api set: ExcelApiOnline 1.1]
64543
+ */
64544
+ address?: boolean;
64545
+ /**
64546
+ * For EACH ITEM in the collection: Specifies if the object is password protected.
64547
+ *
64548
+ * @remarks
64549
+ * [Api set: ExcelApiOnline 1.1]
64550
+ */
64551
+ isPasswordProtected?: boolean;
64552
+ /**
64553
+ * For EACH ITEM in the collection: Specifies the title of the object.
64554
+ Worksheet protection must be disabled or paused for this method to work properly.
64555
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to set the title.
64556
+ If there is already an existing `AllowEditRange` with the same string, or if the string is `null` or empty (""), then this method throws an `InvalidArgument` error and fails to set the title.
64557
+ *
64558
+ * @remarks
64559
+ * [Api set: ExcelApiOnline 1.1]
64560
+ */
64561
+ title?: boolean;
64562
+ }
64038
64563
  /**
64039
64564
  * Represents a Power Query query.
64040
64565
  *
@@ -64711,6 +65236,27 @@ declare namespace Excel {
64711
65236
  Specifying `$all` for the LoadOptions loads all the scalar properties (e.g.: `Range.address`) but not the navigational properties (e.g.: `Range.format.fill.color`).
64712
65237
  */
64713
65238
  $all?: boolean;
65239
+ /**
65240
+ * Specifies if protection can be paused for this worksheet.
65241
+ *
65242
+ * @remarks
65243
+ * [Api set: ExcelApiOnline 1.1]
65244
+ */
65245
+ canPauseProtection?: boolean;
65246
+ /**
65247
+ * Specifies if the sheet is password protected.
65248
+ *
65249
+ * @remarks
65250
+ * [Api set: ExcelApiOnline 1.1]
65251
+ */
65252
+ isPasswordProtected?: boolean;
65253
+ /**
65254
+ * Specifies if worksheet protection is paused.
65255
+ *
65256
+ * @remarks
65257
+ * [Api set: ExcelApiOnline 1.1]
65258
+ */
65259
+ isPaused?: boolean;
64714
65260
  /**
64715
65261
  * Specifies the protection options for the worksheet.
64716
65262
  *
@@ -64725,6 +65271,14 @@ declare namespace Excel {
64725
65271
  * [Api set: ExcelApi 1.2]
64726
65272
  */
64727
65273
  protected?: boolean;
65274
+ /**
65275
+ * Specifies the protection options saved in the worksheet.
65276
+ This will return the same `WorksheetProtectionOptions` object regardless of the worksheet protection state.
65277
+ *
65278
+ * @remarks
65279
+ * [Api set: ExcelApiOnline 1.1]
65280
+ */
65281
+ savedOptions?: boolean;
64728
65282
  }
64729
65283
  /**
64730
65284
  * Range represents a set of one or more contiguous cells such as a cell, a row, a column, or a block of cells.
@@ -64881,7 +65435,7 @@ declare namespace Excel {
64881
65435
  */
64882
65436
  linkedDataTypeState?: boolean;
64883
65437
  /**
64884
- * Represents Excel's number format code for the given range.
65438
+ * Represents Excel's number format code for the given range. For more information about Excel number formatting, see {@link https://support.microsoft.com/office/number-format-codes-5026bbd6-04bc-48cd-bf33-80f18b4eae68 | Number format codes}.
64885
65439
  *
64886
65440
  * @remarks
64887
65441
  * [Api set: ExcelApi 1.1]
@@ -71807,7 +72361,8 @@ declare namespace Excel {
71807
72361
  */
71808
72362
  font?: Excel.Interfaces.ConditionalRangeFontLoadOptions;
71809
72363
  /**
71810
- * Represents Excel's number format code for the given range. Cleared if `null` is passed in.
72364
+ * Represents Excel's number format code for the given range. For more information about Excel number formatting, see {@link https://support.microsoft.com/office/number-format-codes-5026bbd6-04bc-48cd-bf33-80f18b4eae68 | Number format codes}.
72365
+ Cleared if `null` is passed in.
71811
72366
  *
71812
72367
  * @remarks
71813
72368
  * [Api set: ExcelApi 1.6]
@@ -72304,7 +72859,7 @@ declare namespace Excel {
72304
72859
  */
72305
72860
  $all?: boolean;
72306
72861
  /**
72307
- * For EACH ITEM in the collection: Gets the name of the table style.
72862
+ * For EACH ITEM in the collection: Specifies the name of the table style.
72308
72863
  *
72309
72864
  * @remarks
72310
72865
  * [Api set: ExcelApi 1.10]
@@ -72330,7 +72885,7 @@ declare namespace Excel {
72330
72885
  */
72331
72886
  $all?: boolean;
72332
72887
  /**
72333
- * Gets the name of the table style.
72888
+ * Specifies the name of the table style.
72334
72889
  *
72335
72890
  * @remarks
72336
72891
  * [Api set: ExcelApi 1.10]
@@ -72356,7 +72911,7 @@ declare namespace Excel {
72356
72911
  */
72357
72912
  $all?: boolean;
72358
72913
  /**
72359
- * For EACH ITEM in the collection: Gets the name of the PivotTable style.
72914
+ * For EACH ITEM in the collection: Specifies the name of the PivotTable style.
72360
72915
  *
72361
72916
  * @remarks
72362
72917
  * [Api set: ExcelApi 1.10]
@@ -72382,7 +72937,7 @@ declare namespace Excel {
72382
72937
  */
72383
72938
  $all?: boolean;
72384
72939
  /**
72385
- * Gets the name of the PivotTable style.
72940
+ * Specifies the name of the PivotTable style.
72386
72941
  *
72387
72942
  * @remarks
72388
72943
  * [Api set: ExcelApi 1.10]
@@ -72408,7 +72963,7 @@ declare namespace Excel {
72408
72963
  */
72409
72964
  $all?: boolean;
72410
72965
  /**
72411
- * For EACH ITEM in the collection: Gets the name of the slicer style.
72966
+ * For EACH ITEM in the collection: Specifies the name of the slicer style.
72412
72967
  *
72413
72968
  * @remarks
72414
72969
  * [Api set: ExcelApi 1.10]
@@ -72434,7 +72989,7 @@ declare namespace Excel {
72434
72989
  */
72435
72990
  $all?: boolean;
72436
72991
  /**
72437
- * Gets the name of the slicer style.
72992
+ * Specifies the name of the slicer style.
72438
72993
  *
72439
72994
  * @remarks
72440
72995
  * [Api set: ExcelApi 1.10]
@@ -72460,7 +73015,7 @@ declare namespace Excel {
72460
73015
  */
72461
73016
  $all?: boolean;
72462
73017
  /**
72463
- * For EACH ITEM in the collection: Gets the name of the timeline style.
73018
+ * For EACH ITEM in the collection: Specifies the name of the timeline style.
72464
73019
  *
72465
73020
  * @remarks
72466
73021
  * [Api set: ExcelApi 1.10]
@@ -72486,7 +73041,7 @@ declare namespace Excel {
72486
73041
  */
72487
73042
  $all?: boolean;
72488
73043
  /**
72489
- * Gets the name of the timeline style.
73044
+ * Specifies the name of the timeline style.
72490
73045
  *
72491
73046
  * @remarks
72492
73047
  * [Api set: ExcelApi 1.10]
@@ -72970,7 +73525,7 @@ declare namespace Excel {
72970
73525
  */
72971
73526
  linkedDataTypeState?: boolean;
72972
73527
  /**
72973
- * For EACH ITEM in the collection: Represents Excel's number format code for the given range.
73528
+ * For EACH ITEM in the collection: Represents Excel's number format code for the given range. For more information about Excel number formatting, see {@link https://support.microsoft.com/office/number-format-codes-5026bbd6-04bc-48cd-bf33-80f18b4eae68 | Number format codes}.
72974
73529
  *
72975
73530
  * @remarks
72976
73531
  * [Api set: ExcelApi 1.1]
office-js/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js",
3
- "version": "1.0.270",
3
+ "version": "1.0.273",
4
4
  "description": "TypeScript definitions for Office.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js",
6
6
  "license": "MIT",
@@ -45,6 +45,6 @@
45
45
  },
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
- "typesPublisherContentHash": "2db986b698e2118ad69e75fccfbf037f2b97f643b14c21c5f9ab70d3136b80e2",
48
+ "typesPublisherContentHash": "259cf2bcde08dabe6367345d9072f2ea044b6315871c61a5a1f63ab3b90bb229",
49
49
  "typeScriptVersion": "4.0"
50
50
  }