@frogbotai/piece-google-sheets 0.26.0 → 0.28.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.
@@ -1,33 +1,36 @@
1
- import type { sheets_v4 } from 'googleapis';
2
1
  import { z } from 'zod';
3
- import { sheetInput, type SheetsArgs } from './shared.js';
4
- declare const createSpreadsheetInput: z.ZodObject<{
2
+ export declare const createSpreadsheet: import("frogbot").PieceActionDefinition<z.ZodObject<{
5
3
  title: z.ZodString;
6
4
  folderId: z.ZodOptional<z.ZodString>;
7
- }, z.core.$strip>;
8
- export declare const createSpreadsheet: {
5
+ }, z.core.$strip>, z.ZodObject<{
6
+ id: z.ZodString;
7
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ webViewLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ createdTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ modifiedTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ }, z.core.$loose>, Record<string, never>, import("./client.js").GoogleSheetsClient, {
12
+ [x: string]: unknown;
13
+ id: string;
14
+ name?: string | null | undefined;
15
+ webViewLink?: string | null | undefined;
16
+ createdTime?: string | null | undefined;
17
+ modifiedTime?: string | null | undefined;
18
+ }> & {
9
19
  slug: "createSpreadsheet";
10
- description: string;
11
- input: z.ZodObject<{
12
- title: z.ZodString;
13
- folderId: z.ZodOptional<z.ZodString>;
14
- }, z.core.$strip>;
15
- output: z.ZodObject<{
16
- id: z.ZodString;
17
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
- webViewLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
- createdTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
- modifiedTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
- }, z.core.$loose>;
22
- idempotent: boolean;
23
- run({ client, req, input }: SheetsArgs<z.output<typeof createSpreadsheetInput>>): Promise<import("googleapis").drive_v3.Schema$File>;
24
20
  };
25
- declare const createInput: z.ZodObject<{
21
+ export declare const createWorksheet: import("frogbot").PieceActionDefinition<z.ZodObject<{
26
22
  spreadsheetId: z.ZodString;
27
23
  title: z.ZodString;
28
24
  headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
29
- }, z.core.$strip>;
30
- declare function addWorksheet(args: SheetsArgs<z.output<typeof createInput>>): Promise<{
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ sheetId: z.ZodNumber;
27
+ title: z.ZodString;
28
+ index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
+ gridProperties: z.ZodOptional<z.ZodNullable<z.ZodObject<{
30
+ rowCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ columnCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
32
+ }, z.core.$loose>>>;
33
+ }, z.core.$loose>, Record<string, never>, import("./client.js").GoogleSheetsClient, {
31
34
  [x: string]: unknown;
32
35
  sheetId: number;
33
36
  title: string;
@@ -37,16 +40,17 @@ declare function addWorksheet(args: SheetsArgs<z.output<typeof createInput>>): P
37
40
  rowCount?: number | null | undefined;
38
41
  columnCount?: number | null | undefined;
39
42
  } | null | undefined;
40
- }>;
41
- export declare const createWorksheet: {
43
+ }> & {
42
44
  slug: "createWorksheet";
43
- description: string;
44
- input: z.ZodObject<{
45
- spreadsheetId: z.ZodString;
46
- title: z.ZodString;
47
- headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
48
- }, z.core.$strip>;
49
- output: z.ZodObject<{
45
+ };
46
+ export declare const findOrCreateWorksheet: import("frogbot").PieceActionDefinition<z.ZodObject<{
47
+ spreadsheetId: z.ZodString;
48
+ title: z.ZodString;
49
+ headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
50
+ }, z.core.$strip>, z.ZodObject<{
51
+ found: z.ZodBoolean;
52
+ created: z.ZodBoolean;
53
+ worksheet: z.ZodObject<{
50
54
  sheetId: z.ZodNumber;
51
55
  title: z.ZodString;
52
56
  index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -55,126 +59,79 @@ export declare const createWorksheet: {
55
59
  columnCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
56
60
  }, z.core.$loose>>>;
57
61
  }, z.core.$loose>;
58
- idempotent: boolean;
59
- run: typeof addWorksheet;
60
- };
61
- export declare const findOrCreateWorksheet: {
62
- slug: "findOrCreateWorksheet";
63
- description: string;
64
- input: z.ZodObject<{
65
- spreadsheetId: z.ZodString;
66
- title: z.ZodString;
67
- headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
68
- }, z.core.$strip>;
69
- output: z.ZodObject<{
70
- found: z.ZodBoolean;
71
- created: z.ZodBoolean;
72
- worksheet: z.ZodObject<{
73
- sheetId: z.ZodNumber;
74
- title: z.ZodString;
75
- index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
76
- gridProperties: z.ZodOptional<z.ZodNullable<z.ZodObject<{
77
- rowCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
78
- columnCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
79
- }, z.core.$loose>>>;
80
- }, z.core.$loose>;
81
- }, z.core.$strip>;
82
- idempotent: boolean;
83
- run(args: SheetsArgs<z.output<typeof createInput>>): Promise<{
84
- found: boolean;
85
- created: boolean;
86
- worksheet: {
62
+ }, z.core.$strip>, Record<string, never>, import("./client.js").GoogleSheetsClient, {
63
+ found: boolean;
64
+ created: boolean;
65
+ worksheet: {
66
+ [x: string]: unknown;
67
+ sheetId: number;
68
+ title: string;
69
+ index?: number | null | undefined;
70
+ gridProperties?: {
87
71
  [x: string]: unknown;
88
- sheetId: number;
89
- title: string;
90
- index?: number | null | undefined;
91
- gridProperties?: {
92
- [x: string]: unknown;
93
- rowCount?: number | null | undefined;
94
- columnCount?: number | null | undefined;
95
- } | null | undefined;
96
- };
97
- }>;
72
+ rowCount?: number | null | undefined;
73
+ columnCount?: number | null | undefined;
74
+ } | null | undefined;
75
+ };
76
+ }> & {
77
+ slug: "findOrCreateWorksheet";
98
78
  };
99
- declare const clearSheetInput: z.ZodObject<{
79
+ export declare const clearWorksheet: import("frogbot").PieceActionDefinition<z.ZodObject<{
100
80
  spreadsheetId: z.ZodString;
101
81
  sheetId: z.ZodNumber;
102
82
  preserveHeaders: z.ZodDefault<z.ZodBoolean>;
103
83
  headerRow: z.ZodDefault<z.ZodNumber>;
104
- }, z.core.$strip>;
105
- export declare const clearWorksheet: {
84
+ }, z.core.$strip>, z.ZodObject<{
85
+ spreadsheetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
+ clearedRange: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
+ }, z.core.$strip>, Record<string, never>, import("./client.js").GoogleSheetsClient, {
88
+ spreadsheetId?: string | null | undefined;
89
+ clearedRange?: string | null | undefined;
90
+ }> & {
106
91
  slug: "clearWorksheet";
107
- description: string;
108
- input: z.ZodObject<{
109
- spreadsheetId: z.ZodString;
110
- sheetId: z.ZodNumber;
111
- preserveHeaders: z.ZodDefault<z.ZodBoolean>;
112
- headerRow: z.ZodDefault<z.ZodNumber>;
113
- }, z.core.$strip>;
114
- output: z.ZodObject<{
115
- spreadsheetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
116
- clearedRange: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
- }, z.core.$strip>;
118
- idempotent: boolean;
119
- run(args: SheetsArgs<z.output<typeof clearSheetInput>>): Promise<sheets_v4.Schema$ClearValuesResponse>;
120
92
  };
121
- declare const rangeInput: z.ZodObject<{
93
+ export declare const clearRows: import("frogbot").PieceActionDefinition<z.ZodObject<{
122
94
  spreadsheetId: z.ZodString;
123
95
  sheetId: z.ZodNumber;
124
96
  startRow: z.ZodNumber;
125
97
  endRow: z.ZodOptional<z.ZodNumber>;
126
- }, z.core.$strip>;
127
- export declare const clearRows: {
98
+ }, z.core.$strip>, z.ZodObject<{
99
+ spreadsheetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
+ clearedRange: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
+ }, z.core.$strip>, Record<string, never>, import("./client.js").GoogleSheetsClient, {
102
+ spreadsheetId?: string | null | undefined;
103
+ clearedRange?: string | null | undefined;
104
+ }> & {
128
105
  slug: "clearRows";
129
- description: string;
130
- input: z.ZodObject<{
131
- spreadsheetId: z.ZodString;
132
- sheetId: z.ZodNumber;
133
- startRow: z.ZodNumber;
134
- endRow: z.ZodOptional<z.ZodNumber>;
135
- }, z.core.$strip>;
136
- output: z.ZodObject<{
137
- spreadsheetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
- clearedRange: z.ZodOptional<z.ZodNullable<z.ZodString>>;
139
- }, z.core.$strip>;
140
- idempotent: boolean;
141
- run(args: SheetsArgs<z.output<typeof rangeInput>>): Promise<sheets_v4.Schema$ClearValuesResponse>;
142
106
  };
143
- export declare const deleteWorksheet: {
107
+ export declare const deleteWorksheet: import("frogbot").PieceActionDefinition<z.ZodObject<{
108
+ spreadsheetId: z.ZodString;
109
+ sheetId: z.ZodNumber;
110
+ }, z.core.$strip>, z.ZodObject<{
111
+ spreadsheetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
+ replies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodJSONSchema>>>;
113
+ }, z.core.$loose>, Record<string, never>, import("./client.js").GoogleSheetsClient, {
114
+ [x: string]: unknown;
115
+ spreadsheetId?: string | null | undefined;
116
+ replies?: z.core.util.JSONType[] | null | undefined;
117
+ }> & {
144
118
  slug: "deleteWorksheet";
145
- description: string;
146
- input: z.ZodObject<{
147
- spreadsheetId: z.ZodString;
148
- sheetId: z.ZodNumber;
149
- }, z.core.$strip>;
150
- output: z.ZodObject<{
151
- spreadsheetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
152
- replies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodJSONSchema>>>;
153
- }, z.core.$loose>;
154
- idempotent: boolean;
155
- run: (args: SheetsArgs<z.output<typeof sheetInput>>) => Promise<sheets_v4.Schema$BatchUpdateSpreadsheetResponse>;
156
119
  };
157
- declare const renameInput: z.ZodObject<{
120
+ export declare const renameWorksheet: import("frogbot").PieceActionDefinition<z.ZodObject<{
158
121
  spreadsheetId: z.ZodString;
159
122
  sheetId: z.ZodNumber;
160
123
  title: z.ZodString;
161
- }, z.core.$strip>;
162
- export declare const renameWorksheet: {
124
+ }, z.core.$strip>, z.ZodObject<{
125
+ spreadsheetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
126
+ replies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodJSONSchema>>>;
127
+ }, z.core.$loose>, Record<string, never>, import("./client.js").GoogleSheetsClient, {
128
+ [x: string]: unknown;
129
+ spreadsheetId?: string | null | undefined;
130
+ replies?: z.core.util.JSONType[] | null | undefined;
131
+ }> & {
163
132
  slug: "renameWorksheet";
164
- description: string;
165
- input: z.ZodObject<{
166
- spreadsheetId: z.ZodString;
167
- sheetId: z.ZodNumber;
168
- title: z.ZodString;
169
- }, z.core.$strip>;
170
- output: z.ZodObject<{
171
- spreadsheetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
172
- replies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodJSONSchema>>>;
173
- }, z.core.$loose>;
174
- idempotent: boolean;
175
- run: (args: SheetsArgs<z.output<typeof renameInput>>) => Promise<sheets_v4.Schema$BatchUpdateSpreadsheetResponse>;
176
133
  };
177
- declare const formatInput: z.ZodObject<{
134
+ export declare const formatRows: import("frogbot").PieceActionDefinition<z.ZodObject<{
178
135
  spreadsheetId: z.ZodString;
179
136
  sheetId: z.ZodNumber;
180
137
  startRow: z.ZodNumber;
@@ -184,29 +141,17 @@ declare const formatInput: z.ZodObject<{
184
141
  bold: z.ZodOptional<z.ZodBoolean>;
185
142
  italic: z.ZodOptional<z.ZodBoolean>;
186
143
  strikethrough: z.ZodOptional<z.ZodBoolean>;
187
- }, z.core.$strip>;
188
- export declare const formatRows: {
144
+ }, z.core.$strip>, z.ZodObject<{
145
+ spreadsheetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
146
+ replies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodJSONSchema>>>;
147
+ }, z.core.$loose>, Record<string, never>, import("./client.js").GoogleSheetsClient, {
148
+ [x: string]: unknown;
149
+ spreadsheetId?: string | null | undefined;
150
+ replies?: z.core.util.JSONType[] | null | undefined;
151
+ }> & {
189
152
  slug: "formatRows";
190
- description: string;
191
- input: z.ZodObject<{
192
- spreadsheetId: z.ZodString;
193
- sheetId: z.ZodNumber;
194
- startRow: z.ZodNumber;
195
- endRow: z.ZodOptional<z.ZodNumber>;
196
- backgroundColor: z.ZodOptional<z.ZodString>;
197
- textColor: z.ZodOptional<z.ZodString>;
198
- bold: z.ZodOptional<z.ZodBoolean>;
199
- italic: z.ZodOptional<z.ZodBoolean>;
200
- strikethrough: z.ZodOptional<z.ZodBoolean>;
201
- }, z.core.$strip>;
202
- output: z.ZodObject<{
203
- spreadsheetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
204
- replies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodJSONSchema>>>;
205
- }, z.core.$loose>;
206
- idempotent: boolean;
207
- run(args: SheetsArgs<z.output<typeof formatInput>>): Promise<sheets_v4.Schema$BatchUpdateSpreadsheetResponse>;
208
153
  };
209
- declare const readRangeInput: z.ZodObject<{
154
+ export declare const readRange: import("frogbot").PieceActionDefinition<z.ZodObject<{
210
155
  spreadsheetId: z.ZodString;
211
156
  sheetId: z.ZodNumber;
212
157
  range: z.ZodOptional<z.ZodString>;
@@ -219,113 +164,53 @@ declare const readRangeInput: z.ZodObject<{
219
164
  UNFORMATTED_VALUE: "UNFORMATTED_VALUE";
220
165
  FORMULA: "FORMULA";
221
166
  }>>;
222
- }, z.core.$strip>;
223
- export declare const readRange: {
224
- slug: "readRange";
225
- description: string;
226
- input: z.ZodObject<{
227
- spreadsheetId: z.ZodString;
228
- sheetId: z.ZodNumber;
229
- range: z.ZodOptional<z.ZodString>;
230
- majorDimension: z.ZodDefault<z.ZodEnum<{
231
- ROWS: "ROWS";
232
- COLUMNS: "COLUMNS";
233
- }>>;
234
- valueRenderOption: z.ZodDefault<z.ZodEnum<{
235
- FORMATTED_VALUE: "FORMATTED_VALUE";
236
- UNFORMATTED_VALUE: "UNFORMATTED_VALUE";
237
- FORMULA: "FORMULA";
238
- }>>;
239
- }, z.core.$strip>;
240
- output: z.ZodObject<{
241
- range: z.ZodString;
242
- majorDimension: z.ZodEnum<{
243
- ROWS: "ROWS";
244
- COLUMNS: "COLUMNS";
245
- }>;
246
- values: z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
247
- }, z.core.$strip>;
248
- idempotent: boolean;
249
- run(args: SheetsArgs<z.output<typeof readRangeInput>>): Promise<{
250
- range: string;
251
- majorDimension: "ROWS" | "COLUMNS";
252
- values: any[][];
167
+ }, z.core.$strip>, z.ZodObject<{
168
+ range: z.ZodString;
169
+ majorDimension: z.ZodEnum<{
170
+ ROWS: "ROWS";
171
+ COLUMNS: "COLUMNS";
253
172
  }>;
173
+ values: z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
174
+ }, z.core.$strip>, Record<string, never>, import("./client.js").GoogleSheetsClient, {
175
+ range: string;
176
+ majorDimension: "ROWS" | "COLUMNS";
177
+ values: (string | number | boolean | null)[][];
178
+ }> & {
179
+ slug: "readRange";
254
180
  };
255
- declare const findSpreadsheetInput: z.ZodObject<{
181
+ export declare const findSpreadsheets: import("frogbot").PieceActionDefinition<z.ZodObject<{
256
182
  name: z.ZodString;
257
183
  exactMatch: z.ZodDefault<z.ZodBoolean>;
258
184
  includeSharedDrives: z.ZodDefault<z.ZodBoolean>;
259
- }, z.core.$strip>;
260
- export declare const findSpreadsheets: {
185
+ }, z.core.$strip>, z.ZodObject<{
186
+ found: z.ZodBoolean;
187
+ spreadsheets: z.ZodArray<z.ZodObject<{
188
+ id: z.ZodString;
189
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
190
+ webViewLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
191
+ createdTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
192
+ modifiedTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
193
+ }, z.core.$loose>>;
194
+ }, z.core.$strip>, Record<string, never>, import("./client.js").GoogleSheetsClient, {
195
+ found: boolean;
196
+ spreadsheets: {
197
+ [x: string]: unknown;
198
+ id: string;
199
+ name?: string | null | undefined;
200
+ webViewLink?: string | null | undefined;
201
+ createdTime?: string | null | undefined;
202
+ modifiedTime?: string | null | undefined;
203
+ }[];
204
+ }> & {
261
205
  slug: "findSpreadsheets";
262
- description: string;
263
- input: z.ZodObject<{
264
- name: z.ZodString;
265
- exactMatch: z.ZodDefault<z.ZodBoolean>;
266
- includeSharedDrives: z.ZodDefault<z.ZodBoolean>;
267
- }, z.core.$strip>;
268
- output: z.ZodObject<{
269
- found: z.ZodBoolean;
270
- spreadsheets: z.ZodArray<z.ZodObject<{
271
- id: z.ZodString;
272
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
273
- webViewLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
274
- createdTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
275
- modifiedTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
276
- }, z.core.$loose>>;
277
- }, z.core.$strip>;
278
- idempotent: boolean;
279
- run({ client, input, req }: SheetsArgs<z.output<typeof findSpreadsheetInput>>): Promise<{
280
- found: boolean;
281
- spreadsheets: import("googleapis").drive_v3.Schema$File[];
282
- }>;
283
206
  };
284
- declare const findWorksheetInput: z.ZodObject<{
207
+ export declare const findWorksheets: import("frogbot").PieceActionDefinition<z.ZodObject<{
285
208
  spreadsheetId: z.ZodString;
286
209
  title: z.ZodString;
287
210
  exactMatch: z.ZodDefault<z.ZodBoolean>;
288
- }, z.core.$strip>;
289
- export declare const findWorksheets: {
290
- slug: "findWorksheets";
291
- description: string;
292
- input: z.ZodObject<{
293
- spreadsheetId: z.ZodString;
294
- title: z.ZodString;
295
- exactMatch: z.ZodDefault<z.ZodBoolean>;
296
- }, z.core.$strip>;
297
- output: z.ZodObject<{
298
- found: z.ZodBoolean;
299
- worksheets: z.ZodArray<z.ZodObject<{
300
- sheetId: z.ZodNumber;
301
- title: z.ZodString;
302
- index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
303
- gridProperties: z.ZodOptional<z.ZodNullable<z.ZodObject<{
304
- rowCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
305
- columnCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
306
- }, z.core.$loose>>>;
307
- }, z.core.$loose>>;
308
- }, z.core.$strip>;
309
- idempotent: boolean;
310
- run({ client, req, input }: SheetsArgs<z.output<typeof findWorksheetInput>>): Promise<{
311
- found: boolean;
312
- worksheets: sheets_v4.Schema$SheetProperties[];
313
- }>;
314
- };
315
- declare const copyInput: z.ZodObject<{
316
- spreadsheetId: z.ZodString;
317
- sheetId: z.ZodNumber;
318
- destinationSpreadsheetId: z.ZodString;
319
- }, z.core.$strip>;
320
- export declare const copyWorksheet: {
321
- slug: "copyWorksheet";
322
- description: string;
323
- input: z.ZodObject<{
324
- spreadsheetId: z.ZodString;
325
- sheetId: z.ZodNumber;
326
- destinationSpreadsheetId: z.ZodString;
327
- }, z.core.$strip>;
328
- output: z.ZodObject<{
211
+ }, z.core.$strip>, z.ZodObject<{
212
+ found: z.ZodBoolean;
213
+ worksheets: z.ZodArray<z.ZodObject<{
329
214
  sheetId: z.ZodNumber;
330
215
  title: z.ZodString;
331
216
  index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -333,44 +218,76 @@ export declare const copyWorksheet: {
333
218
  rowCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
334
219
  columnCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
335
220
  }, z.core.$loose>>>;
336
- }, z.core.$loose>;
337
- idempotent: boolean;
338
- run({ client, req, input }: SheetsArgs<z.output<typeof copyInput>>): Promise<sheets_v4.Schema$SheetProperties>;
221
+ }, z.core.$loose>>;
222
+ }, z.core.$strip>, Record<string, never>, import("./client.js").GoogleSheetsClient, {
223
+ found: boolean;
224
+ worksheets: {
225
+ [x: string]: unknown;
226
+ sheetId: number;
227
+ title: string;
228
+ index?: number | null | undefined;
229
+ gridProperties?: {
230
+ [x: string]: unknown;
231
+ rowCount?: number | null | undefined;
232
+ columnCount?: number | null | undefined;
233
+ } | null | undefined;
234
+ }[];
235
+ }> & {
236
+ slug: "findWorksheets";
339
237
  };
340
- declare const columnInput: z.ZodObject<{
238
+ export declare const copyWorksheet: import("frogbot").PieceActionDefinition<z.ZodObject<{
239
+ spreadsheetId: z.ZodString;
240
+ sheetId: z.ZodNumber;
241
+ destinationSpreadsheetId: z.ZodString;
242
+ }, z.core.$strip>, z.ZodObject<{
243
+ sheetId: z.ZodNumber;
244
+ title: z.ZodString;
245
+ index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
246
+ gridProperties: z.ZodOptional<z.ZodNullable<z.ZodObject<{
247
+ rowCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
248
+ columnCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
249
+ }, z.core.$loose>>>;
250
+ }, z.core.$loose>, Record<string, never>, import("./client.js").GoogleSheetsClient, {
251
+ [x: string]: unknown;
252
+ sheetId: number;
253
+ title: string;
254
+ index?: number | null | undefined;
255
+ gridProperties?: {
256
+ [x: string]: unknown;
257
+ rowCount?: number | null | undefined;
258
+ columnCount?: number | null | undefined;
259
+ } | null | undefined;
260
+ }> & {
261
+ slug: "copyWorksheet";
262
+ };
263
+ export declare const createColumn: import("frogbot").PieceActionDefinition<z.ZodObject<{
341
264
  spreadsheetId: z.ZodString;
342
265
  sheetId: z.ZodNumber;
343
266
  name: z.ZodString;
344
267
  index: z.ZodOptional<z.ZodNumber>;
345
268
  headerRow: z.ZodDefault<z.ZodNumber>;
346
- }, z.core.$strip>;
347
- export declare const createColumn: {
269
+ }, z.core.$strip>, z.ZodObject<{
270
+ column: z.ZodString;
271
+ index: z.ZodNumber;
272
+ updates: z.ZodObject<{
273
+ spreadsheetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
274
+ updatedRange: z.ZodOptional<z.ZodNullable<z.ZodString>>;
275
+ updatedRows: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
276
+ updatedColumns: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
277
+ updatedCells: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
278
+ }, z.core.$loose>;
279
+ }, z.core.$strip>, Record<string, never>, import("./client.js").GoogleSheetsClient, {
280
+ column: string;
281
+ index: number;
282
+ updates: {
283
+ [x: string]: unknown;
284
+ spreadsheetId?: string | null | undefined;
285
+ updatedRange?: string | null | undefined;
286
+ updatedRows?: number | null | undefined;
287
+ updatedColumns?: number | null | undefined;
288
+ updatedCells?: number | null | undefined;
289
+ };
290
+ }> & {
348
291
  slug: "createColumn";
349
- description: string;
350
- input: z.ZodObject<{
351
- spreadsheetId: z.ZodString;
352
- sheetId: z.ZodNumber;
353
- name: z.ZodString;
354
- index: z.ZodOptional<z.ZodNumber>;
355
- headerRow: z.ZodDefault<z.ZodNumber>;
356
- }, z.core.$strip>;
357
- output: z.ZodObject<{
358
- column: z.ZodString;
359
- index: z.ZodNumber;
360
- updates: z.ZodObject<{
361
- spreadsheetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
362
- updatedRange: z.ZodOptional<z.ZodNullable<z.ZodString>>;
363
- updatedRows: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
364
- updatedColumns: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
365
- updatedCells: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
366
- }, z.core.$loose>;
367
- }, z.core.$strip>;
368
- idempotent: boolean;
369
- run(args: SheetsArgs<z.output<typeof columnInput>>): Promise<{
370
- column: string;
371
- index: number;
372
- updates: sheets_v4.Schema$UpdateValuesResponse;
373
- }>;
374
292
  };
375
- export {};
376
293
  //# sourceMappingURL=worksheets.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"worksheets.d.ts","sourceRoot":"","sources":["../src/worksheets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAOL,UAAU,EAEV,KAAK,UAAU,EAIhB,MAAM,aAAa,CAAC;AAErB,QAAA,MAAM,sBAAsB;;;iBAG1B,CAAC;AAUH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;gCAMM,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;CAgBtF,CAAC;AAEF,QAAA,MAAM,WAAW;;;;iBAIf,CAAC;AACH,iBAAe,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,WAAW,CAAC,CAAC;;;;;;;;;;GAkBzE;AACD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;CAO3B,CAAC;AACF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;cAMhB,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,WAAW,CAAC,CAAC;;;;;;;;;;;;;;;CAYzD,CAAC;AAEF,QAAA,MAAM,eAAe;;;;;iBAGnB,CAAC;AAKH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;cAMT,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC;CAgB7D,CAAC;AACF,QAAA,MAAM,UAAU;;;;;iBAKb,CAAC;AACJ,eAAO,MAAM,SAAS;;;;;;;;;;;;;;cAMJ,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC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