microsoft-graph 2.20.3 → 2.20.4

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.
@@ -1,3 +1,10 @@
1
1
  import type { NumberFormat } from "../models/NumberFormat.ts";
2
2
  export declare const generalNumberFormat: NumberFormat;
3
+ export declare const numberNumberFormat: NumberFormat;
4
+ export declare const currencyNumberFormat: NumberFormat;
5
+ export declare const accountingNumberFormat: NumberFormat;
6
+ export declare const percentageNumberFormat: NumberFormat;
7
+ export declare const dateShortNumberFormat: NumberFormat;
8
+ export declare const timeNumberFormat: NumberFormat;
9
+ export declare const textNumberFormat: NumberFormat;
3
10
  //# sourceMappingURL=numberFormat.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"numberFormat.d.ts","sourceRoot":"","sources":["../../../src/services/numberFormat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,eAAO,MAAM,mBAAmB,EAAgB,YAAY,CAAC"}
1
+ {"version":3,"file":"numberFormat.d.ts","sourceRoot":"","sources":["../../../src/services/numberFormat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,eAAO,MAAM,mBAAmB,EAAgB,YAAY,CAAC;AAC7D,eAAO,MAAM,kBAAkB,EAAiB,YAAY,CAAC;AAC7D,eAAO,MAAM,oBAAoB,EAAkB,YAAY,CAAC;AAChE,eAAO,MAAM,sBAAsB,EAA2D,YAAY,CAAC;AAC3G,eAAO,MAAM,sBAAsB,EAAc,YAAY,CAAC;AAC9D,eAAO,MAAM,qBAAqB,EAAmB,YAAY,CAAC;AAClE,eAAO,MAAM,gBAAgB,EAAsB,YAAY,CAAC;AAChE,eAAO,MAAM,gBAAgB,EAAU,YAAY,CAAC"}
@@ -1,4 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generalNumberFormat = void 0;
3
+ exports.textNumberFormat = exports.timeNumberFormat = exports.dateShortNumberFormat = exports.percentageNumberFormat = exports.accountingNumberFormat = exports.currencyNumberFormat = exports.numberNumberFormat = exports.generalNumberFormat = void 0;
4
4
  exports.generalNumberFormat = "General";
5
+ exports.numberNumberFormat = "#,##0.00";
6
+ exports.currencyNumberFormat = "$#,##0.00";
7
+ exports.accountingNumberFormat = '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)';
8
+ exports.percentageNumberFormat = "0.00%";
9
+ exports.dateShortNumberFormat = "dd/mm/yyyy";
10
+ exports.timeNumberFormat = "h:mm:ss AM/PM";
11
+ exports.textNumberFormat = "@";
@@ -6,5 +6,5 @@ import type { WorkbookRangeRef } from "../models/WorkbookRangeRef.ts";
6
6
  * @param rows An iterable or async iterable of rows to write. Each row is an array of cells.
7
7
  * @param overrideMaxRowsPerUnderlyingRead Optional maximum number of rows to write in a single underlying read. If not provided, it will be automatically calculated based on a safe value.
8
8
  */
9
- export default function writeWorkbookRows(originRef: WorkbookRangeRef, rows: Iterable<Partial<Cell>[]> | AsyncIterable<Partial<Cell>[]>, overrideMaxRowsPerUnderlyingRead?: number | null): Promise<void>;
9
+ export default function writeWorkbookRows(originRef: WorkbookRangeRef, rows: Iterable<Partial<Cell>[]> | AsyncIterable<Partial<Cell>[]>, overrideMaxRowsPerUnderlyingRead?: number | null): Promise<number>;
10
10
  //# sourceMappingURL=writeWorkbookRows.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"writeWorkbookRows.d.ts","sourceRoot":"","sources":["../../../src/tasks/writeWorkbookRows.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAG9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAMtE;;;;;GAKG;AACH,wBAA8B,iBAAiB,CAAC,SAAS,EAAE,gBAAgB,EAAE,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,gCAAgC,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAuBpN"}
1
+ {"version":3,"file":"writeWorkbookRows.d.ts","sourceRoot":"","sources":["../../../src/tasks/writeWorkbookRows.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAG9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAMtE;;;;;GAKG;AACH,wBAA8B,iBAAiB,CAAC,SAAS,EAAE,gBAAgB,EAAE,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,gCAAgC,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAyBtN"}
@@ -34,7 +34,8 @@ async function writeWorkbookRows(originRef, rows, overrideMaxRowsPerUnderlyingRe
34
34
  rowsCompleted += await flushBatch(batch, originRef, rowsCompleted);
35
35
  }
36
36
  }
37
- await flushBatch(batch, originRef, rowsCompleted);
37
+ rowsCompleted += await flushBatch(batch, originRef, rowsCompleted);
38
+ return rowsCompleted;
38
39
  }
