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.
- package/ADOPTING.md +2 -2
- package/README.md +5 -5
- package/dist/sheets/entities/BasicFilter.d.ts +215 -0
- package/dist/sheets/entities/BasicFilter.d.ts.map +1 -0
- package/dist/sheets/entities/BasicFilter.js +27 -0
- package/dist/sheets/entities/BasicFilter.js.map +1 -0
- package/dist/sheets/entities/BooleanCondition.d.ts +57 -0
- package/dist/sheets/entities/BooleanCondition.d.ts.map +1 -0
- package/dist/sheets/entities/BooleanCondition.js +52 -0
- package/dist/sheets/entities/BooleanCondition.js.map +1 -0
- package/dist/sheets/entities/BooleanRule.d.ts +100 -0
- package/dist/sheets/entities/BooleanRule.d.ts.map +1 -0
- package/dist/sheets/entities/BooleanRule.js +34 -0
- package/dist/sheets/entities/BooleanRule.js.map +1 -0
- package/dist/sheets/entities/CellData.d.ts +131 -0
- package/dist/sheets/entities/CellData.d.ts.map +1 -0
- package/dist/sheets/entities/CellData.js +23 -0
- package/dist/sheets/entities/CellData.js.map +1 -0
- package/dist/sheets/entities/CellFormat.d.ts +3 -0
- package/dist/sheets/entities/CellFormat.d.ts.map +1 -1
- package/dist/sheets/entities/ConditionValue.d.ts +21 -0
- package/dist/sheets/entities/ConditionValue.d.ts.map +1 -0
- package/dist/sheets/entities/ConditionValue.js +19 -0
- package/dist/sheets/entities/ConditionValue.js.map +1 -0
- package/dist/sheets/entities/ConditionalFormatRule.d.ts +197 -0
- package/dist/sheets/entities/ConditionalFormatRule.d.ts.map +1 -0
- package/dist/sheets/entities/ConditionalFormatRule.js +22 -0
- package/dist/sheets/entities/ConditionalFormatRule.js.map +1 -0
- package/dist/sheets/entities/ConditionalFormatRuleReadout.d.ts +83 -0
- package/dist/sheets/entities/ConditionalFormatRuleReadout.d.ts.map +1 -0
- package/dist/sheets/entities/ConditionalFormatRuleReadout.js +84 -0
- package/dist/sheets/entities/ConditionalFormatRuleReadout.js.map +1 -0
- package/dist/sheets/entities/DataValidationRule.d.ts +60 -0
- package/dist/sheets/entities/DataValidationRule.d.ts.map +1 -0
- package/dist/sheets/entities/DataValidationRule.js +22 -0
- package/dist/sheets/entities/DataValidationRule.js.map +1 -0
- package/dist/sheets/entities/DelimiterType.d.ts +16 -0
- package/dist/sheets/entities/DelimiterType.d.ts.map +1 -0
- package/dist/sheets/entities/DelimiterType.js +15 -0
- package/dist/sheets/entities/DelimiterType.js.map +1 -0
- package/dist/sheets/entities/Dimension.d.ts +12 -0
- package/dist/sheets/entities/Dimension.d.ts.map +1 -0
- package/dist/sheets/entities/Dimension.js +8 -0
- package/dist/sheets/entities/Dimension.js.map +1 -0
- package/dist/sheets/entities/DimensionRange.d.ts.map +1 -1
- package/dist/sheets/entities/DimensionRange.js +2 -1
- package/dist/sheets/entities/DimensionRange.js.map +1 -1
- package/dist/sheets/entities/Editors.d.ts +14 -0
- package/dist/sheets/entities/Editors.d.ts.map +1 -0
- package/dist/sheets/entities/Editors.js +22 -0
- package/dist/sheets/entities/Editors.js.map +1 -0
- package/dist/sheets/entities/ExtendedValue.d.ts +17 -0
- package/dist/sheets/entities/ExtendedValue.d.ts.map +1 -0
- package/dist/sheets/entities/ExtendedValue.js +25 -0
- package/dist/sheets/entities/ExtendedValue.js.map +1 -0
- package/dist/sheets/entities/FilterCriteria.d.ts +92 -0
- package/dist/sheets/entities/FilterCriteria.d.ts.map +1 -0
- package/dist/sheets/entities/FilterCriteria.js +15 -0
- package/dist/sheets/entities/FilterCriteria.js.map +1 -0
- package/dist/sheets/entities/FilterSpec.d.ts +96 -0
- package/dist/sheets/entities/FilterSpec.d.ts.map +1 -0
- package/dist/sheets/entities/FilterSpec.js +13 -0
- package/dist/sheets/entities/FilterSpec.js.map +1 -0
- package/dist/sheets/entities/FilterView.d.ts +221 -0
- package/dist/sheets/entities/FilterView.d.ts.map +1 -0
- package/dist/sheets/entities/FilterView.js +37 -0
- package/dist/sheets/entities/FilterView.js.map +1 -0
- package/dist/sheets/entities/GradientRule.d.ts +96 -0
- package/dist/sheets/entities/GradientRule.d.ts.map +1 -0
- package/dist/sheets/entities/GradientRule.js +15 -0
- package/dist/sheets/entities/GradientRule.js.map +1 -0
- package/dist/sheets/entities/InterpolationPoint.d.ts +37 -0
- package/dist/sheets/entities/InterpolationPoint.d.ts.map +1 -0
- package/dist/sheets/entities/InterpolationPoint.js +19 -0
- package/dist/sheets/entities/InterpolationPoint.js.map +1 -0
- package/dist/sheets/entities/PasteOrientation.d.ts +12 -0
- package/dist/sheets/entities/PasteOrientation.d.ts.map +1 -0
- package/dist/sheets/entities/PasteOrientation.js +8 -0
- package/dist/sheets/entities/PasteOrientation.js.map +1 -0
- package/dist/sheets/entities/PasteType.d.ts +17 -0
- package/dist/sheets/entities/PasteType.d.ts.map +1 -0
- package/dist/sheets/entities/PasteType.js +16 -0
- package/dist/sheets/entities/PasteType.js.map +1 -0
- package/dist/sheets/entities/ProtectedRange.d.ts +38 -0
- package/dist/sheets/entities/ProtectedRange.d.ts.map +1 -0
- package/dist/sheets/entities/ProtectedRange.js +35 -0
- package/dist/sheets/entities/ProtectedRange.js.map +1 -0
- package/dist/sheets/entities/SortOrder.d.ts +12 -0
- package/dist/sheets/entities/SortOrder.d.ts.map +1 -0
- package/dist/sheets/entities/SortOrder.js +8 -0
- package/dist/sheets/entities/SortOrder.js.map +1 -0
- package/dist/sheets/entities/SortSpec.d.ts +27 -0
- package/dist/sheets/entities/SortSpec.d.ts.map +1 -0
- package/dist/sheets/entities/SortSpec.js +35 -0
- package/dist/sheets/entities/SortSpec.js.map +1 -0
- package/dist/sheets/entities/SourceAndDestination.d.ts +22 -0
- package/dist/sheets/entities/SourceAndDestination.d.ts.map +1 -0
- package/dist/sheets/entities/SourceAndDestination.js +17 -0
- package/dist/sheets/entities/SourceAndDestination.js.map +1 -0
- package/dist/sheets/entities/Spreadsheet.d.ts +320 -4
- package/dist/sheets/entities/Spreadsheet.d.ts.map +1 -1
- package/dist/sheets/entities/Spreadsheet.js +36 -6
- package/dist/sheets/entities/Spreadsheet.js.map +1 -1
- package/dist/sheets/entities/TextFormat.d.ts +5 -2
- package/dist/sheets/entities/TextFormat.d.ts.map +1 -1
- package/dist/sheets/entities/TextFormat.js +10 -2
- package/dist/sheets/entities/TextFormat.js.map +1 -1
- package/dist/sheets/entities/TextFormatRun.d.ts +43 -0
- package/dist/sheets/entities/TextFormatRun.d.ts.map +1 -0
- package/dist/sheets/entities/TextFormatRun.js +19 -0
- package/dist/sheets/entities/TextFormatRun.js.map +1 -0
- package/dist/sheets/instructions.d.ts.map +1 -1
- package/dist/sheets/instructions.js +34 -9
- package/dist/sheets/instructions.js.map +1 -1
- package/dist/sheets/lib/cells.d.ts +20 -0
- package/dist/sheets/lib/cells.d.ts.map +1 -0
- package/dist/sheets/lib/cells.js +41 -0
- package/dist/sheets/lib/cells.js.map +1 -0
- package/dist/sheets/lib/filtering.d.ts +33 -0
- package/dist/sheets/lib/filtering.d.ts.map +1 -0
- package/dist/sheets/lib/filtering.js +150 -0
- package/dist/sheets/lib/filtering.js.map +1 -0
- package/dist/sheets/lib/formats.d.ts +3 -1
- package/dist/sheets/lib/formats.d.ts.map +1 -1
- package/dist/sheets/lib/formats.js +16 -0
- package/dist/sheets/lib/formats.js.map +1 -1
- package/dist/sheets/lib/requests.d.ts +13 -0
- package/dist/sheets/lib/requests.d.ts.map +1 -1
- package/dist/sheets/lib/requests.js +38 -0
- package/dist/sheets/lib/requests.js.map +1 -1
- package/dist/sheets/lib/rules.d.ts +37 -0
- package/dist/sheets/lib/rules.d.ts.map +1 -0
- package/dist/sheets/lib/rules.js +116 -0
- package/dist/sheets/lib/rules.js.map +1 -0
- package/dist/sheets/lib/spreadsheet.d.ts +12 -3
- package/dist/sheets/lib/spreadsheet.d.ts.map +1 -1
- package/dist/sheets/lib/spreadsheet.js +118 -18
- package/dist/sheets/lib/spreadsheet.js.map +1 -1
- package/dist/sheets/methods/add_conditional_format_rule/handler.d.ts +5 -0
- package/dist/sheets/methods/add_conditional_format_rule/handler.d.ts.map +1 -0
- package/dist/sheets/methods/add_conditional_format_rule/handler.js +13 -0
- package/dist/sheets/methods/add_conditional_format_rule/handler.js.map +1 -0
- package/dist/sheets/methods/add_conditional_format_rule/index.d.ts +199 -0
- package/dist/sheets/methods/add_conditional_format_rule/index.d.ts.map +1 -0
- package/dist/sheets/methods/add_conditional_format_rule/index.js +22 -0
- package/dist/sheets/methods/add_conditional_format_rule/index.js.map +1 -0
- package/dist/sheets/methods/add_conditional_format_rule/schema.d.ts +198 -0
- package/dist/sheets/methods/add_conditional_format_rule/schema.d.ts.map +1 -0
- package/dist/sheets/methods/add_conditional_format_rule/schema.js +22 -0
- package/dist/sheets/methods/add_conditional_format_rule/schema.js.map +1 -0
- package/dist/sheets/methods/add_filter_view/handler.d.ts +5 -0
- package/dist/sheets/methods/add_filter_view/handler.d.ts.map +1 -0
- package/dist/sheets/methods/add_filter_view/handler.js +21 -0
- package/dist/sheets/methods/add_filter_view/handler.js.map +1 -0
- package/dist/sheets/methods/add_filter_view/index.d.ts +212 -0
- package/dist/sheets/methods/add_filter_view/index.d.ts.map +1 -0
- package/dist/sheets/methods/add_filter_view/index.js +16 -0
- package/dist/sheets/methods/add_filter_view/index.js.map +1 -0
- package/dist/sheets/methods/add_filter_view/schema.d.ts +216 -0
- package/dist/sheets/methods/add_filter_view/schema.d.ts.map +1 -0
- package/dist/sheets/methods/add_filter_view/schema.js +10 -0
- package/dist/sheets/methods/add_filter_view/schema.js.map +1 -0
- package/dist/sheets/methods/add_named_range/handler.d.ts.map +1 -1
- package/dist/sheets/methods/add_named_range/handler.js +5 -1
- package/dist/sheets/methods/add_named_range/handler.js.map +1 -1
- package/dist/sheets/methods/add_protected_range/handler.d.ts +5 -0
- package/dist/sheets/methods/add_protected_range/handler.d.ts.map +1 -0
- package/dist/sheets/methods/add_protected_range/handler.js +29 -0
- package/dist/sheets/methods/add_protected_range/handler.js.map +1 -0
- package/dist/sheets/methods/add_protected_range/index.d.ts +61 -0
- package/dist/sheets/methods/add_protected_range/index.d.ts.map +1 -0
- package/dist/sheets/methods/add_protected_range/index.js +25 -0
- package/dist/sheets/methods/add_protected_range/index.js.map +1 -0
- package/dist/sheets/methods/add_protected_range/schema.d.ts +56 -0
- package/dist/sheets/methods/add_protected_range/schema.d.ts.map +1 -0
- package/dist/sheets/methods/add_protected_range/schema.js +31 -0
- package/dist/sheets/methods/add_protected_range/schema.js.map +1 -0
- package/dist/sheets/methods/auto_fill/handler.d.ts +5 -0
- package/dist/sheets/methods/auto_fill/handler.d.ts.map +1 -0
- package/dist/sheets/methods/auto_fill/handler.js +22 -0
- package/dist/sheets/methods/auto_fill/handler.js.map +1 -0
- package/dist/sheets/methods/auto_fill/index.d.ts +28 -0
- package/dist/sheets/methods/auto_fill/index.d.ts.map +1 -0
- package/dist/sheets/methods/auto_fill/index.js +16 -0
- package/dist/sheets/methods/auto_fill/index.js.map +1 -0
- package/dist/sheets/methods/auto_fill/schema.d.ts +32 -0
- package/dist/sheets/methods/auto_fill/schema.d.ts.map +1 -0
- package/dist/sheets/methods/auto_fill/schema.js +18 -0
- package/dist/sheets/methods/auto_fill/schema.js.map +1 -0
- package/dist/sheets/methods/clear_basic_filter/handler.d.ts +5 -0
- package/dist/sheets/methods/clear_basic_filter/handler.d.ts.map +1 -0
- package/dist/sheets/methods/clear_basic_filter/handler.js +8 -0
- package/dist/sheets/methods/clear_basic_filter/handler.js.map +1 -0
- package/dist/sheets/methods/clear_basic_filter/index.d.ts +7 -0
- package/dist/sheets/methods/clear_basic_filter/index.d.ts.map +1 -0
- package/dist/sheets/methods/clear_basic_filter/index.js +16 -0
- package/dist/sheets/methods/clear_basic_filter/index.js.map +1 -0
- package/dist/sheets/methods/clear_basic_filter/schema.d.ts +11 -0
- package/dist/sheets/methods/clear_basic_filter/schema.d.ts.map +1 -0
- package/dist/sheets/methods/clear_basic_filter/schema.js +11 -0
- package/dist/sheets/methods/clear_basic_filter/schema.js.map +1 -0
- package/dist/sheets/methods/clear_data_validation/handler.d.ts +5 -0
- package/dist/sheets/methods/clear_data_validation/handler.d.ts.map +1 -0
- package/dist/sheets/methods/clear_data_validation/handler.js +12 -0
- package/dist/sheets/methods/clear_data_validation/handler.js.map +1 -0
- package/dist/sheets/methods/clear_data_validation/index.d.ts +19 -0
- package/dist/sheets/methods/clear_data_validation/index.d.ts.map +1 -0
- package/dist/sheets/methods/clear_data_validation/index.js +21 -0
- package/dist/sheets/methods/clear_data_validation/index.js.map +1 -0
- package/dist/sheets/methods/clear_data_validation/schema.d.ts +19 -0
- package/dist/sheets/methods/clear_data_validation/schema.d.ts.map +1 -0
- package/dist/sheets/methods/clear_data_validation/schema.js +17 -0
- package/dist/sheets/methods/clear_data_validation/schema.js.map +1 -0
- package/dist/sheets/methods/copy_paste/handler.d.ts +5 -0
- package/dist/sheets/methods/copy_paste/handler.d.ts.map +1 -0
- package/dist/sheets/methods/copy_paste/handler.js +14 -0
- package/dist/sheets/methods/copy_paste/handler.js.map +1 -0
- package/dist/sheets/methods/copy_paste/index.d.ts +33 -0
- package/dist/sheets/methods/copy_paste/index.d.ts.map +1 -0
- package/dist/sheets/methods/copy_paste/index.js +16 -0
- package/dist/sheets/methods/copy_paste/index.js.map +1 -0
- package/dist/sheets/methods/copy_paste/schema.d.ts +37 -0
- package/dist/sheets/methods/copy_paste/schema.d.ts.map +1 -0
- package/dist/sheets/methods/copy_paste/schema.js +17 -0
- package/dist/sheets/methods/copy_paste/schema.js.map +1 -0
- package/dist/sheets/methods/create_spreadsheet/index.d.ts +315 -0
- package/dist/sheets/methods/create_spreadsheet/index.d.ts.map +1 -1
- package/dist/sheets/methods/create_spreadsheet/schema.d.ts +315 -0
- package/dist/sheets/methods/create_spreadsheet/schema.d.ts.map +1 -1
- package/dist/sheets/methods/cut_paste/handler.d.ts +5 -0
- package/dist/sheets/methods/cut_paste/handler.d.ts.map +1 -0
- package/dist/sheets/methods/cut_paste/handler.js +13 -0
- package/dist/sheets/methods/cut_paste/handler.js.map +1 -0
- package/dist/sheets/methods/cut_paste/index.d.ts +27 -0
- package/dist/sheets/methods/cut_paste/index.d.ts.map +1 -0
- package/dist/sheets/methods/cut_paste/index.js +16 -0
- package/dist/sheets/methods/cut_paste/index.js.map +1 -0
- package/dist/sheets/methods/cut_paste/schema.d.ts +31 -0
- package/dist/sheets/methods/cut_paste/schema.d.ts.map +1 -0
- package/dist/sheets/methods/cut_paste/schema.js +16 -0
- package/dist/sheets/methods/cut_paste/schema.js.map +1 -0
- package/dist/sheets/methods/delete_conditional_format_rule/handler.d.ts +5 -0
- package/dist/sheets/methods/delete_conditional_format_rule/handler.d.ts.map +1 -0
- package/dist/sheets/methods/delete_conditional_format_rule/handler.js +8 -0
- package/dist/sheets/methods/delete_conditional_format_rule/handler.js.map +1 -0
- package/dist/sheets/methods/delete_conditional_format_rule/index.d.ts +16 -0
- package/dist/sheets/methods/delete_conditional_format_rule/index.d.ts.map +1 -0
- package/dist/sheets/methods/delete_conditional_format_rule/index.js +23 -0
- package/dist/sheets/methods/delete_conditional_format_rule/index.js.map +1 -0
- package/dist/sheets/methods/delete_conditional_format_rule/schema.d.ts +14 -0
- package/dist/sheets/methods/delete_conditional_format_rule/schema.d.ts.map +1 -0
- package/dist/sheets/methods/delete_conditional_format_rule/schema.js +16 -0
- package/dist/sheets/methods/delete_conditional_format_rule/schema.js.map +1 -0
- package/dist/sheets/methods/delete_duplicates/handler.d.ts +5 -0
- package/dist/sheets/methods/delete_duplicates/handler.d.ts.map +1 -0
- package/dist/sheets/methods/delete_duplicates/handler.js +20 -0
- package/dist/sheets/methods/delete_duplicates/handler.js.map +1 -0
- package/dist/sheets/methods/delete_duplicates/index.d.ts +23 -0
- package/dist/sheets/methods/delete_duplicates/index.d.ts.map +1 -0
- package/dist/sheets/methods/delete_duplicates/index.js +16 -0
- package/dist/sheets/methods/delete_duplicates/index.js.map +1 -0
- package/dist/sheets/methods/delete_duplicates/schema.d.ts +27 -0
- package/dist/sheets/methods/delete_duplicates/schema.d.ts.map +1 -0
- package/dist/sheets/methods/delete_duplicates/schema.js +18 -0
- package/dist/sheets/methods/delete_duplicates/schema.js.map +1 -0
- package/dist/sheets/methods/delete_filter_view/handler.d.ts +5 -0
- package/dist/sheets/methods/delete_filter_view/handler.d.ts.map +1 -0
- package/dist/sheets/methods/delete_filter_view/handler.js +8 -0
- package/dist/sheets/methods/delete_filter_view/handler.js.map +1 -0
- package/dist/sheets/methods/delete_filter_view/index.d.ts +7 -0
- package/dist/sheets/methods/delete_filter_view/index.d.ts.map +1 -0
- package/dist/sheets/methods/delete_filter_view/index.js +16 -0
- package/dist/sheets/methods/delete_filter_view/index.js.map +1 -0
- package/dist/sheets/methods/delete_filter_view/schema.d.ts +11 -0
- package/dist/sheets/methods/delete_filter_view/schema.d.ts.map +1 -0
- package/dist/sheets/methods/delete_filter_view/schema.js +15 -0
- package/dist/sheets/methods/delete_filter_view/schema.js.map +1 -0
- package/dist/sheets/methods/delete_protected_range/handler.d.ts +5 -0
- package/dist/sheets/methods/delete_protected_range/handler.d.ts.map +1 -0
- package/dist/sheets/methods/delete_protected_range/handler.js +8 -0
- package/dist/sheets/methods/delete_protected_range/handler.js.map +1 -0
- package/dist/sheets/methods/delete_protected_range/index.d.ts +13 -0
- package/dist/sheets/methods/delete_protected_range/index.d.ts.map +1 -0
- package/dist/sheets/methods/delete_protected_range/index.js +21 -0
- package/dist/sheets/methods/delete_protected_range/index.js.map +1 -0
- package/dist/sheets/methods/delete_protected_range/schema.d.ts +13 -0
- package/dist/sheets/methods/delete_protected_range/schema.d.ts.map +1 -0
- package/dist/sheets/methods/delete_protected_range/schema.js +15 -0
- package/dist/sheets/methods/delete_protected_range/schema.js.map +1 -0
- package/dist/sheets/methods/delete_range/handler.d.ts +5 -0
- package/dist/sheets/methods/delete_range/handler.d.ts.map +1 -0
- package/dist/sheets/methods/delete_range/handler.js +9 -0
- package/dist/sheets/methods/delete_range/handler.js.map +1 -0
- package/dist/sheets/methods/delete_range/index.d.ts +18 -0
- package/dist/sheets/methods/delete_range/index.d.ts.map +1 -0
- package/dist/sheets/methods/delete_range/index.js +17 -0
- package/dist/sheets/methods/delete_range/index.js.map +1 -0
- package/dist/sheets/methods/delete_range/schema.d.ts +21 -0
- package/dist/sheets/methods/delete_range/schema.d.ts.map +1 -0
- package/dist/sheets/methods/delete_range/schema.js +14 -0
- package/dist/sheets/methods/delete_range/schema.js.map +1 -0
- package/dist/sheets/methods/duplicate_filter_view/handler.d.ts +5 -0
- package/dist/sheets/methods/duplicate_filter_view/handler.d.ts.map +1 -0
- package/dist/sheets/methods/duplicate_filter_view/handler.js +18 -0
- package/dist/sheets/methods/duplicate_filter_view/handler.js.map +1 -0
- package/dist/sheets/methods/duplicate_filter_view/index.d.ts +107 -0
- package/dist/sheets/methods/duplicate_filter_view/index.d.ts.map +1 -0
- package/dist/sheets/methods/duplicate_filter_view/index.js +16 -0
- package/dist/sheets/methods/duplicate_filter_view/index.js.map +1 -0
- package/dist/sheets/methods/duplicate_filter_view/schema.d.ts +111 -0
- package/dist/sheets/methods/duplicate_filter_view/schema.d.ts.map +1 -0
- package/dist/sheets/methods/duplicate_filter_view/schema.js +14 -0
- package/dist/sheets/methods/duplicate_filter_view/schema.js.map +1 -0
- package/dist/sheets/methods/find_replace/handler.d.ts +5 -0
- package/dist/sheets/methods/find_replace/handler.d.ts.map +1 -0
- package/dist/sheets/methods/find_replace/handler.js +31 -0
- package/dist/sheets/methods/find_replace/handler.js.map +1 -0
- package/dist/sheets/methods/find_replace/index.d.ts +27 -0
- package/dist/sheets/methods/find_replace/index.d.ts.map +1 -0
- package/dist/sheets/methods/find_replace/index.js +17 -0
- package/dist/sheets/methods/find_replace/index.js.map +1 -0
- package/dist/sheets/methods/find_replace/schema.d.ts +30 -0
- package/dist/sheets/methods/find_replace/schema.d.ts.map +1 -0
- package/dist/sheets/methods/find_replace/schema.js +44 -0
- package/dist/sheets/methods/find_replace/schema.js.map +1 -0
- package/dist/sheets/methods/get_spreadsheet/index.d.ts +323 -4
- package/dist/sheets/methods/get_spreadsheet/index.d.ts.map +1 -1
- package/dist/sheets/methods/get_spreadsheet/index.js +9 -5
- package/dist/sheets/methods/get_spreadsheet/index.js.map +1 -1
- package/dist/sheets/methods/get_spreadsheet/schema.d.ts +315 -0
- package/dist/sheets/methods/get_spreadsheet/schema.d.ts.map +1 -1
- package/dist/sheets/methods/insert_range/handler.d.ts +5 -0
- package/dist/sheets/methods/insert_range/handler.d.ts.map +1 -0
- package/dist/sheets/methods/insert_range/handler.js +9 -0
- package/dist/sheets/methods/insert_range/handler.js.map +1 -0
- package/dist/sheets/methods/insert_range/index.d.ts +18 -0
- package/dist/sheets/methods/insert_range/index.d.ts.map +1 -0
- package/dist/sheets/methods/insert_range/index.js +17 -0
- package/dist/sheets/methods/insert_range/index.js.map +1 -0
- package/dist/sheets/methods/insert_range/schema.d.ts +21 -0
- package/dist/sheets/methods/insert_range/schema.d.ts.map +1 -0
- package/dist/sheets/methods/insert_range/schema.js +14 -0
- package/dist/sheets/methods/insert_range/schema.js.map +1 -0
- package/dist/sheets/methods/merge_cells/handler.d.ts +5 -0
- package/dist/sheets/methods/merge_cells/handler.d.ts.map +1 -0
- package/dist/sheets/methods/merge_cells/handler.js +12 -0
- package/dist/sheets/methods/merge_cells/handler.js.map +1 -0
- package/dist/sheets/methods/merge_cells/index.d.ts +23 -0
- package/dist/sheets/methods/merge_cells/index.d.ts.map +1 -0
- package/dist/sheets/methods/merge_cells/index.js +21 -0
- package/dist/sheets/methods/merge_cells/index.js.map +1 -0
- package/dist/sheets/methods/merge_cells/schema.d.ts +23 -0
- package/dist/sheets/methods/merge_cells/schema.d.ts.map +1 -0
- package/dist/sheets/methods/merge_cells/schema.js +16 -0
- package/dist/sheets/methods/merge_cells/schema.js.map +1 -0
- package/dist/sheets/methods/move_conditional_format_rule/handler.d.ts +5 -0
- package/dist/sheets/methods/move_conditional_format_rule/handler.d.ts.map +1 -0
- package/dist/sheets/methods/move_conditional_format_rule/handler.js +18 -0
- package/dist/sheets/methods/move_conditional_format_rule/handler.js.map +1 -0
- package/dist/sheets/methods/move_conditional_format_rule/index.d.ts +17 -0
- package/dist/sheets/methods/move_conditional_format_rule/index.d.ts.map +1 -0
- package/dist/sheets/methods/move_conditional_format_rule/index.js +22 -0
- package/dist/sheets/methods/move_conditional_format_rule/index.js.map +1 -0
- package/dist/sheets/methods/move_conditional_format_rule/schema.d.ts +16 -0
- package/dist/sheets/methods/move_conditional_format_rule/schema.d.ts.map +1 -0
- package/dist/sheets/methods/move_conditional_format_rule/schema.js +24 -0
- package/dist/sheets/methods/move_conditional_format_rule/schema.js.map +1 -0
- package/dist/sheets/methods/randomize_range/handler.d.ts +5 -0
- package/dist/sheets/methods/randomize_range/handler.d.ts.map +1 -0
- package/dist/sheets/methods/randomize_range/handler.js +9 -0
- package/dist/sheets/methods/randomize_range/handler.js.map +1 -0
- package/dist/sheets/methods/randomize_range/index.d.ts +14 -0
- package/dist/sheets/methods/randomize_range/index.d.ts.map +1 -0
- package/dist/sheets/methods/randomize_range/index.js +17 -0
- package/dist/sheets/methods/randomize_range/index.js.map +1 -0
- package/dist/sheets/methods/randomize_range/schema.d.ts +17 -0
- package/dist/sheets/methods/randomize_range/schema.d.ts.map +1 -0
- package/dist/sheets/methods/randomize_range/schema.js +12 -0
- package/dist/sheets/methods/randomize_range/schema.js.map +1 -0
- package/dist/sheets/methods/registry.d.ts +2144 -0
- package/dist/sheets/methods/registry.d.ts.map +1 -1
- package/dist/sheets/methods/registry.js +63 -0
- package/dist/sheets/methods/registry.js.map +1 -1
- package/dist/sheets/methods/repeat_cell/index.d.ts +6 -1
- package/dist/sheets/methods/repeat_cell/index.d.ts.map +1 -1
- package/dist/sheets/methods/repeat_cell/index.js +3 -1
- package/dist/sheets/methods/repeat_cell/index.js.map +1 -1
- package/dist/sheets/methods/repeat_cell/schema.d.ts +3 -0
- package/dist/sheets/methods/repeat_cell/schema.d.ts.map +1 -1
- package/dist/sheets/methods/set_basic_filter/handler.d.ts +5 -0
- package/dist/sheets/methods/set_basic_filter/handler.d.ts.map +1 -0
- package/dist/sheets/methods/set_basic_filter/handler.js +9 -0
- package/dist/sheets/methods/set_basic_filter/handler.js.map +1 -0
- package/dist/sheets/methods/set_basic_filter/index.d.ts +109 -0
- package/dist/sheets/methods/set_basic_filter/index.d.ts.map +1 -0
- package/dist/sheets/methods/set_basic_filter/index.js +16 -0
- package/dist/sheets/methods/set_basic_filter/index.js.map +1 -0
- package/dist/sheets/methods/set_basic_filter/schema.d.ts +113 -0
- package/dist/sheets/methods/set_basic_filter/schema.d.ts.map +1 -0
- package/dist/sheets/methods/set_basic_filter/schema.js +12 -0
- package/dist/sheets/methods/set_basic_filter/schema.js.map +1 -0
- package/dist/sheets/methods/set_data_validation/handler.d.ts +5 -0
- package/dist/sheets/methods/set_data_validation/handler.d.ts.map +1 -0
- package/dist/sheets/methods/set_data_validation/handler.js +14 -0
- package/dist/sheets/methods/set_data_validation/handler.js.map +1 -0
- package/dist/sheets/methods/set_data_validation/index.d.ts +70 -0
- package/dist/sheets/methods/set_data_validation/index.d.ts.map +1 -0
- package/dist/sheets/methods/set_data_validation/index.js +22 -0
- package/dist/sheets/methods/set_data_validation/index.js.map +1 -0
- package/dist/sheets/methods/set_data_validation/schema.d.ts +69 -0
- package/dist/sheets/methods/set_data_validation/schema.d.ts.map +1 -0
- package/dist/sheets/methods/set_data_validation/schema.js +19 -0
- package/dist/sheets/methods/set_data_validation/schema.js.map +1 -0
- package/dist/sheets/methods/sort_range/handler.d.ts +5 -0
- package/dist/sheets/methods/sort_range/handler.d.ts.map +1 -0
- package/dist/sheets/methods/sort_range/handler.js +10 -0
- package/dist/sheets/methods/sort_range/handler.js.map +1 -0
- package/dist/sheets/methods/sort_range/index.d.ts +21 -0
- package/dist/sheets/methods/sort_range/index.d.ts.map +1 -0
- package/dist/sheets/methods/sort_range/index.js +17 -0
- package/dist/sheets/methods/sort_range/index.js.map +1 -0
- package/dist/sheets/methods/sort_range/schema.d.ts +24 -0
- package/dist/sheets/methods/sort_range/schema.d.ts.map +1 -0
- package/dist/sheets/methods/sort_range/schema.js +17 -0
- package/dist/sheets/methods/sort_range/schema.js.map +1 -0
- package/dist/sheets/methods/text_to_columns/handler.d.ts +5 -0
- package/dist/sheets/methods/text_to_columns/handler.d.ts.map +1 -0
- package/dist/sheets/methods/text_to_columns/handler.js +19 -0
- package/dist/sheets/methods/text_to_columns/handler.js.map +1 -0
- package/dist/sheets/methods/text_to_columns/index.d.ts +22 -0
- package/dist/sheets/methods/text_to_columns/index.d.ts.map +1 -0
- package/dist/sheets/methods/text_to_columns/index.js +16 -0
- package/dist/sheets/methods/text_to_columns/index.js.map +1 -0
- package/dist/sheets/methods/text_to_columns/schema.d.ts +26 -0
- package/dist/sheets/methods/text_to_columns/schema.d.ts.map +1 -0
- package/dist/sheets/methods/text_to_columns/schema.js +22 -0
- package/dist/sheets/methods/text_to_columns/schema.js.map +1 -0
- package/dist/sheets/methods/trim_whitespace/handler.d.ts +5 -0
- package/dist/sheets/methods/trim_whitespace/handler.d.ts.map +1 -0
- package/dist/sheets/methods/trim_whitespace/handler.js +12 -0
- package/dist/sheets/methods/trim_whitespace/handler.js.map +1 -0
- package/dist/sheets/methods/trim_whitespace/index.d.ts +14 -0
- package/dist/sheets/methods/trim_whitespace/index.d.ts.map +1 -0
- package/dist/sheets/methods/trim_whitespace/index.js +16 -0
- package/dist/sheets/methods/trim_whitespace/index.js.map +1 -0
- package/dist/sheets/methods/trim_whitespace/schema.d.ts +18 -0
- package/dist/sheets/methods/trim_whitespace/schema.d.ts.map +1 -0
- package/dist/sheets/methods/trim_whitespace/schema.js +13 -0
- package/dist/sheets/methods/trim_whitespace/schema.js.map +1 -0
- package/dist/sheets/methods/unmerge_cells/handler.d.ts +5 -0
- package/dist/sheets/methods/unmerge_cells/handler.d.ts.map +1 -0
- package/dist/sheets/methods/unmerge_cells/handler.js +9 -0
- package/dist/sheets/methods/unmerge_cells/handler.js.map +1 -0
- package/dist/sheets/methods/unmerge_cells/index.d.ts +17 -0
- package/dist/sheets/methods/unmerge_cells/index.d.ts.map +1 -0
- package/dist/sheets/methods/unmerge_cells/index.js +20 -0
- package/dist/sheets/methods/unmerge_cells/index.js.map +1 -0
- package/dist/sheets/methods/unmerge_cells/schema.d.ts +18 -0
- package/dist/sheets/methods/unmerge_cells/schema.d.ts.map +1 -0
- package/dist/sheets/methods/unmerge_cells/schema.js +13 -0
- package/dist/sheets/methods/unmerge_cells/schema.js.map +1 -0
- package/dist/sheets/methods/update_cells/handler.d.ts +5 -0
- package/dist/sheets/methods/update_cells/handler.d.ts.map +1 -0
- package/dist/sheets/methods/update_cells/handler.js +22 -0
- package/dist/sheets/methods/update_cells/handler.js.map +1 -0
- package/dist/sheets/methods/update_cells/index.d.ts +148 -0
- package/dist/sheets/methods/update_cells/index.d.ts.map +1 -0
- package/dist/sheets/methods/update_cells/index.js +24 -0
- package/dist/sheets/methods/update_cells/index.js.map +1 -0
- package/dist/sheets/methods/update_cells/schema.d.ts +145 -0
- package/dist/sheets/methods/update_cells/schema.d.ts.map +1 -0
- package/dist/sheets/methods/update_cells/schema.js +25 -0
- package/dist/sheets/methods/update_cells/schema.js.map +1 -0
- package/dist/sheets/methods/update_conditional_format_rule/handler.d.ts +5 -0
- package/dist/sheets/methods/update_conditional_format_rule/handler.d.ts.map +1 -0
- package/dist/sheets/methods/update_conditional_format_rule/handler.js +17 -0
- package/dist/sheets/methods/update_conditional_format_rule/handler.js.map +1 -0
- package/dist/sheets/methods/update_conditional_format_rule/index.d.ts +201 -0
- package/dist/sheets/methods/update_conditional_format_rule/index.d.ts.map +1 -0
- package/dist/sheets/methods/update_conditional_format_rule/index.js +24 -0
- package/dist/sheets/methods/update_conditional_format_rule/index.js.map +1 -0
- package/dist/sheets/methods/update_conditional_format_rule/schema.d.ts +198 -0
- package/dist/sheets/methods/update_conditional_format_rule/schema.d.ts.map +1 -0
- package/dist/sheets/methods/update_conditional_format_rule/schema.js +19 -0
- package/dist/sheets/methods/update_conditional_format_rule/schema.js.map +1 -0
- package/dist/sheets/methods/update_filter_view/handler.d.ts +5 -0
- package/dist/sheets/methods/update_filter_view/handler.d.ts.map +1 -0
- package/dist/sheets/methods/update_filter_view/handler.js +16 -0
- package/dist/sheets/methods/update_filter_view/handler.js.map +1 -0
- package/dist/sheets/methods/update_filter_view/index.d.ts +113 -0
- package/dist/sheets/methods/update_filter_view/index.d.ts.map +1 -0
- package/dist/sheets/methods/update_filter_view/index.js +17 -0
- package/dist/sheets/methods/update_filter_view/index.js.map +1 -0
- package/dist/sheets/methods/update_filter_view/schema.d.ts +116 -0
- package/dist/sheets/methods/update_filter_view/schema.d.ts.map +1 -0
- package/dist/sheets/methods/update_filter_view/schema.js +30 -0
- package/dist/sheets/methods/update_filter_view/schema.js.map +1 -0
- package/dist/sheets/methods/update_protected_range/handler.d.ts +5 -0
- package/dist/sheets/methods/update_protected_range/handler.d.ts.map +1 -0
- package/dist/sheets/methods/update_protected_range/handler.js +31 -0
- package/dist/sheets/methods/update_protected_range/handler.js.map +1 -0
- package/dist/sheets/methods/update_protected_range/index.d.ts +38 -0
- package/dist/sheets/methods/update_protected_range/index.d.ts.map +1 -0
- package/dist/sheets/methods/update_protected_range/index.js +23 -0
- package/dist/sheets/methods/update_protected_range/index.js.map +1 -0
- package/dist/sheets/methods/update_protected_range/schema.d.ts +36 -0
- package/dist/sheets/methods/update_protected_range/schema.d.ts.map +1 -0
- package/dist/sheets/methods/update_protected_range/schema.js +33 -0
- package/dist/sheets/methods/update_protected_range/schema.js.map +1 -0
- package/package.json +1 -1
package/ADOPTING.md
CHANGED
|
@@ -19,8 +19,8 @@ the differences are concrete:
|
|
|
19
19
|
|
|
20
20
|
- **MCP and then some.** The Gmail, Calendar, and Drive servers expose
|
|
21
21
|
Google's curated MCP toolset *plus* the broader REST method surface;
|
|
22
|
-
Sheets and Docs are REST-sourced throughout: [
|
|
23
|
-
across Gmail (33), Calendar (25), Drive (35), Sheets (
|
|
22
|
+
Sheets and Docs are REST-sourced throughout: [161 operations](./README.md#services)
|
|
23
|
+
across Gmail (33), Calendar (25), Drive (35), Sheets (59), and Docs (9). Each
|
|
24
24
|
service's `CAPABILITIES.md` enumerates its operations with provenance.
|
|
25
25
|
Built-in connectors document a narrower surface; as of this writing,
|
|
26
26
|
Anthropic documents its claude.ai Gmail connector as searching, reading,
|
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
<p align="center">
|
|
16
16
|
<strong>Google Workspace MCP servers you can read in an afternoon, one per service.</strong><br />
|
|
17
|
-
The curated <a href="https://modelcontextprotocol.io/">MCP</a> toolset plus the broader REST surface for Gmail, Google Calendar, Google Drive, Google Docs, and Google Sheets, one server per service per account: <strong>
|
|
17
|
+
The curated <a href="https://modelcontextprotocol.io/">MCP</a> toolset plus the broader REST surface for Gmail, Google Calendar, Google Drive, Google Docs, and Google Sheets, one server per service per account: <strong>161 self-describing operations</strong> across five Google services, so an AI agent (Claude, Cursor, or any MCP client) can do (nearly) anything your accounts can, on several accounts at once, and never on the wrong one. Every operation cites its Google reference page and validates input and output; test coverage is pinned at 100%.
|
|
18
18
|
</p>
|
|
19
19
|
|
|
20
20
|
<p align="center">
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
</p>
|
|
31
31
|
|
|
32
32
|
<p align="center">
|
|
33
|
-
<sub><strong>
|
|
33
|
+
<sub><strong>161 operations</strong> ship today: <strong>Gmail</strong> (<a href="./src/gmail/CAPABILITIES.md">33</a>), <strong>Calendar</strong> (<a href="./src/calendar/CAPABILITIES.md">25</a>), <strong>Sheets</strong> (<a href="./src/sheets/CAPABILITIES.md">59</a>), <strong>Docs</strong> (<a href="./src/docs/CAPABILITIES.md">9</a>), and <strong>Drive</strong> (<a href="./src/drive/CAPABILITIES.md">35</a>).</sub>
|
|
34
34
|
</p>
|
|
35
35
|
|
|
36
36
|
<p align="center"><sub><strong>Replacing a built-in connector?</strong> Hand your agent <a href="./ADOPTING.md">ADOPTING.md</a>: the playbook to adopt, supersede, verify, and decommission.</sub></p>
|
|
@@ -46,7 +46,7 @@ The design has two internal concepts and nothing else:
|
|
|
46
46
|
|
|
47
47
|
That is the whole surface. Read one operation folder and you understand all of them.
|
|
48
48
|
|
|
49
|
-
- **REST plus MCP in one surface.** Each server exposes the curated MCP toolset *and* the broader REST method set of its Google API, so an agent gets far more than a thin slice. Gmail ships with [33 operations](./src/gmail/CAPABILITIES.md) (10 curated MCP tools plus 23 REST methods), Calendar with [25](./src/calendar/CAPABILITIES.md) (8 plus 17), Drive with [35](./src/drive/CAPABILITIES.md) (8 plus 27), Sheets with [
|
|
49
|
+
- **REST plus MCP in one surface.** Each server exposes the curated MCP toolset *and* the broader REST method set of its Google API, so an agent gets far more than a thin slice. Gmail ships with [33 operations](./src/gmail/CAPABILITIES.md) (10 curated MCP tools plus 23 REST methods), Calendar with [25](./src/calendar/CAPABILITIES.md) (8 plus 17), Drive with [35](./src/drive/CAPABILITIES.md) (8 plus 27), Sheets with [59](./src/sheets/CAPABILITIES.md), and Docs with [9](./src/docs/CAPABILITIES.md) (Sheets and Docs are REST-sourced throughout; Google published no MCP toolset for either when they shipped, though previews now exist); the split is explained in [MCP, and then some](#mcp-and-then-some).
|
|
50
50
|
- **The folder tree mirrors Google's docs.** A Google tools-list reference page becomes a `tools/` folder; a Google REST method reference page becomes a `methods/` folder. If you can find the operation in Google's docs, you can find it in this repo.
|
|
51
51
|
|
|
52
52
|
| Google's reference page | This repo's folder |
|
|
@@ -67,7 +67,7 @@ This is an MCP server, and deliberately more than one. Google publishes an MCP t
|
|
|
67
67
|
- **`tools/`** mirrors Google's **MCP toolset** reference, verbatim.
|
|
68
68
|
- **`methods/`** covers the broader **REST** reference, the operations the MCP toolset omits.
|
|
69
69
|
|
|
70
|
-
The split is Google's own (its MCP reference and its REST reference are separate trees); we keep it on disk on purpose and unify it operationally (one `Operation` type, one merged wire surface where everything is an MCP tool). The breadth of [the operation list](./src/gmail/CAPABILITIES.md) is the evidence that MCP alone is not enough for real work. Sheets and Docs are the limit case: Google published no MCP toolset for either when they shipped (developer previews have since appeared), so those servers are methods-only ([
|
|
70
|
+
The split is Google's own (its MCP reference and its REST reference are separate trees); we keep it on disk on purpose and unify it operationally (one `Operation` type, one merged wire surface where everything is an MCP tool). The breadth of [the operation list](./src/gmail/CAPABILITIES.md) is the evidence that MCP alone is not enough for real work. Sheets and Docs are the limit case: Google published no MCP toolset for either when they shipped (developer previews have since appeared), so those servers are methods-only ([59](./src/sheets/CAPABILITIES.md) and [9](./src/docs/CAPABILITIES.md) operations sourced entirely from the REST reference). Keeping the two sourced surfaces separate also makes each new operation a bounded, documentation-driven unit of work; the recipe is in [EXTENDING.md](./EXTENDING.md).
|
|
71
71
|
|
|
72
72
|
## Quickstart
|
|
73
73
|
|
|
@@ -187,7 +187,7 @@ See [CONTRIBUTING.md](./CONTRIBUTING.md) for the full task list, [AGENTS.md](./A
|
|
|
187
187
|
|---|---|---|
|
|
188
188
|
| **Gmail** | ✅ Implemented | [33 operations](./src/gmail/CAPABILITIES.md): threads, messages, drafts, labels, filters, attachments |
|
|
189
189
|
| **Calendar** | ✅ Implemented | [25 operations](./src/calendar/CAPABILITIES.md): events, calendars, free/busy, meeting-time suggestions |
|
|
190
|
-
| **Sheets** | ✅ Implemented | [
|
|
190
|
+
| **Sheets** | ✅ Implemented | [59 operations](./src/sheets/CAPABILITIES.md): spreadsheets, values, batch and data-filter reads/writes, developer metadata, sheet management, dimensions and ranges, named ranges, formatting and borders, cell content and merges, sorting, filters, data transformations, conditional format rules, data validation, protected ranges, charts |
|
|
191
191
|
| **Docs** | ✅ Implemented | [9 operations](./src/docs/CAPABILITIES.md): document reads and creation, curated text editing and styling |
|
|
192
192
|
| **Drive** | ✅ Implemented | [35 operations](./src/drive/CAPABILITIES.md): files, search, content, comments, revisions, shared drives |
|
|
193
193
|
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* The default filter associated with a sheet. This curated shape carries
|
|
4
|
+
* ordinary range-backed filters; table backing and the deprecated criteria
|
|
5
|
+
* map are not carried.
|
|
6
|
+
*
|
|
7
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#BasicFilter
|
|
8
|
+
*/
|
|
9
|
+
export declare const BasicFilter: z.ZodObject<{
|
|
10
|
+
range: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
sheetId: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
startRowIndex: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
endRowIndex: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
startColumnIndex: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
endColumnIndex: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
}, z.core.$strict>>;
|
|
17
|
+
sortSpecs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18
|
+
dimensionIndex: z.ZodNumber;
|
|
19
|
+
sortOrder: z.ZodEnum<{
|
|
20
|
+
ASCENDING: "ASCENDING";
|
|
21
|
+
DESCENDING: "DESCENDING";
|
|
22
|
+
}>;
|
|
23
|
+
}, z.core.$strict>>>;
|
|
24
|
+
filterSpecs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
25
|
+
filterCriteria: z.ZodObject<{
|
|
26
|
+
hiddenValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
27
|
+
condition: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
type: z.ZodEnum<{
|
|
29
|
+
BLANK: "BLANK";
|
|
30
|
+
BOOLEAN: "BOOLEAN";
|
|
31
|
+
CUSTOM_FORMULA: "CUSTOM_FORMULA";
|
|
32
|
+
DATE_AFTER: "DATE_AFTER";
|
|
33
|
+
DATE_BEFORE: "DATE_BEFORE";
|
|
34
|
+
DATE_BETWEEN: "DATE_BETWEEN";
|
|
35
|
+
DATE_EQ: "DATE_EQ";
|
|
36
|
+
DATE_IS_VALID: "DATE_IS_VALID";
|
|
37
|
+
DATE_NOT_BETWEEN: "DATE_NOT_BETWEEN";
|
|
38
|
+
DATE_ON_OR_AFTER: "DATE_ON_OR_AFTER";
|
|
39
|
+
DATE_ON_OR_BEFORE: "DATE_ON_OR_BEFORE";
|
|
40
|
+
FILTER_EXPRESSION: "FILTER_EXPRESSION";
|
|
41
|
+
NOT_BLANK: "NOT_BLANK";
|
|
42
|
+
NUMBER_BETWEEN: "NUMBER_BETWEEN";
|
|
43
|
+
NUMBER_EQ: "NUMBER_EQ";
|
|
44
|
+
NUMBER_GREATER: "NUMBER_GREATER";
|
|
45
|
+
NUMBER_GREATER_THAN_EQ: "NUMBER_GREATER_THAN_EQ";
|
|
46
|
+
NUMBER_LESS: "NUMBER_LESS";
|
|
47
|
+
NUMBER_LESS_THAN_EQ: "NUMBER_LESS_THAN_EQ";
|
|
48
|
+
NUMBER_NOT_BETWEEN: "NUMBER_NOT_BETWEEN";
|
|
49
|
+
NUMBER_NOT_EQ: "NUMBER_NOT_EQ";
|
|
50
|
+
ONE_OF_LIST: "ONE_OF_LIST";
|
|
51
|
+
ONE_OF_RANGE: "ONE_OF_RANGE";
|
|
52
|
+
TEXT_CONTAINS: "TEXT_CONTAINS";
|
|
53
|
+
TEXT_ENDS_WITH: "TEXT_ENDS_WITH";
|
|
54
|
+
TEXT_EQ: "TEXT_EQ";
|
|
55
|
+
TEXT_IS_EMAIL: "TEXT_IS_EMAIL";
|
|
56
|
+
TEXT_IS_URL: "TEXT_IS_URL";
|
|
57
|
+
TEXT_NOT_CONTAINS: "TEXT_NOT_CONTAINS";
|
|
58
|
+
TEXT_STARTS_WITH: "TEXT_STARTS_WITH";
|
|
59
|
+
}>;
|
|
60
|
+
values: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
61
|
+
relativeDate: z.ZodOptional<z.ZodEnum<{
|
|
62
|
+
PAST_MONTH: "PAST_MONTH";
|
|
63
|
+
PAST_WEEK: "PAST_WEEK";
|
|
64
|
+
PAST_YEAR: "PAST_YEAR";
|
|
65
|
+
TODAY: "TODAY";
|
|
66
|
+
TOMORROW: "TOMORROW";
|
|
67
|
+
YESTERDAY: "YESTERDAY";
|
|
68
|
+
}>>;
|
|
69
|
+
userEnteredValue: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, z.core.$strict>>>;
|
|
71
|
+
}, z.core.$strict>>;
|
|
72
|
+
visibleBackgroundColorStyle: z.ZodOptional<z.ZodObject<{
|
|
73
|
+
rgbColor: z.ZodOptional<z.ZodObject<{
|
|
74
|
+
red: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
green: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
blue: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
}, z.core.$strict>>;
|
|
78
|
+
themeColor: z.ZodOptional<z.ZodEnum<{
|
|
79
|
+
ACCENT1: "ACCENT1";
|
|
80
|
+
ACCENT2: "ACCENT2";
|
|
81
|
+
ACCENT3: "ACCENT3";
|
|
82
|
+
ACCENT4: "ACCENT4";
|
|
83
|
+
ACCENT5: "ACCENT5";
|
|
84
|
+
ACCENT6: "ACCENT6";
|
|
85
|
+
BACKGROUND: "BACKGROUND";
|
|
86
|
+
LINK: "LINK";
|
|
87
|
+
TEXT: "TEXT";
|
|
88
|
+
}>>;
|
|
89
|
+
}, z.core.$strict>>;
|
|
90
|
+
visibleForegroundColorStyle: z.ZodOptional<z.ZodObject<{
|
|
91
|
+
rgbColor: z.ZodOptional<z.ZodObject<{
|
|
92
|
+
red: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
green: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
blue: z.ZodOptional<z.ZodNumber>;
|
|
95
|
+
}, z.core.$strict>>;
|
|
96
|
+
themeColor: z.ZodOptional<z.ZodEnum<{
|
|
97
|
+
ACCENT1: "ACCENT1";
|
|
98
|
+
ACCENT2: "ACCENT2";
|
|
99
|
+
ACCENT3: "ACCENT3";
|
|
100
|
+
ACCENT4: "ACCENT4";
|
|
101
|
+
ACCENT5: "ACCENT5";
|
|
102
|
+
ACCENT6: "ACCENT6";
|
|
103
|
+
BACKGROUND: "BACKGROUND";
|
|
104
|
+
LINK: "LINK";
|
|
105
|
+
TEXT: "TEXT";
|
|
106
|
+
}>>;
|
|
107
|
+
}, z.core.$strict>>;
|
|
108
|
+
}, z.core.$strict>;
|
|
109
|
+
columnIndex: z.ZodNumber;
|
|
110
|
+
}, z.core.$strict>>>;
|
|
111
|
+
}, z.core.$strict>;
|
|
112
|
+
export type BasicFilter = z.infer<typeof BasicFilter>;
|
|
113
|
+
/** Read-side BasicFilter shape with a total sort-specification list. */
|
|
114
|
+
export declare const BasicFilterReadout: z.ZodObject<{
|
|
115
|
+
range: z.ZodOptional<z.ZodObject<{
|
|
116
|
+
sheetId: z.ZodOptional<z.ZodNumber>;
|
|
117
|
+
startRowIndex: z.ZodOptional<z.ZodNumber>;
|
|
118
|
+
endRowIndex: z.ZodOptional<z.ZodNumber>;
|
|
119
|
+
startColumnIndex: z.ZodOptional<z.ZodNumber>;
|
|
120
|
+
endColumnIndex: z.ZodOptional<z.ZodNumber>;
|
|
121
|
+
}, z.core.$strict>>;
|
|
122
|
+
filterSpecs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
123
|
+
filterCriteria: z.ZodObject<{
|
|
124
|
+
hiddenValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
125
|
+
condition: z.ZodOptional<z.ZodObject<{
|
|
126
|
+
type: z.ZodEnum<{
|
|
127
|
+
BLANK: "BLANK";
|
|
128
|
+
BOOLEAN: "BOOLEAN";
|
|
129
|
+
CUSTOM_FORMULA: "CUSTOM_FORMULA";
|
|
130
|
+
DATE_AFTER: "DATE_AFTER";
|
|
131
|
+
DATE_BEFORE: "DATE_BEFORE";
|
|
132
|
+
DATE_BETWEEN: "DATE_BETWEEN";
|
|
133
|
+
DATE_EQ: "DATE_EQ";
|
|
134
|
+
DATE_IS_VALID: "DATE_IS_VALID";
|
|
135
|
+
DATE_NOT_BETWEEN: "DATE_NOT_BETWEEN";
|
|
136
|
+
DATE_ON_OR_AFTER: "DATE_ON_OR_AFTER";
|
|
137
|
+
DATE_ON_OR_BEFORE: "DATE_ON_OR_BEFORE";
|
|
138
|
+
FILTER_EXPRESSION: "FILTER_EXPRESSION";
|
|
139
|
+
NOT_BLANK: "NOT_BLANK";
|
|
140
|
+
NUMBER_BETWEEN: "NUMBER_BETWEEN";
|
|
141
|
+
NUMBER_EQ: "NUMBER_EQ";
|
|
142
|
+
NUMBER_GREATER: "NUMBER_GREATER";
|
|
143
|
+
NUMBER_GREATER_THAN_EQ: "NUMBER_GREATER_THAN_EQ";
|
|
144
|
+
NUMBER_LESS: "NUMBER_LESS";
|
|
145
|
+
NUMBER_LESS_THAN_EQ: "NUMBER_LESS_THAN_EQ";
|
|
146
|
+
NUMBER_NOT_BETWEEN: "NUMBER_NOT_BETWEEN";
|
|
147
|
+
NUMBER_NOT_EQ: "NUMBER_NOT_EQ";
|
|
148
|
+
ONE_OF_LIST: "ONE_OF_LIST";
|
|
149
|
+
ONE_OF_RANGE: "ONE_OF_RANGE";
|
|
150
|
+
TEXT_CONTAINS: "TEXT_CONTAINS";
|
|
151
|
+
TEXT_ENDS_WITH: "TEXT_ENDS_WITH";
|
|
152
|
+
TEXT_EQ: "TEXT_EQ";
|
|
153
|
+
TEXT_IS_EMAIL: "TEXT_IS_EMAIL";
|
|
154
|
+
TEXT_IS_URL: "TEXT_IS_URL";
|
|
155
|
+
TEXT_NOT_CONTAINS: "TEXT_NOT_CONTAINS";
|
|
156
|
+
TEXT_STARTS_WITH: "TEXT_STARTS_WITH";
|
|
157
|
+
}>;
|
|
158
|
+
values: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
159
|
+
relativeDate: z.ZodOptional<z.ZodEnum<{
|
|
160
|
+
PAST_MONTH: "PAST_MONTH";
|
|
161
|
+
PAST_WEEK: "PAST_WEEK";
|
|
162
|
+
PAST_YEAR: "PAST_YEAR";
|
|
163
|
+
TODAY: "TODAY";
|
|
164
|
+
TOMORROW: "TOMORROW";
|
|
165
|
+
YESTERDAY: "YESTERDAY";
|
|
166
|
+
}>>;
|
|
167
|
+
userEnteredValue: z.ZodOptional<z.ZodString>;
|
|
168
|
+
}, z.core.$strict>>>;
|
|
169
|
+
}, z.core.$strict>>;
|
|
170
|
+
visibleBackgroundColorStyle: z.ZodOptional<z.ZodObject<{
|
|
171
|
+
rgbColor: z.ZodOptional<z.ZodObject<{
|
|
172
|
+
red: z.ZodOptional<z.ZodNumber>;
|
|
173
|
+
green: z.ZodOptional<z.ZodNumber>;
|
|
174
|
+
blue: z.ZodOptional<z.ZodNumber>;
|
|
175
|
+
}, z.core.$strict>>;
|
|
176
|
+
themeColor: z.ZodOptional<z.ZodEnum<{
|
|
177
|
+
ACCENT1: "ACCENT1";
|
|
178
|
+
ACCENT2: "ACCENT2";
|
|
179
|
+
ACCENT3: "ACCENT3";
|
|
180
|
+
ACCENT4: "ACCENT4";
|
|
181
|
+
ACCENT5: "ACCENT5";
|
|
182
|
+
ACCENT6: "ACCENT6";
|
|
183
|
+
BACKGROUND: "BACKGROUND";
|
|
184
|
+
LINK: "LINK";
|
|
185
|
+
TEXT: "TEXT";
|
|
186
|
+
}>>;
|
|
187
|
+
}, z.core.$strict>>;
|
|
188
|
+
visibleForegroundColorStyle: z.ZodOptional<z.ZodObject<{
|
|
189
|
+
rgbColor: z.ZodOptional<z.ZodObject<{
|
|
190
|
+
red: z.ZodOptional<z.ZodNumber>;
|
|
191
|
+
green: z.ZodOptional<z.ZodNumber>;
|
|
192
|
+
blue: z.ZodOptional<z.ZodNumber>;
|
|
193
|
+
}, z.core.$strict>>;
|
|
194
|
+
themeColor: z.ZodOptional<z.ZodEnum<{
|
|
195
|
+
ACCENT1: "ACCENT1";
|
|
196
|
+
ACCENT2: "ACCENT2";
|
|
197
|
+
ACCENT3: "ACCENT3";
|
|
198
|
+
ACCENT4: "ACCENT4";
|
|
199
|
+
ACCENT5: "ACCENT5";
|
|
200
|
+
ACCENT6: "ACCENT6";
|
|
201
|
+
BACKGROUND: "BACKGROUND";
|
|
202
|
+
LINK: "LINK";
|
|
203
|
+
TEXT: "TEXT";
|
|
204
|
+
}>>;
|
|
205
|
+
}, z.core.$strict>>;
|
|
206
|
+
}, z.core.$strict>;
|
|
207
|
+
columnIndex: z.ZodNumber;
|
|
208
|
+
}, z.core.$strict>>>;
|
|
209
|
+
sortSpecs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
210
|
+
dimensionIndex: z.ZodOptional<z.ZodNumber>;
|
|
211
|
+
sortOrder: z.ZodOptional<z.ZodString>;
|
|
212
|
+
}, z.core.$strip>>>;
|
|
213
|
+
}, z.core.$strict>;
|
|
214
|
+
export type BasicFilterReadout = z.infer<typeof BasicFilterReadout>;
|
|
215
|
+
//# sourceMappingURL=BasicFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasicFilter.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/BasicFilter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;;;;GAMG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAOtB,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,wEAAwE;AACxE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAK7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { FilterSpec } from './FilterSpec.js';
|
|
3
|
+
import { GridRange } from './GridRange.js';
|
|
4
|
+
import { SortSpec, SortSpecReadout } from './SortSpec.js';
|
|
5
|
+
/**
|
|
6
|
+
* The default filter associated with a sheet. This curated shape carries
|
|
7
|
+
* ordinary range-backed filters; table backing and the deprecated criteria
|
|
8
|
+
* map are not carried.
|
|
9
|
+
*
|
|
10
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#BasicFilter
|
|
11
|
+
*/
|
|
12
|
+
export const BasicFilter = z.strictObject({
|
|
13
|
+
range: GridRange.optional().describe('The range the filter covers.'),
|
|
14
|
+
sortSpecs: z
|
|
15
|
+
.array(SortSpec)
|
|
16
|
+
.optional()
|
|
17
|
+
.describe('The sort order per column; later specifications break ties from earlier ones.'),
|
|
18
|
+
filterSpecs: z.array(FilterSpec).optional().describe('The filter criteria per column.'),
|
|
19
|
+
});
|
|
20
|
+
/** Read-side BasicFilter shape with a total sort-specification list. */
|
|
21
|
+
export const BasicFilterReadout = BasicFilter.extend({
|
|
22
|
+
sortSpecs: z
|
|
23
|
+
.array(SortSpecReadout)
|
|
24
|
+
.optional()
|
|
25
|
+
.describe('The sort order per column; later specifications break ties from earlier ones.'),
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=BasicFilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasicFilter.js","sourceRoot":"","sources":["../../../src/sheets/entities/BasicFilter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAE1D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,YAAY,CAAC;IACxC,KAAK,EAAE,SAAS,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IACpE,SAAS,EAAE,CAAC;SACT,KAAK,CAAC,QAAQ,CAAC;SACf,QAAQ,EAAE;SACV,QAAQ,CAAC,+EAA+E,CAAC;IAC5F,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;CACxF,CAAC,CAAC;AAIH,wEAAwE;AACxE,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAAC,MAAM,CAAC;IACnD,SAAS,EAAE,CAAC;SACT,KAAK,CAAC,eAAe,CAAC;SACtB,QAAQ,EAAE;SACV,QAAQ,CAAC,+EAA+E,CAAC;CAC7F,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { FilterSpec } from './FilterSpec.js';\nimport { GridRange } from './GridRange.js';\nimport { SortSpec, SortSpecReadout } from './SortSpec.js';\n\n/**\n * The default filter associated with a sheet. This curated shape carries\n * ordinary range-backed filters; table backing and the deprecated criteria\n * map are not carried.\n *\n * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#BasicFilter\n */\nexport const BasicFilter = z.strictObject({\n range: GridRange.optional().describe('The range the filter covers.'),\n sortSpecs: z\n .array(SortSpec)\n .optional()\n .describe('The sort order per column; later specifications break ties from earlier ones.'),\n filterSpecs: z.array(FilterSpec).optional().describe('The filter criteria per column.'),\n});\n\nexport type BasicFilter = z.infer<typeof BasicFilter>;\n\n/** Read-side BasicFilter shape with a total sort-specification list. */\nexport const BasicFilterReadout = BasicFilter.extend({\n sortSpecs: z\n .array(SortSpecReadout)\n .optional()\n .describe('The sort order per column; later specifications break ties from earlier ones.'),\n});\n\nexport type BasicFilterReadout = z.infer<typeof BasicFilterReadout>;\n"]}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* A condition that can evaluate to true or false, the shared predicate
|
|
4
|
+
* vocabulary of data validation, conditional formatting, and filters. How
|
|
5
|
+
* many values a type takes depends on the type: the comparisons take one,
|
|
6
|
+
* the BETWEEN family exactly two, ONE_OF_LIST any number, and the
|
|
7
|
+
* emptiness and validity checks none.
|
|
8
|
+
*
|
|
9
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/other#BooleanCondition
|
|
10
|
+
*/
|
|
11
|
+
export declare const BooleanCondition: z.ZodObject<{
|
|
12
|
+
type: z.ZodEnum<{
|
|
13
|
+
BLANK: "BLANK";
|
|
14
|
+
BOOLEAN: "BOOLEAN";
|
|
15
|
+
CUSTOM_FORMULA: "CUSTOM_FORMULA";
|
|
16
|
+
DATE_AFTER: "DATE_AFTER";
|
|
17
|
+
DATE_BEFORE: "DATE_BEFORE";
|
|
18
|
+
DATE_BETWEEN: "DATE_BETWEEN";
|
|
19
|
+
DATE_EQ: "DATE_EQ";
|
|
20
|
+
DATE_IS_VALID: "DATE_IS_VALID";
|
|
21
|
+
DATE_NOT_BETWEEN: "DATE_NOT_BETWEEN";
|
|
22
|
+
DATE_ON_OR_AFTER: "DATE_ON_OR_AFTER";
|
|
23
|
+
DATE_ON_OR_BEFORE: "DATE_ON_OR_BEFORE";
|
|
24
|
+
FILTER_EXPRESSION: "FILTER_EXPRESSION";
|
|
25
|
+
NOT_BLANK: "NOT_BLANK";
|
|
26
|
+
NUMBER_BETWEEN: "NUMBER_BETWEEN";
|
|
27
|
+
NUMBER_EQ: "NUMBER_EQ";
|
|
28
|
+
NUMBER_GREATER: "NUMBER_GREATER";
|
|
29
|
+
NUMBER_GREATER_THAN_EQ: "NUMBER_GREATER_THAN_EQ";
|
|
30
|
+
NUMBER_LESS: "NUMBER_LESS";
|
|
31
|
+
NUMBER_LESS_THAN_EQ: "NUMBER_LESS_THAN_EQ";
|
|
32
|
+
NUMBER_NOT_BETWEEN: "NUMBER_NOT_BETWEEN";
|
|
33
|
+
NUMBER_NOT_EQ: "NUMBER_NOT_EQ";
|
|
34
|
+
ONE_OF_LIST: "ONE_OF_LIST";
|
|
35
|
+
ONE_OF_RANGE: "ONE_OF_RANGE";
|
|
36
|
+
TEXT_CONTAINS: "TEXT_CONTAINS";
|
|
37
|
+
TEXT_ENDS_WITH: "TEXT_ENDS_WITH";
|
|
38
|
+
TEXT_EQ: "TEXT_EQ";
|
|
39
|
+
TEXT_IS_EMAIL: "TEXT_IS_EMAIL";
|
|
40
|
+
TEXT_IS_URL: "TEXT_IS_URL";
|
|
41
|
+
TEXT_NOT_CONTAINS: "TEXT_NOT_CONTAINS";
|
|
42
|
+
TEXT_STARTS_WITH: "TEXT_STARTS_WITH";
|
|
43
|
+
}>;
|
|
44
|
+
values: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
45
|
+
relativeDate: z.ZodOptional<z.ZodEnum<{
|
|
46
|
+
PAST_MONTH: "PAST_MONTH";
|
|
47
|
+
PAST_WEEK: "PAST_WEEK";
|
|
48
|
+
PAST_YEAR: "PAST_YEAR";
|
|
49
|
+
TODAY: "TODAY";
|
|
50
|
+
TOMORROW: "TOMORROW";
|
|
51
|
+
YESTERDAY: "YESTERDAY";
|
|
52
|
+
}>>;
|
|
53
|
+
userEnteredValue: z.ZodOptional<z.ZodString>;
|
|
54
|
+
}, z.core.$strict>>>;
|
|
55
|
+
}, z.core.$strict>;
|
|
56
|
+
export type BooleanCondition = z.infer<typeof BooleanCondition>;
|
|
57
|
+
//# sourceMappingURL=BooleanCondition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BooleanCondition.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/BooleanCondition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA2C3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ConditionValue } from './ConditionValue.js';
|
|
3
|
+
/**
|
|
4
|
+
* A condition that can evaluate to true or false, the shared predicate
|
|
5
|
+
* vocabulary of data validation, conditional formatting, and filters. How
|
|
6
|
+
* many values a type takes depends on the type: the comparisons take one,
|
|
7
|
+
* the BETWEEN family exactly two, ONE_OF_LIST any number, and the
|
|
8
|
+
* emptiness and validity checks none.
|
|
9
|
+
*
|
|
10
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/other#BooleanCondition
|
|
11
|
+
*/
|
|
12
|
+
export const BooleanCondition = z.strictObject({
|
|
13
|
+
type: z
|
|
14
|
+
.enum([
|
|
15
|
+
'NUMBER_GREATER',
|
|
16
|
+
'NUMBER_GREATER_THAN_EQ',
|
|
17
|
+
'NUMBER_LESS',
|
|
18
|
+
'NUMBER_LESS_THAN_EQ',
|
|
19
|
+
'NUMBER_EQ',
|
|
20
|
+
'NUMBER_NOT_EQ',
|
|
21
|
+
'NUMBER_BETWEEN',
|
|
22
|
+
'NUMBER_NOT_BETWEEN',
|
|
23
|
+
'TEXT_CONTAINS',
|
|
24
|
+
'TEXT_NOT_CONTAINS',
|
|
25
|
+
'TEXT_STARTS_WITH',
|
|
26
|
+
'TEXT_ENDS_WITH',
|
|
27
|
+
'TEXT_EQ',
|
|
28
|
+
'TEXT_IS_EMAIL',
|
|
29
|
+
'TEXT_IS_URL',
|
|
30
|
+
'DATE_EQ',
|
|
31
|
+
'DATE_BEFORE',
|
|
32
|
+
'DATE_AFTER',
|
|
33
|
+
'DATE_ON_OR_BEFORE',
|
|
34
|
+
'DATE_ON_OR_AFTER',
|
|
35
|
+
'DATE_BETWEEN',
|
|
36
|
+
'DATE_NOT_BETWEEN',
|
|
37
|
+
'DATE_IS_VALID',
|
|
38
|
+
'ONE_OF_RANGE',
|
|
39
|
+
'ONE_OF_LIST',
|
|
40
|
+
'BLANK',
|
|
41
|
+
'NOT_BLANK',
|
|
42
|
+
'CUSTOM_FORMULA',
|
|
43
|
+
'BOOLEAN',
|
|
44
|
+
'FILTER_EXPRESSION',
|
|
45
|
+
])
|
|
46
|
+
.describe('The type of condition. Support varies by context: TEXT_IS_EMAIL, TEXT_IS_URL, DATE_ON_OR_BEFORE, DATE_ON_OR_AFTER, DATE_BETWEEN, DATE_NOT_BETWEEN, DATE_IS_VALID, ONE_OF_RANGE, ONE_OF_LIST, and BOOLEAN apply only to data validation; TEXT_STARTS_WITH, TEXT_ENDS_WITH, BLANK, and NOT_BLANK apply only to conditional formatting and filters; FILTER_EXPRESSION is a filter pattern and takes one value.'),
|
|
47
|
+
values: z
|
|
48
|
+
.array(ConditionValue)
|
|
49
|
+
.optional()
|
|
50
|
+
.describe('The values of the condition; how many are required depends on the type (comparisons take one, the BETWEEN family exactly two, ONE_OF_LIST any number, the no-argument checks none, and BOOLEAN zero, one, or two).'),
|
|
51
|
+
});
|
|
52
|
+
//# sourceMappingURL=BooleanCondition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BooleanCondition.js","sourceRoot":"","sources":["../../../src/sheets/entities/BooleanCondition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,IAAI,EAAE,CAAC;SACJ,IAAI,CAAC;QACJ,gBAAgB;QAChB,wBAAwB;QACxB,aAAa;QACb,qBAAqB;QACrB,WAAW;QACX,eAAe;QACf,gBAAgB;QAChB,oBAAoB;QACpB,eAAe;QACf,mBAAmB;QACnB,kBAAkB;QAClB,gBAAgB;QAChB,SAAS;QACT,eAAe;QACf,aAAa;QACb,SAAS;QACT,aAAa;QACb,YAAY;QACZ,mBAAmB;QACnB,kBAAkB;QAClB,cAAc;QACd,kBAAkB;QAClB,eAAe;QACf,cAAc;QACd,aAAa;QACb,OAAO;QACP,WAAW;QACX,gBAAgB;QAChB,SAAS;QACT,mBAAmB;KACpB,CAAC;SACD,QAAQ,CACP,6YAA6Y,CAC9Y;IACH,MAAM,EAAE,CAAC;SACN,KAAK,CAAC,cAAc,CAAC;SACrB,QAAQ,EAAE;SACV,QAAQ,CACP,oNAAoN,CACrN;CACJ,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { ConditionValue } from './ConditionValue.js';\n\n/**\n * A condition that can evaluate to true or false, the shared predicate\n * vocabulary of data validation, conditional formatting, and filters. How\n * many values a type takes depends on the type: the comparisons take one,\n * the BETWEEN family exactly two, ONE_OF_LIST any number, and the\n * emptiness and validity checks none.\n *\n * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/other#BooleanCondition\n */\nexport const BooleanCondition = z.strictObject({\n type: z\n .enum([\n 'NUMBER_GREATER',\n 'NUMBER_GREATER_THAN_EQ',\n 'NUMBER_LESS',\n 'NUMBER_LESS_THAN_EQ',\n 'NUMBER_EQ',\n 'NUMBER_NOT_EQ',\n 'NUMBER_BETWEEN',\n 'NUMBER_NOT_BETWEEN',\n 'TEXT_CONTAINS',\n 'TEXT_NOT_CONTAINS',\n 'TEXT_STARTS_WITH',\n 'TEXT_ENDS_WITH',\n 'TEXT_EQ',\n 'TEXT_IS_EMAIL',\n 'TEXT_IS_URL',\n 'DATE_EQ',\n 'DATE_BEFORE',\n 'DATE_AFTER',\n 'DATE_ON_OR_BEFORE',\n 'DATE_ON_OR_AFTER',\n 'DATE_BETWEEN',\n 'DATE_NOT_BETWEEN',\n 'DATE_IS_VALID',\n 'ONE_OF_RANGE',\n 'ONE_OF_LIST',\n 'BLANK',\n 'NOT_BLANK',\n 'CUSTOM_FORMULA',\n 'BOOLEAN',\n 'FILTER_EXPRESSION',\n ])\n .describe(\n 'The type of condition. Support varies by context: TEXT_IS_EMAIL, TEXT_IS_URL, DATE_ON_OR_BEFORE, DATE_ON_OR_AFTER, DATE_BETWEEN, DATE_NOT_BETWEEN, DATE_IS_VALID, ONE_OF_RANGE, ONE_OF_LIST, and BOOLEAN apply only to data validation; TEXT_STARTS_WITH, TEXT_ENDS_WITH, BLANK, and NOT_BLANK apply only to conditional formatting and filters; FILTER_EXPRESSION is a filter pattern and takes one value.',\n ),\n values: z\n .array(ConditionValue)\n .optional()\n .describe(\n 'The values of the condition; how many are required depends on the type (comparisons take one, the BETWEEN family exactly two, ONE_OF_LIST any number, the no-argument checks none, and BOOLEAN zero, one, or two).',\n ),\n});\n\nexport type BooleanCondition = z.infer<typeof BooleanCondition>;\n"]}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* An on/off conditional format: cells matching the condition get the format,
|
|
4
|
+
* cells that stop matching lose it, with no further calls. The format is the
|
|
5
|
+
* documented conditional-formatting subset, not the full CellFormat.
|
|
6
|
+
*
|
|
7
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#BooleanRule
|
|
8
|
+
*/
|
|
9
|
+
export declare const BooleanRule: z.ZodObject<{
|
|
10
|
+
condition: z.ZodObject<{
|
|
11
|
+
type: z.ZodEnum<{
|
|
12
|
+
BLANK: "BLANK";
|
|
13
|
+
BOOLEAN: "BOOLEAN";
|
|
14
|
+
CUSTOM_FORMULA: "CUSTOM_FORMULA";
|
|
15
|
+
DATE_AFTER: "DATE_AFTER";
|
|
16
|
+
DATE_BEFORE: "DATE_BEFORE";
|
|
17
|
+
DATE_BETWEEN: "DATE_BETWEEN";
|
|
18
|
+
DATE_EQ: "DATE_EQ";
|
|
19
|
+
DATE_IS_VALID: "DATE_IS_VALID";
|
|
20
|
+
DATE_NOT_BETWEEN: "DATE_NOT_BETWEEN";
|
|
21
|
+
DATE_ON_OR_AFTER: "DATE_ON_OR_AFTER";
|
|
22
|
+
DATE_ON_OR_BEFORE: "DATE_ON_OR_BEFORE";
|
|
23
|
+
FILTER_EXPRESSION: "FILTER_EXPRESSION";
|
|
24
|
+
NOT_BLANK: "NOT_BLANK";
|
|
25
|
+
NUMBER_BETWEEN: "NUMBER_BETWEEN";
|
|
26
|
+
NUMBER_EQ: "NUMBER_EQ";
|
|
27
|
+
NUMBER_GREATER: "NUMBER_GREATER";
|
|
28
|
+
NUMBER_GREATER_THAN_EQ: "NUMBER_GREATER_THAN_EQ";
|
|
29
|
+
NUMBER_LESS: "NUMBER_LESS";
|
|
30
|
+
NUMBER_LESS_THAN_EQ: "NUMBER_LESS_THAN_EQ";
|
|
31
|
+
NUMBER_NOT_BETWEEN: "NUMBER_NOT_BETWEEN";
|
|
32
|
+
NUMBER_NOT_EQ: "NUMBER_NOT_EQ";
|
|
33
|
+
ONE_OF_LIST: "ONE_OF_LIST";
|
|
34
|
+
ONE_OF_RANGE: "ONE_OF_RANGE";
|
|
35
|
+
TEXT_CONTAINS: "TEXT_CONTAINS";
|
|
36
|
+
TEXT_ENDS_WITH: "TEXT_ENDS_WITH";
|
|
37
|
+
TEXT_EQ: "TEXT_EQ";
|
|
38
|
+
TEXT_IS_EMAIL: "TEXT_IS_EMAIL";
|
|
39
|
+
TEXT_IS_URL: "TEXT_IS_URL";
|
|
40
|
+
TEXT_NOT_CONTAINS: "TEXT_NOT_CONTAINS";
|
|
41
|
+
TEXT_STARTS_WITH: "TEXT_STARTS_WITH";
|
|
42
|
+
}>;
|
|
43
|
+
values: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
44
|
+
relativeDate: z.ZodOptional<z.ZodEnum<{
|
|
45
|
+
PAST_MONTH: "PAST_MONTH";
|
|
46
|
+
PAST_WEEK: "PAST_WEEK";
|
|
47
|
+
PAST_YEAR: "PAST_YEAR";
|
|
48
|
+
TODAY: "TODAY";
|
|
49
|
+
TOMORROW: "TOMORROW";
|
|
50
|
+
YESTERDAY: "YESTERDAY";
|
|
51
|
+
}>>;
|
|
52
|
+
userEnteredValue: z.ZodOptional<z.ZodString>;
|
|
53
|
+
}, z.core.$strict>>>;
|
|
54
|
+
}, z.core.$strict>;
|
|
55
|
+
format: z.ZodObject<{
|
|
56
|
+
backgroundColorStyle: z.ZodOptional<z.ZodObject<{
|
|
57
|
+
rgbColor: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
red: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
green: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
blue: z.ZodOptional<z.ZodNumber>;
|
|
61
|
+
}, z.core.$strict>>;
|
|
62
|
+
themeColor: z.ZodOptional<z.ZodEnum<{
|
|
63
|
+
ACCENT1: "ACCENT1";
|
|
64
|
+
ACCENT2: "ACCENT2";
|
|
65
|
+
ACCENT3: "ACCENT3";
|
|
66
|
+
ACCENT4: "ACCENT4";
|
|
67
|
+
ACCENT5: "ACCENT5";
|
|
68
|
+
ACCENT6: "ACCENT6";
|
|
69
|
+
BACKGROUND: "BACKGROUND";
|
|
70
|
+
LINK: "LINK";
|
|
71
|
+
TEXT: "TEXT";
|
|
72
|
+
}>>;
|
|
73
|
+
}, z.core.$strict>>;
|
|
74
|
+
textFormat: z.ZodOptional<z.ZodObject<{
|
|
75
|
+
foregroundColorStyle: z.ZodOptional<z.ZodObject<{
|
|
76
|
+
rgbColor: z.ZodOptional<z.ZodObject<{
|
|
77
|
+
red: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
green: z.ZodOptional<z.ZodNumber>;
|
|
79
|
+
blue: z.ZodOptional<z.ZodNumber>;
|
|
80
|
+
}, z.core.$strict>>;
|
|
81
|
+
themeColor: z.ZodOptional<z.ZodEnum<{
|
|
82
|
+
ACCENT1: "ACCENT1";
|
|
83
|
+
ACCENT2: "ACCENT2";
|
|
84
|
+
ACCENT3: "ACCENT3";
|
|
85
|
+
ACCENT4: "ACCENT4";
|
|
86
|
+
ACCENT5: "ACCENT5";
|
|
87
|
+
ACCENT6: "ACCENT6";
|
|
88
|
+
BACKGROUND: "BACKGROUND";
|
|
89
|
+
LINK: "LINK";
|
|
90
|
+
TEXT: "TEXT";
|
|
91
|
+
}>>;
|
|
92
|
+
}, z.core.$strict>>;
|
|
93
|
+
bold: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
+
italic: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
+
strikethrough: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
+
}, z.core.$strict>>;
|
|
97
|
+
}, z.core.$strict>;
|
|
98
|
+
}, z.core.$strict>;
|
|
99
|
+
export type BooleanRule = z.infer<typeof BooleanRule>;
|
|
100
|
+
//# sourceMappingURL=BooleanRule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BooleanRule.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/BooleanRule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA2BxB;;;;;;GAMG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAOtB,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BooleanCondition } from './BooleanCondition.js';
|
|
3
|
+
import { ColorStyle } from './ColorStyle.js';
|
|
4
|
+
/**
|
|
5
|
+
* The text format subset a conditional format can apply: bold, italic,
|
|
6
|
+
* strikethrough, and foreground color, per BooleanRule's documented limits.
|
|
7
|
+
*/
|
|
8
|
+
const BooleanRuleTextFormat = z.strictObject({
|
|
9
|
+
foregroundColorStyle: ColorStyle.optional().describe('The foreground color of the text.'),
|
|
10
|
+
bold: z.boolean().optional().describe('True if the text is bold.'),
|
|
11
|
+
italic: z.boolean().optional().describe('True if the text is italicized.'),
|
|
12
|
+
strikethrough: z.boolean().optional().describe('True if the text has a strikethrough.'),
|
|
13
|
+
});
|
|
14
|
+
/**
|
|
15
|
+
* The format subset a conditional format can apply, narrowed from CellFormat
|
|
16
|
+
* to the five properties BooleanRule documents: bold, italic, strikethrough,
|
|
17
|
+
* foreground color, and background color.
|
|
18
|
+
*/
|
|
19
|
+
const BooleanRuleFormat = z.strictObject({
|
|
20
|
+
backgroundColorStyle: ColorStyle.optional().describe('The background color of the cell.'),
|
|
21
|
+
textFormat: BooleanRuleTextFormat.optional().describe('The bold, italic, strikethrough, and foreground color of the text.'),
|
|
22
|
+
});
|
|
23
|
+
/**
|
|
24
|
+
* An on/off conditional format: cells matching the condition get the format,
|
|
25
|
+
* cells that stop matching lose it, with no further calls. The format is the
|
|
26
|
+
* documented conditional-formatting subset, not the full CellFormat.
|
|
27
|
+
*
|
|
28
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#BooleanRule
|
|
29
|
+
*/
|
|
30
|
+
export const BooleanRule = z.strictObject({
|
|
31
|
+
condition: BooleanCondition.describe('The condition of the rule; cells matching it get the format.'),
|
|
32
|
+
format: BooleanRuleFormat.describe('The format to apply. Conditional formatting can apply only a subset of formatting: bold, italic, strikethrough, foreground color, and background color.'),
|
|
33
|
+
});
|
|
34
|
+
//# sourceMappingURL=BooleanRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BooleanRule.js","sourceRoot":"","sources":["../../../src/sheets/entities/BooleanRule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;GAGG;AACH,MAAM,qBAAqB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,oBAAoB,EAAE,UAAU,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IACzF,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAClE,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IAC1E,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;CACxF,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IACvC,oBAAoB,EAAE,UAAU,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IACzF,UAAU,EAAE,qBAAqB,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACnD,oEAAoE,CACrE;CACF,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,YAAY,CAAC;IACxC,SAAS,EAAE,gBAAgB,CAAC,QAAQ,CAClC,8DAA8D,CAC/D;IACD,MAAM,EAAE,iBAAiB,CAAC,QAAQ,CAChC,yJAAyJ,CAC1J;CACF,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { BooleanCondition } from './BooleanCondition.js';\nimport { ColorStyle } from './ColorStyle.js';\n\n/**\n * The text format subset a conditional format can apply: bold, italic,\n * strikethrough, and foreground color, per BooleanRule's documented limits.\n */\nconst BooleanRuleTextFormat = z.strictObject({\n foregroundColorStyle: ColorStyle.optional().describe('The foreground color of the text.'),\n bold: z.boolean().optional().describe('True if the text is bold.'),\n italic: z.boolean().optional().describe('True if the text is italicized.'),\n strikethrough: z.boolean().optional().describe('True if the text has a strikethrough.'),\n});\n\n/**\n * The format subset a conditional format can apply, narrowed from CellFormat\n * to the five properties BooleanRule documents: bold, italic, strikethrough,\n * foreground color, and background color.\n */\nconst BooleanRuleFormat = z.strictObject({\n backgroundColorStyle: ColorStyle.optional().describe('The background color of the cell.'),\n textFormat: BooleanRuleTextFormat.optional().describe(\n 'The bold, italic, strikethrough, and foreground color of the text.',\n ),\n});\n\n/**\n * An on/off conditional format: cells matching the condition get the format,\n * cells that stop matching lose it, with no further calls. The format is the\n * documented conditional-formatting subset, not the full CellFormat.\n *\n * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#BooleanRule\n */\nexport const BooleanRule = z.strictObject({\n condition: BooleanCondition.describe(\n 'The condition of the rule; cells matching it get the format.',\n ),\n format: BooleanRuleFormat.describe(\n 'The format to apply. Conditional formatting can apply only a subset of formatting: bold, italic, strikethrough, foreground color, and background color.',\n ),\n});\n\nexport type BooleanRule = z.infer<typeof BooleanRule>;\n"]}
|