microsoft-graph 2.27.0 → 2.29.0

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.
Files changed (114) hide show
  1. package/dist/cjs/models/Border.d.ts +16 -0
  2. package/dist/cjs/models/Border.d.ts.map +1 -0
  3. package/dist/cjs/models/Border.js +2 -0
  4. package/dist/cjs/models/Cell.d.ts +90 -5
  5. package/dist/cjs/models/Cell.d.ts.map +1 -1
  6. package/dist/cjs/models/Color.d.ts +9 -0
  7. package/dist/cjs/models/Color.d.ts.map +1 -0
  8. package/dist/cjs/models/Color.js +2 -0
  9. package/dist/cjs/models/Column.d.ts +5 -0
  10. package/dist/cjs/models/Column.d.ts.map +1 -1
  11. package/dist/cjs/models/Column.js +5 -1
  12. package/dist/cjs/models/DataSource.d.ts +22 -0
  13. package/dist/cjs/models/DataSource.d.ts.map +1 -1
  14. package/dist/cjs/models/DataSource.js +6 -0
  15. package/dist/cjs/models/FontName.d.ts +9 -0
  16. package/dist/cjs/models/FontName.d.ts.map +1 -0
  17. package/dist/cjs/models/FontName.js +2 -0
  18. package/dist/cjs/models/Row.d.ts +3 -0
  19. package/dist/cjs/models/Row.d.ts.map +1 -1
  20. package/dist/cjs/operations/site/listSites.d.ts +2 -2
  21. package/dist/cjs/operations/site/listSites.js +2 -2
  22. package/dist/cjs/operations/site/listSitesAllGeographies.d.ts +17 -0
  23. package/dist/cjs/operations/site/listSitesAllGeographies.d.ts.map +1 -0
  24. package/dist/cjs/operations/site/listSitesAllGeographies.js +38 -0
  25. package/dist/cjs/operations/workbookRange/getWorkbookWorksheetRange.d.ts +6 -1
  26. package/dist/cjs/operations/workbookRange/getWorkbookWorksheetRange.d.ts.map +1 -1
  27. package/dist/cjs/operations/workbookRange/getWorkbookWorksheetRange.js +9 -2
  28. package/dist/cjs/operations/workbookRange/listWorkbookRangeBorders.d.ts +16 -0
  29. package/dist/cjs/operations/workbookRange/listWorkbookRangeBorders.d.ts.map +1 -0
  30. package/dist/cjs/operations/workbookRange/listWorkbookRangeBorders.js +33 -0
  31. package/dist/cjs/operations/workbookRange/setWorkbookRangeBorder.d.ts +19 -0
  32. package/dist/cjs/operations/workbookRange/setWorkbookRangeBorder.d.ts.map +1 -0
  33. package/dist/cjs/operations/workbookRange/setWorkbookRangeBorder.js +44 -0
  34. package/dist/cjs/services/dataSource.d.ts +11 -0
  35. package/dist/cjs/services/dataSource.d.ts.map +1 -1
  36. package/dist/cjs/services/dataSource.js +21 -3
  37. package/dist/cjs/services/iteration.d.ts +1 -0
  38. package/dist/cjs/services/iteration.d.ts.map +1 -1
  39. package/dist/cjs/services/iteration.js +1 -0
  40. package/dist/cjs/tasks/iterateRows.d.ts +24 -0
  41. package/dist/cjs/tasks/iterateRows.d.ts.map +1 -0
  42. package/dist/cjs/tasks/iterateRows.js +127 -0
  43. package/dist/cjs/tasks/iterateWorkbookRange.d.ts.map +1 -1
  44. package/dist/cjs/tasks/iterateWorkbookRange.js +7 -0
  45. package/dist/cjs/tasks/readWorkbookRows.d.ts.map +1 -1
  46. package/dist/cjs/tasks/readWorkbookRows.js +8 -0
  47. package/dist/esm/models/Border.d.ts +16 -0
  48. package/dist/esm/models/Border.d.ts.map +1 -0
  49. package/dist/esm/models/Border.js +1 -0
  50. package/dist/esm/models/Cell.d.ts +90 -5
  51. package/dist/esm/models/Cell.d.ts.map +1 -1
  52. package/dist/esm/models/Color.d.ts +9 -0
  53. package/dist/esm/models/Color.d.ts.map +1 -0
  54. package/dist/esm/models/Color.js +1 -0
  55. package/dist/esm/models/Column.d.ts +5 -0
  56. package/dist/esm/models/Column.d.ts.map +1 -1
  57. package/dist/esm/models/Column.js +5 -1
  58. package/dist/esm/models/DataSource.d.ts +22 -0
  59. package/dist/esm/models/DataSource.d.ts.map +1 -1
  60. package/dist/esm/models/DataSource.js +6 -0
  61. package/dist/esm/models/FontName.d.ts +9 -0
  62. package/dist/esm/models/FontName.d.ts.map +1 -0
  63. package/dist/esm/models/FontName.js +1 -0
  64. package/dist/esm/models/Row.d.ts +3 -0
  65. package/dist/esm/models/Row.d.ts.map +1 -1
  66. package/dist/esm/operations/site/listSites.d.ts +2 -2
  67. package/dist/esm/operations/site/listSites.js +2 -2
  68. package/dist/esm/operations/site/listSitesAllGeographies.d.ts +17 -0
  69. package/dist/esm/operations/site/listSitesAllGeographies.d.ts.map +1 -0
  70. package/dist/esm/operations/site/listSitesAllGeographies.js +35 -0
  71. package/dist/esm/operations/workbookRange/getWorkbookWorksheetRange.d.ts +6 -1
  72. package/dist/esm/operations/workbookRange/getWorkbookWorksheetRange.d.ts.map +1 -1
  73. package/dist/esm/operations/workbookRange/getWorkbookWorksheetRange.js +9 -2
  74. package/dist/esm/operations/workbookRange/listWorkbookRangeBorders.d.ts +16 -0
  75. package/dist/esm/operations/workbookRange/listWorkbookRangeBorders.d.ts.map +1 -0
  76. package/dist/esm/operations/workbookRange/listWorkbookRangeBorders.js +30 -0
  77. package/dist/esm/operations/workbookRange/setWorkbookRangeBorder.d.ts +19 -0
  78. package/dist/esm/operations/workbookRange/setWorkbookRangeBorder.d.ts.map +1 -0
  79. package/dist/esm/operations/workbookRange/setWorkbookRangeBorder.js +41 -0
  80. package/dist/esm/services/dataSource.d.ts +11 -0
  81. package/dist/esm/services/dataSource.d.ts.map +1 -1
  82. package/dist/esm/services/dataSource.js +21 -3
  83. package/dist/esm/services/iteration.d.ts +1 -0
  84. package/dist/esm/services/iteration.d.ts.map +1 -1
  85. package/dist/esm/services/iteration.js +1 -0
  86. package/dist/esm/tasks/iterateRows.d.ts +24 -0
  87. package/dist/esm/tasks/iterateRows.d.ts.map +1 -0
  88. package/dist/esm/tasks/iterateRows.js +121 -0
  89. package/dist/esm/tasks/iterateWorkbookRange.d.ts.map +1 -1
  90. package/dist/esm/tasks/iterateWorkbookRange.js +7 -0
  91. package/dist/esm/tasks/readWorkbookRows.d.ts.map +1 -1
  92. package/dist/esm/tasks/readWorkbookRows.js +8 -0
  93. package/docs/api/Border.md +55 -0
  94. package/docs/api/Cell.md +94 -7
  95. package/docs/api/Color.md +19 -0
  96. package/docs/api/Column.md +12 -2
  97. package/docs/api/DataSource-1.md +191 -0
  98. package/docs/api/FontName.md +19 -0
  99. package/docs/api/Iteration.md +3 -1
  100. package/docs/api/README.md +11 -9
  101. package/docs/api/Row.md +5 -3
  102. package/docs/api/dataSource.md +204 -0
  103. package/docs/api/deleteWorkbookRange.md +1 -1
  104. package/docs/api/getWorkbookWorksheetRange.md +6 -2
  105. package/docs/api/insertWorkbookCells.md +1 -1
  106. package/docs/api/iterateRows.md +43 -0
  107. package/docs/api/listSites-1.md +31 -0
  108. package/docs/api/listSites.md +2 -2
  109. package/docs/api/listWorkbookRangeBorders.md +31 -0
  110. package/docs/api/readWorkbookRows.md +1 -1
  111. package/docs/api/setWorkbookRangeBorder.md +33 -0
  112. package/package.json +176 -1
  113. package/docs/api/models/DataSource.md +0 -161
  114. package/docs/api/services/dataSource.md +0 -200
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Defining a border that could be on a cell.
3
+ * @experimental
4
+ * @module Border
5
+ * @category Models
6
+ */
7
+ import type { Color } from "./Color.ts";
8
+ export type Border = {
9
+ color: Color;
10
+ style: BorderType;
11
+ weight: BorderWeight;
12
+ };
13
+ export type BorderSide = "EdgeTop" | "EdgeBottom" | "EdgeLeft" | "EdgeRight" | "InsideVertical" | "InsideHorizontal" | "DiagonalDown" | "DiagonalUp";
14
+ export type BorderType = "None" | "Continuous" | "Dash" | "DashDot" | "DashDotDot" | "Dot" | "Double" | "SlantDashDot";
15
+ export type BorderWeight = "Hairline" | "Thin" | "Medium" | "Thick";
16
+ //# sourceMappingURL=Border.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Border.d.ts","sourceRoot":"","sources":["../../../src/models/Border.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC,MAAM,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,UAAU,CAAC;IAClB,MAAM,EAAE,YAAY,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,GAAG,gBAAgB,GAAG,kBAAkB,GAAG,cAAc,GAAG,YAAY,CAAC;AAErJ,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,YAAY,GAAG,KAAK,GAAG,QAAQ,GAAG,cAAc,CAAC;AAEvH,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,6 +3,9 @@
3
3
  * @module Cell
