google-mcp-suite 1.12.0 → 1.14.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 (510) hide show
  1. package/ADOPTING.md +2 -2
  2. package/README.md +5 -5
  3. package/dist/sheets/entities/BasicFilter.d.ts +215 -0
  4. package/dist/sheets/entities/BasicFilter.d.ts.map +1 -0
  5. package/dist/sheets/entities/BasicFilter.js +27 -0
  6. package/dist/sheets/entities/BasicFilter.js.map +1 -0
  7. package/dist/sheets/entities/BooleanCondition.d.ts +57 -0
  8. package/dist/sheets/entities/BooleanCondition.d.ts.map +1 -0
  9. package/dist/sheets/entities/BooleanCondition.js +52 -0
  10. package/dist/sheets/entities/BooleanCondition.js.map +1 -0
  11. package/dist/sheets/entities/BooleanRule.d.ts +100 -0
  12. package/dist/sheets/entities/BooleanRule.d.ts.map +1 -0
  13. package/dist/sheets/entities/BooleanRule.js +34 -0
  14. package/dist/sheets/entities/BooleanRule.js.map +1 -0
  15. package/dist/sheets/entities/CellData.d.ts +131 -0
  16. package/dist/sheets/entities/CellData.d.ts.map +1 -0
  17. package/dist/sheets/entities/CellData.js +23 -0
  18. package/dist/sheets/entities/CellData.js.map +1 -0
  19. package/dist/sheets/entities/CellFormat.d.ts +3 -0
  20. package/dist/sheets/entities/CellFormat.d.ts.map +1 -1
  21. package/dist/sheets/entities/ConditionValue.d.ts +21 -0
  22. package/dist/sheets/entities/ConditionValue.d.ts.map +1 -0
  23. package/dist/sheets/entities/ConditionValue.js +19 -0
  24. package/dist/sheets/entities/ConditionValue.js.map +1 -0
  25. package/dist/sheets/entities/ConditionalFormatRule.d.ts +197 -0
  26. package/dist/sheets/entities/ConditionalFormatRule.d.ts.map +1 -0
  27. package/dist/sheets/entities/ConditionalFormatRule.js +22 -0
  28. package/dist/sheets/entities/ConditionalFormatRule.js.map +1 -0
  29. package/dist/sheets/entities/ConditionalFormatRuleReadout.d.ts +83 -0
  30. package/dist/sheets/entities/ConditionalFormatRuleReadout.d.ts.map +1 -0
  31. package/dist/sheets/entities/ConditionalFormatRuleReadout.js +84 -0
  32. package/dist/sheets/entities/ConditionalFormatRuleReadout.js.map +1 -0
  33. package/dist/sheets/entities/DataValidationRule.d.ts +60 -0
  34. package/dist/sheets/entities/DataValidationRule.d.ts.map +1 -0
  35. package/dist/sheets/entities/DataValidationRule.js +22 -0
  36. package/dist/sheets/entities/DataValidationRule.js.map +1 -0
  37. package/dist/sheets/entities/DelimiterType.d.ts +16 -0
  38. package/dist/sheets/entities/DelimiterType.d.ts.map +1 -0
  39. package/dist/sheets/entities/DelimiterType.js +15 -0
  40. package/dist/sheets/entities/DelimiterType.js.map +1 -0
  41. package/dist/sheets/entities/Dimension.d.ts +12 -0
  42. package/dist/sheets/entities/Dimension.d.ts.map +1 -0
  43. package/dist/sheets/entities/Dimension.js +8 -0
  44. package/dist/sheets/entities/Dimension.js.map +1 -0
  45. package/dist/sheets/entities/DimensionRange.d.ts.map +1 -1
  46. package/dist/sheets/entities/DimensionRange.js +2 -1
  47. package/dist/sheets/entities/DimensionRange.js.map +1 -1
  48. package/dist/sheets/entities/Editors.d.ts +14 -0
  49. package/dist/sheets/entities/Editors.d.ts.map +1 -0
  50. package/dist/sheets/entities/Editors.js +22 -0
  51. package/dist/sheets/entities/Editors.js.map +1 -0
  52. package/dist/sheets/entities/ExtendedValue.d.ts +17 -0
  53. package/dist/sheets/entities/ExtendedValue.d.ts.map +1 -0
  54. package/dist/sheets/entities/ExtendedValue.js +25 -0
  55. package/dist/sheets/entities/ExtendedValue.js.map +1 -0
  56. package/dist/sheets/entities/FilterCriteria.d.ts +92 -0
  57. package/dist/sheets/entities/FilterCriteria.d.ts.map +1 -0
  58. package/dist/sheets/entities/FilterCriteria.js +15 -0
  59. package/dist/sheets/entities/FilterCriteria.js.map +1 -0
  60. package/dist/sheets/entities/FilterSpec.d.ts +96 -0
  61. package/dist/sheets/entities/FilterSpec.d.ts.map +1 -0
  62. package/dist/sheets/entities/FilterSpec.js +13 -0
  63. package/dist/sheets/entities/FilterSpec.js.map +1 -0
  64. package/dist/sheets/entities/FilterView.d.ts +221 -0
  65. package/dist/sheets/entities/FilterView.d.ts.map +1 -0
  66. package/dist/sheets/entities/FilterView.js +37 -0
  67. package/dist/sheets/entities/FilterView.js.map +1 -0
  68. package/dist/sheets/entities/GradientRule.d.ts +96 -0
  69. package/dist/sheets/entities/GradientRule.d.ts.map +1 -0
  70. package/dist/sheets/entities/GradientRule.js +15 -0
  71. package/dist/sheets/entities/GradientRule.js.map +1 -0
  72. package/dist/sheets/entities/InterpolationPoint.d.ts +37 -0
  73. package/dist/sheets/entities/InterpolationPoint.d.ts.map +1 -0
  74. package/dist/sheets/entities/InterpolationPoint.js +19 -0
  75. package/dist/sheets/entities/InterpolationPoint.js.map +1 -0
  76. package/dist/sheets/entities/PasteOrientation.d.ts +12 -0
  77. package/dist/sheets/entities/PasteOrientation.d.ts.map +1 -0
  78. package/dist/sheets/entities/PasteOrientation.js +8 -0
  79. package/dist/sheets/entities/PasteOrientation.js.map +1 -0
  80. package/dist/sheets/entities/PasteType.d.ts +17 -0
  81. package/dist/sheets/entities/PasteType.d.ts.map +1 -0
  82. package/dist/sheets/entities/PasteType.js +16 -0
  83. package/dist/sheets/entities/PasteType.js.map +1 -0
  84. package/dist/sheets/entities/ProtectedRange.d.ts +38 -0
  85. package/dist/sheets/entities/ProtectedRange.d.ts.map +1 -0
  86. package/dist/sheets/entities/ProtectedRange.js +35 -0
  87. package/dist/sheets/entities/ProtectedRange.js.map +1 -0
  88. package/dist/sheets/entities/SortOrder.d.ts +12 -0
  89. package/dist/sheets/entities/SortOrder.d.ts.map +1 -0
  90. package/dist/sheets/entities/SortOrder.js +8 -0
  91. package/dist/sheets/entities/SortOrder.js.map +1 -0
  92. package/dist/sheets/entities/SortSpec.d.ts +27 -0
  93. package/dist/sheets/entities/SortSpec.d.ts.map +1 -0
  94. package/dist/sheets/entities/SortSpec.js +35 -0
  95. package/dist/sheets/entities/SortSpec.js.map +1 -0
  96. package/dist/sheets/entities/SourceAndDestination.d.ts +22 -0
  97. package/dist/sheets/entities/SourceAndDestination.d.ts.map +1 -0
  98. package/dist/sheets/entities/SourceAndDestination.js +17 -0
  99. package/dist/sheets/entities/SourceAndDestination.js.map +1 -0
  100. package/dist/sheets/entities/Spreadsheet.d.ts +320 -4
  101. package/dist/sheets/entities/Spreadsheet.d.ts.map +1 -1
  102. package/dist/sheets/entities/Spreadsheet.js +36 -6
  103. package/dist/sheets/entities/Spreadsheet.js.map +1 -1
  104. package/dist/sheets/entities/TextFormat.d.ts +5 -2
  105. package/dist/sheets/entities/TextFormat.d.ts.map +1 -1
  106. package/dist/sheets/entities/TextFormat.js +10 -2
  107. package/dist/sheets/entities/TextFormat.js.map +1 -1
  108. package/dist/sheets/entities/TextFormatRun.d.ts +43 -0
  109. package/dist/sheets/entities/TextFormatRun.d.ts.map +1 -0
  110. package/dist/sheets/entities/TextFormatRun.js +19 -0
  111. package/dist/sheets/entities/TextFormatRun.js.map +1 -0
  112. package/dist/sheets/instructions.d.ts.map +1 -1
  113. package/dist/sheets/instructions.js +34 -9
  114. package/dist/sheets/instructions.js.map +1 -1
  115. package/dist/sheets/lib/cells.d.ts +20 -0
  116. package/dist/sheets/lib/cells.d.ts.map +1 -0
  117. package/dist/sheets/lib/cells.js +41 -0
  118. package/dist/sheets/lib/cells.js.map +1 -0
  119. package/dist/sheets/lib/filtering.d.ts +33 -0
  120. package/dist/sheets/lib/filtering.d.ts.map +1 -0
  121. package/dist/sheets/lib/filtering.js +150 -0
  122. package/dist/sheets/lib/filtering.js.map +1 -0
  123. package/dist/sheets/lib/formats.d.ts +3 -1
  124. package/dist/sheets/lib/formats.d.ts.map +1 -1
  125. package/dist/sheets/lib/formats.js +16 -0
  126. package/dist/sheets/lib/formats.js.map +1 -1
  127. package/dist/sheets/lib/requests.d.ts +13 -0
  128. package/dist/sheets/lib/requests.d.ts.map +1 -1
  129. package/dist/sheets/lib/requests.js +38 -0
  130. package/dist/sheets/lib/requests.js.map +1 -1
  131. package/dist/sheets/lib/rules.d.ts +37 -0
  132. package/dist/sheets/lib/rules.d.ts.map +1 -0
  133. package/dist/sheets/lib/rules.js +116 -0
  134. package/dist/sheets/lib/rules.js.map +1 -0
  135. package/dist/sheets/lib/spreadsheet.d.ts +12 -3
  136. package/dist/sheets/lib/spreadsheet.d.ts.map +1 -1
  137. package/dist/sheets/lib/spreadsheet.js +118 -18
  138. package/dist/sheets/lib/spreadsheet.js.map +1 -1
  139. package/dist/sheets/methods/add_conditional_format_rule/handler.d.ts +5 -0
  140. package/dist/sheets/methods/add_conditional_format_rule/handler.d.ts.map +1 -0
  141. package/dist/sheets/methods/add_conditional_format_rule/handler.js +13 -0
  142. package/dist/sheets/methods/add_conditional_format_rule/handler.js.map +1 -0
  143. package/dist/sheets/methods/add_conditional_format_rule/index.d.ts +199 -0
  144. package/dist/sheets/methods/add_conditional_format_rule/index.d.ts.map +1 -0
  145. package/dist/sheets/methods/add_conditional_format_rule/index.js +22 -0
  146. package/dist/sheets/methods/add_conditional_format_rule/index.js.map +1 -0
  147. package/dist/sheets/methods/add_conditional_format_rule/schema.d.ts +198 -0
  148. package/dist/sheets/methods/add_conditional_format_rule/schema.d.ts.map +1 -0
  149. package/dist/sheets/methods/add_conditional_format_rule/schema.js +22 -0
  150. package/dist/sheets/methods/add_conditional_format_rule/schema.js.map +1 -0
  151. package/dist/sheets/methods/add_filter_view/handler.d.ts +5 -0
  152. package/dist/sheets/methods/add_filter_view/handler.d.ts.map +1 -0
  153. package/dist/sheets/methods/add_filter_view/handler.js +21 -0
  154. package/dist/sheets/methods/add_filter_view/handler.js.map +1 -0
  155. package/dist/sheets/methods/add_filter_view/index.d.ts +212 -0
  156. package/dist/sheets/methods/add_filter_view/index.d.ts.map +1 -0
  157. package/dist/sheets/methods/add_filter_view/index.js +16 -0
  158. package/dist/sheets/methods/add_filter_view/index.js.map +1 -0
  159. package/dist/sheets/methods/add_filter_view/schema.d.ts +216 -0
  160. package/dist/sheets/methods/add_filter_view/schema.d.ts.map +1 -0
  161. package/dist/sheets/methods/add_filter_view/schema.js +10 -0
  162. package/dist/sheets/methods/add_filter_view/schema.js.map +1 -0
  163. package/dist/sheets/methods/add_named_range/handler.d.ts.map +1 -1
  164. package/dist/sheets/methods/add_named_range/handler.js +5 -1
  165. package/dist/sheets/methods/add_named_range/handler.js.map +1 -1
  166. package/dist/sheets/methods/add_protected_range/handler.d.ts +5 -0
  167. package/dist/sheets/methods/add_protected_range/handler.d.ts.map +1 -0
  168. package/dist/sheets/methods/add_protected_range/handler.js +29 -0
  169. package/dist/sheets/methods/add_protected_range/handler.js.map +1 -0
  170. package/dist/sheets/methods/add_protected_range/index.d.ts +61 -0
  171. package/dist/sheets/methods/add_protected_range/index.d.ts.map +1 -0
  172. package/dist/sheets/methods/add_protected_range/index.js +25 -0
  173. package/dist/sheets/methods/add_protected_range/index.js.map +1 -0
  174. package/dist/sheets/methods/add_protected_range/schema.d.ts +56 -0
  175. package/dist/sheets/methods/add_protected_range/schema.d.ts.map +1 -0
  176. package/dist/sheets/methods/add_protected_range/schema.js +31 -0
  177. package/dist/sheets/methods/add_protected_range/schema.js.map +1 -0
  178. package/dist/sheets/methods/auto_fill/handler.d.ts +5 -0
  179. package/dist/sheets/methods/auto_fill/handler.d.ts.map +1 -0
  180. package/dist/sheets/methods/auto_fill/handler.js +22 -0
  181. package/dist/sheets/methods/auto_fill/handler.js.map +1 -0
  182. package/dist/sheets/methods/auto_fill/index.d.ts +28 -0
  183. package/dist/sheets/methods/auto_fill/index.d.ts.map +1 -0
  184. package/dist/sheets/methods/auto_fill/index.js +16 -0
  185. package/dist/sheets/methods/auto_fill/index.js.map +1 -0
  186. package/dist/sheets/methods/auto_fill/schema.d.ts +32 -0
  187. package/dist/sheets/methods/auto_fill/schema.d.ts.map +1 -0
  188. package/dist/sheets/methods/auto_fill/schema.js +18 -0
  189. package/dist/sheets/methods/auto_fill/schema.js.map +1 -0
  190. package/dist/sheets/methods/clear_basic_filter/handler.d.ts +5 -0
  191. package/dist/sheets/methods/clear_basic_filter/handler.d.ts.map +1 -0
  192. package/dist/sheets/methods/clear_basic_filter/handler.js +8 -0
  193. package/dist/sheets/methods/clear_basic_filter/handler.js.map +1 -0
  194. package/dist/sheets/methods/clear_basic_filter/index.d.ts +7 -0
  195. package/dist/sheets/methods/clear_basic_filter/index.d.ts.map +1 -0
  196. package/dist/sheets/methods/clear_basic_filter/index.js +16 -0
  197. package/dist/sheets/methods/clear_basic_filter/index.js.map +1 -0
  198. package/dist/sheets/methods/clear_basic_filter/schema.d.ts +11 -0
  199. package/dist/sheets/methods/clear_basic_filter/schema.d.ts.map +1 -0
  200. package/dist/sheets/methods/clear_basic_filter/schema.js +11 -0
  201. package/dist/sheets/methods/clear_basic_filter/schema.js.map +1 -0
  202. package/dist/sheets/methods/clear_data_validation/handler.d.ts +5 -0
  203. package/dist/sheets/methods/clear_data_validation/handler.d.ts.map +1 -0
  204. package/dist/sheets/methods/clear_data_validation/handler.js +12 -0
  205. package/dist/sheets/methods/clear_data_validation/handler.js.map +1 -0
  206. package/dist/sheets/methods/clear_data_validation/index.d.ts +19 -0
  207. package/dist/sheets/methods/clear_data_validation/index.d.ts.map +1 -0
  208. package/dist/sheets/methods/clear_data_validation/index.js +21 -0
  209. package/dist/sheets/methods/clear_data_validation/index.js.map +1 -0
  210. package/dist/sheets/methods/clear_data_validation/schema.d.ts +19 -0
  211. package/dist/sheets/methods/clear_data_validation/schema.d.ts.map +1 -0
  212. package/dist/sheets/methods/clear_data_validation/schema.js +17 -0
  213. package/dist/sheets/methods/clear_data_validation/schema.js.map +1 -0
  214. package/dist/sheets/methods/copy_paste/handler.d.ts +5 -0
  215. package/dist/sheets/methods/copy_paste/handler.d.ts.map +1 -0
  216. package/dist/sheets/methods/copy_paste/handler.js +14 -0
  217. package/dist/sheets/methods/copy_paste/handler.js.map +1 -0
  218. package/dist/sheets/methods/copy_paste/index.d.ts +33 -0
  219. package/dist/sheets/methods/copy_paste/index.d.ts.map +1 -0
  220. package/dist/sheets/methods/copy_paste/index.js +16 -0
  221. package/dist/sheets/methods/copy_paste/index.js.map +1 -0
  222. package/dist/sheets/methods/copy_paste/schema.d.ts +37 -0
  223. package/dist/sheets/methods/copy_paste/schema.d.ts.map +1 -0
  224. package/dist/sheets/methods/copy_paste/schema.js +17 -0
  225. package/dist/sheets/methods/copy_paste/schema.js.map +1 -0
  226. package/dist/sheets/methods/create_spreadsheet/index.d.ts +315 -0
  227. package/dist/sheets/methods/create_spreadsheet/index.d.ts.map +1 -1
  228. package/dist/sheets/methods/create_spreadsheet/schema.d.ts +315 -0
  229. package/dist/sheets/methods/create_spreadsheet/schema.d.ts.map +1 -1
  230. package/dist/sheets/methods/cut_paste/handler.d.ts +5 -0
  231. package/dist/sheets/methods/cut_paste/handler.d.ts.map +1 -0
  232. package/dist/sheets/methods/cut_paste/handler.js +13 -0
  233. package/dist/sheets/methods/cut_paste/handler.js.map +1 -0
  234. package/dist/sheets/methods/cut_paste/index.d.ts +27 -0
  235. package/dist/sheets/methods/cut_paste/index.d.ts.map +1 -0
  236. package/dist/sheets/methods/cut_paste/index.js +16 -0
  237. package/dist/sheets/methods/cut_paste/index.js.map +1 -0
  238. package/dist/sheets/methods/cut_paste/schema.d.ts +31 -0
  239. package/dist/sheets/methods/cut_paste/schema.d.ts.map +1 -0
  240. package/dist/sheets/methods/cut_paste/schema.js +16 -0
  241. package/dist/sheets/methods/cut_paste/schema.js.map +1 -0
  242. package/dist/sheets/methods/delete_conditional_format_rule/handler.d.ts +5 -0
  243. package/dist/sheets/methods/delete_conditional_format_rule/handler.d.ts.map +1 -0
  244. package/dist/sheets/methods/delete_conditional_format_rule/handler.js +8 -0
  245. package/dist/sheets/methods/delete_conditional_format_rule/handler.js.map +1 -0
  246. package/dist/sheets/methods/delete_conditional_format_rule/index.d.ts +16 -0
  247. package/dist/sheets/methods/delete_conditional_format_rule/index.d.ts.map +1 -0
  248. package/dist/sheets/methods/delete_conditional_format_rule/index.js +23 -0
  249. package/dist/sheets/methods/delete_conditional_format_rule/index.js.map +1 -0
  250. package/dist/sheets/methods/delete_conditional_format_rule/schema.d.ts +14 -0
  251. package/dist/sheets/methods/delete_conditional_format_rule/schema.d.ts.map +1 -0
  252. package/dist/sheets/methods/delete_conditional_format_rule/schema.js +16 -0
  253. package/dist/sheets/methods/delete_conditional_format_rule/schema.js.map +1 -0
  254. package/dist/sheets/methods/delete_duplicates/handler.d.ts +5 -0
  255. package/dist/sheets/methods/delete_duplicates/handler.d.ts.map +1 -0
  256. package/dist/sheets/methods/delete_duplicates/handler.js +20 -0
  257. package/dist/sheets/methods/delete_duplicates/handler.js.map +1 -0
  258. package/dist/sheets/methods/delete_duplicates/index.d.ts +23 -0
  259. package/dist/sheets/methods/delete_duplicates/index.d.ts.map +1 -0
  260. package/dist/sheets/methods/delete_duplicates/index.js +16 -0
  261. package/dist/sheets/methods/delete_duplicates/index.js.map +1 -0
  262. package/dist/sheets/methods/delete_duplicates/schema.d.ts +27 -0
  263. package/dist/sheets/methods/delete_duplicates/schema.d.ts.map +1 -0
  264. package/dist/sheets/methods/delete_duplicates/schema.js +18 -0
  265. package/dist/sheets/methods/delete_duplicates/schema.js.map +1 -0
  266. package/dist/sheets/methods/delete_filter_view/handler.d.ts +5 -0
  267. package/dist/sheets/methods/delete_filter_view/handler.d.ts.map +1 -0
  268. package/dist/sheets/methods/delete_filter_view/handler.js +8 -0
  269. package/dist/sheets/methods/delete_filter_view/handler.js.map +1 -0
  270. package/dist/sheets/methods/delete_filter_view/index.d.ts +7 -0
  271. package/dist/sheets/methods/delete_filter_view/index.d.ts.map +1 -0
  272. package/dist/sheets/methods/delete_filter_view/index.js +16 -0
  273. package/dist/sheets/methods/delete_filter_view/index.js.map +1 -0
  274. package/dist/sheets/methods/delete_filter_view/schema.d.ts +11 -0
  275. package/dist/sheets/methods/delete_filter_view/schema.d.ts.map +1 -0
  276. package/dist/sheets/methods/delete_filter_view/schema.js +15 -0
  277. package/dist/sheets/methods/delete_filter_view/schema.js.map +1 -0
  278. package/dist/sheets/methods/delete_protected_range/handler.d.ts +5 -0
  279. package/dist/sheets/methods/delete_protected_range/handler.d.ts.map +1 -0
  280. package/dist/sheets/methods/delete_protected_range/handler.js +8 -0
  281. package/dist/sheets/methods/delete_protected_range/handler.js.map +1 -0
  282. package/dist/sheets/methods/delete_protected_range/index.d.ts +13 -0
  283. package/dist/sheets/methods/delete_protected_range/index.d.ts.map +1 -0
  284. package/dist/sheets/methods/delete_protected_range/index.js +21 -0
  285. package/dist/sheets/methods/delete_protected_range/index.js.map +1 -0
  286. package/dist/sheets/methods/delete_protected_range/schema.d.ts +13 -0
  287. package/dist/sheets/methods/delete_protected_range/schema.d.ts.map +1 -0
  288. package/dist/sheets/methods/delete_protected_range/schema.js +15 -0
  289. package/dist/sheets/methods/delete_protected_range/schema.js.map +1 -0
  290. package/dist/sheets/methods/delete_range/handler.d.ts +5 -0
  291. package/dist/sheets/methods/delete_range/handler.d.ts.map +1 -0
  292. package/dist/sheets/methods/delete_range/handler.js +9 -0
  293. package/dist/sheets/methods/delete_range/handler.js.map +1 -0
  294. package/dist/sheets/methods/delete_range/index.d.ts +18 -0
  295. package/dist/sheets/methods/delete_range/index.d.ts.map +1 -0
  296. package/dist/sheets/methods/delete_range/index.js +17 -0
  297. package/dist/sheets/methods/delete_range/index.js.map +1 -0
  298. package/dist/sheets/methods/delete_range/schema.d.ts +21 -0
  299. package/dist/sheets/methods/delete_range/schema.d.ts.map +1 -0
  300. package/dist/sheets/methods/delete_range/schema.js +14 -0
  301. package/dist/sheets/methods/delete_range/schema.js.map +1 -0
  302. package/dist/sheets/methods/duplicate_filter_view/handler.d.ts +5 -0
  303. package/dist/sheets/methods/duplicate_filter_view/handler.d.ts.map +1 -0
  304. package/dist/sheets/methods/duplicate_filter_view/handler.js +18 -0
  305. package/dist/sheets/methods/duplicate_filter_view/handler.js.map +1 -0
  306. package/dist/sheets/methods/duplicate_filter_view/index.d.ts +107 -0
  307. package/dist/sheets/methods/duplicate_filter_view/index.d.ts.map +1 -0
  308. package/dist/sheets/methods/duplicate_filter_view/index.js +16 -0
  309. package/dist/sheets/methods/duplicate_filter_view/index.js.map +1 -0
  310. package/dist/sheets/methods/duplicate_filter_view/schema.d.ts +111 -0
  311. package/dist/sheets/methods/duplicate_filter_view/schema.d.ts.map +1 -0
  312. package/dist/sheets/methods/duplicate_filter_view/schema.js +14 -0
  313. package/dist/sheets/methods/duplicate_filter_view/schema.js.map +1 -0
  314. package/dist/sheets/methods/find_replace/handler.d.ts +5 -0
  315. package/dist/sheets/methods/find_replace/handler.d.ts.map +1 -0
  316. package/dist/sheets/methods/find_replace/handler.js +31 -0
  317. package/dist/sheets/methods/find_replace/handler.js.map +1 -0
  318. package/dist/sheets/methods/find_replace/index.d.ts +27 -0
  319. package/dist/sheets/methods/find_replace/index.d.ts.map +1 -0
  320. package/dist/sheets/methods/find_replace/index.js +17 -0
  321. package/dist/sheets/methods/find_replace/index.js.map +1 -0
  322. package/dist/sheets/methods/find_replace/schema.d.ts +30 -0
  323. package/dist/sheets/methods/find_replace/schema.d.ts.map +1 -0
  324. package/dist/sheets/methods/find_replace/schema.js +44 -0
  325. package/dist/sheets/methods/find_replace/schema.js.map +1 -0
  326. package/dist/sheets/methods/get_spreadsheet/index.d.ts +323 -4
  327. package/dist/sheets/methods/get_spreadsheet/index.d.ts.map +1 -1
  328. package/dist/sheets/methods/get_spreadsheet/index.js +9 -5
  329. package/dist/sheets/methods/get_spreadsheet/index.js.map +1 -1
  330. package/dist/sheets/methods/get_spreadsheet/schema.d.ts +315 -0
  331. package/dist/sheets/methods/get_spreadsheet/schema.d.ts.map +1 -1
  332. package/dist/sheets/methods/insert_range/handler.d.ts +5 -0
  333. package/dist/sheets/methods/insert_range/handler.d.ts.map +1 -0
  334. package/dist/sheets/methods/insert_range/handler.js +9 -0
  335. package/dist/sheets/methods/insert_range/handler.js.map +1 -0
  336. package/dist/sheets/methods/insert_range/index.d.ts +18 -0
  337. package/dist/sheets/methods/insert_range/index.d.ts.map +1 -0
  338. package/dist/sheets/methods/insert_range/index.js +17 -0
  339. package/dist/sheets/methods/insert_range/index.js.map +1 -0
  340. package/dist/sheets/methods/insert_range/schema.d.ts +21 -0
  341. package/dist/sheets/methods/insert_range/schema.d.ts.map +1 -0
  342. package/dist/sheets/methods/insert_range/schema.js +14 -0
  343. package/dist/sheets/methods/insert_range/schema.js.map +1 -0
  344. package/dist/sheets/methods/merge_cells/handler.d.ts +5 -0
  345. package/dist/sheets/methods/merge_cells/handler.d.ts.map +1 -0
  346. package/dist/sheets/methods/merge_cells/handler.js +12 -0
  347. package/dist/sheets/methods/merge_cells/handler.js.map +1 -0
  348. package/dist/sheets/methods/merge_cells/index.d.ts +23 -0
  349. package/dist/sheets/methods/merge_cells/index.d.ts.map +1 -0
  350. package/dist/sheets/methods/merge_cells/index.js +21 -0
  351. package/dist/sheets/methods/merge_cells/index.js.map +1 -0
  352. package/dist/sheets/methods/merge_cells/schema.d.ts +23 -0
  353. package/dist/sheets/methods/merge_cells/schema.d.ts.map +1 -0
  354. package/dist/sheets/methods/merge_cells/schema.js +16 -0
  355. package/dist/sheets/methods/merge_cells/schema.js.map +1 -0
  356. package/dist/sheets/methods/move_conditional_format_rule/handler.d.ts +5 -0
  357. package/dist/sheets/methods/move_conditional_format_rule/handler.d.ts.map +1 -0
  358. package/dist/sheets/methods/move_conditional_format_rule/handler.js +18 -0
  359. package/dist/sheets/methods/move_conditional_format_rule/handler.js.map +1 -0
  360. package/dist/sheets/methods/move_conditional_format_rule/index.d.ts +17 -0
  361. package/dist/sheets/methods/move_conditional_format_rule/index.d.ts.map +1 -0
  362. package/dist/sheets/methods/move_conditional_format_rule/index.js +22 -0
  363. package/dist/sheets/methods/move_conditional_format_rule/index.js.map +1 -0
  364. package/dist/sheets/methods/move_conditional_format_rule/schema.d.ts +16 -0
  365. package/dist/sheets/methods/move_conditional_format_rule/schema.d.ts.map +1 -0
  366. package/dist/sheets/methods/move_conditional_format_rule/schema.js +24 -0
  367. package/dist/sheets/methods/move_conditional_format_rule/schema.js.map +1 -0
  368. package/dist/sheets/methods/randomize_range/handler.d.ts +5 -0
  369. package/dist/sheets/methods/randomize_range/handler.d.ts.map +1 -0
  370. package/dist/sheets/methods/randomize_range/handler.js +9 -0
  371. package/dist/sheets/methods/randomize_range/handler.js.map +1 -0
  372. package/dist/sheets/methods/randomize_range/index.d.ts +14 -0
  373. package/dist/sheets/methods/randomize_range/index.d.ts.map +1 -0
  374. package/dist/sheets/methods/randomize_range/index.js +17 -0
  375. package/dist/sheets/methods/randomize_range/index.js.map +1 -0
  376. package/dist/sheets/methods/randomize_range/schema.d.ts +17 -0
  377. package/dist/sheets/methods/randomize_range/schema.d.ts.map +1 -0
  378. package/dist/sheets/methods/randomize_range/schema.js +12 -0
  379. package/dist/sheets/methods/randomize_range/schema.js.map +1 -0
  380. package/dist/sheets/methods/registry.d.ts +2144 -0
  381. package/dist/sheets/methods/registry.d.ts.map +1 -1
  382. package/dist/sheets/methods/registry.js +63 -0
  383. package/dist/sheets/methods/registry.js.map +1 -1
  384. package/dist/sheets/methods/repeat_cell/index.d.ts +6 -1
  385. package/dist/sheets/methods/repeat_cell/index.d.ts.map +1 -1
  386. package/dist/sheets/methods/repeat_cell/index.js +3 -1
  387. package/dist/sheets/methods/repeat_cell/index.js.map +1 -1
  388. package/dist/sheets/methods/repeat_cell/schema.d.ts +3 -0
  389. package/dist/sheets/methods/repeat_cell/schema.d.ts.map +1 -1
  390. package/dist/sheets/methods/set_basic_filter/handler.d.ts +5 -0
  391. package/dist/sheets/methods/set_basic_filter/handler.d.ts.map +1 -0
  392. package/dist/sheets/methods/set_basic_filter/handler.js +9 -0
  393. package/dist/sheets/methods/set_basic_filter/handler.js.map +1 -0
  394. package/dist/sheets/methods/set_basic_filter/index.d.ts +109 -0
  395. package/dist/sheets/methods/set_basic_filter/index.d.ts.map +1 -0
  396. package/dist/sheets/methods/set_basic_filter/index.js +16 -0
  397. package/dist/sheets/methods/set_basic_filter/index.js.map +1 -0
  398. package/dist/sheets/methods/set_basic_filter/schema.d.ts +113 -0
  399. package/dist/sheets/methods/set_basic_filter/schema.d.ts.map +1 -0
  400. package/dist/sheets/methods/set_basic_filter/schema.js +12 -0
  401. package/dist/sheets/methods/set_basic_filter/schema.js.map +1 -0
  402. package/dist/sheets/methods/set_data_validation/handler.d.ts +5 -0
  403. package/dist/sheets/methods/set_data_validation/handler.d.ts.map +1 -0
  404. package/dist/sheets/methods/set_data_validation/handler.js +14 -0
  405. package/dist/sheets/methods/set_data_validation/handler.js.map +1 -0
  406. package/dist/sheets/methods/set_data_validation/index.d.ts +70 -0
  407. package/dist/sheets/methods/set_data_validation/index.d.ts.map +1 -0
  408. package/dist/sheets/methods/set_data_validation/index.js +22 -0
  409. package/dist/sheets/methods/set_data_validation/index.js.map +1 -0
  410. package/dist/sheets/methods/set_data_validation/schema.d.ts +69 -0
  411. package/dist/sheets/methods/set_data_validation/schema.d.ts.map +1 -0
  412. package/dist/sheets/methods/set_data_validation/schema.js +19 -0
  413. package/dist/sheets/methods/set_data_validation/schema.js.map +1 -0
  414. package/dist/sheets/methods/sort_range/handler.d.ts +5 -0
  415. package/dist/sheets/methods/sort_range/handler.d.ts.map +1 -0
  416. package/dist/sheets/methods/sort_range/handler.js +10 -0
  417. package/dist/sheets/methods/sort_range/handler.js.map +1 -0
  418. package/dist/sheets/methods/sort_range/index.d.ts +21 -0
  419. package/dist/sheets/methods/sort_range/index.d.ts.map +1 -0
  420. package/dist/sheets/methods/sort_range/index.js +17 -0
  421. package/dist/sheets/methods/sort_range/index.js.map +1 -0
  422. package/dist/sheets/methods/sort_range/schema.d.ts +24 -0
  423. package/dist/sheets/methods/sort_range/schema.d.ts.map +1 -0
  424. package/dist/sheets/methods/sort_range/schema.js +17 -0
  425. package/dist/sheets/methods/sort_range/schema.js.map +1 -0
  426. package/dist/sheets/methods/text_to_columns/handler.d.ts +5 -0
  427. package/dist/sheets/methods/text_to_columns/handler.d.ts.map +1 -0
  428. package/dist/sheets/methods/text_to_columns/handler.js +19 -0
  429. package/dist/sheets/methods/text_to_columns/handler.js.map +1 -0
  430. package/dist/sheets/methods/text_to_columns/index.d.ts +22 -0
  431. package/dist/sheets/methods/text_to_columns/index.d.ts.map +1 -0
  432. package/dist/sheets/methods/text_to_columns/index.js +16 -0
  433. package/dist/sheets/methods/text_to_columns/index.js.map +1 -0
  434. package/dist/sheets/methods/text_to_columns/schema.d.ts +26 -0
  435. package/dist/sheets/methods/text_to_columns/schema.d.ts.map +1 -0
  436. package/dist/sheets/methods/text_to_columns/schema.js +22 -0
  437. package/dist/sheets/methods/text_to_columns/schema.js.map +1 -0
  438. package/dist/sheets/methods/trim_whitespace/handler.d.ts +5 -0
  439. package/dist/sheets/methods/trim_whitespace/handler.d.ts.map +1 -0
  440. package/dist/sheets/methods/trim_whitespace/handler.js +12 -0
  441. package/dist/sheets/methods/trim_whitespace/handler.js.map +1 -0
  442. package/dist/sheets/methods/trim_whitespace/index.d.ts +14 -0
  443. package/dist/sheets/methods/trim_whitespace/index.d.ts.map +1 -0
  444. package/dist/sheets/methods/trim_whitespace/index.js +16 -0
  445. package/dist/sheets/methods/trim_whitespace/index.js.map +1 -0
  446. package/dist/sheets/methods/trim_whitespace/schema.d.ts +18 -0
  447. package/dist/sheets/methods/trim_whitespace/schema.d.ts.map +1 -0
  448. package/dist/sheets/methods/trim_whitespace/schema.js +13 -0
  449. package/dist/sheets/methods/trim_whitespace/schema.js.map +1 -0
  450. package/dist/sheets/methods/unmerge_cells/handler.d.ts +5 -0
  451. package/dist/sheets/methods/unmerge_cells/handler.d.ts.map +1 -0
  452. package/dist/sheets/methods/unmerge_cells/handler.js +9 -0
  453. package/dist/sheets/methods/unmerge_cells/handler.js.map +1 -0
  454. package/dist/sheets/methods/unmerge_cells/index.d.ts +17 -0
  455. package/dist/sheets/methods/unmerge_cells/index.d.ts.map +1 -0
  456. package/dist/sheets/methods/unmerge_cells/index.js +20 -0
  457. package/dist/sheets/methods/unmerge_cells/index.js.map +1 -0
  458. package/dist/sheets/methods/unmerge_cells/schema.d.ts +18 -0
  459. package/dist/sheets/methods/unmerge_cells/schema.d.ts.map +1 -0
  460. package/dist/sheets/methods/unmerge_cells/schema.js +13 -0
  461. package/dist/sheets/methods/unmerge_cells/schema.js.map +1 -0
  462. package/dist/sheets/methods/update_cells/handler.d.ts +5 -0
  463. package/dist/sheets/methods/update_cells/handler.d.ts.map +1 -0
  464. package/dist/sheets/methods/update_cells/handler.js +22 -0
  465. package/dist/sheets/methods/update_cells/handler.js.map +1 -0
  466. package/dist/sheets/methods/update_cells/index.d.ts +148 -0
  467. package/dist/sheets/methods/update_cells/index.d.ts.map +1 -0
  468. package/dist/sheets/methods/update_cells/index.js +24 -0
  469. package/dist/sheets/methods/update_cells/index.js.map +1 -0
  470. package/dist/sheets/methods/update_cells/schema.d.ts +145 -0
  471. package/dist/sheets/methods/update_cells/schema.d.ts.map +1 -0
  472. package/dist/sheets/methods/update_cells/schema.js +25 -0
  473. package/dist/sheets/methods/update_cells/schema.js.map +1 -0
  474. package/dist/sheets/methods/update_conditional_format_rule/handler.d.ts +5 -0
  475. package/dist/sheets/methods/update_conditional_format_rule/handler.d.ts.map +1 -0
  476. package/dist/sheets/methods/update_conditional_format_rule/handler.js +17 -0
  477. package/dist/sheets/methods/update_conditional_format_rule/handler.js.map +1 -0
  478. package/dist/sheets/methods/update_conditional_format_rule/index.d.ts +201 -0
  479. package/dist/sheets/methods/update_conditional_format_rule/index.d.ts.map +1 -0
  480. package/dist/sheets/methods/update_conditional_format_rule/index.js +24 -0
  481. package/dist/sheets/methods/update_conditional_format_rule/index.js.map +1 -0
  482. package/dist/sheets/methods/update_conditional_format_rule/schema.d.ts +198 -0
  483. package/dist/sheets/methods/update_conditional_format_rule/schema.d.ts.map +1 -0
  484. package/dist/sheets/methods/update_conditional_format_rule/schema.js +19 -0
  485. package/dist/sheets/methods/update_conditional_format_rule/schema.js.map +1 -0
  486. package/dist/sheets/methods/update_filter_view/handler.d.ts +5 -0
  487. package/dist/sheets/methods/update_filter_view/handler.d.ts.map +1 -0
  488. package/dist/sheets/methods/update_filter_view/handler.js +16 -0
  489. package/dist/sheets/methods/update_filter_view/handler.js.map +1 -0
  490. package/dist/sheets/methods/update_filter_view/index.d.ts +113 -0
  491. package/dist/sheets/methods/update_filter_view/index.d.ts.map +1 -0
  492. package/dist/sheets/methods/update_filter_view/index.js +17 -0
  493. package/dist/sheets/methods/update_filter_view/index.js.map +1 -0
  494. package/dist/sheets/methods/update_filter_view/schema.d.ts +116 -0
  495. package/dist/sheets/methods/update_filter_view/schema.d.ts.map +1 -0
  496. package/dist/sheets/methods/update_filter_view/schema.js +30 -0
  497. package/dist/sheets/methods/update_filter_view/schema.js.map +1 -0
  498. package/dist/sheets/methods/update_protected_range/handler.d.ts +5 -0
  499. package/dist/sheets/methods/update_protected_range/handler.d.ts.map +1 -0
  500. package/dist/sheets/methods/update_protected_range/handler.js +31 -0
  501. package/dist/sheets/methods/update_protected_range/handler.js.map +1 -0
  502. package/dist/sheets/methods/update_protected_range/index.d.ts +38 -0
  503. package/dist/sheets/methods/update_protected_range/index.d.ts.map +1 -0
  504. package/dist/sheets/methods/update_protected_range/index.js +23 -0
  505. package/dist/sheets/methods/update_protected_range/index.js.map +1 -0
  506. package/dist/sheets/methods/update_protected_range/schema.d.ts +36 -0
  507. package/dist/sheets/methods/update_protected_range/schema.d.ts.map +1 -0
  508. package/dist/sheets/methods/update_protected_range/schema.js +33 -0
  509. package/dist/sheets/methods/update_protected_range/schema.js.map +1 -0
  510. package/package.json +1 -1
