google-mcp-suite 1.12.0 → 1.13.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/BooleanCondition.d.ts +56 -0
- package/dist/sheets/entities/BooleanCondition.d.ts.map +1 -0
- package/dist/sheets/entities/BooleanCondition.js +51 -0
- package/dist/sheets/entities/BooleanCondition.js.map +1 -0
- package/dist/sheets/entities/BooleanRule.d.ts +99 -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 +196 -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 +59 -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/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/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/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/Spreadsheet.d.ts +117 -4
- package/dist/sheets/entities/Spreadsheet.d.ts.map +1 -1
- package/dist/sheets/entities/Spreadsheet.js +29 -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 +27 -8
- 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/formats.d.ts.map +1 -1
- package/dist/sheets/lib/formats.js +1 -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 +110 -4
- 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 +198 -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 +197 -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_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/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/create_spreadsheet/index.d.ts +112 -0
- package/dist/sheets/methods/create_spreadsheet/index.d.ts.map +1 -1
- package/dist/sheets/methods/create_spreadsheet/schema.d.ts +112 -0
- package/dist/sheets/methods/create_spreadsheet/schema.d.ts.map +1 -1
- 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_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/get_spreadsheet/index.d.ts +119 -4
- package/dist/sheets/methods/get_spreadsheet/index.d.ts.map +1 -1
- package/dist/sheets/methods/get_spreadsheet/index.js +8 -5
- package/dist/sheets/methods/get_spreadsheet/index.js.map +1 -1
- package/dist/sheets/methods/get_spreadsheet/schema.d.ts +112 -0
- package/dist/sheets/methods/get_spreadsheet/schema.d.ts.map +1 -1
- 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/registry.d.ts +958 -0
- package/dist/sheets/methods/registry.d.ts.map +1 -1
- package/dist/sheets/methods/registry.js +28 -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_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 +69 -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 +68 -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/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 +200 -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 +197 -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_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
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* A rule describing a conditional format: either a boolean rule (an on/off
|
|
4
|
+
* format gated on a condition) or a gradient rule (a continuous color scale).
|
|
5
|
+
* Provide exactly one of the two. Rules live per sheet in an ordered list
|
|
6
|
+
* and are addressed by index; earlier rules take precedence where rules
|
|
7
|
+
* overlap.
|
|
8
|
+
*
|
|
9
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#ConditionalFormatRule
|
|
10
|
+
*/
|
|
11
|
+
export declare const ConditionalFormatRule: z.ZodObject<{
|
|
12
|
+
ranges: z.ZodArray<z.ZodObject<{
|
|
13
|
+
sheetId: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
startRowIndex: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
endRowIndex: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
startColumnIndex: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
endColumnIndex: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
}, z.core.$strict>>;
|
|
19
|
+
booleanRule: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
condition: z.ZodObject<{
|
|
21
|
+
type: z.ZodEnum<{
|
|
22
|
+
BLANK: "BLANK";
|
|
23
|
+
BOOLEAN: "BOOLEAN";
|
|
24
|
+
CUSTOM_FORMULA: "CUSTOM_FORMULA";
|
|
25
|
+
DATE_AFTER: "DATE_AFTER";
|
|
26
|
+
DATE_BEFORE: "DATE_BEFORE";
|
|
27
|
+
DATE_BETWEEN: "DATE_BETWEEN";
|
|
28
|
+
DATE_EQ: "DATE_EQ";
|
|
29
|
+
DATE_IS_VALID: "DATE_IS_VALID";
|
|
30
|
+
DATE_NOT_BETWEEN: "DATE_NOT_BETWEEN";
|
|
31
|
+
DATE_ON_OR_AFTER: "DATE_ON_OR_AFTER";
|
|
32
|
+
DATE_ON_OR_BEFORE: "DATE_ON_OR_BEFORE";
|
|
33
|
+
NOT_BLANK: "NOT_BLANK";
|
|
34
|
+
NUMBER_BETWEEN: "NUMBER_BETWEEN";
|
|
35
|
+
NUMBER_EQ: "NUMBER_EQ";
|
|
36
|
+
NUMBER_GREATER: "NUMBER_GREATER";
|
|
37
|
+
NUMBER_GREATER_THAN_EQ: "NUMBER_GREATER_THAN_EQ";
|
|
38
|
+
NUMBER_LESS: "NUMBER_LESS";
|
|
39
|
+
NUMBER_LESS_THAN_EQ: "NUMBER_LESS_THAN_EQ";
|
|
40
|
+
NUMBER_NOT_BETWEEN: "NUMBER_NOT_BETWEEN";
|
|
41
|
+
NUMBER_NOT_EQ: "NUMBER_NOT_EQ";
|
|
42
|
+
ONE_OF_LIST: "ONE_OF_LIST";
|
|
43
|
+
ONE_OF_RANGE: "ONE_OF_RANGE";
|
|
44
|
+
TEXT_CONTAINS: "TEXT_CONTAINS";
|
|
45
|
+
TEXT_ENDS_WITH: "TEXT_ENDS_WITH";
|
|
46
|
+
TEXT_EQ: "TEXT_EQ";
|
|
47
|
+
TEXT_IS_EMAIL: "TEXT_IS_EMAIL";
|
|
48
|
+
TEXT_IS_URL: "TEXT_IS_URL";
|
|
49
|
+
TEXT_NOT_CONTAINS: "TEXT_NOT_CONTAINS";
|
|
50
|
+
TEXT_STARTS_WITH: "TEXT_STARTS_WITH";
|
|
51
|
+
}>;
|
|
52
|
+
values: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
|
+
relativeDate: z.ZodOptional<z.ZodEnum<{
|
|
54
|
+
PAST_MONTH: "PAST_MONTH";
|
|
55
|
+
PAST_WEEK: "PAST_WEEK";
|
|
56
|
+
PAST_YEAR: "PAST_YEAR";
|
|
57
|
+
TODAY: "TODAY";
|
|
58
|
+
TOMORROW: "TOMORROW";
|
|
59
|
+
YESTERDAY: "YESTERDAY";
|
|
60
|
+
}>>;
|
|
61
|
+
userEnteredValue: z.ZodOptional<z.ZodString>;
|
|
62
|
+
}, z.core.$strict>>>;
|
|
63
|
+
}, z.core.$strict>;
|
|
64
|
+
format: z.ZodObject<{
|
|
65
|
+
backgroundColorStyle: z.ZodOptional<z.ZodObject<{
|
|
66
|
+
rgbColor: z.ZodOptional<z.ZodObject<{
|
|
67
|
+
red: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
green: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
blue: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
}, z.core.$strict>>;
|
|
71
|
+
themeColor: z.ZodOptional<z.ZodEnum<{
|
|
72
|
+
ACCENT1: "ACCENT1";
|
|
73
|
+
ACCENT2: "ACCENT2";
|
|
74
|
+
ACCENT3: "ACCENT3";
|
|
75
|
+
ACCENT4: "ACCENT4";
|
|
76
|
+
ACCENT5: "ACCENT5";
|
|
77
|
+
ACCENT6: "ACCENT6";
|
|
78
|
+
BACKGROUND: "BACKGROUND";
|
|
79
|
+
LINK: "LINK";
|
|
80
|
+
TEXT: "TEXT";
|
|
81
|
+
}>>;
|
|
82
|
+
}, z.core.$strict>>;
|
|
83
|
+
textFormat: z.ZodOptional<z.ZodObject<{
|
|
84
|
+
foregroundColorStyle: z.ZodOptional<z.ZodObject<{
|
|
85
|
+
rgbColor: z.ZodOptional<z.ZodObject<{
|
|
86
|
+
red: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
green: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
blue: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
}, z.core.$strict>>;
|
|
90
|
+
themeColor: z.ZodOptional<z.ZodEnum<{
|
|
91
|
+
ACCENT1: "ACCENT1";
|
|
92
|
+
ACCENT2: "ACCENT2";
|
|
93
|
+
ACCENT3: "ACCENT3";
|
|
94
|
+
ACCENT4: "ACCENT4";
|
|
95
|
+
ACCENT5: "ACCENT5";
|
|
96
|
+
ACCENT6: "ACCENT6";
|
|
97
|
+
BACKGROUND: "BACKGROUND";
|
|
98
|
+
LINK: "LINK";
|
|
99
|
+
TEXT: "TEXT";
|
|
100
|
+
}>>;
|
|
101
|
+
}, z.core.$strict>>;
|
|
102
|
+
bold: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
italic: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
strikethrough: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
+
}, z.core.$strict>>;
|
|
106
|
+
}, z.core.$strict>;
|
|
107
|
+
}, z.core.$strict>>;
|
|
108
|
+
gradientRule: z.ZodOptional<z.ZodObject<{
|
|
109
|
+
minpoint: z.ZodObject<{
|
|
110
|
+
colorStyle: z.ZodObject<{
|
|
111
|
+
rgbColor: z.ZodOptional<z.ZodObject<{
|
|
112
|
+
red: z.ZodOptional<z.ZodNumber>;
|
|
113
|
+
green: z.ZodOptional<z.ZodNumber>;
|
|
114
|
+
blue: z.ZodOptional<z.ZodNumber>;
|
|
115
|
+
}, z.core.$strict>>;
|
|
116
|
+
themeColor: z.ZodOptional<z.ZodEnum<{
|
|
117
|
+
ACCENT1: "ACCENT1";
|
|
118
|
+
ACCENT2: "ACCENT2";
|
|
119
|
+
ACCENT3: "ACCENT3";
|
|
120
|
+
ACCENT4: "ACCENT4";
|
|
121
|
+
ACCENT5: "ACCENT5";
|
|
122
|
+
ACCENT6: "ACCENT6";
|
|
123
|
+
BACKGROUND: "BACKGROUND";
|
|
124
|
+
LINK: "LINK";
|
|
125
|
+
TEXT: "TEXT";
|
|
126
|
+
}>>;
|
|
127
|
+
}, z.core.$strict>;
|
|
128
|
+
type: z.ZodEnum<{
|
|
129
|
+
MAX: "MAX";
|
|
130
|
+
MIN: "MIN";
|
|
131
|
+
NUMBER: "NUMBER";
|
|
132
|
+
PERCENT: "PERCENT";
|
|
133
|
+
PERCENTILE: "PERCENTILE";
|
|
134
|
+
}>;
|
|
135
|
+
value: z.ZodOptional<z.ZodString>;
|
|
136
|
+
}, z.core.$strict>;
|
|
137
|
+
midpoint: z.ZodOptional<z.ZodObject<{
|
|
138
|
+
colorStyle: z.ZodObject<{
|
|
139
|
+
rgbColor: z.ZodOptional<z.ZodObject<{
|
|
140
|
+
red: z.ZodOptional<z.ZodNumber>;
|
|
141
|
+
green: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
blue: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
}, z.core.$strict>>;
|
|
144
|
+
themeColor: z.ZodOptional<z.ZodEnum<{
|
|
145
|
+
ACCENT1: "ACCENT1";
|
|
146
|
+
ACCENT2: "ACCENT2";
|
|
147
|
+
ACCENT3: "ACCENT3";
|
|
148
|
+
ACCENT4: "ACCENT4";
|
|
149
|
+
ACCENT5: "ACCENT5";
|
|
150
|
+
ACCENT6: "ACCENT6";
|
|
151
|
+
BACKGROUND: "BACKGROUND";
|
|
152
|
+
LINK: "LINK";
|
|
153
|
+
TEXT: "TEXT";
|
|
154
|
+
}>>;
|
|
155
|
+
}, z.core.$strict>;
|
|
156
|
+
type: z.ZodEnum<{
|
|
157
|
+
MAX: "MAX";
|
|
158
|
+
MIN: "MIN";
|
|
159
|
+
NUMBER: "NUMBER";
|
|
160
|
+
PERCENT: "PERCENT";
|
|
161
|
+
PERCENTILE: "PERCENTILE";
|
|
162
|
+
}>;
|
|
163
|
+
value: z.ZodOptional<z.ZodString>;
|
|
164
|
+
}, z.core.$strict>>;
|
|
165
|
+
maxpoint: z.ZodObject<{
|
|
166
|
+
colorStyle: z.ZodObject<{
|
|
167
|
+
rgbColor: z.ZodOptional<z.ZodObject<{
|
|
168
|
+
red: z.ZodOptional<z.ZodNumber>;
|
|
169
|
+
green: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
blue: z.ZodOptional<z.ZodNumber>;
|
|
171
|
+
}, z.core.$strict>>;
|
|
172
|
+
themeColor: z.ZodOptional<z.ZodEnum<{
|
|
173
|
+
ACCENT1: "ACCENT1";
|
|
174
|
+
ACCENT2: "ACCENT2";
|
|
175
|
+
ACCENT3: "ACCENT3";
|
|
176
|
+
ACCENT4: "ACCENT4";
|
|
177
|
+
ACCENT5: "ACCENT5";
|
|
178
|
+
ACCENT6: "ACCENT6";
|
|
179
|
+
BACKGROUND: "BACKGROUND";
|
|
180
|
+
LINK: "LINK";
|
|
181
|
+
TEXT: "TEXT";
|
|
182
|
+
}>>;
|
|
183
|
+
}, z.core.$strict>;
|
|
184
|
+
type: z.ZodEnum<{
|
|
185
|
+
MAX: "MAX";
|
|
186
|
+
MIN: "MIN";
|
|
187
|
+
NUMBER: "NUMBER";
|
|
188
|
+
PERCENT: "PERCENT";
|
|
189
|
+
PERCENTILE: "PERCENTILE";
|
|
190
|
+
}>;
|
|
191
|
+
value: z.ZodOptional<z.ZodString>;
|
|
192
|
+
}, z.core.$strict>;
|
|
193
|
+
}, z.core.$strict>>;
|
|
194
|
+
}, z.core.$strict>;
|
|
195
|
+
export type ConditionalFormatRule = z.infer<typeof ConditionalFormatRule>;
|
|
196
|
+
//# sourceMappingURL=ConditionalFormatRule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConditionalFormatRule.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/ConditionalFormatRule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAahC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BooleanRule } from './BooleanRule.js';
|
|
3
|
+
import { GradientRule } from './GradientRule.js';
|
|
4
|
+
import { GridRange } from './GridRange.js';
|
|
5
|
+
/**
|
|
6
|
+
* A rule describing a conditional format: either a boolean rule (an on/off
|
|
7
|
+
* format gated on a condition) or a gradient rule (a continuous color scale).
|
|
8
|
+
* Provide exactly one of the two. Rules live per sheet in an ordered list
|
|
9
|
+
* and are addressed by index; earlier rules take precedence where rules
|
|
10
|
+
* overlap.
|
|
11
|
+
*
|
|
12
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#ConditionalFormatRule
|
|
13
|
+
*/
|
|
14
|
+
export const ConditionalFormatRule = z.strictObject({
|
|
15
|
+
ranges: z
|
|
16
|
+
.array(GridRange)
|
|
17
|
+
.min(1)
|
|
18
|
+
.describe('The ranges that are formatted if the condition is true; all the ranges must be on the same grid.'),
|
|
19
|
+
booleanRule: BooleanRule.optional().describe('The formatting is either on or off according to the rule; provide this or gradientRule, not both.'),
|
|
20
|
+
gradientRule: GradientRule.optional().describe('The formatting varies based on the gradients in the rule; provide this or booleanRule, not both.'),
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=ConditionalFormatRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConditionalFormatRule.js","sourceRoot":"","sources":["../../../src/sheets/entities/ConditionalFormatRule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,YAAY,CAAC;IAClD,MAAM,EAAE,CAAC;SACN,KAAK,CAAC,SAAS,CAAC;SAChB,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,kGAAkG,CACnG;IACH,WAAW,EAAE,WAAW,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC1C,mGAAmG,CACpG;IACD,YAAY,EAAE,YAAY,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC5C,kGAAkG,CACnG;CACF,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { BooleanRule } from './BooleanRule.js';\nimport { GradientRule } from './GradientRule.js';\nimport { GridRange } from './GridRange.js';\n\n/**\n * A rule describing a conditional format: either a boolean rule (an on/off\n * format gated on a condition) or a gradient rule (a continuous color scale).\n * Provide exactly one of the two. Rules live per sheet in an ordered list\n * and are addressed by index; earlier rules take precedence where rules\n * overlap.\n *\n * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#ConditionalFormatRule\n */\nexport const ConditionalFormatRule = z.strictObject({\n ranges: z\n .array(GridRange)\n .min(1)\n .describe(\n 'The ranges that are formatted if the condition is true; all the ranges must be on the same grid.',\n ),\n booleanRule: BooleanRule.optional().describe(\n 'The formatting is either on or off according to the rule; provide this or gradientRule, not both.',\n ),\n gradientRule: GradientRule.optional().describe(\n 'The formatting varies based on the gradients in the rule; provide this or booleanRule, not both.',\n ),\n});\n\nexport type ConditionalFormatRule = z.infer<typeof ConditionalFormatRule>;\n"]}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** One conditional format rule as read back from a sheet. */
|
|
3
|
+
export declare const ConditionalFormatRuleReadout: z.ZodObject<{
|
|
4
|
+
ranges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5
|
+
sheetId: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
startRowIndex: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
endRowIndex: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
startColumnIndex: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
endColumnIndex: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
}, z.core.$strict>>>;
|
|
11
|
+
booleanRule: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
condition: z.ZodOptional<z.ZodObject<{
|
|
13
|
+
type: z.ZodOptional<z.ZodString>;
|
|
14
|
+
values: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15
|
+
userEnteredValue: z.ZodOptional<z.ZodString>;
|
|
16
|
+
relativeDate: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>>>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
format: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
backgroundColorStyle: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
rgbColor: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
red: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
green: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
blue: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
themeColor: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
textFormat: z.ZodOptional<z.ZodObject<{
|
|
29
|
+
foregroundColorStyle: z.ZodOptional<z.ZodObject<{
|
|
30
|
+
rgbColor: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
red: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
green: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
blue: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
themeColor: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
bold: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
+
italic: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
strikethrough: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
gradientRule: z.ZodOptional<z.ZodObject<{
|
|
44
|
+
minpoint: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
colorStyle: z.ZodOptional<z.ZodObject<{
|
|
46
|
+
rgbColor: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
red: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
green: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
blue: z.ZodOptional<z.ZodNumber>;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
themeColor: z.ZodOptional<z.ZodString>;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
type: z.ZodOptional<z.ZodString>;
|
|
54
|
+
value: z.ZodOptional<z.ZodString>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
midpoint: z.ZodOptional<z.ZodObject<{
|
|
57
|
+
colorStyle: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
rgbColor: z.ZodOptional<z.ZodObject<{
|
|
59
|
+
red: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
green: z.ZodOptional<z.ZodNumber>;
|
|
61
|
+
blue: z.ZodOptional<z.ZodNumber>;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
themeColor: z.ZodOptional<z.ZodString>;
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
type: z.ZodOptional<z.ZodString>;
|
|
66
|
+
value: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
maxpoint: z.ZodOptional<z.ZodObject<{
|
|
69
|
+
colorStyle: z.ZodOptional<z.ZodObject<{
|
|
70
|
+
rgbColor: z.ZodOptional<z.ZodObject<{
|
|
71
|
+
red: z.ZodOptional<z.ZodNumber>;
|
|
72
|
+
green: z.ZodOptional<z.ZodNumber>;
|
|
73
|
+
blue: z.ZodOptional<z.ZodNumber>;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
themeColor: z.ZodOptional<z.ZodString>;
|
|
76
|
+
}, z.core.$strip>>;
|
|
77
|
+
type: z.ZodOptional<z.ZodString>;
|
|
78
|
+
value: z.ZodOptional<z.ZodString>;
|
|
79
|
+
}, z.core.$strip>>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
export type ConditionalFormatRuleReadout = z.infer<typeof ConditionalFormatRuleReadout>;
|
|
83
|
+
//# sourceMappingURL=ConditionalFormatRuleReadout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConditionalFormatRuleReadout.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/ConditionalFormatRuleReadout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA8FxB,6DAA6D;AAC7D,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIvC,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { GridRange } from './GridRange.js';
|
|
3
|
+
/**
|
|
4
|
+
* The read-side shape of a conditional format rule, kept deliberately open:
|
|
5
|
+
* `type` and color-vocabulary fields are open strings here (the write path
|
|
6
|
+
* is the closed enum in `BooleanCondition`, `InterpolationPoint`, and
|
|
7
|
+
* `ColorStyle`) because rules are addressed by array index, so this readout
|
|
8
|
+
* must be total; dropping a rule with an unrecognized upstream value would
|
|
9
|
+
* silently renumber every rule after it.
|
|
10
|
+
*
|
|
11
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#ConditionalFormatRule
|
|
12
|
+
*/
|
|
13
|
+
const ConditionValueReadout = z.object({
|
|
14
|
+
userEnteredValue: z
|
|
15
|
+
.string()
|
|
16
|
+
.optional()
|
|
17
|
+
.describe('The value the condition is based on, as entered; may be a live formula beginning with = or +.'),
|
|
18
|
+
relativeDate: z
|
|
19
|
+
.string()
|
|
20
|
+
.optional()
|
|
21
|
+
.describe('A date relative to the current date; the write vocabulary is PAST_YEAR, PAST_MONTH, PAST_WEEK, YESTERDAY, TODAY, or TOMORROW.'),
|
|
22
|
+
});
|
|
23
|
+
const BooleanConditionReadout = z.object({
|
|
24
|
+
type: z
|
|
25
|
+
.string()
|
|
26
|
+
.optional()
|
|
27
|
+
.describe("The type of condition, from the write path's ConditionType vocabulary (NUMBER_GREATER, TEXT_CONTAINS, DATE_BEFORE, CUSTOM_FORMULA, ...)."),
|
|
28
|
+
values: z.array(ConditionValueReadout).optional().describe('The values of the condition.'),
|
|
29
|
+
});
|
|
30
|
+
const ColorStyleReadout = z.object({
|
|
31
|
+
rgbColor: z
|
|
32
|
+
.object({
|
|
33
|
+
red: z.number().optional().describe('The red channel, 0 to 1.'),
|
|
34
|
+
green: z.number().optional().describe('The green channel, 0 to 1.'),
|
|
35
|
+
blue: z.number().optional().describe('The blue channel, 0 to 1.'),
|
|
36
|
+
})
|
|
37
|
+
.optional()
|
|
38
|
+
.describe('A concrete RGB color.'),
|
|
39
|
+
themeColor: z
|
|
40
|
+
.string()
|
|
41
|
+
.optional()
|
|
42
|
+
.describe("A color from the spreadsheet's theme; the write vocabulary is TEXT, BACKGROUND, ACCENT1 through ACCENT6, or LINK."),
|
|
43
|
+
});
|
|
44
|
+
const BooleanRuleReadout = z.object({
|
|
45
|
+
condition: BooleanConditionReadout.optional().describe('The condition of the rule.'),
|
|
46
|
+
format: z
|
|
47
|
+
.object({
|
|
48
|
+
backgroundColorStyle: ColorStyleReadout.optional().describe('The background color.'),
|
|
49
|
+
textFormat: z
|
|
50
|
+
.object({
|
|
51
|
+
foregroundColorStyle: ColorStyleReadout.optional().describe('The text color.'),
|
|
52
|
+
bold: z.boolean().optional().describe('True if the text is bold.'),
|
|
53
|
+
italic: z.boolean().optional().describe('True if the text is italicized.'),
|
|
54
|
+
strikethrough: z.boolean().optional().describe('True if the text is struck through.'),
|
|
55
|
+
})
|
|
56
|
+
.optional()
|
|
57
|
+
.describe('The text format the rule applies.'),
|
|
58
|
+
})
|
|
59
|
+
.optional()
|
|
60
|
+
.describe('The format the rule applies.'),
|
|
61
|
+
});
|
|
62
|
+
const InterpolationPointReadout = z.object({
|
|
63
|
+
colorStyle: ColorStyleReadout.optional().describe('The color of this interpolation point.'),
|
|
64
|
+
type: z
|
|
65
|
+
.string()
|
|
66
|
+
.optional()
|
|
67
|
+
.describe('How the value should be interpreted; the write vocabulary is MIN, MAX, NUMBER, PERCENT, or PERCENTILE.'),
|
|
68
|
+
value: z
|
|
69
|
+
.string()
|
|
70
|
+
.optional()
|
|
71
|
+
.describe('The value this interpolation point uses; may be a live formula.'),
|
|
72
|
+
});
|
|
73
|
+
const GradientRuleReadout = z.object({
|
|
74
|
+
minpoint: InterpolationPointReadout.optional().describe('The starting interpolation point.'),
|
|
75
|
+
midpoint: InterpolationPointReadout.optional().describe('The midway interpolation point.'),
|
|
76
|
+
maxpoint: InterpolationPointReadout.optional().describe('The final interpolation point.'),
|
|
77
|
+
});
|
|
78
|
+
/** One conditional format rule as read back from a sheet. */
|
|
79
|
+
export const ConditionalFormatRuleReadout = z.object({
|
|
80
|
+
ranges: z.array(GridRange).optional().describe('The ranges the rule formats.'),
|
|
81
|
+
booleanRule: BooleanRuleReadout.optional().describe('An on/off rule, if this rule is one.'),
|
|
82
|
+
gradientRule: GradientRuleReadout.optional().describe('A gradient rule, if this rule is one.'),
|
|
83
|
+
});
|
|
84
|
+
//# sourceMappingURL=ConditionalFormatRuleReadout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConditionalFormatRuleReadout.js","sourceRoot":"","sources":["../../../src/sheets/entities/ConditionalFormatRuleReadout.ts"],"names":[],"mappings":"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","sourcesContent":["import { z } from 'zod';\nimport { GridRange } from './GridRange.js';\n\n/**\n * The read-side shape of a conditional format rule, kept deliberately open:\n * `type` and color-vocabulary fields are open strings here (the write path\n * is the closed enum in `BooleanCondition`, `InterpolationPoint`, and\n * `ColorStyle`) because rules are addressed by array index, so this readout\n * must be total; dropping a rule with an unrecognized upstream value would\n * silently renumber every rule after it.\n *\n * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#ConditionalFormatRule\n */\nconst ConditionValueReadout = z.object({\n userEnteredValue: z\n .string()\n .optional()\n .describe(\n 'The value the condition is based on, as entered; may be a live formula beginning with = or +.',\n ),\n relativeDate: z\n .string()\n .optional()\n .describe(\n 'A date relative to the current date; the write vocabulary is PAST_YEAR, PAST_MONTH, PAST_WEEK, YESTERDAY, TODAY, or TOMORROW.',\n ),\n});\n\nconst BooleanConditionReadout = z.object({\n type: z\n .string()\n .optional()\n .describe(\n \"The type of condition, from the write path's ConditionType vocabulary (NUMBER_GREATER, TEXT_CONTAINS, DATE_BEFORE, CUSTOM_FORMULA, ...).\",\n ),\n values: z.array(ConditionValueReadout).optional().describe('The values of the condition.'),\n});\n\nconst ColorStyleReadout = z.object({\n rgbColor: z\n .object({\n red: z.number().optional().describe('The red channel, 0 to 1.'),\n green: z.number().optional().describe('The green channel, 0 to 1.'),\n blue: z.number().optional().describe('The blue channel, 0 to 1.'),\n })\n .optional()\n .describe('A concrete RGB color.'),\n themeColor: z\n .string()\n .optional()\n .describe(\n \"A color from the spreadsheet's theme; the write vocabulary is TEXT, BACKGROUND, ACCENT1 through ACCENT6, or LINK.\",\n ),\n});\n\nconst BooleanRuleReadout = z.object({\n condition: BooleanConditionReadout.optional().describe('The condition of the rule.'),\n format: z\n .object({\n backgroundColorStyle: ColorStyleReadout.optional().describe('The background color.'),\n textFormat: z\n .object({\n foregroundColorStyle: ColorStyleReadout.optional().describe('The text color.'),\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 is struck through.'),\n })\n .optional()\n .describe('The text format the rule applies.'),\n })\n .optional()\n .describe('The format the rule applies.'),\n});\n\nconst InterpolationPointReadout = z.object({\n colorStyle: ColorStyleReadout.optional().describe('The color of this interpolation point.'),\n type: z\n .string()\n .optional()\n .describe(\n 'How the value should be interpreted; the write vocabulary is MIN, MAX, NUMBER, PERCENT, or PERCENTILE.',\n ),\n value: z\n .string()\n .optional()\n .describe('The value this interpolation point uses; may be a live formula.'),\n});\n\nconst GradientRuleReadout = z.object({\n minpoint: InterpolationPointReadout.optional().describe('The starting interpolation point.'),\n midpoint: InterpolationPointReadout.optional().describe('The midway interpolation point.'),\n maxpoint: InterpolationPointReadout.optional().describe('The final interpolation point.'),\n});\n\n/** One conditional format rule as read back from a sheet. */\nexport const ConditionalFormatRuleReadout = z.object({\n ranges: z.array(GridRange).optional().describe('The ranges the rule formats.'),\n booleanRule: BooleanRuleReadout.optional().describe('An on/off rule, if this rule is one.'),\n gradientRule: GradientRuleReadout.optional().describe('A gradient rule, if this rule is one.'),\n});\n\nexport type ConditionalFormatRuleReadout = z.infer<typeof ConditionalFormatRuleReadout>;\n"]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* A data validation rule: a condition cell input must satisfy, optionally
|
|
4
|
+
* strict (rejecting invalid input rather than flagging it) and optionally
|
|
5
|
+
* rendered as a custom UI (ONE_OF_LIST and ONE_OF_RANGE become dropdowns).
|
|
6
|
+
*
|
|
7
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/cells#DataValidationRule
|
|
8
|
+
*/
|
|
9
|
+
export declare const DataValidationRule: 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
|
+
NOT_BLANK: "NOT_BLANK";
|
|
24
|
+
NUMBER_BETWEEN: "NUMBER_BETWEEN";
|
|
25
|
+
NUMBER_EQ: "NUMBER_EQ";
|
|
26
|
+
NUMBER_GREATER: "NUMBER_GREATER";
|
|
27
|
+
NUMBER_GREATER_THAN_EQ: "NUMBER_GREATER_THAN_EQ";
|
|
28
|
+
NUMBER_LESS: "NUMBER_LESS";
|
|
29
|
+
NUMBER_LESS_THAN_EQ: "NUMBER_LESS_THAN_EQ";
|
|
30
|
+
NUMBER_NOT_BETWEEN: "NUMBER_NOT_BETWEEN";
|
|
31
|
+
NUMBER_NOT_EQ: "NUMBER_NOT_EQ";
|
|
32
|
+
ONE_OF_LIST: "ONE_OF_LIST";
|
|
33
|
+
ONE_OF_RANGE: "ONE_OF_RANGE";
|
|
34
|
+
TEXT_CONTAINS: "TEXT_CONTAINS";
|
|
35
|
+
TEXT_ENDS_WITH: "TEXT_ENDS_WITH";
|
|
36
|
+
TEXT_EQ: "TEXT_EQ";
|
|
37
|
+
TEXT_IS_EMAIL: "TEXT_IS_EMAIL";
|
|
38
|
+
TEXT_IS_URL: "TEXT_IS_URL";
|
|
39
|
+
TEXT_NOT_CONTAINS: "TEXT_NOT_CONTAINS";
|
|
40
|
+
TEXT_STARTS_WITH: "TEXT_STARTS_WITH";
|
|
41
|
+
}>;
|
|
42
|
+
values: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
43
|
+
relativeDate: z.ZodOptional<z.ZodEnum<{
|
|
44
|
+
PAST_MONTH: "PAST_MONTH";
|
|
45
|
+
PAST_WEEK: "PAST_WEEK";
|
|
46
|
+
PAST_YEAR: "PAST_YEAR";
|
|
47
|
+
TODAY: "TODAY";
|
|
48
|
+
TOMORROW: "TOMORROW";
|
|
49
|
+
YESTERDAY: "YESTERDAY";
|
|
50
|
+
}>>;
|
|
51
|
+
userEnteredValue: z.ZodOptional<z.ZodString>;
|
|
52
|
+
}, z.core.$strict>>>;
|
|
53
|
+
}, z.core.$strict>;
|
|
54
|
+
inputMessage: z.ZodOptional<z.ZodString>;
|
|
55
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
showCustomUi: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
+
}, z.core.$strict>;
|
|
58
|
+
export type DataValidationRule = z.infer<typeof DataValidationRule>;
|
|
59
|
+
//# sourceMappingURL=DataValidationRule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataValidationRule.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/DataValidationRule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAe7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BooleanCondition } from './BooleanCondition.js';
|
|
3
|
+
/**
|
|
4
|
+
* A data validation rule: a condition cell input must satisfy, optionally
|
|
5
|
+
* strict (rejecting invalid input rather than flagging it) and optionally
|
|
6
|
+
* rendered as a custom UI (ONE_OF_LIST and ONE_OF_RANGE become dropdowns).
|
|
7
|
+
*
|
|
8
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/cells#DataValidationRule
|
|
9
|
+
*/
|
|
10
|
+
export const DataValidationRule = z.strictObject({
|
|
11
|
+
condition: BooleanCondition.describe('The condition that data in the cell must match; relative dates are not supported in data validation.'),
|
|
12
|
+
inputMessage: z
|
|
13
|
+
.string()
|
|
14
|
+
.optional()
|
|
15
|
+
.describe('A message to show the user when adding data to the cell.'),
|
|
16
|
+
strict: z.boolean().optional().describe('True if invalid data should be rejected.'),
|
|
17
|
+
showCustomUi: z
|
|
18
|
+
.boolean()
|
|
19
|
+
.optional()
|
|
20
|
+
.describe('True if the UI should be customized based on the kind of condition; ONE_OF_LIST and ONE_OF_RANGE conditions show a dropdown.'),
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=DataValidationRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataValidationRule.js","sourceRoot":"","sources":["../../../src/sheets/entities/DataValidationRule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,SAAS,EAAE,gBAAgB,CAAC,QAAQ,CAClC,sGAAsG,CACvG;IACD,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,0DAA0D,CAAC;IACvE,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0CAA0C,CAAC;IACnF,YAAY,EAAE,CAAC;SACZ,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,8HAA8H,CAC/H;CACJ,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { BooleanCondition } from './BooleanCondition.js';\n\n/**\n * A data validation rule: a condition cell input must satisfy, optionally\n * strict (rejecting invalid input rather than flagging it) and optionally\n * rendered as a custom UI (ONE_OF_LIST and ONE_OF_RANGE become dropdowns).\n *\n * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/cells#DataValidationRule\n */\nexport const DataValidationRule = z.strictObject({\n condition: BooleanCondition.describe(\n 'The condition that data in the cell must match; relative dates are not supported in data validation.',\n ),\n inputMessage: z\n .string()\n .optional()\n .describe('A message to show the user when adding data to the cell.'),\n strict: z.boolean().optional().describe('True if invalid data should be rejected.'),\n showCustomUi: z\n .boolean()\n .optional()\n .describe(\n 'True if the UI should be customized based on the kind of condition; ONE_OF_LIST and ONE_OF_RANGE conditions show a dropdown.',\n ),\n});\n\nexport type DataValidationRule = z.infer<typeof DataValidationRule>;\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* The users and groups with edit access to a protected range. Editors are
|
|
4
|
+
* not supported with warning-only protection.
|
|
5
|
+
*
|
|
6
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#Editors
|
|
7
|
+
*/
|
|
8
|
+
export declare const Editors: z.ZodObject<{
|
|
9
|
+
users: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
|
+
domainUsersCanEdit: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
export type Editors = z.infer<typeof Editors>;
|
|
14
|
+
//# sourceMappingURL=Editors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Editors.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/Editors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,eAAO,MAAM,OAAO;;;;kBAelB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* The users and groups with edit access to a protected range. Editors are
|
|
4
|
+
* not supported with warning-only protection.
|
|
5
|
+
*
|
|
6
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#Editors
|
|
7
|
+
*/
|
|
8
|
+
export const Editors = z.strictObject({
|
|
9
|
+
users: z
|
|
10
|
+
.array(z.string())
|
|
11
|
+
.optional()
|
|
12
|
+
.describe('The email addresses of users with edit access to the protected range.'),
|
|
13
|
+
groups: z
|
|
14
|
+
.array(z.string())
|
|
15
|
+
.optional()
|
|
16
|
+
.describe('The email addresses of groups with edit access to the protected range.'),
|
|
17
|
+
domainUsersCanEdit: z
|
|
18
|
+
.boolean()
|
|
19
|
+
.optional()
|
|
20
|
+
.describe("True if anyone in the document's domain has edit access to the protected range; domain protection is only supported on documents within a domain."),
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=Editors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Editors.js","sourceRoot":"","sources":["../../../src/sheets/entities/Editors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,YAAY,CAAC;IACpC,KAAK,EAAE,CAAC;SACL,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;SACV,QAAQ,CAAC,uEAAuE,CAAC;IACpF,MAAM,EAAE,CAAC;SACN,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;SACV,QAAQ,CAAC,wEAAwE,CAAC;IACrF,kBAAkB,EAAE,CAAC;SAClB,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,mJAAmJ,CACpJ;CACJ,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * The users and groups with edit access to a protected range. Editors are\n * not supported with warning-only protection.\n *\n * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/sheets#Editors\n */\nexport const Editors = z.strictObject({\n users: z\n .array(z.string())\n .optional()\n .describe('The email addresses of users with edit access to the protected range.'),\n groups: z\n .array(z.string())\n .optional()\n .describe('The email addresses of groups with edit access to the protected range.'),\n domainUsersCanEdit: z\n .boolean()\n .optional()\n .describe(\n \"True if anyone in the document's domain has edit access to the protected range; domain protection is only supported on documents within a domain.\",\n ),\n});\n\nexport type Editors = z.infer<typeof Editors>;\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* The kinds of value a cell can hold. Provide at most one of the four
|
|
4
|
+
* fields; an empty value represents a cell with no data, which is how a
|
|
5
|
+
* masked write clears a cell's value. The read-only errorValue kind is not
|
|
6
|
+
* carried.
|
|
7
|
+
*
|
|
8
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/other#ExtendedValue
|
|
9
|
+
*/
|
|
10
|
+
export declare const ExtendedValue: z.ZodObject<{
|
|
11
|
+
stringValue: z.ZodOptional<z.ZodString>;
|
|
12
|
+
numberValue: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
boolValue: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
formulaValue: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
export type ExtendedValue = z.infer<typeof ExtendedValue>;
|
|
17
|
+
//# sourceMappingURL=ExtendedValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExtendedValue.d.ts","sourceRoot":"","sources":["../../../src/sheets/entities/ExtendedValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa;;;;;kBAkBxB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* The kinds of value a cell can hold. Provide at most one of the four
|
|
4
|
+
* fields; an empty value represents a cell with no data, which is how a
|
|
5
|
+
* masked write clears a cell's value. The read-only errorValue kind is not
|
|
6
|
+
* carried.
|
|
7
|
+
*
|
|
8
|
+
* @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/other#ExtendedValue
|
|
9
|
+
*/
|
|
10
|
+
export const ExtendedValue = z.strictObject({
|
|
11
|
+
stringValue: z
|
|
12
|
+
.string()
|
|
13
|
+
.optional()
|
|
14
|
+
.describe('A string value; stored as-is, never parsed as a formula.'),
|
|
15
|
+
numberValue: z
|
|
16
|
+
.number()
|
|
17
|
+
.optional()
|
|
18
|
+
.describe('A double value; dates, times, and datetimes are represented as doubles in serial number format.'),
|
|
19
|
+
boolValue: z.boolean().optional().describe('A boolean value.'),
|
|
20
|
+
formulaValue: z
|
|
21
|
+
.string()
|
|
22
|
+
.optional()
|
|
23
|
+
.describe('A formula, beginning with =, which executes in the sheet; do not pass untrusted text here.'),
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=ExtendedValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExtendedValue.js","sourceRoot":"","sources":["../../../src/sheets/entities/ExtendedValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,YAAY,CAAC;IAC1C,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,0DAA0D,CAAC;IACvE,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,iGAAiG,CAClG;IACH,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IAC9D,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,4FAA4F,CAC7F;CACJ,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * The kinds of value a cell can hold. Provide at most one of the four\n * fields; an empty value represents a cell with no data, which is how a\n * masked write clears a cell's value. The read-only errorValue kind is not\n * carried.\n *\n * @see https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/other#ExtendedValue\n */\nexport const ExtendedValue = z.strictObject({\n stringValue: z\n .string()\n .optional()\n .describe('A string value; stored as-is, never parsed as a formula.'),\n numberValue: z\n .number()\n .optional()\n .describe(\n 'A double value; dates, times, and datetimes are represented as doubles in serial number format.',\n ),\n boolValue: z.boolean().optional().describe('A boolean value.'),\n formulaValue: z\n .string()\n .optional()\n .describe(\n 'A formula, beginning with =, which executes in the sheet; do not pass untrusted text here.',\n ),\n});\n\nexport type ExtendedValue = z.infer<typeof ExtendedValue>;\n"]}
|