google-mcp-suite 1.13.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 +1 -0
- package/dist/sheets/entities/BooleanCondition.d.ts.map +1 -1
- package/dist/sheets/entities/BooleanCondition.js +2 -1
- package/dist/sheets/entities/BooleanCondition.js.map +1 -1
- package/dist/sheets/entities/BooleanRule.d.ts +1 -0
- package/dist/sheets/entities/BooleanRule.d.ts.map +1 -1
- package/dist/sheets/entities/ConditionalFormatRule.d.ts +1 -0
- package/dist/sheets/entities/ConditionalFormatRule.d.ts.map +1 -1
- package/dist/sheets/entities/DataValidationRule.d.ts +1 -0
- package/dist/sheets/entities/DataValidationRule.d.ts.map +1 -1
- 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/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/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/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 +205 -2
- package/dist/sheets/entities/Spreadsheet.d.ts.map +1 -1
- package/dist/sheets/entities/Spreadsheet.js +12 -5
- package/dist/sheets/entities/Spreadsheet.js.map +1 -1
- package/dist/sheets/instructions.d.ts.map +1 -1
- package/dist/sheets/instructions.js +12 -6
- package/dist/sheets/instructions.js.map +1 -1
- 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 +15 -0
- package/dist/sheets/lib/formats.js.map +1 -1
- package/dist/sheets/lib/spreadsheet.d.ts +2 -2
- package/dist/sheets/lib/spreadsheet.d.ts.map +1 -1
- package/dist/sheets/lib/spreadsheet.js +10 -16
- package/dist/sheets/lib/spreadsheet.js.map +1 -1
- package/dist/sheets/methods/add_conditional_format_rule/index.d.ts +1 -0
- package/dist/sheets/methods/add_conditional_format_rule/index.d.ts.map +1 -1
- package/dist/sheets/methods/add_conditional_format_rule/schema.d.ts +1 -0
- package/dist/sheets/methods/add_conditional_format_rule/schema.d.ts.map +1 -1
- 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/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/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 +203 -0
- package/dist/sheets/methods/create_spreadsheet/index.d.ts.map +1 -1
- package/dist/sheets/methods/create_spreadsheet/schema.d.ts +203 -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_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_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 +206 -2
- package/dist/sheets/methods/get_spreadsheet/index.d.ts.map +1 -1
- package/dist/sheets/methods/get_spreadsheet/index.js +4 -3
- package/dist/sheets/methods/get_spreadsheet/index.js.map +1 -1
- package/dist/sheets/methods/get_spreadsheet/schema.d.ts +203 -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/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 +1186 -0
- package/dist/sheets/methods/registry.d.ts.map +1 -1
- package/dist/sheets/methods/registry.js +35 -0
- package/dist/sheets/methods/registry.js.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/index.d.ts +1 -0
- package/dist/sheets/methods/set_data_validation/index.d.ts.map +1 -1
- package/dist/sheets/methods/set_data_validation/schema.d.ts +1 -0
- package/dist/sheets/methods/set_data_validation/schema.d.ts.map +1 -1
- 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/update_conditional_format_rule/index.d.ts +1 -0
- package/dist/sheets/methods/update_conditional_format_rule/index.d.ts.map +1 -1
- package/dist/sheets/methods/update_conditional_format_rule/schema.d.ts +1 -0
- package/dist/sheets/methods/update_conditional_format_rule/schema.d.ts.map +1 -1
- 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/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BooleanCondition } from './BooleanCondition.js';
|
|
3
|
+
import { ColorStyle } from './ColorStyle.js';
|
|
4
|
+
/**
|
|
5
|
+
* Criteria for showing or hiding rows in a filter or filter view.
|
|
6
|
+
*
|
|
7
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/other#FilterCriteria
|
|
8
|
+
*/
|
|
9
|
+
export const FilterCriteria = z.strictObject({
|
|
10
|
+
hiddenValues: z.array(z.string()).optional().describe('Values that should be hidden.'),
|
|
11
|
+
condition: BooleanCondition.optional().describe('A condition that must be true for values to be shown. Hidden values remain hidden even when they satisfy the condition.'),
|
|
12
|
+
visibleBackgroundColorStyle: ColorStyle.optional().describe('An RGB fill color to show; only cells with this background color are shown. Provide this or visibleForegroundColorStyle, not both.'),
|
|
13
|
+
visibleForegroundColorStyle: ColorStyle.optional().describe('An RGB text color to show; only cells with this foreground color are shown. Provide this or visibleBackgroundColorStyle, not both.'),
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=FilterCriteria.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterCriteria.js","sourceRoot":"","sources":["../../../src/sheets/entities/FilterCriteria.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;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IACtF,SAAS,EAAE,gBAAgB,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC7C,yHAAyH,CAC1H;IACD,2BAA2B,EAAE,UAAU,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACzD,oIAAoI,CACrI;IACD,2BAA2B,EAAE,UAAU,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACzD,oIAAoI,CACrI;CACF,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { BooleanCondition } from './BooleanCondition.js';\nimport { ColorStyle } from './ColorStyle.js';\n\n/**\n * Criteria for showing or hiding rows in a filter or filter view.\n *\n * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/other#FilterCriteria\n */\nexport const FilterCriteria = z.strictObject({\n hiddenValues: z.array(z.string()).optional().describe('Values that should be hidden.'),\n condition: BooleanCondition.optional().describe(\n 'A condition that must be true for values to be shown. Hidden values remain hidden even when they satisfy the condition.',\n ),\n visibleBackgroundColorStyle: ColorStyle.optional().describe(\n 'An RGB fill color to show; only cells with this background color are shown. Provide this or visibleForegroundColorStyle, not both.',\n ),\n visibleForegroundColorStyle: ColorStyle.optional().describe(\n 'An RGB text color to show; only cells with this foreground color are shown. Provide this or visibleBackgroundColorStyle, not both.',\n ),\n});\n\nexport type FilterCriteria = z.infer<typeof FilterCriteria>;\n"]}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* The filter criteria associated with a specific ordinary-grid column.
|
|
4
|
+
* Connected Sheets column references are not carried.
|
|
5
|
+
*
|
|
6
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/other#FilterSpec
|
|
7
|
+
*/
|
|
8
|
+
export declare const FilterSpec: z.ZodObject<{
|
|
9
|
+
filterCriteria: z.ZodObject<{
|
|
10
|
+
hiddenValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
|
+
condition: z.ZodOptional<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
|
+
visibleBackgroundColorStyle: 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
|
+
visibleForegroundColorStyle: z.ZodOptional<z.ZodObject<{
|
|
75
|
+
rgbColor: z.ZodOptional<z.ZodObject<{
|
|
76
|
+
red: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
green: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
blue: z.ZodOptional<z.ZodNumber>;
|
|
79
|
+
}, z.core.$strict>>;
|
|
80
|
+
themeColor: z.ZodOptional<z.ZodEnum<{
|
|
81
|
+
ACCENT1: "ACCENT1";
|
|
82
|
+
ACCENT2: "ACCENT2";
|
|
83
|
+
ACCENT3: "ACCENT3";
|
|
84
|
+
ACCENT4: "ACCENT4";
|
|
85
|
+
ACCENT5: "ACCENT5";
|
|
86
|
+
ACCENT6: "ACCENT6";
|
|
87
|
+
BACKGROUND: "BACKGROUND";
|
|
88
|
+
LINK: "LINK";
|
|
89
|
+
TEXT: "TEXT";
|
|
90
|
+
}>>;
|
|
91
|
+
}, z.core.$strict>>;
|
|
92
|
+
}, z.core.$strict>;
|
|
93
|
+
columnIndex: z.ZodNumber;
|
|
94
|
+
}, z.core.$strict>;
|
|
95
|
+
export type FilterSpec = z.infer<typeof FilterSpec>;
|
|
96
|
+
//# sourceMappingURL=FilterSpec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterSpec.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/FilterSpec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;GAKG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAGrB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { FilterCriteria } from './FilterCriteria.js';
|
|
3
|
+
/**
|
|
4
|
+
* The filter criteria associated with a specific ordinary-grid column.
|
|
5
|
+
* Connected Sheets column references are not carried.
|
|
6
|
+
*
|
|
7
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/other#FilterSpec
|
|
8
|
+
*/
|
|
9
|
+
export const FilterSpec = z.strictObject({
|
|
10
|
+
filterCriteria: FilterCriteria.describe('The criteria for the column.'),
|
|
11
|
+
columnIndex: z.number().int().min(0).describe('The zero-based column index.'),
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=FilterSpec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterSpec.js","sourceRoot":"","sources":["../../../src/sheets/entities/FilterSpec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,YAAY,CAAC;IACvC,cAAc,EAAE,cAAc,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IACvE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,8BAA8B,CAAC;CAC9E,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { FilterCriteria } from './FilterCriteria.js';\n\n/**\n * The filter criteria associated with a specific ordinary-grid column.\n * Connected Sheets column references are not carried.\n *\n * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/other#FilterSpec\n */\nexport const FilterSpec = z.strictObject({\n filterCriteria: FilterCriteria.describe('The criteria for the column.'),\n columnIndex: z.number().int().min(0).describe('The zero-based column index.'),\n});\n\nexport type FilterSpec = z.infer<typeof FilterSpec>;\n"]}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* A named filter view whose filterViewId is its stable identity. Read
|
|
4
|
+
* projections retain table-backed views but omit their tableId backing detail;
|
|
5
|
+
* the deprecated criteria map is normalized into filterSpecs.
|
|
6
|
+
*
|
|
7
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#FilterView
|
|
8
|
+
*/
|
|
9
|
+
export declare const FilterView: z.ZodObject<{
|
|
10
|
+
filterViewId: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
title: z.ZodOptional<z.ZodString>;
|
|
12
|
+
range: z.ZodOptional<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
|
+
namedRangeId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
sortSpecs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
21
|
+
dimensionIndex: z.ZodNumber;
|
|
22
|
+
sortOrder: z.ZodEnum<{
|
|
23
|
+
ASCENDING: "ASCENDING";
|
|
24
|
+
DESCENDING: "DESCENDING";
|
|
25
|
+
}>;
|
|
26
|
+
}, z.core.$strict>>>;
|
|
27
|
+
filterSpecs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
28
|
+
filterCriteria: z.ZodObject<{
|
|
29
|
+
hiddenValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
|
+
condition: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
type: z.ZodEnum<{
|
|
32
|
+
BLANK: "BLANK";
|
|
33
|
+
BOOLEAN: "BOOLEAN";
|
|
34
|
+
CUSTOM_FORMULA: "CUSTOM_FORMULA";
|
|
35
|
+
DATE_AFTER: "DATE_AFTER";
|
|
36
|
+
DATE_BEFORE: "DATE_BEFORE";
|
|
37
|
+
DATE_BETWEEN: "DATE_BETWEEN";
|
|
38
|
+
DATE_EQ: "DATE_EQ";
|
|
39
|
+
DATE_IS_VALID: "DATE_IS_VALID";
|
|
40
|
+
DATE_NOT_BETWEEN: "DATE_NOT_BETWEEN";
|
|
41
|
+
DATE_ON_OR_AFTER: "DATE_ON_OR_AFTER";
|
|
42
|
+
DATE_ON_OR_BEFORE: "DATE_ON_OR_BEFORE";
|
|
43
|
+
FILTER_EXPRESSION: "FILTER_EXPRESSION";
|
|
44
|
+
NOT_BLANK: "NOT_BLANK";
|
|
45
|
+
NUMBER_BETWEEN: "NUMBER_BETWEEN";
|
|
46
|
+
NUMBER_EQ: "NUMBER_EQ";
|
|
47
|
+
NUMBER_GREATER: "NUMBER_GREATER";
|
|
48
|
+
NUMBER_GREATER_THAN_EQ: "NUMBER_GREATER_THAN_EQ";
|
|
49
|
+
NUMBER_LESS: "NUMBER_LESS";
|
|
50
|
+
NUMBER_LESS_THAN_EQ: "NUMBER_LESS_THAN_EQ";
|
|
51
|
+
NUMBER_NOT_BETWEEN: "NUMBER_NOT_BETWEEN";
|
|
52
|
+
NUMBER_NOT_EQ: "NUMBER_NOT_EQ";
|
|
53
|
+
ONE_OF_LIST: "ONE_OF_LIST";
|
|
54
|
+
ONE_OF_RANGE: "ONE_OF_RANGE";
|
|
55
|
+
TEXT_CONTAINS: "TEXT_CONTAINS";
|
|
56
|
+
TEXT_ENDS_WITH: "TEXT_ENDS_WITH";
|
|
57
|
+
TEXT_EQ: "TEXT_EQ";
|
|
58
|
+
TEXT_IS_EMAIL: "TEXT_IS_EMAIL";
|
|
59
|
+
TEXT_IS_URL: "TEXT_IS_URL";
|
|
60
|
+
TEXT_NOT_CONTAINS: "TEXT_NOT_CONTAINS";
|
|
61
|
+
TEXT_STARTS_WITH: "TEXT_STARTS_WITH";
|
|
62
|
+
}>;
|
|
63
|
+
values: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
64
|
+
relativeDate: z.ZodOptional<z.ZodEnum<{
|
|
65
|
+
PAST_MONTH: "PAST_MONTH";
|
|
66
|
+
PAST_WEEK: "PAST_WEEK";
|
|
67
|
+
PAST_YEAR: "PAST_YEAR";
|
|
68
|
+
TODAY: "TODAY";
|
|
69
|
+
TOMORROW: "TOMORROW";
|
|
70
|
+
YESTERDAY: "YESTERDAY";
|
|
71
|
+
}>>;
|
|
72
|
+
userEnteredValue: z.ZodOptional<z.ZodString>;
|
|
73
|
+
}, z.core.$strict>>>;
|
|
74
|
+
}, z.core.$strict>>;
|
|
75
|
+
visibleBackgroundColorStyle: 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
|
+
visibleForegroundColorStyle: z.ZodOptional<z.ZodObject<{
|
|
94
|
+
rgbColor: z.ZodOptional<z.ZodObject<{
|
|
95
|
+
red: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
green: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
blue: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
}, z.core.$strict>>;
|
|
99
|
+
themeColor: z.ZodOptional<z.ZodEnum<{
|
|
100
|
+
ACCENT1: "ACCENT1";
|
|
101
|
+
ACCENT2: "ACCENT2";
|
|
102
|
+
ACCENT3: "ACCENT3";
|
|
103
|
+
ACCENT4: "ACCENT4";
|
|
104
|
+
ACCENT5: "ACCENT5";
|
|
105
|
+
ACCENT6: "ACCENT6";
|
|
106
|
+
BACKGROUND: "BACKGROUND";
|
|
107
|
+
LINK: "LINK";
|
|
108
|
+
TEXT: "TEXT";
|
|
109
|
+
}>>;
|
|
110
|
+
}, z.core.$strict>>;
|
|
111
|
+
}, z.core.$strict>;
|
|
112
|
+
columnIndex: z.ZodNumber;
|
|
113
|
+
}, z.core.$strict>>>;
|
|
114
|
+
}, z.core.$strict>;
|
|
115
|
+
export type FilterView = z.infer<typeof FilterView>;
|
|
116
|
+
/** Read-side FilterView shape with required identity and total sort readout. */
|
|
117
|
+
export declare const FilterViewReadout: z.ZodObject<{
|
|
118
|
+
title: z.ZodOptional<z.ZodString>;
|
|
119
|
+
range: z.ZodOptional<z.ZodObject<{
|
|
120
|
+
sheetId: z.ZodOptional<z.ZodNumber>;
|
|
121
|
+
startRowIndex: z.ZodOptional<z.ZodNumber>;
|
|
122
|
+
endRowIndex: z.ZodOptional<z.ZodNumber>;
|
|
123
|
+
startColumnIndex: z.ZodOptional<z.ZodNumber>;
|
|
124
|
+
endColumnIndex: z.ZodOptional<z.ZodNumber>;
|
|
125
|
+
}, z.core.$strict>>;
|
|
126
|
+
namedRangeId: z.ZodOptional<z.ZodString>;
|
|
127
|
+
filterSpecs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
128
|
+
filterCriteria: z.ZodObject<{
|
|
129
|
+
hiddenValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
130
|
+
condition: z.ZodOptional<z.ZodObject<{
|
|
131
|
+
type: z.ZodEnum<{
|
|
132
|
+
BLANK: "BLANK";
|
|
133
|
+
BOOLEAN: "BOOLEAN";
|
|
134
|
+
CUSTOM_FORMULA: "CUSTOM_FORMULA";
|
|
135
|
+
DATE_AFTER: "DATE_AFTER";
|
|
136
|
+
DATE_BEFORE: "DATE_BEFORE";
|
|
137
|
+
DATE_BETWEEN: "DATE_BETWEEN";
|
|
138
|
+
DATE_EQ: "DATE_EQ";
|
|
139
|
+
DATE_IS_VALID: "DATE_IS_VALID";
|
|
140
|
+
DATE_NOT_BETWEEN: "DATE_NOT_BETWEEN";
|
|
141
|
+
DATE_ON_OR_AFTER: "DATE_ON_OR_AFTER";
|
|
142
|
+
DATE_ON_OR_BEFORE: "DATE_ON_OR_BEFORE";
|
|
143
|
+
FILTER_EXPRESSION: "FILTER_EXPRESSION";
|
|
144
|
+
NOT_BLANK: "NOT_BLANK";
|
|
145
|
+
NUMBER_BETWEEN: "NUMBER_BETWEEN";
|
|
146
|
+
NUMBER_EQ: "NUMBER_EQ";
|
|
147
|
+
NUMBER_GREATER: "NUMBER_GREATER";
|
|
148
|
+
NUMBER_GREATER_THAN_EQ: "NUMBER_GREATER_THAN_EQ";
|
|
149
|
+
NUMBER_LESS: "NUMBER_LESS";
|
|
150
|
+
NUMBER_LESS_THAN_EQ: "NUMBER_LESS_THAN_EQ";
|
|
151
|
+
NUMBER_NOT_BETWEEN: "NUMBER_NOT_BETWEEN";
|
|
152
|
+
NUMBER_NOT_EQ: "NUMBER_NOT_EQ";
|
|
153
|
+
ONE_OF_LIST: "ONE_OF_LIST";
|
|
154
|
+
ONE_OF_RANGE: "ONE_OF_RANGE";
|
|
155
|
+
TEXT_CONTAINS: "TEXT_CONTAINS";
|
|
156
|
+
TEXT_ENDS_WITH: "TEXT_ENDS_WITH";
|
|
157
|
+
TEXT_EQ: "TEXT_EQ";
|
|
158
|
+
TEXT_IS_EMAIL: "TEXT_IS_EMAIL";
|
|
159
|
+
TEXT_IS_URL: "TEXT_IS_URL";
|
|
160
|
+
TEXT_NOT_CONTAINS: "TEXT_NOT_CONTAINS";
|
|
161
|
+
TEXT_STARTS_WITH: "TEXT_STARTS_WITH";
|
|
162
|
+
}>;
|
|
163
|
+
values: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
164
|
+
relativeDate: z.ZodOptional<z.ZodEnum<{
|
|
165
|
+
PAST_MONTH: "PAST_MONTH";
|
|
166
|
+
PAST_WEEK: "PAST_WEEK";
|
|
167
|
+
PAST_YEAR: "PAST_YEAR";
|
|
168
|
+
TODAY: "TODAY";
|
|
169
|
+
TOMORROW: "TOMORROW";
|
|
170
|
+
YESTERDAY: "YESTERDAY";
|
|
171
|
+
}>>;
|
|
172
|
+
userEnteredValue: z.ZodOptional<z.ZodString>;
|
|
173
|
+
}, z.core.$strict>>>;
|
|
174
|
+
}, z.core.$strict>>;
|
|
175
|
+
visibleBackgroundColorStyle: z.ZodOptional<z.ZodObject<{
|
|
176
|
+
rgbColor: z.ZodOptional<z.ZodObject<{
|
|
177
|
+
red: z.ZodOptional<z.ZodNumber>;
|
|
178
|
+
green: z.ZodOptional<z.ZodNumber>;
|
|
179
|
+
blue: z.ZodOptional<z.ZodNumber>;
|
|
180
|
+
}, z.core.$strict>>;
|
|
181
|
+
themeColor: z.ZodOptional<z.ZodEnum<{
|
|
182
|
+
ACCENT1: "ACCENT1";
|
|
183
|
+
ACCENT2: "ACCENT2";
|
|
184
|
+
ACCENT3: "ACCENT3";
|
|
185
|
+
ACCENT4: "ACCENT4";
|
|
186
|
+
ACCENT5: "ACCENT5";
|
|
187
|
+
ACCENT6: "ACCENT6";
|
|
188
|
+
BACKGROUND: "BACKGROUND";
|
|
189
|
+
LINK: "LINK";
|
|
190
|
+
TEXT: "TEXT";
|
|
191
|
+
}>>;
|
|
192
|
+
}, z.core.$strict>>;
|
|
193
|
+
visibleForegroundColorStyle: z.ZodOptional<z.ZodObject<{
|
|
194
|
+
rgbColor: z.ZodOptional<z.ZodObject<{
|
|
195
|
+
red: z.ZodOptional<z.ZodNumber>;
|
|
196
|
+
green: z.ZodOptional<z.ZodNumber>;
|
|
197
|
+
blue: z.ZodOptional<z.ZodNumber>;
|
|
198
|
+
}, z.core.$strict>>;
|
|
199
|
+
themeColor: z.ZodOptional<z.ZodEnum<{
|
|
200
|
+
ACCENT1: "ACCENT1";
|
|
201
|
+
ACCENT2: "ACCENT2";
|
|
202
|
+
ACCENT3: "ACCENT3";
|
|
203
|
+
ACCENT4: "ACCENT4";
|
|
204
|
+
ACCENT5: "ACCENT5";
|
|
205
|
+
ACCENT6: "ACCENT6";
|
|
206
|
+
BACKGROUND: "BACKGROUND";
|
|
207
|
+
LINK: "LINK";
|
|
208
|
+
TEXT: "TEXT";
|
|
209
|
+
}>>;
|
|
210
|
+
}, z.core.$strict>>;
|
|
211
|
+
}, z.core.$strict>;
|
|
212
|
+
columnIndex: z.ZodNumber;
|
|
213
|
+
}, z.core.$strict>>>;
|
|
214
|
+
filterViewId: z.ZodNumber;
|
|
215
|
+
sortSpecs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
216
|
+
dimensionIndex: z.ZodOptional<z.ZodNumber>;
|
|
217
|
+
sortOrder: z.ZodOptional<z.ZodString>;
|
|
218
|
+
}, z.core.$strip>>>;
|
|
219
|
+
}, z.core.$strict>;
|
|
220
|
+
export type FilterViewReadout = z.infer<typeof FilterViewReadout>;
|
|
221
|
+
//# sourceMappingURL=FilterView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterView.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/FilterView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;;;;GAMG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAoBrB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD,gFAAgF;AAChF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAM5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
* A named filter view whose filterViewId is its stable identity. Read
|
|
7
|
+
* projections retain table-backed views but omit their tableId backing detail;
|
|
8
|
+
* the deprecated criteria map is normalized into filterSpecs.
|
|
9
|
+
*
|
|
10
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#FilterView
|
|
11
|
+
*/
|
|
12
|
+
export const FilterView = z.strictObject({
|
|
13
|
+
filterViewId: z.number().int().min(0).optional().describe('The ID of the filter view.'),
|
|
14
|
+
title: z.string().optional().describe('The name of the filter view.'),
|
|
15
|
+
range: GridRange.optional().describe('The range this filter view covers. When writing, provide at most one of range or namedRangeId.'),
|
|
16
|
+
namedRangeId: z
|
|
17
|
+
.string()
|
|
18
|
+
.optional()
|
|
19
|
+
.describe('The named range backing this filter view. When writing, provide at most one of range or namedRangeId.'),
|
|
20
|
+
sortSpecs: z
|
|
21
|
+
.array(SortSpec)
|
|
22
|
+
.optional()
|
|
23
|
+
.describe('The sort order per column; later specifications break ties from earlier ones.'),
|
|
24
|
+
filterSpecs: z
|
|
25
|
+
.array(FilterSpec)
|
|
26
|
+
.optional()
|
|
27
|
+
.describe('The criteria for showing or hiding values per column.'),
|
|
28
|
+
});
|
|
29
|
+
/** Read-side FilterView shape with required identity and total sort readout. */
|
|
30
|
+
export const FilterViewReadout = FilterView.extend({
|
|
31
|
+
filterViewId: z.number().int().min(0).describe('The ID of the filter view.'),
|
|
32
|
+
sortSpecs: z
|
|
33
|
+
.array(SortSpecReadout)
|
|
34
|
+
.optional()
|
|
35
|
+
.describe('The sort order per column; later specifications break ties from earlier ones.'),
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=FilterView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterView.js","sourceRoot":"","sources":["../../../src/sheets/entities/FilterView.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,UAAU,GAAG,CAAC,CAAC,YAAY,CAAC;IACvC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IACvF,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IACrE,KAAK,EAAE,SAAS,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAClC,gGAAgG,CACjG;IACD,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,uGAAuG,CACxG;IACH,SAAS,EAAE,CAAC;SACT,KAAK,CAAC,QAAQ,CAAC;SACf,QAAQ,EAAE;SACV,QAAQ,CAAC,+EAA+E,CAAC;IAC5F,WAAW,EAAE,CAAC;SACX,KAAK,CAAC,UAAU,CAAC;SACjB,QAAQ,EAAE;SACV,QAAQ,CAAC,uDAAuD,CAAC;CACrE,CAAC,CAAC;AAIH,gFAAgF;AAChF,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAU,CAAC,MAAM,CAAC;IACjD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAC5E,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 * A named filter view whose filterViewId is its stable identity. Read\n * projections retain table-backed views but omit their tableId backing detail;\n * the deprecated criteria map is normalized into filterSpecs.\n *\n * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#FilterView\n */\nexport const FilterView = z.strictObject({\n filterViewId: z.number().int().min(0).optional().describe('The ID of the filter view.'),\n title: z.string().optional().describe('The name of the filter view.'),\n range: GridRange.optional().describe(\n 'The range this filter view covers. When writing, provide at most one of range or namedRangeId.',\n ),\n namedRangeId: z\n .string()\n .optional()\n .describe(\n 'The named range backing this filter view. When writing, provide at most one of range or namedRangeId.',\n ),\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\n .array(FilterSpec)\n .optional()\n .describe('The criteria for showing or hiding values per column.'),\n});\n\nexport type FilterView = z.infer<typeof FilterView>;\n\n/** Read-side FilterView shape with required identity and total sort readout. */\nexport const FilterViewReadout = FilterView.extend({\n filterViewId: z.number().int().min(0).describe('The ID of the filter view.'),\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 FilterViewReadout = z.infer<typeof FilterViewReadout>;\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* How copied data should be oriented at its destination.
|
|
4
|
+
*
|
|
5
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/request#PasteOrientation
|
|
6
|
+
*/
|
|
7
|
+
export declare const PasteOrientation: z.ZodEnum<{
|
|
8
|
+
NORMAL: "NORMAL";
|
|
9
|
+
TRANSPOSE: "TRANSPOSE";
|
|
10
|
+
}>;
|
|
11
|
+
export type PasteOrientation = z.infer<typeof PasteOrientation>;
|
|
12
|
+
//# sourceMappingURL=PasteOrientation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PasteOrientation.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/PasteOrientation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;;EAAkC,CAAC;AAEhE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* How copied data should be oriented at its destination.
|
|
4
|
+
*
|
|
5
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/request#PasteOrientation
|
|
6
|
+
*/
|
|
7
|
+
export const PasteOrientation = z.enum(['NORMAL', 'TRANSPOSE']);
|
|
8
|
+
//# sourceMappingURL=PasteOrientation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PasteOrientation.js","sourceRoot":"","sources":["../../../src/sheets/entities/PasteOrientation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * How copied data should be oriented at its destination.\n *\n * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/request#PasteOrientation\n */\nexport const PasteOrientation = z.enum(['NORMAL', 'TRANSPOSE']);\n\nexport type PasteOrientation = z.infer<typeof PasteOrientation>;\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* What kind of source data should be pasted.
|
|
4
|
+
*
|
|
5
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/request#PasteType
|
|
6
|
+
*/
|
|
7
|
+
export declare const PasteType: z.ZodEnum<{
|
|
8
|
+
PASTE_CONDITIONAL_FORMATTING: "PASTE_CONDITIONAL_FORMATTING";
|
|
9
|
+
PASTE_DATA_VALIDATION: "PASTE_DATA_VALIDATION";
|
|
10
|
+
PASTE_FORMAT: "PASTE_FORMAT";
|
|
11
|
+
PASTE_FORMULA: "PASTE_FORMULA";
|
|
12
|
+
PASTE_NORMAL: "PASTE_NORMAL";
|
|
13
|
+
PASTE_NO_BORDERS: "PASTE_NO_BORDERS";
|
|
14
|
+
PASTE_VALUES: "PASTE_VALUES";
|
|
15
|
+
}>;
|
|
16
|
+
export type PasteType = z.infer<typeof PasteType>;
|
|
17
|
+
//# sourceMappingURL=PasteType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PasteType.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/PasteType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,SAAS;;;;;;;;EAQpB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* What kind of source data should be pasted.
|
|
4
|
+
*
|
|
5
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/request#PasteType
|
|
6
|
+
*/
|
|
7
|
+
export const PasteType = z.enum([
|
|
8
|
+
'PASTE_NORMAL',
|
|
9
|
+
'PASTE_VALUES',
|
|
10
|
+
'PASTE_FORMAT',
|
|
11
|
+
'PASTE_NO_BORDERS',
|
|
12
|
+
'PASTE_FORMULA',
|
|
13
|
+
'PASTE_DATA_VALIDATION',
|
|
14
|
+
'PASTE_CONDITIONAL_FORMATTING',
|
|
15
|
+
]);
|
|
16
|
+
//# sourceMappingURL=PasteType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PasteType.js","sourceRoot":"","sources":["../../../src/sheets/entities/PasteType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC;IAC9B,cAAc;IACd,cAAc;IACd,cAAc;IACd,kBAAkB;IAClB,eAAe;IACf,uBAAuB;IACvB,8BAA8B;CAC/B,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * What kind of source data should be pasted.\n *\n * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/request#PasteType\n */\nexport const PasteType = z.enum([\n 'PASTE_NORMAL',\n 'PASTE_VALUES',\n 'PASTE_FORMAT',\n 'PASTE_NO_BORDERS',\n 'PASTE_FORMULA',\n 'PASTE_DATA_VALIDATION',\n 'PASTE_CONDITIONAL_FORMATTING',\n]);\n\nexport type PasteType = z.infer<typeof PasteType>;\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* The direction in which data is sorted.
|
|
4
|
+
*
|
|
5
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/other#SortOrder
|
|
6
|
+
*/
|
|
7
|
+
export declare const SortOrder: z.ZodEnum<{
|
|
8
|
+
ASCENDING: "ASCENDING";
|
|
9
|
+
DESCENDING: "DESCENDING";
|
|
10
|
+
}>;
|
|
11
|
+
export type SortOrder = z.infer<typeof SortOrder>;
|
|
12
|
+
//# sourceMappingURL=SortOrder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortOrder.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/SortOrder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,SAAS;;;EAAsC,CAAC;AAE7D,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* The direction in which data is sorted.
|
|
4
|
+
*
|
|
5
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/other#SortOrder
|
|
6
|
+
*/
|
|
7
|
+
export const SortOrder = z.enum(['ASCENDING', 'DESCENDING']);
|
|
8
|
+
//# sourceMappingURL=SortOrder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortOrder.js","sourceRoot":"","sources":["../../../src/sheets/entities/SortOrder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * The direction in which data is sorted.\n *\n * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/other#SortOrder\n */\nexport const SortOrder = z.enum(['ASCENDING', 'DESCENDING']);\n\nexport type SortOrder = z.infer<typeof SortOrder>;\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* A sort order associated with a specific column or row. This curated shape
|
|
4
|
+
* addresses ordinary grid dimensions; color and Connected Sheets sorts are
|
|
5
|
+
* not carried.
|
|
6
|
+
*
|
|
7
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/other#SortSpec
|
|
8
|
+
*/
|
|
9
|
+
export declare const SortSpec: z.ZodObject<{
|
|
10
|
+
dimensionIndex: z.ZodNumber;
|
|
11
|
+
sortOrder: z.ZodEnum<{
|
|
12
|
+
ASCENDING: "ASCENDING";
|
|
13
|
+
DESCENDING: "DESCENDING";
|
|
14
|
+
}>;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
export type SortSpec = z.infer<typeof SortSpec>;
|
|
17
|
+
/**
|
|
18
|
+
* The total read-side shape of a sort specification. Read projections retain
|
|
19
|
+
* every upstream element, keeping new sort-order vocabulary as an open string
|
|
20
|
+
* and omitting the ordinary-grid dimension for Connected Sheets sorts.
|
|
21
|
+
*/
|
|
22
|
+
export declare const SortSpecReadout: z.ZodObject<{
|
|
23
|
+
dimensionIndex: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
sortOrder: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export type SortSpecReadout = z.infer<typeof SortSpecReadout>;
|
|
27
|
+
//# sourceMappingURL=SortSpec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortSpec.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/SortSpec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ;;;;;;kBAOnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEhD;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;iBAW1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { SortOrder } from './SortOrder.js';
|
|
3
|
+
/**
|
|
4
|
+
* A sort order associated with a specific column or row. This curated shape
|
|
5
|
+
* addresses ordinary grid dimensions; color and Connected Sheets sorts are
|
|
6
|
+
* not carried.
|
|
7
|
+
*
|
|
8
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/other#SortSpec
|
|
9
|
+
*/
|
|
10
|
+
export const SortSpec = z.strictObject({
|
|
11
|
+
dimensionIndex: z
|
|
12
|
+
.number()
|
|
13
|
+
.int()
|
|
14
|
+
.min(0)
|
|
15
|
+
.describe('The zero-based column or row index the sort applies to.'),
|
|
16
|
+
sortOrder: SortOrder.describe('The order in which to sort the dimension.'),
|
|
17
|
+
});
|
|
18
|
+
/**
|
|
19
|
+
* The total read-side shape of a sort specification. Read projections retain
|
|
20
|
+
* every upstream element, keeping new sort-order vocabulary as an open string
|
|
21
|
+
* and omitting the ordinary-grid dimension for Connected Sheets sorts.
|
|
22
|
+
*/
|
|
23
|
+
export const SortSpecReadout = z.object({
|
|
24
|
+
dimensionIndex: z
|
|
25
|
+
.number()
|
|
26
|
+
.int()
|
|
27
|
+
.min(0)
|
|
28
|
+
.optional()
|
|
29
|
+
.describe('The zero-based column or row index the sort applies to, when ordinary-grid.'),
|
|
30
|
+
sortOrder: z
|
|
31
|
+
.string()
|
|
32
|
+
.optional()
|
|
33
|
+
.describe('The upstream sort order; the write vocabulary is ASCENDING or DESCENDING.'),
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=SortSpec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortSpec.js","sourceRoot":"","sources":["../../../src/sheets/entities/SortSpec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,YAAY,CAAC;IACrC,cAAc,EAAE,CAAC;SACd,MAAM,EAAE;SACR,GAAG,EAAE;SACL,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CAAC,yDAAyD,CAAC;IACtE,SAAS,EAAE,SAAS,CAAC,QAAQ,CAAC,2CAA2C,CAAC;CAC3E,CAAC,CAAC;AAIH;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,cAAc,EAAE,CAAC;SACd,MAAM,EAAE;SACR,GAAG,EAAE;SACL,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,EAAE;SACV,QAAQ,CAAC,6EAA6E,CAAC;IAC1F,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,2EAA2E,CAAC;CACzF,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { SortOrder } from './SortOrder.js';\n\n/**\n * A sort order associated with a specific column or row. This curated shape\n * addresses ordinary grid dimensions; color and Connected Sheets sorts are\n * not carried.\n *\n * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/other#SortSpec\n */\nexport const SortSpec = z.strictObject({\n dimensionIndex: z\n .number()\n .int()\n .min(0)\n .describe('The zero-based column or row index the sort applies to.'),\n sortOrder: SortOrder.describe('The order in which to sort the dimension.'),\n});\n\nexport type SortSpec = z.infer<typeof SortSpec>;\n\n/**\n * The total read-side shape of a sort specification. Read projections retain\n * every upstream element, keeping new sort-order vocabulary as an open string\n * and omitting the ordinary-grid dimension for Connected Sheets sorts.\n */\nexport const SortSpecReadout = z.object({\n dimensionIndex: z\n .number()\n .int()\n .min(0)\n .optional()\n .describe('The zero-based column or row index the sort applies to, when ordinary-grid.'),\n sortOrder: z\n .string()\n .optional()\n .describe('The upstream sort order; the write vocabulary is ASCENDING or DESCENDING.'),\n});\n\nexport type SortSpecReadout = z.infer<typeof SortSpecReadout>;\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* A source range and the direction and distance through which to extend it.
|
|
4
|
+
*
|
|
5
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/request#SourceAndDestination
|
|
6
|
+
*/
|
|
7
|
+
export declare const SourceAndDestination: z.ZodObject<{
|
|
8
|
+
source: z.ZodObject<{
|
|
9
|
+
sheetId: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
startRowIndex: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
endRowIndex: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
startColumnIndex: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
endColumnIndex: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
}, z.core.$strict>;
|
|
15
|
+
dimension: z.ZodEnum<{
|
|
16
|
+
COLUMNS: "COLUMNS";
|
|
17
|
+
ROWS: "ROWS";
|
|
18
|
+
}>;
|
|
19
|
+
fillLength: z.ZodNumber;
|
|
20
|
+
}, z.core.$strict>;
|
|
21
|
+
export type SourceAndDestination = z.infer<typeof SourceAndDestination>;
|
|
22
|
+
//# sourceMappingURL=SourceAndDestination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SourceAndDestination.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/SourceAndDestination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;kBAS/B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|