@@ -0,0 +1,131 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * One cell's writable content: its value, note, format, and rich text runs.
4
+ * A curated projection of the REST `CellData`: the read-only fields
5
+ * (effective value and format, formatted value, hyperlink), data validation
6
+ * (which travels through `set_data_validation`), and pivot tables, chip
7
+ * runs, and data-source fields are not carried.
8
+ *
9
+ * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/cells#CellData
10
+ */
11
+ export declare const CellData: z.ZodObject<{
12
+ userEnteredValue: z.ZodOptional<z.ZodObject<{
13
+ stringValue: z.ZodOptional<z.ZodString>;
14
+ numberValue: z.ZodOptional<z.ZodNumber>;
15
+ boolValue: z.ZodOptional<z.ZodBoolean>;
16
+ formulaValue: z.ZodOptional<z.ZodString>;
17
+ }, z.core.$strict>>;
18
+ note: z.ZodOptional<z.ZodString>;
19
+ userEnteredFormat: z.ZodOptional<z.ZodObject<{
20
+ numberFormat: z.ZodOptional<z.ZodObject<{
21
+ type: z.ZodEnum<{
22
+ CURRENCY: "CURRENCY";
23
+ DATE: "DATE";
24
+ DATE_TIME: "DATE_TIME";
25
+ NUMBER: "NUMBER";
26
+ PERCENT: "PERCENT";
27
+ SCIENTIFIC: "SCIENTIFIC";
28
+ TEXT: "TEXT";
29
+ TIME: "TIME";
30
+ }>;
31
+ pattern: z.ZodOptional<z.ZodString>;
32
+ }, z.core.$strict>>;
33
+ backgroundColorStyle: z.ZodOptional<z.ZodObject<{
34
+ rgbColor: z.ZodOptional<z.ZodObject<{
35
+ red: z.ZodOptional<z.ZodNumber>;
36
+ green: z.ZodOptional<z.ZodNumber>;
37
+ blue: z.ZodOptional<z.ZodNumber>;
38
+ }, z.core.$strict>>;
39
+ themeColor: z.ZodOptional<z.ZodEnum<{
40
+ ACCENT1: "ACCENT1";
41
+ ACCENT2: "ACCENT2";
42
+ ACCENT3: "ACCENT3";
43
+ ACCENT4: "ACCENT4";
44
+ ACCENT5: "ACCENT5";
45
+ ACCENT6: "ACCENT6";
46
+ BACKGROUND: "BACKGROUND";
47
+ LINK: "LINK";
48
+ TEXT: "TEXT";
49
+ }>>;
50
+ }, z.core.$strict>>;
51
+ textFormat: z.ZodOptional<z.ZodObject<{
52
+ foregroundColorStyle: z.ZodOptional<z.ZodObject<{
53
+ rgbColor: z.ZodOptional<z.ZodObject<{
54
+ red: z.ZodOptional<z.ZodNumber>;
55
+ green: z.ZodOptional<z.ZodNumber>;
56
+ blue: z.ZodOptional<z.ZodNumber>;
57
+ }, z.core.$strict>>;
58
+ themeColor: z.ZodOptional<z.ZodEnum<{
59
+ ACCENT1: "ACCENT1";
60
+ ACCENT2: "ACCENT2";
61
+ ACCENT3: "ACCENT3";
62
+ ACCENT4: "ACCENT4";
63
+ ACCENT5: "ACCENT5";
64
+ ACCENT6: "ACCENT6";
65
+ BACKGROUND: "BACKGROUND";
66
+ LINK: "LINK";
67
+ TEXT: "TEXT";
68
+ }>>;
69
+ }, z.core.$strict>>;
70
+ fontFamily: z.ZodOptional<z.ZodString>;
71
+ fontSize: z.ZodOptional<z.ZodNumber>;
72
+ bold: z.ZodOptional<z.ZodBoolean>;
73
+ italic: z.ZodOptional<z.ZodBoolean>;
74
+ strikethrough: z.ZodOptional<z.ZodBoolean>;
75
+ underline: z.ZodOptional<z.ZodBoolean>;
76
+ link: z.ZodOptional<z.ZodObject<{
77
+ uri: z.ZodString;
78
+ }, z.core.$strict>>;
79
+ }, z.core.$strict>>;
80
+ horizontalAlignment: z.ZodOptional<z.ZodEnum<{
81
+ CENTER: "CENTER";
82
+ LEFT: "LEFT";
83
+ RIGHT: "RIGHT";
84
+ }>>;
85
+ verticalAlignment: z.ZodOptional<z.ZodEnum<{
86
+ BOTTOM: "BOTTOM";
87
+ MIDDLE: "MIDDLE";
88
+ TOP: "TOP";
89
+ }>>;
90
+ wrapStrategy: z.ZodOptional<z.ZodEnum<{
91
+ CLIP: "CLIP";
92
+ LEGACY_WRAP: "LEGACY_WRAP";
93
+ OVERFLOW_CELL: "OVERFLOW_CELL";
94
+ WRAP: "WRAP";
95
+ }>>;
96
+ }, z.core.$strict>>;
97
+ textFormatRuns: z.ZodOptional<z.ZodArray<z.ZodObject<{
98
+ startIndex: z.ZodNumber;
99
+ format: z.ZodObject<{
100
+ foregroundColorStyle: z.ZodOptional<z.ZodObject<{
101
+ rgbColor: z.ZodOptional<z.ZodObject<{
102
+ red: z.ZodOptional<z.ZodNumber>;
103
+ green: z.ZodOptional<z.ZodNumber>;
104
+ blue: z.ZodOptional<z.ZodNumber>;
105
+ }, z.core.$strict>>;
106
+ themeColor: z.ZodOptional<z.ZodEnum<{
107
+ ACCENT1: "ACCENT1";
108
+ ACCENT2: "ACCENT2";
109
+ ACCENT3: "ACCENT3";
110
+ ACCENT4: "ACCENT4";
111
+ ACCENT5: "ACCENT5";
112
+ ACCENT6: "ACCENT6";
113
+ BACKGROUND: "BACKGROUND";
114
+ LINK: "LINK";
115
+ TEXT: "TEXT";
116
+ }>>;
117
+ }, z.core.$strict>>;
118
+ fontFamily: z.ZodOptional<z.ZodString>;
119
+ fontSize: z.ZodOptional<z.ZodNumber>;
120
+ bold: z.ZodOptional<z.ZodBoolean>;
121
+ italic: z.ZodOptional<z.ZodBoolean>;
122
+ strikethrough: z.ZodOptional<z.ZodBoolean>;
123
+ underline: z.ZodOptional<z.ZodBoolean>;
124
+ link: z.ZodOptional<z.ZodObject<{
125
+ uri: z.ZodString;
126
+ }, z.core.$strict>>;
127
+ }, z.core.$strict>;
128
+ }, z.core.$strict>>>;
129
+ }, z.core.$strict>;
130
+ export type CellData = z.infer<typeof CellData>;
131
+ //# sourceMappingURL=CellData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CellData.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/CellData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAcnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { z } from 'zod';
2
+ import { CellFormat } from './CellFormat.js';
3
+ import { ExtendedValue } from './ExtendedValue.js';
4
+ import { TextFormatRun } from './TextFormatRun.js';
5
+ /**
6
+ * One cell's writable content: its value, note, format, and rich text runs.
7
+ * A curated projection of the REST `CellData`: the read-only fields
8
+ * (effective value and format, formatted value, hyperlink), data validation
9
+ * (which travels through `set_data_validation`), and pivot tables, chip
10
+ * runs, and data-source fields are not carried.
11
+ *
12
+ * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/cells#CellData
13
+ */
14
+ export const CellData = z.strictObject({
15
+ userEnteredValue: ExtendedValue.optional().describe('The value of the cell: at most one of stringValue, numberValue, boolValue, or formulaValue, or empty to clear the value. Writing a new value erases any previous text format runs.'),
16
+ note: z.string().optional().describe('A note on the cell.'),
17
+ userEnteredFormat: CellFormat.optional().describe('The format of the cell; only the format fields provided somewhere in the write are changed, and an untouched format field is never reset.'),
18
+ textFormatRuns: z
19
+ .array(TextFormatRun)
20
+ .optional()
21
+ .describe("Runs of rich text over the cell's string value (per-run bold, color, font, or link, so one cell can mix formats or carry a hyperlink); new runs replace all prior runs."),
22
+ });
23
+ //# sourceMappingURL=CellData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CellData.js","sourceRoot":"","sources":["../../../src/sheets/entities/CellData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,YAAY,CAAC;IACrC,gBAAgB,EAAE,aAAa,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACjD,oLAAoL,CACrL;IACD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAC3D,iBAAiB,EAAE,UAAU,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC/C,2IAA2I,CAC5I;IACD,cAAc,EAAE,CAAC;SACd,KAAK,CAAC,aAAa,CAAC;SACpB,QAAQ,EAAE;SACV,QAAQ,CACP,yKAAyK,CAC1K;CACJ,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { CellFormat } from './CellFormat.js';\nimport { ExtendedValue } from './ExtendedValue.js';\nimport { TextFormatRun } from './TextFormatRun.js';\n\n/**\n * One cell's writable content: its value, note, format, and rich text runs.\n * A curated projection of the REST `CellData`: the read-only fields\n * (effective value and format, formatted value, hyperlink), data validation\n * (which travels through `set_data_validation`), and pivot tables, chip\n * runs, and data-source fields are not carried.\n *\n * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/cells#CellData\n */\nexport const CellData = z.strictObject({\n userEnteredValue: ExtendedValue.optional().describe(\n 'The value of the cell: at most one of stringValue, numberValue, boolValue, or formulaValue, or empty to clear the value. Writing a new value erases any previous text format runs.',\n ),\n note: z.string().optional().describe('A note on the cell.'),\n userEnteredFormat: CellFormat.optional().describe(\n 'The format of the cell; only the format fields provided somewhere in the write are changed, and an untouched format field is never reset.',\n ),\n textFormatRuns: z\n .array(TextFormatRun)\n .optional()\n .describe(\n \"Runs of rich text over the cell's string value (per-run bold, color, font, or link, so one cell can mix formats or carry a hyperlink); new runs replace all prior runs.\",\n ),\n});\n\nexport type CellData = z.infer<typeof CellData>;\n"]}
@@ -64,6 +64,9 @@ export declare const CellFormat: z.ZodObject<{
64
64
  italic: z.ZodOptional<z.ZodBoolean>;
65
65
  strikethrough: z.ZodOptional<z.ZodBoolean>;
66
66
  underline: z.ZodOptional<z.ZodBoolean>;
67
+ link: z.ZodOptional<z.ZodObject<{
68
+ uri: z.ZodString;
69
+ }, z.core.$strict>>;
67
70
  }, z.core.$strict>>;