4
4
  * @category Models
5
5
  */
6
+ import type { Border } from "./Border.ts";
7
+ import type { Color } from "./Color.ts";
8
+ import type { FontName } from "./FontName.ts";
6
9
  /**
7
10
  * Cell in a worksheet.
8
11
  * @remarks Contrary to common expectation, while a cell does contain a single value, it also contains a text representation of that value and a number format that often defines that representation.
@@ -21,17 +24,21 @@ export type Cell = {
21
24
  * Formatting that is applied to the value to derive the text representation.
22
25
  */
23
26
  format: CellFormat;
27
+ /**
28
+ * Style applied to the cell to affect its appearance, like color, borders, alignment, etc.
29
+ */
30
+ style: CellStyle;
24
31
  };
25
- /**
26
- * Text content of a cell in a worksheet.
27
- * @remarks This is a string that represents the text displayed in the cell, which may differ from the actual value of the cell (e.g., due to formatting).
28
- */
29
- export type CellText = string;
30
32
  /**
31
33
  * CellValue represents the value of a cell in a spreadsheet.
32
34
  * @see {@link Cell} for a more comprehensive representation of a cell, which includes text and formatting.
33
35
  */
34
36
  export type CellValue = string | number | boolean;
37
+ /**
38
+ * Text content of a cell in a worksheet.
39
+ * @remarks This is a string that represents the text displayed in the cell, which may differ from the actual value of the cell (e.g., due to formatting).
40
+ */
41
+ export type CellText = string;
35
42
  /**
36
43
  * Format to be applied to a cell value to convert it to text to display to the user.
37
44
  * @see {@link Cell} for a more comprehensive representation of a cell, which includes text and formatting.
@@ -39,4 +46,82 @@ export type CellValue = string | number | boolean;
39
46
  export type CellFormat = string & {
40
47
  __brand: "CellFormat";
41
48
  };
49
+ /**
50
+ * Style applied to the cell to affect its appearance, like color, borders, alignment, etc.
51
+ */
52
+ export type CellStyle = {
53
+ /**
54
+ * Number of cell merges (WRITE ONLY).
55
+ * @remarks Due to API limitations, this value is never populated when reading a cell, but it can be set when writing a cell.
56
+ * @experimental
57
+ */
58
+ merge: {
59
+ right?: number;
60
+ down?: number;
61
+ };
62
+ /**
63
+ * Alignment of cell contents.
64
+ * @experimental
65
+ */
66
+ alignment: {
67
+ horizontal?: CellHorizontalAlignment;
68
+ vertical?: CellVerticalAlignment;
69
+ wrapText?: boolean | undefined;
70
+ };
71
+ /**
72
+ * Borders around the cell.
73
+ * @experimental
74
+ */
75
+ borders: {
76
+ top?: Border | undefined;
77
+ bottom?: Border | undefined;
78
+ left?: Border | undefined;
79
+ right?: Border | undefined;
80
+ insideVertical?: Border | undefined;
81
+ insideHorizontal?: Border | undefined;
82
+ diagonalDown?: Border | undefined;
83
+ diagonalUp?: Border | undefined;
84
+ };
85
+ /**
86
+ * Fill color of the cell.
87
+ * @experimental
88
+ */
89
+ fill: {
90
+ color?: Color;
91
+ };
92
+ /**
93
+ * Font settings for the cell.
94
+ * @experimental
95
+ */
96
+ font: {
97
+ name?: FontName;
98
+ size?: number;
99
+ color?: Color;
100
+ bold?: boolean;
101
+ italic?: boolean;
102
+ underline?: CellUnderline;
103
+ };
104
+ };
105
+ /**
106
+ * The amount of detail that we're reading from a cell.
107
+ */
108
+ export type CellScope = {
109
+ /** Raw underlying value. Cheap to read/write (1 op per ~10K cells for values, text & format) */
110
+ values: boolean;
111
+ /** Formatted value, as presented to the user. Cheap to read/write (1 op per ~10K cells for values, text & format) */
112
+ text: boolean;
113
+ /** Logic used to format values to text. Cheap to read/write (1 op per ~10K cells for values, text & format) */
114
+ format: boolean;
115
+ /** Content position with the cell. Expensive to read/write (1 op per cell) */
116
+ alignment: boolean;
117
+ /** Cell borders. Expensive to read/write (1 op per cell) */
118
+ borders: boolean;
119
+ /** Background fill style. Expensive to read/write (1 op per cell) */
120
+ fill: boolean;
121
+ /** Text style. Expensive to read/write (1 op per cell) */
122
+ font: boolean;
123
+ };
124
+ export type CellHorizontalAlignment = "General" | "Left" | "Center" | "Right" | "Fill" | "Justify" | "CenterAcrossSelection" | "Distributed";
125
+ export type CellVerticalAlignment = "Top" | "Center" | "Bottom" | "Justify" | "Distributed";
126
+ export type CellUnderline = "None" | "Single" | "Double" | "SingleAccountant" | "DoubleAccountant";
42
127
  //# sourceMappingURL=Cell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../../src/models/Cell.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG;IAClB;;;OAGG;IACH,IAAI,EAAE,QAAQ,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAE9B;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAElD;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG;IACjC,OAAO,EAAE,YAAY,CAAC;CACtB,CAAC"}
