@types/office-js 1.0.269 → 1.0.272

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: Wed, 03 Aug 2022 22:02:23 GMT
11
+ * Last updated: Mon, 22 Aug 2022 23:33:32 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
@@ -8406,7 +8406,7 @@ declare namespace Office {
8406
8406
  Preset24
8407
8407
  }
8408
8408
  /**
8409
- * Compose type.
8409
+ * Specifies a message's compose type.
8410
8410
  *
8411
8411
  * @remarks
8412
8412
  * [Api set: Mailbox 1.10]
@@ -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
  *
@@ -19290,6 +19290,224 @@ declare namespace Excel {
19290
19290
  function run<T>(context: OfficeExtension.ClientRequestContext, batch: (context: Excel.RequestContext) => Promise<T>): Promise<T>;
19291
19291
  function postprocessBindingDescriptor(response: any): any;
19292
19292
  function getDataCommonPostprocess(response: any, callArgs: any): any;
19293
+ /**
19294
+ * Represents an `AllowEditRange` object found in a worksheet. This object works with worksheet protection properties.
19295
+ 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.
19296
+ *
19297
+ * @remarks
19298
+ * [Api set: ExcelApiOnline 1.1]
19299
+ */
19300
+ class AllowEditRange extends OfficeExtension.ClientObject {
19301
+ /** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
19302
+ context: RequestContext;
19303
+ /**
19304
+ * Specifies the range associated with the object.
19305
+ Worksheet protection must be disabled or paused for this method to work properly.
19306
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to set the range.
19307
+ *
19308
+ * @remarks
19309
+ * [Api set: ExcelApiOnline 1.1]
19310
+ */
19311
+ address: string;
19312
+ /**
19313
+ * Specifies if the object is password protected.
19314
+ *
19315
+ * @remarks
19316
+ * [Api set: ExcelApiOnline 1.1]
19317
+ */
19318
+ readonly isPasswordProtected: boolean;
19319
+ /**
19320
+ * Specifies the title of the object.
19321
+ Worksheet protection must be disabled or paused for this method to work properly.
19322
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to set the title.
19323
+ 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.
19324
+ *
19325
+ * @remarks
19326
+ * [Api set: ExcelApiOnline 1.1]
19327
+ */
19328
+ title: string;
19329
+ /**
19330
+ * 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.
19331
+ * @param properties A JavaScript object with properties that are structured isomorphically to the properties of the object on which the method is called.
19332
+ * @param options Provides an option to suppress errors if the properties object tries to set any read-only properties.
19333
+ */
19334
+ set(properties: Interfaces.AllowEditRangeUpdateData, options?: OfficeExtension.UpdateOptions): void;
19335
+ /** Sets multiple properties on the object at the same time, based on an existing loaded object. */
19336
+ set(properties: Excel.AllowEditRange): void;
19337
+ /**
19338
+ * Deletes the object from the `AllowEditRangeCollection`.
19339
+ Worksheet protection must be disabled or paused for this method to work properly.
19340
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails the delete operation.
19341
+ *
19342
+ * @remarks
19343
+ * [Api set: ExcelApiOnline 1.1]
19344
+ */
19345
+ delete(): void;
19346
+ /**
19347
+ * Pauses worksheet protection for the object for the user in the current session.
19348
+ This method does nothing if worksheet protection isn't enabled or is already paused.
19349
+ If worksheet protection cannot be paused, this method throws an `UnsupportedOperation` error and fails to pause protection for the object.
19350
+ If the password is incorrect, then this method throws a `BadPassword` error and fails to pause protection for the object.
19351
+ If a password is supplied but the object does not require a password, the inputted password will be ignored and the operation will succeed.
19352
+ *
19353
+ * @remarks
19354
+ * [Api set: ExcelApiOnline 1.1]
19355
+ *
19356
+ * @param password The password associated with the `AllowEditRange` object.
19357
+ */
19358
+ pauseProtection(password?: string): void;
19359
+ /**
19360
+ * Changes the password associated with the object.
19361
+ Setting the password string as empty ("") or `null` will remove password protection from the object.
19362
+ Worksheet protection must be disabled or paused for this method to work properly.
19363
+ If worksheet protection is enabled and not paused, then this method throws an `AccessDenied` error and the set operation fails.
19364
+ *
19365
+ * @remarks
19366
+ * [Api set: ExcelApiOnline 1.1]
19367
+ *
19368
+ * @param password The password associated with the `AllowEditRange` object.
19369
+ */
19370
+ setPassword(password?: string): void;
19371
+ /**
19372
+ * Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
19373
+ *
19374
+ * @param options Provides options for which properties of the object to load.
19375
+ */
19376
+ load(options?: Excel.Interfaces.AllowEditRangeLoadOptions): Excel.AllowEditRange;
19377
+ /**
19378
+ * Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
19379
+ *
19380
+ * @param propertyNames A comma-delimited string or an array of strings that specify the properties to load.
19381
+ */
19382
+ load(propertyNames?: string | string[]): Excel.AllowEditRange;
19383
+ /**
19384
+ * Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
19385
+ *
19386
+ * @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.
19387
+ */
19388
+ load(propertyNamesAndPaths?: {
19389
+ select?: string;
19390
+ expand?: string;
19391
+ }): Excel.AllowEditRange;
19392
+ /**
19393
+ * 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.)
19394
+ * 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.
19395
+ */
19396
+ toJSON(): Excel.Interfaces.AllowEditRangeData;
19397
+ }
19398
+ /**
19399
+ * Represents the set of `AllowEditRange` objects found in a worksheet. `AllowEditRange` objects work with worksheet protection properties.
19400
+ 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.
19401
+ *
19402
+ * @remarks
19403
+ * [Api set: ExcelApiOnline 1.1]
19404
+ */
19405
+ class AllowEditRangeCollection extends OfficeExtension.ClientObject {
19406
+ /** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
19407
+ context: RequestContext;
19408
+ /** Gets the loaded child items in this collection. */
19409
+ readonly items: Excel.AllowEditRange[];
19410
+ /**
19411
+ * Adds an `AllowEditRange` object to the worksheet.
19412
+ Worksheet protection must be disabled or paused for this method to work properly.
19413
+ If worksheet protection is enabled and not paused, then this method throws an `AccessDenied` error and the add operation fails.
19414
+ *
19415
+ * @remarks
19416
+ * [Api set: ExcelApiOnline 1.1]
19417
+ *
19418
+ * @param title The title string of the `AllowEditRange` object to be added.
19419
+ * @param rangeAddress The range address of the `AllowEditRange` object to be added.
19420
+ * @param options Additional options to be added to the `AllowEditRange` object, such as the password.
19421
+ */
19422
+ add(title: string, rangeAddress: string, options?: Excel.AllowEditRangeOptions): void;
19423
+ /**
19424
+ * Returns the number of `AllowEditRange` objects in the collection.
19425
+ *
19426
+ * @remarks
19427
+ * [Api set: ExcelApiOnline 1.1]
19428
+ */
19429
+ getCount(): OfficeExtension.ClientResult<number>;
19430
+ /**
19431
+ * Gets the `AllowEditRange` object by its title.
19432
+ *
19433
+ * @remarks
19434
+ * [Api set: ExcelApiOnline 1.1]
19435
+ *
19436
+ * @param key The title of the `AllowEditRange`.
19437
+ * @returns The `AllowEditRange` with the title. If there is no `AllowEditRange` with the given title, then an `ItemNotFound` error is thrown.
19438
+ */
19439
+ getItem(key: string): Excel.AllowEditRange;
19440
+ /**
19441
+ * Returns an `AllowEditRange` object by its index in the collection.
19442
+ *
19443
+ * @remarks
19444
+ * [Api set: ExcelApiOnline 1.1]
19445
+ *
19446
+ * @param index The index of the `AllowEditRange` object in the collection.
19447
+ * @returns The `AllowEditRange` at the given index.
19448
+ */
19449
+ getItemAt(index: number): Excel.AllowEditRange;
19450
+ /**
19451
+ * Gets the `AllowEditRange` object by its title.
19452
+ *
19453
+ * @remarks
19454
+ * [Api set: ExcelApiOnline 1.1]
19455
+ *
19456
+ * @param key The title of the `AllowEditRange`.
19457
+ * @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}.
19458
+ */
19459
+ getItemOrNullObject(key: string): Excel.AllowEditRange;
19460
+ /**
19461
+ * Pauses worksheet protection for all `AllowEditRange` objects found in this worksheet that have the given password for the user in the current session.
19462
+ This method does nothing if worksheet protection isn't enabled or is paused.
19463
+ If worksheet protection cannot be paused, this method throws an `UnsupportedOperation` error and fails to pause protection for the range.
19464
+ 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.
19465
+ *
19466
+ * @remarks
19467
+ * [Api set: ExcelApiOnline 1.1]
19468
+ *
19469
+ * @param password The password to pause protection on the `AllowEditRange` objects.
19470
+ */
19471
+ pauseProtection(password: string): void;
19472
+ /**
19473
+ * Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
19474
+ *
19475
+ * @param options Provides options for which properties of the object to load.
19476
+ */
19477
+ load(options?: Excel.Interfaces.AllowEditRangeCollectionLoadOptions & Excel.Interfaces.CollectionLoadOptions): Excel.AllowEditRangeCollection;
19478
+ /**
19479
+ * Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
19480
+ *
19481
+ * @param propertyNames A comma-delimited string or an array of strings that specify the properties to load.
19482
+ */
19483
+ load(propertyNames?: string | string[]): Excel.AllowEditRangeCollection;
19484
+ /**
19485
+ * Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
19486
+ *
19487
+ * @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.
19488
+ */
19489
+ load(propertyNamesAndPaths?: OfficeExtension.LoadOption): Excel.AllowEditRangeCollection;
19490
+ /**
19491
+ * 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.)
19492
+ * 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.
19493
+ */
19494
+ toJSON(): Excel.Interfaces.AllowEditRangeCollectionData;
19495
+ }
19496
+ /**
19497
+ * The interface used to construct optional fields of the `AllowEditRange` object.
19498
+ *
19499
+ * @remarks
19500
+ * [Api set: ExcelApiOnline 1.1]
19501
+ */
19502
+ interface AllowEditRangeOptions {
19503
+ /**
19504
+ * The password associated with the `AllowEditRange`.
19505
+ *
19506
+ * @remarks
19507
+ * [Api set: ExcelApiOnline 1.1]
19508
+ */
19509
+ password?: string;
19510
+ }
19293
19511
  /**
19294
19512
  * Notifies when a worksheet is moved within a workbook.
19295
19513
 
@@ -21070,6 +21288,13 @@ declare namespace Excel {
21070
21288
  * [Api set: ExcelApi 1.14]
21071
21289
  */