39
40
  async function flushBatch(batch, originRef, rowsCompleted) {
40
41
  const first = batch[0];
@@ -1,3 +1,10 @@
1
1
  import type { NumberFormat } from "../models/NumberFormat.ts";
2
2
  export declare const generalNumberFormat: NumberFormat;
3
+ export declare const numberNumberFormat: NumberFormat;
4
+ export declare const currencyNumberFormat: NumberFormat;
5
+ export declare const accountingNumberFormat: NumberFormat;
6
+ export declare const percentageNumberFormat: NumberFormat;
7
+ export declare const dateShortNumberFormat: NumberFormat;
8
+ export declare const timeNumberFormat: NumberFormat;
9
+ export declare const textNumberFormat: NumberFormat;
3
10
  //# sourceMappingURL=numberFormat.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"numberFormat.d.ts","sourceRoot":"","sources":["../../../src/services/numberFormat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,eAAO,MAAM,mBAAmB,EAAgB,YAAY,CAAC"}
1
+ {"version":3,"file":"numberFormat.d.ts","sourceRoot":"","sources":["../../../src/services/numberFormat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,eAAO,MAAM,mBAAmB,EAAgB,YAAY,CAAC;AAC7D,eAAO,MAAM,kBAAkB,EAAiB,YAAY,CAAC;AAC7D,eAAO,MAAM,oBAAoB,EAAkB,YAAY,CAAC;AAChE,eAAO,MAAM,sBAAsB,EAA2D,YAAY,CAAC;AAC3G,eAAO,MAAM,sBAAsB,EAAc,YAAY,CAAC;AAC9D,eAAO,MAAM,qBAAqB,EAAmB,YAAY,CAAC;AAClE,eAAO,MAAM,gBAAgB,EAAsB,YAAY,CAAC;AAChE,eAAO,MAAM,gBAAgB,EAAU,YAAY,CAAC"}
@@ -1 +1,8 @@
1
1
  export const generalNumberFormat = "General";
2
+ export const numberNumberFormat = "#,##0.00";
3
+ export const currencyNumberFormat = "$#,##0.00";
4
+ export const accountingNumberFormat = '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)';
5
+ export const percentageNumberFormat = "0.00%";
6
+ export const dateShortNumberFormat = "dd/mm/yyyy";
7
+ export const timeNumberFormat = "h:mm:ss AM/PM";
8
+ export const textNumberFormat = "@";
@@ -6,5 +6,5 @@ import type { WorkbookRangeRef } from "../models/WorkbookRangeRef.ts";
6
6
  * @param rows An iterable or async iterable of rows to write. Each row is an array of cells.
7
7
  * @param overrideMaxRowsPerUnderlyingRead Optional maximum number of rows to write in a single underlying read. If not provided, it will be automatically calculated based on a safe value.
8
8
  */
9
- export default function writeWorkbookRows(originRef: WorkbookRangeRef, rows: Iterable<Partial<Cell>[]> | AsyncIterable<Partial<Cell>[]>, overrideMaxRowsPerUnderlyingRead?: number | null): Promise<void>;
9
+ export default function writeWorkbookRows(originRef: WorkbookRangeRef, rows: Iterable<Partial<Cell>[]> | AsyncIterable<Partial<Cell>[]>, overrideMaxRowsPerUnderlyingRead?: number | null): Promise<number>;
10
10
  //# sourceMappingURL=writeWorkbookRows.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"writeWorkbookRows.d.ts","sourceRoot":"","sources":["../../../src/tasks/writeWorkbookRows.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAG9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAMtE;;;;;GAKG;AACH,wBAA8B,iBAAiB,CAAC,SAAS,EAAE,gBAAgB,EAAE,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,gCAAgC,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAuBpN"}
1
+ {"version":3,"file":"writeWorkbookRows.d.ts","sourceRoot":"","sources":["../../../src/tasks/writeWorkbookRows.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAG9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAMtE;;;;;GAKG;AACH,wBAA8B,iBAAiB,CAAC,SAAS,EAAE,gBAAgB,EAAE,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,gCAAgC,GAAE,MAAM,GAAG,IAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAyBtN"}
@@ -28,7 +28,8 @@ export default async function writeWorkbookRows(originRef, rows, overrideMaxRows
28
28
  rowsCompleted += await flushBatch(batch, originRef, rowsCompleted);
29
29
  }
30
30
  }
31
- await flushBatch(batch, originRef, rowsCompleted);
31
+ rowsCompleted += await flushBatch(batch, originRef, rowsCompleted);
32
+ return rowsCompleted;
32
33
  }
33
34
  async function flushBatch(batch, originRef, rowsCompleted) {
34
35
  const first = batch[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microsoft-graph",
3
- "version": "2.20.3",
3
+ "version": "2.20.4",
4
4
  "description": "Microsoft GraphAPI SDK for NodeJS",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",