1
+ {"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../../src/models/Cell.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,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M,GAAG,SAAS,CAAC;KAChC,CAAC;IAUF;;;OAGG;IACH,IAAI,EAAE;QACL,KAAK,CAAC,EAAE,KAAK,CAAC;KACd,CAAC;IACF;;;OAGG;IACH,IAAI,EAAE;QACL,IAAI,CAAC,EAAE,QAAQ,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,SAAS,CAAC,EAAE,aAAa,CAAC;KAC1B,CAAC;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACvB,gGAAgG;IAChG,MAAM,EAAE,OAAO,CAAC;IAEhB,qHAAqH;IACrH,IAAI,EAAE,OAAO,CAAC;IAEd,+GAA+G;IAC/G,MAAM,EAAE,OAAO,CAAC;IAEhB,8EAA8E;IAC9E,SAAS,EAAE,OAAO,CAAC;IAEnB,4DAA4D;IAC5D,OAAO,EAAE,OAAO,CAAC;IAEjB,qEAAqE;IACrE,IAAI,EAAE,OAAO,CAAC;IAEd,0DAA0D;IAC1D,IAAI,EAAE,OAAO,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,uBAAuB,GAAG,aAAa,CAAC;AAE7I,MAAM,MAAM,qBAAqB,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,aAAa,CAAC;AAE5F,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,kBAAkB,GAAG,kBAAkB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Color has a hexadecimal representation (ie #ffffff").
3
+ * @category Models
4
+ * @module Color
5
+ */
6
+ export type Color = string & {
7
+ __brand: "Color";
8
+ };
9
+ //# sourceMappingURL=Color.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Color.d.ts","sourceRoot":"","sources":["../../../src/models/Color.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,KAAK,GAAG,MAAM,GAAG;IAC5B,OAAO,EAAE,OAAO,CAAC;CACjB,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,6 +3,11 @@
3
3
  * @module Column
