@types/office-js-preview 1.0.668 → 1.0.669

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.
@@ -8,7 +8,7 @@ This package contains type definitions for office-js-preview (https://github.com
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 20 Nov 2025 21:32:50 GMT
11
+ * Last updated: Mon, 01 Dec 2025 20:34:48 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -32093,7 +32093,7 @@ declare namespace Excel {
32093
32093
  * Represents the value of a cell containing a number with a format string. Number format strings must conform to Excel guidelines. To learn more, see {@link https://support.microsoft.com/office/c0a1d1fa-d3f4-4018-96b7-9c9354dd99f5 | Review guidelines for customizing a number format}.
32094
32094
  * In this scenario, the format is applied to the value and not to the cell, so the value retains its format string throughout calculation.
32095
32095
  *
32096
- * @deprecated As of [Api set: ExcelApi 1.19], use {@link https://learn.microsoft.com/javascript/api/excel/excel.doublecellvalue | DoubleCellValue} instead.
32096
+ * @deprecated As of ExcelApi 1.19, use {@link https://learn.microsoft.com/javascript/api/excel/excel.doublecellvalue | DoubleCellValue} instead.
32097
32097
  *
32098
32098
  * @remarks
32099
32099
  * [Api set: ExcelApi 1.16]
@@ -32102,7 +32102,7 @@ declare namespace Excel {
32102
32102
  /**
32103
32103
  * Represents the type of this cell value.
32104
32104
  *
32105
- * @deprecated Deprecated since [Api set: ExcelApi 1.19].
32105
+ * @deprecated Deprecated since ExcelApi 1.19.
32106
32106
  *
32107
32107
  * @remarks
32108
32108
  * [Api set: ExcelApi 1.16]
@@ -32111,7 +32111,7 @@ declare namespace Excel {
32111
32111
  /**
32112
32112
  * Represents the value that would be returned by `Range.values` for a cell with this value.
32113
32113
  *
32114
- * @deprecated Deprecated since [Api set: ExcelApi 1.19].
32114
+ * @deprecated Deprecated since ExcelApi 1.19.
32115
32115
  *
32116
32116
  * @remarks
32117
32117
  * [Api set: ExcelApi 1.16]
@@ -32120,7 +32120,7 @@ declare namespace Excel {
32120
32120
  /**
32121
32121
  * Represents the value that would be returned by `Range.valueTypes` for a cell with this value.
32122
32122
  *
32123
- * @deprecated Deprecated since [Api set: ExcelApi 1.19].
32123
+ * @deprecated Deprecated since ExcelApi 1.19.
32124
32124
  *
32125
32125
  * @remarks
32126
32126
  * [Api set: ExcelApi 1.16]
@@ -32132,7 +32132,7 @@ declare namespace Excel {
32132
32132
  * Number format strings must conform to Excel guidelines.
32133
32133
  * To learn more, see {@link https://support.microsoft.com/office/c0a1d1fa-d3f4-4018-96b7-9c9354dd99f5 | Review guidelines for customizing a number format}.
32134
32134
  *
32135
- * @deprecated Deprecated since [Api set: ExcelApi 1.19].
32135
+ * @deprecated Deprecated since ExcelApi 1.19.
32136
32136
  *
32137
32137
  * @remarks
32138
32138
  * [Api set: ExcelApi 1.16]
@@ -34625,10 +34625,17 @@ declare namespace Excel {
34625
34625
  }
34626
34626
  /**
34627
34627
  *
34628
- * Creates and opens a new workbook. Optionally, the workbook can be pre-populated with a Base64-encoded .xlsx file.
34629
- * The `extensionHardening` Windows registry key affects the `base64File` param. The file extension defined by the param must match the real file type of the file. If `extensionHardening` is set to deny mismatches and the file extension does not match the real file type, this API throws the following error: "This operation is not allowed due to the extension hardening policy."
34630
- * Note: Macros can be a security risk. If this API is used to create a workbook that includes a macro, the add-in user will be prompted with a "Trust this add-in?" dialog in the Excel UI. The user must select the "Trust add-in" button to proceed.
34631
- *
34628
+ * Creates and opens a new workbook. Optionally, the workbook can be pre-populated
34629
+ * with a Base64-encoded .xlsx file.
34630
+
34631
+ * Note: Macros can be a security risk. If this API is used to create a workbook that
34632
+ * includes a macro, the add-in user will be prompted with a "Trust this add-in?" dialog
34633
+ * in the Excel UI. The user must select the "Trust add-in" button to proceed.
34634
+ *
34635
+ * Note: The `extensionHardening` Windows registry key affects the `base64File` param.
34636
+ * The file extension defined by the param must match the real file type of the file.
34637
+ * If `extensionHardening` is set to deny mismatches and the file extension does not match the real file type, this API throws the following error:
34638
+ * "This operation is not allowed due to the extension hardening policy."
34632
34639
  * [Api set: ExcelApi 1.8]
34633
34640
  *
34634
34641
  * @param base64File Optional. The Base64-encoded .xlsx file. The default value is null.
@@ -34800,11 +34807,11 @@ declare namespace Excel {
34800
34807
  class RequestContext extends OfficeCore.RequestContext {
34801
34808
  constructor(url?: string | Session, invocation?: {
34802
34809
  invocationId: number;
34803
- isInCFSyncScenario: boolean;
34810
+ isInSyncExecution: boolean;
34804
34811
  });
34805
34812
  setInvocation(invocation: {
34806
34813
  invocationId: number;
34807
- isInCFSyncScenario: boolean;
34814
+ isInSyncExecution: boolean;
34808
34815
  }): void;
34809
34816
  readonly workbook: Workbook;
34810
34817
  readonly application: Application;
@@ -34827,7 +34834,6 @@ declare namespace Excel {
34827
34834
  *
34828
34835
  * When false, each `context.sync()` call creates an undo record.
34829
34836
  * When true, all `context.sync()` calls in a single `Excel.run` are merged into one `undo` group.
34830
- *
34831
34837
  * @remarks
34832
34838
  * [Api set: ExcelApi 1.20]
34833
34839
  */
@@ -39860,6 +39866,66 @@ declare namespace Excel {
39860
39866
  */
39861
39867
  toJSON(): Excel.Interfaces.IterativeCalculationData;
39862
39868
  }
39869
+ /**
39870
+ * Specifies the type of autorun event.
39871
+ *
39872
+ * @remarks
39873
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
39874
+ * @beta
39875
+ */
39876
+ enum AutorunEventType {
39877
+ /**
39878
+ * The autorun event type is unknown.
39879
+ * @remarks
39880
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
39881
+ */
39882
+ unknown = "Unknown",
39883
+ /**
39884
+ * The autorun event type is triggered when the document is saved.
39885
+ * @remarks
39886
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
39887
+ */
39888
+ onDocumentSave = "OnDocumentSave",
39889
+ /**
39890
+ * The autorun event type is triggered when the document is saved as a new file.
39891
+ * @remarks
39892
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
39893
+ */
39894
+ onDocumentSaveAs = "OnDocumentSaveAs"
39895
+ }
39896
+ /**
39897
+ * Specifies the options for completing an autorun event.
39898
+ *
39899
+ * @remarks
39900
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
39901
+ * @beta
39902
+ */
39903
+ interface AutorunEventCompletedOptions {
39904
+ /**
39905
+ * Specifies whether to allow the event to proceed. The default value is `false`.
39906
+ *
39907
+ * @remarks
39908
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
39909
+ * @beta
39910
+ */
39911
+ allowEvent: boolean;
39912
+ /**
39913
+ * Specifies the type of autorun event to be completed if allowed. The default value is `unknown`.
39914
+ *
39915
+ * @remarks
39916
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
39917
+ * @beta
39918
+ */
39919
+ autorunEventType: Excel.AutorunEventType | "Unknown" | "OnDocumentSave" | "OnDocumentSaveAs";
39920
+ /**
39921
+ * If provided, specifies an optional error message if the event isn't allowed to proceed. The default value is "" (empty string).
39922
+ *
39923
+ * @remarks
39924
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
39925
+ * @beta
39926
+ */
39927
+ message?: string;
39928
+ }
39863
39929
  /**
39864
39930
  * Workbook is the top level object which contains related workbook objects such as worksheets, tables, and ranges.
39865
39931
  To learn more about the workbook object model, read {@link https://learn.microsoft.com/office/dev/add-ins/excel/excel-add-ins-workbooks | Work with workbooks using the Excel JavaScript API}.
@@ -40139,6 +40205,16 @@ declare namespace Excel {
40139
40205
  set(properties: Interfaces.WorkbookUpdateData, options?: OfficeExtension.UpdateOptions): void;
40140
40206
  /** Sets multiple properties on the object at the same time, based on an existing loaded object. */
40141
40207
  set(properties: Excel.Workbook): void;
40208
+ /**
40209
+ * Notifies the host application that the add-in's code has finished running in an autorun event.
40210
+ *
40211
+ * @remarks
40212
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
40213
+ * @beta
40214
+ *
40215
+ * @param AutorunEventCompletedOptions Required. Options for completing the autorun event.
40216
+ */
40217
+ autorunEventCompleted(AutorunEventCompletedOptions: Excel.AutorunEventCompletedOptions): void;
40142
40218
  /**
40143
40219
  * Close current workbook.
40144
40220
  *
@@ -40158,8 +40234,7 @@ declare namespace Excel {
40158
40234
  */
40159
40235
  close(closeBehavior?: "Save" | "SkipSave"): void;
40160
40236
  /**
40161
- * Sets focus on the workbook. This will cause the grid or the currently active object
40162
- to receive keyboard events.
40237
+ * Sets focus on the workbook. This causes the Excel grid or the currently active object to receive keyboard events.
40163
40238
  *
40164
40239
  * @remarks
40165
40240
  * [Api set: ExcelApiDesktop 1.1]
@@ -40254,7 +40329,10 @@ declare namespace Excel {
40254
40329
  getSelectedRanges(): Excel.RangeAreas;
40255
40330
  /**
40256
40331
  * Inserts the specified worksheets from a source workbook into the current workbook.
40257
- * The `extensionHardening` Windows registry key affects this API. The file extension defined by the `base64File` param must match the real file type of the inserted file. If `extensionHardening` is set to deny mismatches and the file extension does not match the real file type, this API throws the following error: "This operation is not allowed due to the extension hardening policy."
40332
+
40333
+ The `extensionHardening` Windows registry key affects this API. The file extension defined by the `base64File` param must match the real file type of the inserted file. If `extensionHardening` is set to deny mismatches and the file extension does not match the real file type, this API throws the following error: "This operation is not allowed due to the extension hardening policy."
40334
+
40335
+ **Note**: This API is currently only supported for Office on Windows, Mac, and the web.
40258
40336
  *
40259
40337
  * @remarks
40260
40338
  * [Api set: ExcelApi 1.13]
@@ -45290,35 +45368,35 @@ declare namespace Excel {
45290
45368
  */
45291
45369
  enum TableSource {
45292
45370
  /**
45293
- * External data source (such as Microsoft SharePoint Foundation).
45371
+ * An external data source, such as Microsoft SharePoint Foundation.
45294
45372
  * @remarks
45295
45373
  * [Api set: ExcelApi BETA (PREVIEW ONLY)]
45296
45374
  * @beta
45297
45375
  */
45298
45376
  external = "External",
45299
45377
  /**
45300
- * An Excel range object.
45378
+ * A range object in this worksheet.
45301
45379
  * @remarks
45302
45380
  * [Api set: ExcelApi BETA (PREVIEW ONLY)]
45303
45381
  * @beta
45304
45382
  */
45305
45383
  range = "Range",
45306
45384
  /**
45307
- * XML data source.
45385
+ * An XML data source.
45308
45386
  * @remarks
45309
45387
  * [Api set: ExcelApi BETA (PREVIEW ONLY)]
45310
45388
  * @beta
45311
45389
  */
45312
45390
  xml = "Xml",
45313
45391
  /**
45314
- * Query data source.
45392
+ * A Power Query query data source.
45315
45393
  * @remarks
45316
45394
  * [Api set: ExcelApi BETA (PREVIEW ONLY)]
45317
45395
  * @beta
45318
45396
  */
45319
45397
  query = "Query",
45320
45398
  /**
45321
- * Power Pivot model.
45399
+ * A Power Pivot model.
45322
45400
  * @remarks
45323
45401
  * [Api set: ExcelApi BETA (PREVIEW ONLY)]
45324
45402
  * @beta
@@ -66334,7 +66412,13 @@ declare namespace Excel {
66334
66412
  * [Api set: ExcelApi BETA (PREVIEW ONLY)]
66335
66413
  * @beta
66336
66414
  */
66337
- externalCodeServiceDiffResultReceived = "ExternalCodeServiceDiffResultReceived"
66415
+ externalCodeServiceDiffResultReceived = "ExternalCodeServiceDiffResultReceived",
66416
+ /**
66417
+ * AugmentationLoopUploadStatusChanged represents the type of event registered when the upload status of the augmentation loop changes.
66418
+ * @remarks
66419
+ * [Api set: ExcelApi BETA (PREVIEW ONLY)]
66420
+ */
66421
+ augmentationLoopUploadStatusChanged = "AugmentationLoopUploadStatusChanged"
66338
66422
  }
66339
66423
  /**
66340
66424
  * @remarks
@@ -69276,6 +69360,7 @@ declare namespace Excel {
69276
69360
  content: string;
69277
69361
  /**
69278
69362
  * Specifies the height of the note.
69363
+ * Note: This property is not supported in Excel on the web.
69279
69364
  *
69280
69365
  * @remarks
69281
69366
  * [Api set: ExcelApi 1.18]
@@ -69283,6 +69368,7 @@ declare namespace Excel {
69283
69368
  height: number;
69284
69369
  /**
69285
69370
  * Specifies the visibility of the note. A value of `true` means the note is shown.
69371
+ * Note: This property is not supported in Excel on the web.
69286
69372
  *
69287
69373
  * @remarks
69288
69374
  * [Api set: ExcelApi 1.18]
@@ -69290,6 +69376,7 @@ declare namespace Excel {
69290
69376
  visible: boolean;
69291
69377
  /**
69292
69378
  * Specifies the width of the note.
69379
+ * Note: This property is not supported in Excel on the web.
69293
69380
  *
69294
69381
  * @remarks
69295
69382
  * [Api set: ExcelApi 1.18]
@@ -79271,6 +79358,7 @@ declare namespace Excel {
79271
79358
  content?: string;
79272
79359
  /**
79273
79360
  * Specifies the height of the note.
79361
+ * Note: This property is not supported in Excel on the web.
79274
79362
  *
79275
79363
  * @remarks
79276
79364
  * [Api set: ExcelApi 1.18]
@@ -79278,6 +79366,7 @@ declare namespace Excel {
79278
79366
  height?: number;
79279
79367
  /**
79280
79368
  * Specifies the visibility of the note. A value of `true` means the note is shown.
79369
+ * Note: This property is not supported in Excel on the web.
79281
79370
  *
79282
79371
  * @remarks
79283
79372
  * [Api set: ExcelApi 1.18]
@@ -79285,6 +79374,7 @@ declare namespace Excel {
79285
79374
  visible?: boolean;
79286
79375
  /**
79287
79376
  * Specifies the width of the note.
79377
+ * Note: This property is not supported in Excel on the web.
79288
79378
  *
79289
79379
  * @remarks
79290
79380
  * [Api set: ExcelApi 1.18]
@@ -86969,6 +87059,7 @@ declare namespace Excel {
86969
87059
  content?: string;
86970
87060
  /**
86971
87061
  * Specifies the height of the note.
87062
+ * Note: This property is not supported in Excel on the web.
86972
87063
  *
86973
87064
  * @remarks
86974
87065
  * [Api set: ExcelApi 1.18]
@@ -86976,6 +87067,7 @@ declare namespace Excel {
86976
87067
  height?: number;
86977
87068
  /**
86978
87069
  * Specifies the visibility of the note. A value of `true` means the note is shown.
87070
+ * Note: This property is not supported in Excel on the web.
86979
87071
  *
86980
87072
  * @remarks
86981
87073
  * [Api set: ExcelApi 1.18]
@@ -86983,6 +87075,7 @@ declare namespace Excel {
86983
87075
  visible?: boolean;
86984
87076
  /**
86985
87077
  * Specifies the width of the note.
87078
+ * Note: This property is not supported in Excel on the web.
86986
87079
  *
86987
87080
  * @remarks
86988
87081
  * [Api set: ExcelApi 1.18]
@@ -99738,6 +99831,7 @@ declare namespace Excel {
99738
99831
  content?: boolean;
99739
99832
  /**
99740
99833
  * For EACH ITEM in the collection: Specifies the height of the note.
99834
+ * Note: This property is not supported in Excel on the web.
99741
99835
  *
99742
99836
  * @remarks
99743
99837
  * [Api set: ExcelApi 1.18]
@@ -99745,6 +99839,7 @@ declare namespace Excel {
99745
99839
  height?: boolean;
99746
99840
  /**
99747
99841
  * For EACH ITEM in the collection: Specifies the visibility of the note. A value of `true` means the note is shown.
99842
+ * Note: This property is not supported in Excel on the web.
99748
99843
  *
99749
99844
  * @remarks
99750
99845
  * [Api set: ExcelApi 1.18]
@@ -99752,6 +99847,7 @@ declare namespace Excel {
99752
99847
  visible?: boolean;
99753
99848
  /**
99754
99849
  * For EACH ITEM in the collection: Specifies the width of the note.
99850
+ * Note: This property is not supported in Excel on the web.
99755
99851
  *
99756
99852
  * @remarks
99757
99853
  * [Api set: ExcelApi 1.18]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.668",
3
+ "version": "1.0.669",
4
4
  "description": "TypeScript definitions for office-js-preview",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
6
6
  "license": "MIT",
@@ -46,7 +46,7 @@
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
48
  "peerDependencies": {},
49
- "typesPublisherContentHash": "bb6fe4b9767f1027f964f853bad0ed394331756d824a4207ac4304ac0cb1505a",
49
+ "typesPublisherContentHash": "8877231029e3d2899fc76dd63bc1d21bac4830866deb7faf4e414eed6057ce65",
50
50
  "typeScriptVersion": "5.2",
51
51
  "nonNpm": true
52
52
  }