21072
21290
  interface WorksheetProtectionChangedEventArgs {
21291
+ /**
21292
+ * Specifies if any of the `AllowEditRange` objects have changed.
21293
+ *
21294
+ * @remarks
21295
+ * [Api set: ExcelApiOnline 1.1]
21296
+ */
21297
+ allowEditRangesChanged: boolean;
21073
21298
  /**
21074
21299
  * Gets the current protection status of the worksheet.
21075
21300
  *
@@ -21077,6 +21302,20 @@ declare namespace Excel {
21077
21302
  * [Api set: ExcelApi 1.14]
21078
21303
  */
21079
21304
  isProtected: boolean;
21305
+ /**
21306
+ * Specifies if the `WorksheetProtectionOptions` have changed.
21307
+ *
21308
+ * @remarks
21309
+ * [Api set: ExcelApiOnline 1.1]
21310
+ */
21311
+ protectionOptionsChanged: boolean;
21312
+ /**
21313
+ * Specifies if the worksheet password has changed.
21314
+ *
21315
+ * @remarks
21316
+ * [Api set: ExcelApiOnline 1.1]
21317
+ */
21318
+ sheetPasswordChanged: boolean;
21080
21319
  /**
21081
21320
  * The source of the event. It can be local or remote (through co-authoring).
21082
21321
  *
@@ -23364,6 +23603,35 @@ declare namespace Excel {
23364
23603
  class WorksheetProtection extends OfficeExtension.ClientObject {
23365
23604
  /** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
23366
23605
  context: RequestContext;
23606
+ /**
23607
+ * Specifies the `AllowEditRangeCollection` object found in this worksheet. This is a collection of `AllowEditRange` objects, which work with worksheet protection properties.
23608
+ 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.
23609
+ *
23610
+ * @remarks
23611
+ * [Api set: ExcelApiOnline 1.1]
23612
+ */
23613
+ readonly allowEditRanges: Excel.AllowEditRangeCollection;
23614
+ /**
23615
+ * Specifies if protection can be paused for this worksheet.
23616
+ *
23617
+ * @remarks
23618
+ * [Api set: ExcelApiOnline 1.1]
23619
+ */
23620
+ readonly canPauseProtection: boolean;
23621
+ /**
23622
+ * Specifies if the sheet is password protected.
23623
+ *
23624
+ * @remarks
23625
+ * [Api set: ExcelApiOnline 1.1]
23626
+ */
23627
+ readonly isPasswordProtected: boolean;
23628
+ /**
23629
+ * Specifies if worksheet protection is paused.
23630
+ *
23631
+ * @remarks
23632
+ * [Api set: ExcelApiOnline 1.1]
23633
+ */
23634
+ readonly isPaused: boolean;
23367
23635
  /**
23368
23636
  * Specifies the protection options for the worksheet.
23369
23637
  *
@@ -23378,6 +23646,38 @@ declare namespace Excel {
23378
23646
  * [Api set: ExcelApi 1.2]
23379
23647
  */
23380
23648
  readonly protected: boolean;
23649
+ /**
23650
+ * Specifies the protection options saved in the worksheet.
23651
+ This will return the same `WorksheetProtectionOptions` object regardless of the worksheet protection state.
23652
+ *
23653
+ * @remarks
23654
+ * [Api set: ExcelApiOnline 1.1]
23655
+ */
23656
+ readonly savedOptions: Excel.WorksheetProtectionOptions;
23657
+ /**
23658
+ * Specifies if the password can be used to unlock worksheet protection.
23659
+ This method doesn't change the worksheet protection state.
23660
+ If a password is inputted but no password is required to unlock worksheet protection, this method will return false.
23661
+ *
23662
+ * @remarks
23663
+ * [Api set: ExcelApiOnline 1.1]
23664
+ *
23665
+ * @param password The password to check against the protected worksheet.
23666
+ * @returns Returns `true` if the password can be used to unlock worksheet protection. Otherwise, returns `false`.
23667
+ */
23668
+ checkPassword(password?: string): OfficeExtension.ClientResult<boolean>;
23669
+ /**
23670
+ * Pauses worksheet protection for the given worksheet object for the user in the current session.
23671
+ This method does nothing if worksheet protection isn't enabled or is already paused.
23672
+ If the password is incorrect, then this method throws an `InvalidArgument` error and fails to pause protection.
23673
+ This method does not change the protection state if worksheet protection is not enabled or already paused.
23674
+ *
23675
+ * @remarks
23676
+ * [Api set: ExcelApiOnline 1.1]
23677
+ *
23678
+ * @param password The password associated with the protected worksheet.
23679
+ */
23680
+ pauseProtection(password?: string): void;
23381
23681
  /**
23382
23682
  * Protects a worksheet. Fails if the worksheet has already been protected.
23383
23683
  *
@@ -23388,6 +23688,27 @@ declare namespace Excel {
23388
23688
  * @param password Optional. Sheet protection password.
23389
23689
  */
23390
23690
  protect(options?: Excel.WorksheetProtectionOptions, password?: string): void;
23691
+ /**
23692
+ * Resumes worksheet protection for the given worksheet object for the user in a given session.
23693
+ 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.
23694
+ *
23695
+ * @remarks
23696
+ * [Api set: ExcelApiOnline 1.1]
23697
+ */
23698
+ resumeProtection(): void;
23699
+ /**
23700
+ * Changes the password associated with the `WorksheetProtection` object.
23701
+ Setting the password as an empty string ("") or as `null` will remove password protection from the `WorksheetProtection` object.
23702
+ Worksheet protection must be enabled and paused for this method to work properly.
23703
+ If worksheet protection is disabled, this method throws an `InvalidOperation` error and fails to change the password.
23704
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to change the password.
23705
+ *
23706
+ * @remarks
23707
+ * [Api set: ExcelApiOnline 1.1]
23708
+ *
23709
+ * @param password The password associated with the `WorksheetProtection` object.
23710
+ */
23711
+ setPassword(password?: string): void;
23391
23712
  /**
23392
23713
  * Unprotects a worksheet.
23393
23714
  *
@@ -23397,6 +23718,17 @@ declare namespace Excel {
23397
23718
  * @param password Sheet protection password.
23398
23719
  */
23399
23720
  unprotect(password?: string): void;
23721
+ /**
23722
+ * Change the worksheet protection options associated with the `WorksheetProtection` object.
23723
+ Worksheet protection must be disabled or paused for this method to work properly.
23724
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to change the worksheet protection options.
23725
+ *
23726
+ * @remarks
23727
+ * [Api set: ExcelApiOnline 1.1]
23728
+ *
23729
+ * @param options The options interface associated with the `WorksheetProtection` object.
23730
+ */
23731
+ updateOptions(options: Excel.WorksheetProtectionOptions): void;
23400
23732
  /**
23401
23733
  * Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
23402
23734
  *
@@ -23794,7 +24126,7 @@ declare namespace Excel {
23794
24126
  */
23795
24127
  readonly linkedDataTypeState: Excel.LinkedDataTypeState[][];
23796
24128
  /**
23797
- * Represents Excel's number format code for the given range.
24129
+ * 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
24130
  *
23799
24131
  * @remarks
23800
24132
  * [Api set: ExcelApi 1.1]
@@ -24662,11 +24994,11 @@ declare namespace Excel {
24662
24994
  expand?: string;
24663
24995
  }): Excel.Range;
24664
24996
  /**
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.
24997
+ * 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
24998
  */
24667
24999
  track(): Excel.Range;
24668
25000
  /**
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.
25001
+ * 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
25002
  */
24671
25003
  untrack(): Excel.Range;
24672
25004
  /**
@@ -25042,11 +25374,11 @@ declare namespace Excel {
25042
25374
  expand?: string;
25043
25375
  }): Excel.RangeAreas;
25044
25376
  /**
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.
25377
+ * 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
25378
  */
25047
25379
  track(): Excel.RangeAreas;
25048
25380
  /**
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.
25381
+ * 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
25382
  */
25051
25383
  untrack(): Excel.RangeAreas;
25052
25384
  /**
@@ -25126,11 +25458,11 @@ declare namespace Excel {
25126
25458
  expand?: string;
25127
25459
  }): Excel.WorkbookRangeAreas;
25128
25460
  /**
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.
25461
+ * 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
25462
  */
25131
25463
  track(): Excel.WorkbookRangeAreas;
25132
25464
  /**
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.
25465
+ * 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
25466
  */
25135
25467
  untrack(): Excel.WorkbookRangeAreas;
25136
25468
  /**
@@ -33335,8 +33667,8 @@ declare namespace Excel {
33335
33667
  * [Api set: ExcelApi 1.14]
33336
33668
  *
33337
33669
  * @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.
33670
+ 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),
33671
+ then an `InvalidArgument` error will be thrown.
33340
33672
  */
33341
33673
  clearColumnCriteria(columnIndex: number): void;
33342
33674
  /**
@@ -37437,7 +37769,8 @@ declare namespace Excel {
37437
37769
  */
37438
37770
  readonly font: Excel.ConditionalRangeFont;
37439
37771
  /**
37440
- * Represents Excel's number format code for the given range. Cleared if `null` is passed in.
37772
+ * 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}.
37773
+ Cleared if `null` is passed in.
37441
37774
  *
37442
37775
  * @remarks
37443
37776
  * [Api set: ExcelApi 1.6]
@@ -38177,7 +38510,7 @@ declare namespace Excel {
38177
38510
  /** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
38178
38511
  context: RequestContext;
38179
38512
  /**
38180
- * Gets the name of the table style.
38513
+ * Specifies the name of the table style.
38181
38514
  *
38182
38515
  * @remarks
38183
38516
  * [Api set: ExcelApi 1.10]
@@ -38341,7 +38674,7 @@ declare namespace Excel {
38341
38674
  /** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
38342
38675
  context: RequestContext;
38343
38676
  /**
38344
- * Gets the name of the PivotTable style.
38677
+ * Specifies the name of the PivotTable style.
38345
38678
  *
38346
38679
  * @remarks
38347
38680
  * [Api set: ExcelApi 1.10]
@@ -38505,7 +38838,7 @@ declare namespace Excel {
38505
38838
  /** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
38506
38839
  context: RequestContext;
38507
38840
  /**
38508
- * Gets the name of the slicer style.
38841
+ * Specifies the name of the slicer style.
38509
38842
  *
38510
38843
  * @remarks
38511
38844
  * [Api set: ExcelApi 1.10]
@@ -38669,7 +39002,7 @@ declare namespace Excel {
38669
39002
  /** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
38670
39003
  context: RequestContext;
38671
39004
  /**
38672
- * Gets the name of the timeline style.
39005
+ * Specifies the name of the timeline style.
38673
39006
  *
38674
39007
  * @remarks
38675
39008
  * [Api set: ExcelApi 1.10]
@@ -39406,7 +39739,8 @@ declare namespace Excel {
39406
39739
  /** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
39407
39740
  context: RequestContext;
39408
39741
  /**
39409
- * Refreshes all the data connections in the collection.
39742
+ * 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.
39743
+ 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
39744
  *
39411
39745
  * @remarks
39412
39746
  * [Api set: ExcelApi 1.7]
@@ -44133,7 +44467,7 @@ declare namespace Excel {
44133
44467
  }
44134
44468
  /**
44135
44469
  * @remarks
44136
- * [Api set: ExcelApi 1.1 for All, Formats, and Contents. 1.7 for Hyperlinks and RemoveHyperlinks.]
44470
+ * [Api set: ExcelApi 1.1]
44137
44471
  */
44138
44472
  enum ClearApplyTo {
44139
44473
  /**
@@ -45535,7 +45869,7 @@ declare namespace Excel {
45535
45869
  }
45536
45870
  /**
45537
45871
  * @remarks
45538
- * [Api set: ExcelApi 1.1 for Unknown, Empty, String, Integer, Double, Boolean, Error. 1.7 for RichValue]
45872
+ * [Api set: ExcelApi 1.1]
45539
45873
  */
45540
45874
  enum RangeValueType {
45541
45875
  /**
@@ -45787,7 +46121,7 @@ declare namespace Excel {
45787
46121
  /**
45788
46122
  * `Unknown` indicates that the type of data change is not one of the listed types.
45789
46123
  * @remarks
45790
- * [Api set: ExcelApi The name of this value was 'Others' in ExcelApi 1.7]
46124
+ * [Api set: ExcelApi 1.8. The name of this value was 'Others' in ExcelApi 1.7]
45791
46125
  */
45792
46126
  unknown = "Unknown",
45793
46127
  /**
@@ -52795,6 +53129,7 @@ declare namespace Excel {
52795
53129
  requestAborted = "RequestAborted",
52796
53130
  responsePayloadSizeLimitExceeded = "ResponsePayloadSizeLimitExceeded",
52797
53131
  unsupportedFeature = "UnsupportedFeature",
53132
+ unsupportedFillType = "UnsupportedFillType",
52798
53133
  unsupportedOperation = "UnsupportedOperation",
52799
53134
  unsupportedSheet = "UnsupportedSheet",
52800
53135
  invalidOperationInCellEditMode = "InvalidOperationInCellEditMode"
@@ -52813,6 +53148,32 @@ declare namespace Excel {
52813
53148
  */
52814
53149
  $skip?: number;
52815
53150
  }
53151
+ /** An interface for updating data on the AllowEditRange object, for use in `allowEditRange.set({ ... })`. */
53152
+ interface AllowEditRangeUpdateData {
53153
+ /**
53154
+ * Specifies the range associated with the object.
53155
+ Worksheet protection must be disabled or paused for this method to work properly.
53156
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to set the range.
53157
+ *
53158
+ * @remarks
53159
+ * [Api set: ExcelApiOnline 1.1]
53160
+ */
53161
+ address?: string;
53162
+ /**
53163
+ * Specifies the title of the object.
53164
+ Worksheet protection must be disabled or paused for this method to work properly.
53165
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to set the title.
53166
+ 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.
53167
+ *
53168
+ * @remarks
53169
+ * [Api set: ExcelApiOnline 1.1]
53170
+ */
53171
+ title?: string;
53172
+ }
53173
+ /** An interface for updating data on the AllowEditRangeCollection object, for use in `allowEditRangeCollection.set({ ... })`. */
53174
+ interface AllowEditRangeCollectionUpdateData {
53175
+ items?: Excel.Interfaces.AllowEditRangeData[];
53176
+ }
52816
53177
  /** An interface for updating data on the QueryCollection object, for use in `queryCollection.set({ ... })`. */
52817
53178
  interface QueryCollectionUpdateData {
52818
53179
  items?: Excel.Interfaces.QueryData[];
@@ -53041,7 +53402,7 @@ declare namespace Excel {
53041
53402
  */
53042
53403
  hyperlink?: Excel.RangeHyperlink;
53043
53404
  /**
53044
- * Represents Excel's number format code for the given range.
53405
+ * 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
53406
  *
53046
53407
  * @remarks
53047
53408
  * [Api set: ExcelApi 1.1]
@@ -56504,7 +56865,8 @@ declare namespace Excel {
56504
56865
  */
56505
56866
  font?: Excel.Interfaces.ConditionalRangeFontUpdateData;
56506
56867
  /**
56507
- * Represents Excel's number format code for the given range. Cleared if `null` is passed in.
56868
+ * 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}.
56869
+ Cleared if `null` is passed in.
56508
56870
  *
56509
56871
  * @remarks
56510
56872
  * [Api set: ExcelApi 1.6]
@@ -56769,7 +57131,7 @@ declare namespace Excel {
56769
57131
  /** An interface for updating data on the TableStyle object, for use in `tableStyle.set({ ... })`. */
56770
57132
  interface TableStyleUpdateData {
56771
57133
  /**
56772
- * Gets the name of the table style.
57134
+ * Specifies the name of the table style.
56773
57135
  *
56774
57136
  * @remarks
56775
57137
  * [Api set: ExcelApi 1.10]
@@ -56783,7 +57145,7 @@ declare namespace Excel {
56783
57145
  /** An interface for updating data on the PivotTableStyle object, for use in `pivotTableStyle.set({ ... })`. */
56784
57146
  interface PivotTableStyleUpdateData {
56785
57147
  /**
56786
- * Gets the name of the PivotTable style.
57148
+ * Specifies the name of the PivotTable style.
56787
57149
  *
56788
57150
  * @remarks
56789
57151
  * [Api set: ExcelApi 1.10]
@@ -56797,7 +57159,7 @@ declare namespace Excel {
56797
57159
  /** An interface for updating data on the SlicerStyle object, for use in `slicerStyle.set({ ... })`. */
56798
57160
  interface SlicerStyleUpdateData {
56799
57161
  /**
56800
- * Gets the name of the slicer style.
57162
+ * Specifies the name of the slicer style.
56801
57163
  *
56802
57164
  * @remarks
56803
57165
  * [Api set: ExcelApi 1.10]
@@ -56811,7 +57173,7 @@ declare namespace Excel {
56811
57173
  /** An interface for updating data on the TimelineStyle object, for use in `timelineStyle.set({ ... })`. */
56812
57174
  interface TimelineStyleUpdateData {
56813
57175
  /**
56814
- * Gets the name of the timeline style.
57176
+ * Specifies the name of the timeline style.
56815
57177
  *
56816
57178
  * @remarks
56817
57179
  * [Api set: ExcelApi 1.10]
@@ -57586,6 +57948,39 @@ declare namespace Excel {
57586
57948
  interface NamedSheetViewCollectionUpdateData {
57587
57949
  items?: Excel.Interfaces.NamedSheetViewData[];
57588
57950
  }
57951
+ /** An interface describing the data returned by calling `allowEditRange.toJSON()`. */
57952
+ interface AllowEditRangeData {
57953
+ /**
57954
+ * Specifies the range associated with the object.
57955
+ Worksheet protection must be disabled or paused for this method to work properly.
57956
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to set the range.
57957
+ *
57958
+ * @remarks
57959
+ * [Api set: ExcelApiOnline 1.1]
57960
+ */
57961
+ address?: string;
57962
+ /**
57963
+ * Specifies if the object is password protected.
57964
+ *
57965
+ * @remarks
57966
+ * [Api set: ExcelApiOnline 1.1]
57967
+ */
57968
+ isPasswordProtected?: boolean;
57969
+ /**
57970
+ * Specifies the title of the object.
57971
+ Worksheet protection must be disabled or paused for this method to work properly.
57972
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to set the title.
57973
+ 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.
57974
+ *
57975
+ * @remarks
57976
+ * [Api set: ExcelApiOnline 1.1]
57977
+ */
57978
+ title?: string;
57979
+ }
57980
+ /** An interface describing the data returned by calling `allowEditRangeCollection.toJSON()`. */
57981
+ interface AllowEditRangeCollectionData {
57982
+ items?: Excel.Interfaces.AllowEditRangeData[];
57983
+ }
57589
57984
  /** An interface describing the data returned by calling `query.toJSON()`. */
57590
57985
  interface QueryData {
57591
57986
  /**
@@ -58115,6 +58510,35 @@ declare namespace Excel {
58115
58510
  }
58116
58511
  /** An interface describing the data returned by calling `worksheetProtection.toJSON()`. */
58117
58512
  interface WorksheetProtectionData {
58513
+ /**
58514
+ * Specifies the `AllowEditRangeCollection` object found in this worksheet. This is a collection of `AllowEditRange` objects, which work with worksheet protection properties.
58515
+ 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.
58516
+ *
58517
+ * @remarks
58518
+ * [Api set: ExcelApiOnline 1.1]
58519
+ */
58520
+ allowEditRanges?: Excel.Interfaces.AllowEditRangeData[];
58521
+ /**
58522
+ * Specifies if protection can be paused for this worksheet.
58523
+ *
58524
+ * @remarks
58525
+ * [Api set: ExcelApiOnline 1.1]
58526
+ */
58527
+ canPauseProtection?: boolean;
58528
+ /**
58529
+ * Specifies if the sheet is password protected.
58530
+ *
58531
+ * @remarks
58532
+ * [Api set: ExcelApiOnline 1.1]
58533
+ */
58534
+ isPasswordProtected?: boolean;
58535
+ /**
58536
+ * Specifies if worksheet protection is paused.
58537
+ *
58538
+ * @remarks
58539
+ * [Api set: ExcelApiOnline 1.1]
58540
+ */
58541
+ isPaused?: boolean;
58118
58542
  /**
58119
58543
  * Specifies the protection options for the worksheet.
58120
58544
  *
@@ -58129,6 +58553,14 @@ declare namespace Excel {
58129
58553
  * [Api set: ExcelApi 1.2]
58130
58554
  */
58131
58555
  protected?: boolean;
58556
+ /**
58557
+ * Specifies the protection options saved in the worksheet.
58558
+ This will return the same `WorksheetProtectionOptions` object regardless of the worksheet protection state.
58559
+ *
58560
+ * @remarks
58561
+ * [Api set: ExcelApiOnline 1.1]
58562
+ */
58563
+ savedOptions?: Excel.WorksheetProtectionOptions;
58132
58564
  }
58133
58565
  /** An interface describing the data returned by calling `range.toJSON()`. */
58134
58566
  interface RangeData {
@@ -58275,7 +58707,7 @@ declare namespace Excel {
58275
58707
  */
58276
58708
  linkedDataTypeState?: Excel.LinkedDataTypeState[][];
58277
58709
  /**
58278
- * Represents Excel's number format code for the given range.
58710
+ * 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
58711
  *
58280
58712
  * @remarks
58281
58713
  * [Api set: ExcelApi 1.1]
@@ -62607,7 +63039,8 @@ declare namespace Excel {
62607
63039
  */
62608
63040
  font?: Excel.Interfaces.ConditionalRangeFontData;
62609
63041
  /**
62610
- * Represents Excel's number format code for the given range. Cleared if `null` is passed in.
63042
+ * 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}.
63043
+ Cleared if `null` is passed in.
62611
63044
  *
62612
63045
  * @remarks
62613
63046
  * [Api set: ExcelApi 1.6]
@@ -62865,7 +63298,7 @@ declare namespace Excel {
62865
63298
  /** An interface describing the data returned by calling `tableStyle.toJSON()`. */
62866
63299
  interface TableStyleData {
62867
63300
  /**
62868
- * Gets the name of the table style.
63301
+ * Specifies the name of the table style.
62869
63302
  *
62870
63303
  * @remarks
62871
63304
  * [Api set: ExcelApi 1.10]
@@ -62886,7 +63319,7 @@ declare namespace Excel {
62886
63319
  /** An interface describing the data returned by calling `pivotTableStyle.toJSON()`. */
62887
63320
  interface PivotTableStyleData {
62888
63321
  /**
62889
- * Gets the name of the PivotTable style.
63322
+ * Specifies the name of the PivotTable style.
62890
63323
  *
62891
63324
  * @remarks
62892
63325
  * [Api set: ExcelApi 1.10]
@@ -62907,7 +63340,7 @@ declare namespace Excel {
62907
63340
  /** An interface describing the data returned by calling `slicerStyle.toJSON()`. */
62908
63341
  interface SlicerStyleData {
62909
63342
  /**
62910
- * Gets the name of the slicer style.
63343
+ * Specifies the name of the slicer style.
62911
63344
  *
62912
63345
  * @remarks
62913
63346
  * [Api set: ExcelApi 1.10]
@@ -62928,7 +63361,7 @@ declare namespace Excel {
62928
63361
  /** An interface describing the data returned by calling `timelineStyle.toJSON()`. */
62929
63362
  interface TimelineStyleData {
62930
63363
  /**
62931
- * Gets the name of the timeline style.
63364
+ * Specifies the name of the timeline style.
62932
63365
  *
62933
63366
  * @remarks
62934
63367
  * [Api set: ExcelApi 1.10]
@@ -64035,6 +64468,84 @@ declare namespace Excel {
64035
64468
  */
64036
64469
  value?: T;
64037
64470
  }
64471
+ /**
64472
+ * Represents an `AllowEditRange` object found in a worksheet. This object works with worksheet protection properties.
64473
+ 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.
64474
+ *
64475
+ * @remarks
64476
+ * [Api set: ExcelApiOnline 1.1]
64477
+ */
64478
+ interface AllowEditRangeLoadOptions {
64479
+ /**
64480
+ 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`).
64481
+ */
64482
+ $all?: boolean;
64483
+ /**
64484
+ * Specifies the range associated with the object.
64485
+ Worksheet protection must be disabled or paused for this method to work properly.
64486
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to set the range.
64487
+ *
64488
+ * @remarks
64489
+ * [Api set: ExcelApiOnline 1.1]
64490
+ */
64491
+ address?: boolean;
64492
+ /**
64493
+ * Specifies if the object is password protected.
64494
+ *
64495
+ * @remarks
64496
+ * [Api set: ExcelApiOnline 1.1]
64497
+ */
64498
+ isPasswordProtected?: boolean;
64499
+ /**
64500
+ * Specifies the title of the object.
64501
+ Worksheet protection must be disabled or paused for this method to work properly.
64502
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to set the title.
64503
+ 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.
64504
+ *
64505
+ * @remarks
64506
+ * [Api set: ExcelApiOnline 1.1]
64507
+ */
64508
+ title?: boolean;
64509
+ }
64510
+ /**
64511
+ * Represents the set of `AllowEditRange` objects found in a worksheet. `AllowEditRange` objects work with worksheet protection properties.
64512
+ 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.
64513
+ *
64514
+ * @remarks
64515
+ * [Api set: ExcelApiOnline 1.1]
64516
+ */
64517
+ interface AllowEditRangeCollectionLoadOptions {
64518
+ /**
64519
+ 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`).
64520
+ */
64521
+ $all?: boolean;
64522
+ /**
64523
+ * For EACH ITEM in the collection: Specifies the range associated with the object.
64524
+ Worksheet protection must be disabled or paused for this method to work properly.
64525
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to set the range.
64526
+ *
64527
+ * @remarks
64528
+ * [Api set: ExcelApiOnline 1.1]
64529
+ */
64530
+ address?: boolean;
64531
+ /**
64532
+ * For EACH ITEM in the collection: Specifies if the object is password protected.
64533
+ *
64534
+ * @remarks
64535
+ * [Api set: ExcelApiOnline 1.1]
64536
+ */
64537
+ isPasswordProtected?: boolean;
64538
+ /**
64539
+ * For EACH ITEM in the collection: Specifies the title of the object.
64540
+ Worksheet protection must be disabled or paused for this method to work properly.
64541
+ If worksheet protection is enabled and not paused, this method throws an `AccessDenied` error and fails to set the title.
64542
+ 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.
64543
+ *
64544
+ * @remarks
64545
+ * [Api set: ExcelApiOnline 1.1]
64546
+ */
64547
+ title?: boolean;
64548
+ }
64038
64549
  /**
64039
64550
  * Represents a Power Query query.
64040
64551
  *
@@ -64711,6 +65222,27 @@ declare namespace Excel {
64711
65222
  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
65223
  */
64713
65224
  $all?: boolean;
65225
+ /**
65226
+ * Specifies if protection can be paused for this worksheet.
65227
+ *
65228
+ * @remarks
65229
+ * [Api set: ExcelApiOnline 1.1]
65230
+ */
65231
+ canPauseProtection?: boolean;
65232
+ /**
65233
+ * Specifies if the sheet is password protected.
65234
+ *
65235
+ * @remarks
65236
+ * [Api set: ExcelApiOnline 1.1]
65237
+ */
65238
+ isPasswordProtected?: boolean;
65239
+ /**
65240
+ * Specifies if worksheet protection is paused.
65241
+ *
65242
+ * @remarks
65243
+ * [Api set: ExcelApiOnline 1.1]
65244
+ */
65245
+ isPaused?: boolean;
64714
65246
  /**
64715
65247
  * Specifies the protection options for the worksheet.
64716
65248
  *
@@ -64725,6 +65257,14 @@ declare namespace Excel {
64725
65257
  * [Api set: ExcelApi 1.2]
64726
65258
  */
64727
65259
  protected?: boolean;
65260
+ /**
65261
+ * Specifies the protection options saved in the worksheet.
65262
+ This will return the same `WorksheetProtectionOptions` object regardless of the worksheet protection state.
65263
+ *
65264
+ * @remarks
65265
+ * [Api set: ExcelApiOnline 1.1]
65266
+ */
65267
+ savedOptions?: boolean;
64728
65268
  }
64729
65269
  /**
64730
65270
  * 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 +65421,7 @@ declare namespace Excel {
64881
65421
  */
64882
65422
  linkedDataTypeState?: boolean;
64883
65423
  /**
64884
- * Represents Excel's number format code for the given range.
65424
+ * 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
65425
  *
64886
65426
  * @remarks
64887
65427
  * [Api set: ExcelApi 1.1]
@@ -71807,7 +72347,8 @@ declare namespace Excel {
71807
72347
  */
71808
72348
  font?: Excel.Interfaces.ConditionalRangeFontLoadOptions;
71809
72349
  /**
71810
- * Represents Excel's number format code for the given range. Cleared if `null` is passed in.
72350
+ * 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}.
72351
+ Cleared if `null` is passed in.
71811
72352
  *
71812
72353
  * @remarks
71813
72354
  * [Api set: ExcelApi 1.6]
@@ -72304,7 +72845,7 @@ declare namespace Excel {
72304
72845
  */
72305
72846
  $all?: boolean;
72306
72847
  /**
72307
- * For EACH ITEM in the collection: Gets the name of the table style.
72848
+ * For EACH ITEM in the collection: Specifies the name of the table style.
72308
72849
  *
72309
72850
  * @remarks
72310
72851
  * [Api set: ExcelApi 1.10]
@@ -72330,7 +72871,7 @@ declare namespace Excel {
72330
72871
  */
72331
72872
  $all?: boolean;
72332
72873
  /**
72333
- * Gets the name of the table style.
72874
+ * Specifies the name of the table style.
72334
72875
  *
72335
72876
  * @remarks
72336
72877
  * [Api set: ExcelApi 1.10]
@@ -72356,7 +72897,7 @@ declare namespace Excel {
72356
72897
  */
72357
72898
  $all?: boolean;
72358
72899
  /**
72359
- * For EACH ITEM in the collection: Gets the name of the PivotTable style.
72900
+ * For EACH ITEM in the collection: Specifies the name of the PivotTable style.
72360
72901
  *
72361
72902
  * @remarks
72362
72903
  * [Api set: ExcelApi 1.10]
@@ -72382,7 +72923,7 @@ declare namespace Excel {
72382
72923
  */
72383
72924
  $all?: boolean;
72384
72925
  /**
72385
- * Gets the name of the PivotTable style.
72926
+ * Specifies the name of the PivotTable style.
72386
72927
  *
72387
72928
  * @remarks
72388
72929
  * [Api set: ExcelApi 1.10]
@@ -72408,7 +72949,7 @@ declare namespace Excel {
72408
72949
  */
72409
72950
  $all?: boolean;
72410
72951
  /**
72411
- * For EACH ITEM in the collection: Gets the name of the slicer style.
72952
+ * For EACH ITEM in the collection: Specifies the name of the slicer style.
72412
72953
  *
72413
72954
  * @remarks
72414
72955
  * [Api set: ExcelApi 1.10]
@@ -72434,7 +72975,7 @@ declare namespace Excel {
72434
72975
  */
72435
72976
  $all?: boolean;
72436
72977
  /**
72437
- * Gets the name of the slicer style.
72978
+ * Specifies the name of the slicer style.
72438
72979
  *
72439
72980
  * @remarks
72440
72981
  * [Api set: ExcelApi 1.10]
@@ -72460,7 +73001,7 @@ declare namespace Excel {
72460
73001
  */
72461
73002
  $all?: boolean;
72462
73003
  /**
72463
- * For EACH ITEM in the collection: Gets the name of the timeline style.
73004
+ * For EACH ITEM in the collection: Specifies the name of the timeline style.
72464
73005
  *
72465
73006
  * @remarks
72466
73007
  * [Api set: ExcelApi 1.10]
@@ -72486,7 +73027,7 @@ declare namespace Excel {
72486
73027
  */
72487
73028
  $all?: boolean;
72488
73029
  /**
72489
- * Gets the name of the timeline style.
73030
+ * Specifies the name of the timeline style.
72490
73031
  *
72491
73032
  * @remarks
72492
73033
  * [Api set: ExcelApi 1.10]
@@ -72970,7 +73511,7 @@ declare namespace Excel {
72970
73511
  */
72971
73512
  linkedDataTypeState?: boolean;
72972
73513
  /**
72973
- * For EACH ITEM in the collection: Represents Excel's number format code for the given range.
73514
+ * 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
73515
  *
72975
73516
  * @remarks
72976
73517
  * [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.269",
3
+ "version": "1.0.272",
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": "725079f7f464828e0c69605136e2ff437cd210901190a30f999d893602504780",
48
+ "typesPublisherContentHash": "f96142c84b8e9890c8c9eaaf80839a994bc12d0da6ce020297f253d70210f51b",
49
49
  "typeScriptVersion": "4.0"
50
50
  }