4
4
  * @category Models
5
5
  */
6
+ import type { Cell } from "./Cell.ts";
7
+ /**
8
+ * Vertical linear sequence of cells in a worksheet.
9
+ */
10
+ export type Column = Cell[];
6
11
  /**
7
12
  * Zero-based index representing the position of a column in a range.
8
13
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Column.d.ts","sourceRoot":"","sources":["../../../src/models/Column.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG;IACnC,OAAO,EAAE,cAAc,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG;IACjC,OAAO,EAAE,YAAY,CAAC;CACtB,CAAC"}
1
+ {"version":3,"file":"Column.d.ts","sourceRoot":"","sources":["../../../src/models/Column.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,IAAI,EAAE,CAAC;AAE5B;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG;IACnC,OAAO,EAAE,cAAc,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG;IACjC,OAAO,EAAE,YAAY,CAAC;CACtB,CAAC"}
@@ -1,3 +1,7 @@
1
1
  "use strict";
2
- // biome-ignore lint/style/useFilenamingConvention: Appropriate in this context
2
+ /**
3
+ * Column pointers.
4
+ * @module Column
5
+ * @category Models
6
+ */
3
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,17 @@
1
+ /**
2
+ * Tooling for easily creating, updating, and deleting items in a worksheet or range.
3
+ * @module DataSource
4
+ * @category Models
5
+ * @experimental
6
+ */
1
7
  import type { Cell, CellValue } from "./Cell.ts";
2
8
  import type { ColumnName } from "./Column.ts";
3
9
  import type { RowNumber, RowOffset } from "./Row.ts";
4
10
  import type { WorkbookRangeRef } from "./WorkbookRange.ts";
11
+ /**
12
+ * Defines a data source for a worksheet or range.
13
+ * @template T Type of the record, extending RecordBase.
14
+ */
5
15
  export type DataSource<T extends RecordBase> = {
6
16
  bodyRef: WorkbookRangeRef;
7
17
  bodyOffset: RowOffset;
@@ -11,11 +21,23 @@ export type DataSource<T extends RecordBase> = {
11
21
  encode: RowEncoder<T> | null;
12
22
  };
13
23
  } & AsyncIterable<Item<T>>;