68
71
  horizontalAlignment: z.ZodOptional<z.ZodEnum<{
69
72
  CENTER: "CENTER";
@@ -1 +1 @@
1
- {"version":3,"file":"CellFormat.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/CellFormat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAoBrB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"CellFormat.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/CellFormat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAoBrB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * One value of a condition: either a literal (parsed as if typed into a
4
+ * cell, so formulas work) or a date relative to the current date. Provide
5
+ * exactly one of the two fields.
6
+ *
7
+ * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/other#ConditionValue
8
+ */
9
+ export declare const ConditionValue: z.ZodObject<{
10
+ relativeDate: z.ZodOptional<z.ZodEnum<{
11
+ PAST_MONTH: "PAST_MONTH";
12
+ PAST_WEEK: "PAST_WEEK";
13
+ PAST_YEAR: "PAST_YEAR";
14
+ TODAY: "TODAY";
15
+ TOMORROW: "TOMORROW";
16
+ YESTERDAY: "YESTERDAY";
17
+ }>>;
18
+ userEnteredValue: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$strict>;
20
+ export type ConditionValue = z.infer<typeof ConditionValue>;
21
+ //# sourceMappingURL=ConditionValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionValue.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/ConditionValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;kBAazB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * One value of a condition: either a literal (parsed as if typed into a
4
+ * cell, so formulas work) or a date relative to the current date. Provide
5
+ * exactly one of the two fields.
6
+ *
7
+ * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/other#ConditionValue
8
+ */
9
+ export const ConditionValue = z.strictObject({
10
+ relativeDate: z
11
+ .enum(['PAST_YEAR', 'PAST_MONTH', 'PAST_WEEK', 'YESTERDAY', 'TODAY', 'TOMORROW'])
12
+ .optional()
13
+ .describe('A date relative to the current date; provide this or userEnteredValue, not both. Valid only with date-comparison condition types in conditional formatting and filters, never in data validation; in practice that pairs it with DATE_BEFORE and DATE_AFTER (Google documents the ON_OR variants as data-validation types).'),
14
+ userEnteredValue: z
15
+ .string()
16
+ .optional()
17
+ .describe('A value the condition is based on; provide this or relativeDate, not both. Parsed as if the user typed it into a cell, so a value beginning with = or + becomes a live formula that executes in the sheet; do not pass untrusted text that starts with either. ONE_OF_LIST values do not support formulas.'),
18
+ });
19
+ //# sourceMappingURL=ConditionValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionValue.js","sourceRoot":"","sources":["../../../src/sheets/entities/ConditionValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,YAAY,EAAE,CAAC;SACZ,IAAI,CAAC,CAAC,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;SAChF,QAAQ,EAAE;SACV,QAAQ,CACP,6TAA6T,CAC9T;IACH,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,4SAA4S,CAC7S;CACJ,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * One value of a condition: either a literal (parsed as if typed into a\n * cell, so formulas work) or a date relative to the current date. Provide\n * exactly one of the two fields.\n *\n * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/other#ConditionValue\n */\nexport const ConditionValue = z.strictObject({\n relativeDate: z\n .enum(['PAST_YEAR', 'PAST_MONTH', 'PAST_WEEK', 'YESTERDAY', 'TODAY', 'TOMORROW'])\n .optional()\n .describe(\n 'A date relative to the current date; provide this or userEnteredValue, not both. Valid only with date-comparison condition types in conditional formatting and filters, never in data validation; in practice that pairs it with DATE_BEFORE and DATE_AFTER (Google documents the ON_OR variants as data-validation types).',\n ),\n userEnteredValue: z\n .string()\n .optional()\n .describe(\n 'A value the condition is based on; provide this or relativeDate, not both. Parsed as if the user typed it into a cell, so a value beginning with = or + becomes a live formula that executes in the sheet; do not pass untrusted text that starts with either. ONE_OF_LIST values do not support formulas.',\n ),\n});\n\nexport type ConditionValue = z.infer<typeof ConditionValue>;\n"]}
@@ -0,0 +1,197 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * A rule describing a conditional format: either a boolean rule (an on/off
4
+ * format gated on a condition) or a gradient rule (a continuous color scale).
5
+ * Provide exactly one of the two. Rules live per sheet in an ordered list
6
+ * and are addressed by index; earlier rules take precedence where rules
7
+ * overlap.
8
+ *
9
+ * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#ConditionalFormatRule
10
+ */
11
+ export declare const ConditionalFormatRule: z.ZodObject<{
12
+ ranges: z.ZodArray<z.ZodObject<{
13
+ sheetId: z.ZodOptional<z.ZodNumber>;
14
+ startRowIndex: z.ZodOptional<z.ZodNumber>;
15
+ endRowIndex: z.ZodOptional<z.ZodNumber>;
16
+ startColumnIndex: z.ZodOptional<z.ZodNumber>;
17
+ endColumnIndex: z.ZodOptional<z.ZodNumber>;
18
+ }, z.core.$strict>>;
19
+ booleanRule: z.ZodOptional<z.ZodObject<{
20
+ condition: z.ZodObject<{
21
+ type: z.ZodEnum<{
22
+ BLANK: "BLANK";
23
+ BOOLEAN: "BOOLEAN";
24
+ CUSTOM_FORMULA: "CUSTOM_FORMULA";
25
+ DATE_AFTER: "DATE_AFTER";
26
+ DATE_BEFORE: "DATE_BEFORE";
27
+ DATE_BETWEEN: "DATE_BETWEEN";
28
+ DATE_EQ: "DATE_EQ";
29
+ DATE_IS_VALID: "DATE_IS_VALID";
30
+ DATE_NOT_BETWEEN: "DATE_NOT_BETWEEN";
31
+ DATE_ON_OR_AFTER: "DATE_ON_OR_AFTER";
32
+ DATE_ON_OR_BEFORE: "DATE_ON_OR_BEFORE";
33
+ FILTER_EXPRESSION: "FILTER_EXPRESSION";
34
+ NOT_BLANK: "NOT_BLANK";
35
+ NUMBER_BETWEEN: "NUMBER_BETWEEN";
36
+ NUMBER_EQ: "NUMBER_EQ";
37
+ NUMBER_GREATER: "NUMBER_GREATER";
38
+ NUMBER_GREATER_THAN_EQ: "NUMBER_GREATER_THAN_EQ";
39
+ NUMBER_LESS: "NUMBER_LESS";
40
+ NUMBER_LESS_THAN_EQ: "NUMBER_LESS_THAN_EQ";
41
+ NUMBER_NOT_BETWEEN: "NUMBER_NOT_BETWEEN";
42
+ NUMBER_NOT_EQ: "NUMBER_NOT_EQ";
43
+ ONE_OF_LIST: "ONE_OF_LIST";
44
+ ONE_OF_RANGE: "ONE_OF_RANGE";
45
+ TEXT_CONTAINS: "TEXT_CONTAINS";
46
+ TEXT_ENDS_WITH: "TEXT_ENDS_WITH";
47
+ TEXT_EQ: "TEXT_EQ";
48
+ TEXT_IS_EMAIL: "TEXT_IS_EMAIL";
49
+ TEXT_IS_URL: "TEXT_IS_URL";
50
+ TEXT_NOT_CONTAINS: "TEXT_NOT_CONTAINS";
51
+ TEXT_STARTS_WITH: "TEXT_STARTS_WITH";
52
+ }>;
53
+ values: z.ZodOptional<z.ZodArray<z.ZodObject<{
54
+ relativeDate: z.ZodOptional<z.ZodEnum<{
55
+ PAST_MONTH: "PAST_MONTH";
56
+ PAST_WEEK: "PAST_WEEK";
57
+ PAST_YEAR: "PAST_YEAR";
58
+ TODAY: "TODAY";
59
+ TOMORROW: "TOMORROW";
60
+ YESTERDAY: "YESTERDAY";
61
+ }>>;
62
+ userEnteredValue: z.ZodOptional<z.ZodString>;
63
+ }, z.core.$strict>>>;
64
+ }, z.core.$strict>;
65
+ format: z.ZodObject<{
66
+ backgroundColorStyle: z.ZodOptional<z.ZodObject<{
67
+ rgbColor: z.ZodOptional<z.ZodObject<{
68
+ red: z.ZodOptional<z.ZodNumber>;
69
+ green: z.ZodOptional<z.ZodNumber>;
70
+ blue: z.ZodOptional<z.ZodNumber>;
71
+ }, z.core.$strict>>;
72
+ themeColor: z.ZodOptional<z.ZodEnum<{
73
+ ACCENT1: "ACCENT1";
74
+ ACCENT2: "ACCENT2";
75
+ ACCENT3: "ACCENT3";
76
+ ACCENT4: "ACCENT4";
77
+ ACCENT5: "ACCENT5";
78
+ ACCENT6: "ACCENT6";
79
+ BACKGROUND: "BACKGROUND";
80
+ LINK: "LINK";
81
+ TEXT: "TEXT";
82
+ }>>;
83
+ }, z.core.$strict>>;
84
+ textFormat: z.ZodOptional<z.ZodObject<{
85
+ foregroundColorStyle: z.ZodOptional<z.ZodObject<{
86
+ rgbColor: z.ZodOptional<z.ZodObject<{
87
+ red: z.ZodOptional<z.ZodNumber>;
88
+ green: z.ZodOptional<z.ZodNumber>;
89
+ blue: z.ZodOptional<z.ZodNumber>;
90
+ }, z.core.$strict>>;
91
+ themeColor: z.ZodOptional<z.ZodEnum<{
92
+ ACCENT1: "ACCENT1";
93
+ ACCENT2: "ACCENT2";
94
+ ACCENT3: "ACCENT3";
95
+ ACCENT4: "ACCENT4";
96
+ ACCENT5: "ACCENT5";
97
+ ACCENT6: "ACCENT6";
98
+ BACKGROUND: "BACKGROUND";
99
+ LINK: "LINK";
100
+ TEXT: "TEXT";
101
+ }>>;
102
+ }, z.core.$strict>>;
103
+ bold: z.ZodOptional<z.ZodBoolean>;
104
+ italic: z.ZodOptional<z.ZodBoolean>;
105
+ strikethrough: z.ZodOptional<z.ZodBoolean>;
106
+ }, z.core.$strict>>;
107
+ }, z.core.$strict>;
108
+ }, z.core.$strict>>;
109
+ gradientRule: z.ZodOptional<z.ZodObject<{
110
+ minpoint: z.ZodObject<{
111
+ colorStyle: z.ZodObject<{
112
+ rgbColor: z.ZodOptional<z.ZodObject<{
113
+ red: z.ZodOptional<z.ZodNumber>;
114
+ green: z.ZodOptional<z.ZodNumber>;
115
+ blue: z.ZodOptional<z.ZodNumber>;
116
+ }, z.core.$strict>>;
117
+ themeColor: z.ZodOptional<z.ZodEnum<{
118
+ ACCENT1: "ACCENT1";
119
+ ACCENT2: "ACCENT2";
120
+ ACCENT3: "ACCENT3";
121
+ ACCENT4: "ACCENT4";
122
+ ACCENT5: "ACCENT5";
123
+ ACCENT6: "ACCENT6";
124
+ BACKGROUND: "BACKGROUND";
125
+ LINK: "LINK";
126
+ TEXT: "TEXT";
127
+ }>>;
128
+ }, z.core.$strict>;
129
+ type: z.ZodEnum<{
130
+ MAX: "MAX";
131
+ MIN: "MIN";
132
+ NUMBER: "NUMBER";
133
+ PERCENT: "PERCENT";
134
+ PERCENTILE: "PERCENTILE";
135
+ }>;
136
+ value: z.ZodOptional<z.ZodString>;
137
+ }, z.core.$strict>;
138
+ midpoint: z.ZodOptional<z.ZodObject<{
139
+ colorStyle: z.ZodObject<{
140
+ rgbColor: z.ZodOptional<z.ZodObject<{
141
+ red: z.ZodOptional<z.ZodNumber>;
142
+ green: z.ZodOptional<z.ZodNumber>;
143
+ blue: z.ZodOptional<z.ZodNumber>;
144
+ }, z.core.$strict>>;
145
+ themeColor: z.ZodOptional<z.ZodEnum<{
146
+ ACCENT1: "ACCENT1";
147
+ ACCENT2: "ACCENT2";
148
+ ACCENT3: "ACCENT3";
149
+ ACCENT4: "ACCENT4";
150
+ ACCENT5: "ACCENT5";
151
+ ACCENT6: "ACCENT6";
152
+ BACKGROUND: "BACKGROUND";
153
+ LINK: "LINK";
154
+ TEXT: "TEXT";
155
+ }>>;
156
+ }, z.core.$strict>;
157
+ type: z.ZodEnum<{
158
+ MAX: "MAX";
159
+ MIN: "MIN";
160
+ NUMBER: "NUMBER";
161
+ PERCENT: "PERCENT";
162
+ PERCENTILE: "PERCENTILE";
163
+ }>;
164
+ value: z.ZodOptional<z.ZodString>;
165
+ }, z.core.$strict>>;
166
+ maxpoint: z.ZodObject<{
167
+ colorStyle: z.ZodObject<{
168
+ rgbColor: z.ZodOptional<z.ZodObject<{
169
+ red: z.ZodOptional<z.ZodNumber>;
170
+ green: z.ZodOptional<z.ZodNumber>;
171
+ blue: z.ZodOptional<z.ZodNumber>;
172
+ }, z.core.$strict>>;
173
+ themeColor: z.ZodOptional<z.ZodEnum<{
174
+ ACCENT1: "ACCENT1";
175
+ ACCENT2: "ACCENT2";
176
+ ACCENT3: "ACCENT3";
177
+ ACCENT4: "ACCENT4";
178
+ ACCENT5: "ACCENT5";
179
+ ACCENT6: "ACCENT6";
180
+ BACKGROUND: "BACKGROUND";
181
+ LINK: "LINK";
182
+ TEXT: "TEXT";
183
+ }>>;
184
+ }, z.core.$strict>;
185
+ type: z.ZodEnum<{
186
+ MAX: "MAX";
187
+ MIN: "MIN";
188
+ NUMBER: "NUMBER";
189
+ PERCENT: "PERCENT";
190
+ PERCENTILE: "PERCENTILE";
191
+ }>;
192
+ value: z.ZodOptional<z.ZodString>;
193
+ }, z.core.$strict>;
194
+ }, z.core.$strict>>;
195
+ }, z.core.$strict>;
196
+ export type ConditionalFormatRule = z.infer<typeof ConditionalFormatRule>;
197
+ //# sourceMappingURL=ConditionalFormatRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionalFormatRule.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/ConditionalFormatRule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAahC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { z } from 'zod';
2
+ import { BooleanRule } from './BooleanRule.js';
3
+ import { GradientRule } from './GradientRule.js';
4
+ import { GridRange } from './GridRange.js';
5
+ /**
6
+ * A rule describing a conditional format: either a boolean rule (an on/off
7
+ * format gated on a condition) or a gradient rule (a continuous color scale).
8
+ * Provide exactly one of the two. Rules live per sheet in an ordered list
9
+ * and are addressed by index; earlier rules take precedence where rules
10
+ * overlap.
11
+ *
12
+ * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#ConditionalFormatRule
13
+ */
14
+ export const ConditionalFormatRule = z.strictObject({
15
+ ranges: z
16
+ .array(GridRange)
17
+ .min(1)
18
+ .describe('The ranges that are formatted if the condition is true; all the ranges must be on the same grid.'),
19
+ booleanRule: BooleanRule.optional().describe('The formatting is either on or off according to the rule; provide this or gradientRule, not both.'),
20
+ gradientRule: GradientRule.optional().describe('The formatting varies based on the gradients in the rule; provide this or booleanRule, not both.'),
21
+ });
22
+ //# sourceMappingURL=ConditionalFormatRule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionalFormatRule.js","sourceRoot":"","sources":["../../../src/sheets/entities/ConditionalFormatRule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,YAAY,CAAC;IAClD,MAAM,EAAE,CAAC;SACN,KAAK,CAAC,SAAS,CAAC;SAChB,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,kGAAkG,CACnG;IACH,WAAW,EAAE,WAAW,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC1C,mGAAmG,CACpG;IACD,YAAY,EAAE,YAAY,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC5C,kGAAkG,CACnG;CACF,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { BooleanRule } from './BooleanRule.js';\nimport { GradientRule } from './GradientRule.js';\nimport { GridRange } from './GridRange.js';\n\n/**\n * A rule describing a conditional format: either a boolean rule (an on/off\n * format gated on a condition) or a gradient rule (a continuous color scale).\n * Provide exactly one of the two. Rules live per sheet in an ordered list\n * and are addressed by index; earlier rules take precedence where rules\n * overlap.\n *\n * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#ConditionalFormatRule\n */\nexport const ConditionalFormatRule = z.strictObject({\n ranges: z\n .array(GridRange)\n .min(1)\n .describe(\n 'The ranges that are formatted if the condition is true; all the ranges must be on the same grid.',\n ),\n booleanRule: BooleanRule.optional().describe(\n 'The formatting is either on or off according to the rule; provide this or gradientRule, not both.',\n ),\n gradientRule: GradientRule.optional().describe(\n 'The formatting varies based on the gradients in the rule; provide this or booleanRule, not both.',\n ),\n});\n\nexport type ConditionalFormatRule = z.infer<typeof ConditionalFormatRule>;\n"]}
@@ -0,0 +1,83 @@
1
+ import { z } from 'zod';
2
+ /** One conditional format rule as read back from a sheet. */
3
+ export declare const ConditionalFormatRuleReadout: z.ZodObject<{
4
+ ranges: z.ZodOptional<z.ZodArray<z.ZodObject<{
5
+ sheetId: z.ZodOptional<z.ZodNumber>;
6
+ startRowIndex: z.ZodOptional<z.ZodNumber>;
7
+ endRowIndex: z.ZodOptional<z.ZodNumber>;
8
+ startColumnIndex: z.ZodOptional<z.ZodNumber>;
9
+ endColumnIndex: z.ZodOptional<z.ZodNumber>;
10
+ }, z.core.$strict>>>;
11
+ booleanRule: z.ZodOptional<z.ZodObject<{
12
+ condition: z.ZodOptional<z.ZodObject<{
13
+ type: z.ZodOptional<z.ZodString>;
14
+ values: z.ZodOptional<z.ZodArray<z.ZodObject<{
15
+ userEnteredValue: z.ZodOptional<z.ZodString>;
16
+ relativeDate: z.ZodOptional<z.ZodString>;
17
+ }, z.core.$strip>>>;
18
+ }, z.core.$strip>>;
19
+ format: z.ZodOptional<z.ZodObject<{
20
+ backgroundColorStyle: z.ZodOptional<z.ZodObject<{
21
+ rgbColor: z.ZodOptional<z.ZodObject<{
22
+ red: z.ZodOptional<z.ZodNumber>;
23
+ green: z.ZodOptional<z.ZodNumber>;
24
+ blue: z.ZodOptional<z.ZodNumber>;
25
+ }, z.core.$strip>>;
26
+ themeColor: z.ZodOptional<z.ZodString>;
27
+ }, z.core.$strip>>;
28
+ textFormat: z.ZodOptional<z.ZodObject<{
29
+ foregroundColorStyle: z.ZodOptional<z.ZodObject<{
30
+ rgbColor: z.ZodOptional<z.ZodObject<{
31
+ red: z.ZodOptional<z.ZodNumber>;
32
+ green: z.ZodOptional<z.ZodNumber>;
33
+ blue: z.ZodOptional<z.ZodNumber>;
34
+ }, z.core.$strip>>;
35
+ themeColor: z.ZodOptional<z.ZodString>;
36
+ }, z.core.$strip>>;
37
+ bold: z.ZodOptional<z.ZodBoolean>;
38
+ italic: z.ZodOptional<z.ZodBoolean>;
39
+ strikethrough: z.ZodOptional<z.ZodBoolean>;
40
+ }, z.core.$strip>>;
41
+ }, z.core.$strip>>;
42
+ }, z.core.$strip>>;
43
+ gradientRule: z.ZodOptional<z.ZodObject<{
44
+ minpoint: z.ZodOptional<z.ZodObject<{
45
+ colorStyle: z.ZodOptional<z.ZodObject<{
46
+ rgbColor: z.ZodOptional<z.ZodObject<{
47
+ red: z.ZodOptional<z.ZodNumber>;
48
+ green: z.ZodOptional<z.ZodNumber>;
49
+ blue: z.ZodOptional<z.ZodNumber>;
50
+ }, z.core.$strip>>;
51
+ themeColor: z.ZodOptional<z.ZodString>;
52
+ }, z.core.$strip>>;
53
+ type: z.ZodOptional<z.ZodString>;
54
+ value: z.ZodOptional<z.ZodString>;
55
+ }, z.core.$strip>>;
56
+ midpoint: z.ZodOptional<z.ZodObject<{
57
+ colorStyle: z.ZodOptional<z.ZodObject<{
58
+ rgbColor: z.ZodOptional<z.ZodObject<{
59
+ red: z.ZodOptional<z.ZodNumber>;
60
+ green: z.ZodOptional<z.ZodNumber>;
61
+ blue: z.ZodOptional<z.ZodNumber>;
62
+ }, z.core.$strip>>;
63
+ themeColor: z.ZodOptional<z.ZodString>;
64
+ }, z.core.$strip>>;
65
+ type: z.ZodOptional<z.ZodString>;
66
+ value: z.ZodOptional<z.ZodString>;
67
+ }, z.core.$strip>>;
68
+ maxpoint: z.ZodOptional<z.ZodObject<{
69
+ colorStyle: z.ZodOptional<z.ZodObject<{
70
+ rgbColor: z.ZodOptional<z.ZodObject<{
71
+ red: z.ZodOptional<z.ZodNumber>;
72
+ green: z.ZodOptional<z.ZodNumber>;
73
+ blue: z.ZodOptional<z.ZodNumber>;
74
+ }, z.core.$strip>>;
75
+ themeColor: z.ZodOptional<z.ZodString>;
76
+ }, z.core.$strip>>;
77
+ type: z.ZodOptional<z.ZodString>;
78
+ value: z.ZodOptional<z.ZodString>;
79
+ }, z.core.$strip>>;
80
+ }, z.core.$strip>>;
81
+ }, z.core.$strip>;
82
+ export type ConditionalFormatRuleReadout = z.infer<typeof ConditionalFormatRuleReadout>;
83
+ //# sourceMappingURL=ConditionalFormatRuleReadout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionalFormatRuleReadout.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/ConditionalFormatRuleReadout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA8FxB,6DAA6D;AAC7D,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIvC,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -0,0 +1,84 @@
1
+ import { z } from 'zod';
2
+ import { GridRange } from './GridRange.js';
3
+ /**
4
+ * The read-side shape of a conditional format rule, kept deliberately open:
5
+ * `type` and color-vocabulary fields are open strings here (the write path
6
+ * is the closed enum in `BooleanCondition`, `InterpolationPoint`, and
7
+ * `ColorStyle`) because rules are addressed by array index, so this readout
8
+ * must be total; dropping a rule with an unrecognized upstream value would
9
+ * silently renumber every rule after it.
10
+ *
11
+ * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#ConditionalFormatRule
12
+ */
13
+ const ConditionValueReadout = z.object({
14
+ userEnteredValue: z
15
+ .string()
16
+ .optional()
17
+ .describe('The value the condition is based on, as entered; may be a live formula beginning with = or +.'),
18
+ relativeDate: z
19
+ .string()
20
+ .optional()
21
+ .describe('A date relative to the current date; the write vocabulary is PAST_YEAR, PAST_MONTH, PAST_WEEK, YESTERDAY, TODAY, or TOMORROW.'),
22
+ });
23
+ const BooleanConditionReadout = z.object({
24
+ type: z
25
+ .string()
26
+ .optional()
27
+ .describe("The type of condition, from the write path's ConditionType vocabulary (NUMBER_GREATER, TEXT_CONTAINS, DATE_BEFORE, CUSTOM_FORMULA, ...)."),
28
+ values: z.array(ConditionValueReadout).optional().describe('The values of the condition.'),
29
+ });
30
+ const ColorStyleReadout = z.object({
31
+ rgbColor: z
32
+ .object({
33
+ red: z.number().optional().describe('The red channel, 0 to 1.'),
34
+ green: z.number().optional().describe('The green channel, 0 to 1.'),
35
+ blue: z.number().optional().describe('The blue channel, 0 to 1.'),
36
+ })
37
+ .optional()
38
+ .describe('A concrete RGB color.'),
39
+ themeColor: z
40
+ .string()
41
+ .optional()
42
+ .describe("A color from the spreadsheet's theme; the write vocabulary is TEXT, BACKGROUND, ACCENT1 through ACCENT6, or LINK."),
43
+ });
44
+ const BooleanRuleReadout = z.object({
45
+ condition: BooleanConditionReadout.optional().describe('The condition of the rule.'),
46
+ format: z
47
+ .object({
48
+ backgroundColorStyle: ColorStyleReadout.optional().describe('The background color.'),
49
+ textFormat: z
50
+ .object({
51
+ foregroundColorStyle: ColorStyleReadout.optional().describe('The text color.'),
52
+ bold: z.boolean().optional().describe('True if the text is bold.'),
53
+ italic: z.boolean().optional().describe('True if the text is italicized.'),
54
+ strikethrough: z.boolean().optional().describe('True if the text is struck through.'),
55
+ })
56
+ .optional()
57
+ .describe('The text format the rule applies.'),
58
+ })
59
+ .optional()
60
+ .describe('The format the rule applies.'),
61
+ });
62
+ const InterpolationPointReadout = z.object({
63
+ colorStyle: ColorStyleReadout.optional().describe('The color of this interpolation point.'),
64
+ type: z
65
+ .string()
66
+ .optional()
67
+ .describe('How the value should be interpreted; the write vocabulary is MIN, MAX, NUMBER, PERCENT, or PERCENTILE.'),
68
+ value: z
69
+ .string()
70
+ .optional()
71
+ .describe('The value this interpolation point uses; may be a live formula.'),
72
+ });
73
+ const GradientRuleReadout = z.object({
74
+ minpoint: InterpolationPointReadout.optional().describe('The starting interpolation point.'),
75
+ midpoint: InterpolationPointReadout.optional().describe('The midway interpolation point.'),
76
+ maxpoint: InterpolationPointReadout.optional().describe('The final interpolation point.'),
77
+ });
78
+ /** One conditional format rule as read back from a sheet. */
79
+ export const ConditionalFormatRuleReadout = z.object({
80
+ ranges: z.array(GridRange).optional().describe('The ranges the rule formats.'),
81
+ booleanRule: BooleanRuleReadout.optional().describe('An on/off rule, if this rule is one.'),
82
+ gradientRule: GradientRuleReadout.optional().describe('A gradient rule, if this rule is one.'),
83
+ });
84
+ //# sourceMappingURL=ConditionalFormatRuleReadout.js.map