24
+ /**
25
+ * Method to decode row into a record.
26
+ */
14
27
  export type RowDecoder<T extends RecordBase> = (row: DataSourceRow) => T;
28
+ /**
29
+ * Method to encode a record into a row.
30
+ */
15
31
  export type RowEncoder<T extends RecordBase> = (record: T) => DataSourceRow;
32
+ /**
33
+ * Item's position within a data source.
34
+ */
16
35
  export type ItemIndex = number & {
17
36
  __brand: "ItemIndex";
18
37
  };
38
+ /**
39
+ * Item within a data source.
40
+ */
19
41
  export type Item<T extends RecordBase> = {
20
42
  index: ItemIndex;
21
43
  rowNumber: RowNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"DataSource.d.ts","sourceRoot":"","sources":["../../../src/models/DataSource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,KAAK,EA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AAsB,GAAG,CAAC,QAAQ,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC"}
@@ -1,2 +1,8 @@
1
1
  "use strict";
2
+ /**
3
+ * Tooling for easily creating, updating, and deleting items in a worksheet or range.
4
+ * @module DataSource
5
+ * @category Models
6
+ * @experimental
7
+ */
2
8
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Name of a font.
3
+ * @category Models
4
+ * @module FontName
5
+ */
6
+ export type FontName = string & {
7
+ __brand: "FontName";
8
+ };
9
+ //# sourceMappingURL=FontName.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FontName.d.ts","sourceRoot":"","sources":["../../../src/models/FontName.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG;IAC/B,OAAO,EAAE,UAAU,CAAC;CACpB,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,6 +4,9 @@
4
4
  * @category Models
5
5
  */
6
6
  import type { Cell } from "./Cell.ts";
7
+ /**
8
+ * Horizontal linear sequence of cells in a worksheet.
9
+ */
7
10
  export type Row = Cell[];
8
11
  /**
9
12
  * Row number as it appears in Excel.
@@ -1 +1 @@
1
- {"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../../src/models/Row.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,MAAM,GAAG,GAAG,IAAI,EAAE,CAAC;AAEzB;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG;IAChC,OAAO,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG;IAChC,OAAO,EAAE,WAAW,CAAC;CACrB,CAAC"}
1
+ {"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../../src/models/Row.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtC;;GAEG;AACH,MAAM,MAAM,GAAG,GAAG,IAAI,EAAE,CAAC;AAEzB;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG;IAChC,OAAO,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG;IAChC,OAAO,EAAE,WAAW,CAAC;CACrB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * List accessible sites.
2
+ * List sites in your company geography.
3
3
  * @module listSites
4
4
  * @category Operations
5
5
  */
@@ -8,7 +8,7 @@ import type { ContextRef } from "../../models/Context.ts";
8
8
  import type { GraphOperation } from "../../models/GraphOperation.ts";
9
9
  import type { SiteRef } from "../../models/Site.ts";
10
10
  /**
11
- * List accessible sites.
11
+ * List sites in your company geography.
12
12
  * @param contextRef Reference to the context.
13
13
  * @returns Array of sites, each including its metadata and reference information.
14
14
  * @see https://learn.microsoft.com/en-us/graph/api/site-list
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * List accessible sites.
3
+ * List sites in your company geography.
4
4
  * @module listSites
5
5
  * @category Operations
6
6
  */
@@ -10,7 +10,7 @@ const operationInvoker_ts_1 = require("../../services/operationInvoker.js");
10
10
  const site_ts_1 = require("../../services/site.js");
11
11
  const templatedPaths_ts_1 = require("../../services/templatedPaths.js");
12
12
  /**
13
- * List accessible sites.
13
+ * List sites in your company geography.
14
14
  * @param contextRef Reference to the context.
15
15
  * @returns Array of sites, each including its metadata and reference information.
16
16
  * @see https://learn.microsoft.com/en-us/graph/api/site-list
@@ -0,0 +1,17 @@
1
+ /**
2
+ * List sites in all company geographies.
3
+ * @module listSites
4
+ * @category Operations
5
+ */
6
+ import type { Site } from "@microsoft/microsoft-graph-types";
7
+ import type { ContextRef } from "../../models/Context.ts";
8
+ import type { GraphOperation } from "../../models/GraphOperation.ts";
9
+ import type { SiteRef } from "../../models/Site.ts";
10
+ /**
11
+ * List sites in all company geographies.
12
+ * @param contextRef Reference to the context.
13
+ * @returns Array of sites, each including its metadata and reference information.
14
+ * @see https://learn.microsoft.com/en-us/graph/api/site-getallsites
15
+ */
16
+ export default function listSitesAllGeographies(contextRef: ContextRef): GraphOperation<(Site & SiteRef)[]>;
17
+ //# sourceMappingURL=listSitesAllGeographies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listSitesAllGeographies.d.ts","sourceRoot":"","sources":["../../../../src/operations/site/listSitesAllGeographies.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAU,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAK5D;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,UAAU,EAAE,UAAU,GAAG,cAAc,CAAC,CAAC,IAAI,GAAG,OAAO,CAAC,EAAE,CAAC,CAuB1G"}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * List sites in all company geographies.
4
+ * @module listSites
5
+ * @category Operations
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.default = listSitesAllGeographies;
9
+ const operationInvoker_ts_1 = require("../../services/operationInvoker.js");
10
+ const site_ts_1 = require("../../services/site.js");
11
+ const templatedPaths_ts_1 = require("../../services/templatedPaths.js");
12
+ /**
13
+ * List sites in all company geographies.
14
+ * @param contextRef Reference to the context.
15
+ * @returns Array of sites, each including its metadata and reference information.
16
+ * @see https://learn.microsoft.com/en-us/graph/api/site-getallsites
17
+ */
18
+ function listSitesAllGeographies(contextRef) {
19
+ return (0, operationInvoker_ts_1.operation)({
20
+ context: contextRef.context,
21
+ method: "GET",
22
+ path: (0, templatedPaths_ts_1.generatePath)("/sites/getAllSites", {}),
23
+ headers: {},
24
+ body: null,
25
+ responseTransform: (response) => {
26
+ const list = response;
27
+ const sites = list.value.map((site) => {
28
+ const siteId = site.id;
29
+ const siteRef = (0, site_ts_1.createSiteRef)(contextRef, siteId);
30
+ return {
31
+ ...site,
32
+ ...siteRef,
33
+ };
34
+ });
35
+ return sites;
36
+ },
37
+ });
38
+ }
@@ -9,8 +9,13 @@ import type { WorkbookRangeRef } from "../../models/WorkbookRange.ts";
9
9
  /**
10
10
  * Fetch a range.
11
11
  * @param rangeRef Reference to the range to be fetched.
12
+ * @param select Optional parameters to select specific properties of the range.
12
13
  * @returns The fetched range, including values and formatting
13
14
  * @see https://learn.microsoft.com/en-us/graph/api/range-get
14
15
  */
15
- export default function getWorkbookWorksheetRange(rangeRef: WorkbookRangeRef): GraphOperation<WorkbookRange & WorkbookRangeRef>;
16
+ export default function getWorkbookWorksheetRange(rangeRef: WorkbookRangeRef, select?: {
17
+ values?: boolean;
18
+ text?: boolean;
19
+ numberFormat?: boolean;
20
+ }): GraphOperation<WorkbookRange & WorkbookRangeRef>;
16
21
  //# sourceMappingURL=getWorkbookWorksheetRange.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getWorkbookWorksheetRange.d.ts","sourceRoot":"","sources":["../../../../src/operations/workbookRange/getWorkbookWorksheetRange.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAKtE;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,cAAc,CAAC,aAAa,GAAG,gBAAgB,CAAC,CAoB9H"}
1
+ {"version":3,"file":"getWorkbookWorksheetRange.d.ts","sourceRoot":"","sources":["../../../../src/operations/workbookRange/getWorkbookWorksheetRange.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAKtE;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,cAAc,CAAC,aAAa,GAAG,gBAAgB,CAAC,CA2BrM"}
@@ -12,15 +12,22 @@ const templatedPaths_ts_1 = require("../../services/templatedPaths.js");
12
12
  /**
13
13
  * Fetch a range.
14
14
  * @param rangeRef Reference to the range to be fetched.
15
+ * @param select Optional parameters to select specific properties of the range.
15
16
  * @returns The fetched range, including values and formatting
16
17
  * @see https://learn.microsoft.com/en-us/graph/api/range-get
17
18
  */
18
- function getWorkbookWorksheetRange(rangeRef) {
19
+ function getWorkbookWorksheetRange(rangeRef, select) {
19
20
  const address = (0, addressManipulation_ts_1.normalizeAddress)(rangeRef.address, true);
21
+ const selectString = select
22
+ ? Object.entries(select)
23
+ .map(([k, v]) => (v ? k : undefined))
24
+ .filter((v) => !!v)
25
+ .join(",")
26
+ : null;
20
27
  return (0, operationInvoker_ts_1.operation)({
21
28
  context: rangeRef.context,
22
29
  method: "GET",
23
- path: (0, templatedPaths_ts_1.generatePath)(`/sites/{site-id}/drives/{drive-id}/items/{item-id}/workbook/worksheets/{worksheet-id}/range(address='${address}')`, rangeRef),
30
+ path: (0, templatedPaths_ts_1.generatePath)(`/sites/{site-id}/drives/{drive-id}/items/{item-id}/workbook/worksheets/{worksheet-id}/range(address='${address}')?$select=${selectString}`, rangeRef),
24
31
  headers: {
25
32
  "workbook-session-id": rangeRef.sessionId,
26
33
  },
@@ -0,0 +1,16 @@
1
+ /**
2
+ * List the borders of a range.
3
+ * @module listWorkbookRangeBorders
4
+ * @category Operations
5
+ */
6
+ import type { WorkbookRangeBorder } from "@microsoft/microsoft-graph-types";
7
+ import type { GraphOperation } from "../../models/GraphOperation.ts";
8
+ import type { WorkbookRangeRef } from "../../models/WorkbookRange.ts";
9
+ /**
10
+ * List the borders of a range.
11
+ * @param rangeRef Reference to the range whose borders will be listed.
12
+ * @returns Array of borders for the specified range.
13
+ * @see https://learn.microsoft.com/en-us/graph/api/rangeborder-list
14
+ */
15
+ export default function listWorkbookRangeBorders(rangeRef: WorkbookRangeRef): GraphOperation<WorkbookRangeBorder[]>;
16
+ //# sourceMappingURL=listWorkbookRangeBorders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listWorkbookRangeBorders.d.ts","sourceRoot":"","sources":["../../../../src/operations/workbookRange/listWorkbookRangeBorders.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAKtE;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,cAAc,CAAC,mBAAmB,EAAE,CAAC,CAelH"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * List the borders of a range.
4
+ * @module listWorkbookRangeBorders
5
+ * @category Operations
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.default = listWorkbookRangeBorders;
9
+ const addressManipulation_ts_1 = require("../../services/addressManipulation.js");
10
+ const operationInvoker_ts_1 = require("../../services/operationInvoker.js");
11
+ const templatedPaths_ts_1 = require("../../services/templatedPaths.js");
12
+ /**
13
+ * List the borders of a range.
14
+ * @param rangeRef Reference to the range whose borders will be listed.
15
+ * @returns Array of borders for the specified range.
16
+ * @see https://learn.microsoft.com/en-us/graph/api/rangeborder-list
17
+ */
18
+ function listWorkbookRangeBorders(rangeRef) {
19
+ const address = (0, addressManipulation_ts_1.normalizeAddress)(rangeRef.address, true);
20
+ return (0, operationInvoker_ts_1.operation)({
21
+ context: rangeRef.context,
22
+ method: "GET",
23
+ path: (0, templatedPaths_ts_1.generatePath)(`/sites/{site-id}/drives/{drive-id}/items/{item-id}/workbook/worksheets/{worksheet-id}/range(address='${address}')/format/borders`, rangeRef),
24
+ headers: {
25
+ "workbook-session-id": rangeRef.sessionId,
26
+ },
27
+ body: null,
28
+ responseTransform: (response) => {
29
+ const typed = response;
30
+ return typed.value;
31
+ },
32
+ });
33
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Update a specific border of a workbook range.
3
+ * @module setWorkbookRangeBorder
4
+ * @category Operations
5
+ */
6
+ import type { WorkbookRangeBorder } from "@microsoft/microsoft-graph-types";
7
+ import type { Border, BorderSide } from "../../models/Border.ts";
8
+ import type { GraphOperation } from "../../models/GraphOperation.ts";
9
+ import type { WorkbookRangeRef } from "../../models/WorkbookRange.ts";
10
+ /**
11
+ * Update a specific border of a workbook range.
12
+ * @param rangeRef Reference to the range whose border will be updated.
13
+ * @param side The border side to update (e.g., "EdgeTop", "EdgeBottom", "EdgeLeft", "EdgeRight", "InsideHorizontal", "InsideVertical").
14
+ * @param values Partial border object to update (color, style, weight, etc.).
15
+ * @returns The updated border for the specified range and side.
16
+ * @see https://learn.microsoft.com/en-us/graph/api/rangeborder-update
17
+ */
18
+ export default function setWorkbookRangeBorder(rangeRef: WorkbookRangeRef, side: BorderSide, values: Partial<Border>): GraphOperation<WorkbookRangeBorder & WorkbookRangeRef>;
19
+ //# sourceMappingURL=setWorkbookRangeBorder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setWorkbookRangeBorder.d.ts","sourceRoot":"","sources":["../../../../src/operations/workbookRange/setWorkbookRangeBorder.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAKtE;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,cAAc,CAAC,mBAAmB,GAAG,gBAAgB,CAAC,CAwB5K"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /**
3
+ * Update a specific border of a workbook range.
4
+ * @module setWorkbookRangeBorder
5
+ * @category Operations
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.default = setWorkbookRangeBorder;
9
+ const addressManipulation_ts_1 = require("../../services/addressManipulation.js");
10
+ const operationInvoker_ts_1 = require("../../services/operationInvoker.js");
11
+ const templatedPaths_ts_1 = require("../../services/templatedPaths.js");
12
+ /**
13
+ * Update a specific border of a workbook range.
14
+ * @param rangeRef Reference to the range whose border will be updated.
15
+ * @param side The border side to update (e.g., "EdgeTop", "EdgeBottom", "EdgeLeft", "EdgeRight", "InsideHorizontal", "InsideVertical").
16
+ * @param values Partial border object to update (color, style, weight, etc.).
17
+ * @returns The updated border for the specified range and side.
18
+ * @see https://learn.microsoft.com/en-us/graph/api/rangeborder-update
19
+ */
20
+ function setWorkbookRangeBorder(rangeRef, side, values) {
21
+ const address = (0, addressManipulation_ts_1.normalizeAddress)(rangeRef.address, true);
22
+ return (0, operationInvoker_ts_1.operation)({
23
+ context: rangeRef.context,
24
+ method: "PATCH",
25
+ path: (0, templatedPaths_ts_1.generatePath)(`/sites/{site-id}/drives/{drive-id}/items/{item-id}/workbook/worksheets/{worksheet-id}/range(address='${address}')/format/borders/${side}`, rangeRef),
26
+ headers: {
27
+ "workbook-session-id": rangeRef.sessionId,
28
+ "content-type": "application/json",
29
+ },
30
+ body: {
31
+ sideIndex: side,
32
+ color: values.color,
33
+ style: values.style,
34
+ weight: values.weight,
35
+ },
36
+ responseTransform: (response) => {
37
+ const updated = response;
38
+ return {
39
+ ...updated,
40
+ ...rangeRef,
41
+ };
42
+ },
43
+ });
44
+ }
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Tooling for easily creating, updating, and deleting items in a worksheet or range.
3
+ * @module dataSource
4
+ * @category Services
5
+ * @experimental
6
+ */
1
7
  import type { DataSource, Item, ItemIndex, RecordBase, RowDecoder, RowEncoder } from "../models/DataSource.ts";
2
8
  import type { WorkbookRangeRef } from "../models/WorkbookRange.ts";
3
9
  /**
@@ -7,6 +13,7 @@ import type { WorkbookRangeRef } from "../models/WorkbookRange.ts";
7
13
  * @param decode Function to decode a row into a record.
8
14
  * @param encode Function to encode a record into a row. Optional.
9
15
  * @returns The initialized data source.
16
+ * @experimental
10
17
  */
11
18
  export declare function dataSourceFromWorksheet<T extends RecordBase>(worksheetRef: WorkbookRangeRef, decode: RowDecoder<T>, encode?: RowEncoder<T> | null): Promise<DataSource<T>>;
12
19
  /**
@@ -16,6 +23,7 @@ export declare function dataSourceFromWorksheet<T extends RecordBase>(worksheetR
16
23
  * @param decode Function to decode a row into a record.
17
24
  * @param encode Function to encode a record into a row. Optional.
18
25
  * @returns The initialized data source.
26
+ * @experimental
19
27
  */
20
28
  export declare function dataSourceFromRange<T extends RecordBase>(rangeRef: WorkbookRangeRef, decode: RowDecoder<T>, encode?: RowEncoder<T> | null): Promise<DataSource<T>>;
21
29
  /**
@@ -35,6 +43,7 @@ export declare function listItems<T extends RecordBase>(source: DataSource<T>):
35
43
  * @returns Newly created item, including its index, row number, and record.
36
44
  * @throws {InvalidOperationError} If the data source is not initialized.
37
45
  * @throws {InvalidArgumentError} If the 'after' index is out of range.
46
+ * @experimental
38
47
  */
39
48
  export declare function createItem<T extends RecordBase>(source: DataSource<T>, record: T, after?: ItemIndex | null): Promise<Item<T>>;
40
49
  /**
@@ -45,6 +54,7 @@ export declare function createItem<T extends RecordBase>(source: DataSource<T>,
45
54
  * @param record New record to write at the specified index.
46
55
  * @throws {InvalidOperationError} If the data source is not initialized.
47
56
  * @throws {InvalidArgumentError} If the index is out of range.
57
+ * @experimental
48
58
  */
49
59
  export declare function updateItem<T extends RecordBase>(source: DataSource<T>, index: ItemIndex, record: T): Promise<void>;
50
60
  /**
@@ -53,6 +63,7 @@ export declare function updateItem<T extends RecordBase>(source: DataSource<T>,
53
63
  * @param source Data source to delete from. Must be initialized.
54
64
  * @param index Index of the item to delete.
55
65
  * @throws {InvalidOperationError} If the data source is not initialized.
66
+ * @experimental
56
67
  */
57
68
  export declare function deleteItem<T extends RecordBase>(source: DataSource<T>, index: ItemIndex): Promise<void>;
58
69
  //# sourceMappingURL=dataSource.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dataSource.d.ts","sourceRoot":"","sources":["../../../src/services/dataSource.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAiB,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE9H,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAWnE;;;;;;;GAOG;AACH,wBAAsB,uBAAuB,CAAC,CAAC,SAAS,UAAU,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,C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