@frogbotai/piece-trello 0.27.0 → 0.29.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/dist/actions.d.ts +404 -209
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +21 -20
- package/dist/actions.js.map +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js.map +1 -1
- package/dist/define.d.ts +420 -0
- package/dist/define.d.ts.map +1 -0
- package/dist/define.js +3 -0
- package/dist/define.js.map +1 -0
- package/dist/index.d.ts +792 -511
- package/dist/index.d.ts.map +1 -1
- package/dist/triggers.d.ts +452 -91
- package/dist/triggers.d.ts.map +1 -1
- package/dist/triggers.js +9 -7
- package/dist/triggers.js.map +1 -1
- package/package.json +3 -3
package/dist/actions.d.ts
CHANGED
|
@@ -1,233 +1,428 @@
|
|
|
1
|
-
import { type PieceRunArgs } from 'frogbot/pieces';
|
|
2
1
|
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
2
|
+
export declare const createCard: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
3
|
+
boardId: z.ZodString;
|
|
4
|
+
listId: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
top: "top";
|
|
9
|
+
bottom: "bottom";
|
|
10
|
+
}>>;
|
|
11
|
+
labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
+
id: z.ZodString;
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
desc: z.ZodOptional<z.ZodString>;
|
|
16
|
+
idBoard: z.ZodOptional<z.ZodString>;
|
|
17
|
+
idList: z.ZodOptional<z.ZodString>;
|
|
18
|
+
due: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
dueComplete: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
dateLastActivity: z.ZodOptional<z.ZodString>;
|
|
21
|
+
url: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, z.core.$loose>, Record<string, never>, {
|
|
23
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
24
|
+
query?: {
|
|
25
|
+
[x: string]: string | number | boolean | undefined;
|
|
26
|
+
};
|
|
27
|
+
}) => Promise<T>;
|
|
28
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
29
|
+
listAll<T extends {
|
|
30
|
+
id: string;
|
|
31
|
+
}>(path: string): Promise<T[]>;
|
|
32
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
33
|
+
listBoards: () => Promise<{
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
}[]>;
|
|
37
|
+
listLists: (boardId: string) => Promise<{
|
|
38
|
+
id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
}[]>;
|
|
41
|
+
listLabels: (boardId: string) => Promise<{
|
|
42
|
+
color: string;
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
}[]>;
|
|
46
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
47
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
48
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
49
|
+
}, {
|
|
50
|
+
[x: string]: unknown;
|
|
51
|
+
id: string;
|
|
52
|
+
name: string;
|
|
53
|
+
desc?: string | undefined;
|
|
54
|
+
idBoard?: string | undefined;
|
|
55
|
+
idList?: string | undefined;
|
|
56
|
+
due?: string | null | undefined;
|
|
57
|
+
dueComplete?: boolean | undefined;
|
|
58
|
+
dateLastActivity?: string | undefined;
|
|
59
|
+
url?: string | undefined;
|
|
60
|
+
}> & {
|
|
61
|
+
slug: "createCard";
|
|
45
62
|
};
|
|
46
|
-
export declare const getCard: {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
export declare const getCard: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
64
|
+
cardId: z.ZodString;
|
|
65
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
66
|
+
id: z.ZodString;
|
|
67
|
+
name: z.ZodString;
|
|
68
|
+
desc: z.ZodOptional<z.ZodString>;
|
|
69
|
+
idBoard: z.ZodOptional<z.ZodString>;
|
|
70
|
+
idList: z.ZodOptional<z.ZodString>;
|
|
71
|
+
due: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
dueComplete: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
+
dateLastActivity: z.ZodOptional<z.ZodString>;
|
|
74
|
+
url: z.ZodOptional<z.ZodString>;
|
|
75
|
+
}, z.core.$loose>, Record<string, never>, {
|
|
76
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
77
|
+
query?: {
|
|
78
|
+
[x: string]: string | number | boolean | undefined;
|
|
79
|
+
};
|
|
80
|
+
}) => Promise<T>;
|
|
81
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
82
|
+
listAll<T extends {
|
|
83
|
+
id: string;
|
|
84
|
+
}>(path: string): Promise<T[]>;
|
|
85
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
86
|
+
listBoards: () => Promise<{
|
|
87
|
+
id: string;
|
|
88
|
+
name: string;
|
|
89
|
+
}[]>;
|
|
90
|
+
listLists: (boardId: string) => Promise<{
|
|
91
|
+
id: string;
|
|
92
|
+
name: string;
|
|
93
|
+
}[]>;
|
|
94
|
+
listLabels: (boardId: string) => Promise<{
|
|
95
|
+
color: string;
|
|
96
|
+
id: string;
|
|
97
|
+
name: string;
|
|
98
|
+
}[]>;
|
|
99
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
100
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
101
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
102
|
+
}, {
|
|
103
|
+
[x: string]: unknown;
|
|
104
|
+
id: string;
|
|
105
|
+
name: string;
|
|
106
|
+
desc?: string | undefined;
|
|
107
|
+
idBoard?: string | undefined;
|
|
108
|
+
idList?: string | undefined;
|
|
109
|
+
due?: string | null | undefined;
|
|
110
|
+
dueComplete?: boolean | undefined;
|
|
111
|
+
dateLastActivity?: string | undefined;
|
|
112
|
+
url?: string | undefined;
|
|
113
|
+
}> & {
|
|
114
|
+
slug: "getCard";
|
|
67
115
|
};
|
|
68
|
-
export declare const updateCard: {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
116
|
+
export declare const updateCard: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
117
|
+
cardId: z.ZodString;
|
|
118
|
+
boardId: z.ZodOptional<z.ZodString>;
|
|
119
|
+
listId: z.ZodOptional<z.ZodString>;
|
|
120
|
+
name: z.ZodOptional<z.ZodString>;
|
|
121
|
+
description: z.ZodOptional<z.ZodString>;
|
|
122
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
123
|
+
top: "top";
|
|
124
|
+
bottom: "bottom";
|
|
125
|
+
}>>;
|
|
126
|
+
labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
127
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
128
|
+
due: z.ZodOptional<z.ZodString>;
|
|
129
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
130
|
+
id: z.ZodString;
|
|
131
|
+
name: z.ZodString;
|
|
132
|
+
desc: z.ZodOptional<z.ZodString>;
|
|
133
|
+
idBoard: z.ZodOptional<z.ZodString>;
|
|
134
|
+
idList: z.ZodOptional<z.ZodString>;
|
|
135
|
+
due: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
136
|
+
dueComplete: z.ZodOptional<z.ZodBoolean>;
|
|
137
|
+
dateLastActivity: z.ZodOptional<z.ZodString>;
|
|
138
|
+
url: z.ZodOptional<z.ZodString>;
|
|
139
|
+
}, z.core.$loose>, Record<string, never>, {
|
|
140
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
141
|
+
query?: {
|
|
142
|
+
[x: string]: string | number | boolean | undefined;
|
|
143
|
+
};
|
|
144
|
+
}) => Promise<T>;
|
|
145
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
146
|
+
listAll<T extends {
|
|
147
|
+
id: string;
|
|
148
|
+
}>(path: string): Promise<T[]>;
|
|
149
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
150
|
+
listBoards: () => Promise<{
|
|
151
|
+
id: string;
|
|
152
|
+
name: string;
|
|
153
|
+
}[]>;
|
|
154
|
+
listLists: (boardId: string) => Promise<{
|
|
155
|
+
id: string;
|
|
156
|
+
name: string;
|
|
157
|
+
}[]>;
|
|
158
|
+
listLabels: (boardId: string) => Promise<{
|
|
159
|
+
color: string;
|
|
160
|
+
id: string;
|
|
161
|
+
name: string;
|
|
162
|
+
}[]>;
|
|
163
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
164
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
165
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
166
|
+
}, {
|
|
167
|
+
[x: string]: unknown;
|
|
168
|
+
id: string;
|
|
169
|
+
name: string;
|
|
170
|
+
desc?: string | undefined;
|
|
171
|
+
idBoard?: string | undefined;
|
|
172
|
+
idList?: string | undefined;
|
|
173
|
+
due?: string | null | undefined;
|
|
174
|
+
dueComplete?: boolean | undefined;
|
|
175
|
+
dateLastActivity?: string | undefined;
|
|
176
|
+
url?: string | undefined;
|
|
177
|
+
}> & {
|
|
178
|
+
slug: "updateCard";
|
|
105
179
|
};
|
|
106
|
-
export declare const deleteCard: {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
180
|
+
export declare const deleteCard: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
181
|
+
cardId: z.ZodString;
|
|
182
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$loose>, Record<string, never>, {
|
|
183
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
184
|
+
query?: {
|
|
185
|
+
[x: string]: string | number | boolean | undefined;
|
|
186
|
+
};
|
|
187
|
+
}) => Promise<T>;
|
|
188
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
189
|
+
listAll<T extends {
|
|
190
|
+
id: string;
|
|
191
|
+
}>(path: string): Promise<T[]>;
|
|
192
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
193
|
+
listBoards: () => Promise<{
|
|
194
|
+
id: string;
|
|
195
|
+
name: string;
|
|
196
|
+
}[]>;
|
|
197
|
+
listLists: (boardId: string) => Promise<{
|
|
198
|
+
id: string;
|
|
199
|
+
name: string;
|
|
200
|
+
}[]>;
|
|
201
|
+
listLabels: (boardId: string) => Promise<{
|
|
202
|
+
color: string;
|
|
203
|
+
id: string;
|
|
204
|
+
name: string;
|
|
205
|
+
}[]>;
|
|
206
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
207
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
208
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
209
|
+
}, {
|
|
210
|
+
[x: string]: unknown;
|
|
211
|
+
}> & {
|
|
212
|
+
slug: "deleteCard";
|
|
117
213
|
};
|
|
118
|
-
export declare const listCardAttachments: {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
214
|
+
export declare const listCardAttachments: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
215
|
+
cardId: z.ZodString;
|
|
216
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
217
|
+
id: z.ZodString;
|
|
218
|
+
name: z.ZodString;
|
|
219
|
+
url: z.ZodString;
|
|
220
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
221
|
+
}, z.core.$loose>>, Record<string, never>, {
|
|
222
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
223
|
+
query?: {
|
|
224
|
+
[x: string]: string | number | boolean | undefined;
|
|
225
|
+
};
|
|
226
|
+
}) => Promise<T>;
|
|
227
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
228
|
+
listAll<T extends {
|
|
229
|
+
id: string;
|
|
230
|
+
}>(path: string): Promise<T[]>;
|
|
231
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
232
|
+
listBoards: () => Promise<{
|
|
233
|
+
id: string;
|
|
234
|
+
name: string;
|
|
235
|
+
}[]>;
|
|
236
|
+
listLists: (boardId: string) => Promise<{
|
|
237
|
+
id: string;
|
|
238
|
+
name: string;
|
|
239
|
+
}[]>;
|
|
240
|
+
listLabels: (boardId: string) => Promise<{
|
|
241
|
+
color: string;
|
|
242
|
+
id: string;
|
|
243
|
+
name: string;
|
|
244
|
+
}[]>;
|
|
245
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
246
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
247
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
248
|
+
}, {
|
|
249
|
+
[x: string]: unknown;
|
|
250
|
+
id: string;
|
|
251
|
+
name: string;
|
|
252
|
+
url: string;
|
|
253
|
+
mimeType?: string | undefined;
|
|
254
|
+
}[]> & {
|
|
255
|
+
slug: "listCardAttachments";
|
|
134
256
|
};
|
|
135
|
-
export declare const addCardAttachment: {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
cardId: z.ZodString;
|
|
140
|
-
attachment: z.ZodObject<{
|
|
141
|
-
fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
142
|
-
name: z.ZodOptional<z.ZodString>;
|
|
143
|
-
}, z.core.$strip>;
|
|
257
|
+
export declare const addCardAttachment: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
258
|
+
cardId: z.ZodString;
|
|
259
|
+
attachment: z.ZodObject<{
|
|
260
|
+
fileId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
144
261
|
name: z.ZodOptional<z.ZodString>;
|
|
145
|
-
mimeType: z.ZodOptional<z.ZodString>;
|
|
146
|
-
setCover: z.ZodOptional<z.ZodBoolean>;
|
|
147
262
|
}, z.core.$strip>;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
263
|
+
name: z.ZodOptional<z.ZodString>;
|
|
264
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
265
|
+
setCover: z.ZodOptional<z.ZodBoolean>;
|
|
266
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
267
|
+
id: z.ZodString;
|
|
268
|
+
name: z.ZodString;
|
|
269
|
+
url: z.ZodString;
|
|
270
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
271
|
+
}, z.core.$loose>, Record<string, never>, {
|
|
272
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
273
|
+
query?: {
|
|
274
|
+
[x: string]: string | number | boolean | undefined;
|
|
159
275
|
};
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}>): Promise<
|
|
276
|
+
}) => Promise<T>;
|
|
277
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
278
|
+
listAll<T extends {
|
|
279
|
+
id: string;
|
|
280
|
+
}>(path: string): Promise<T[]>;
|
|
281
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
282
|
+
listBoards: () => Promise<{
|
|
283
|
+
id: string;
|
|
284
|
+
name: string;
|
|
285
|
+
}[]>;
|
|
286
|
+
listLists: (boardId: string) => Promise<{
|
|
287
|
+
id: string;
|
|
288
|
+
name: string;
|
|
289
|
+
}[]>;
|
|
290
|
+
listLabels: (boardId: string) => Promise<{
|
|
291
|
+
color: string;
|
|
292
|
+
id: string;
|
|
293
|
+
name: string;
|
|
294
|
+
}[]>;
|
|
295
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
296
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
297
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
298
|
+
}, {
|
|
299
|
+
[x: string]: unknown;
|
|
300
|
+
id: string;
|
|
301
|
+
name: string;
|
|
302
|
+
url: string;
|
|
303
|
+
mimeType?: string | undefined;
|
|
304
|
+
}> & {
|
|
305
|
+
slug: "addCardAttachment";
|
|
165
306
|
};
|
|
166
|
-
export declare const getCardAttachment: {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
}>): Promise<
|
|
307
|
+
export declare const getCardAttachment: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
308
|
+
cardId: z.ZodString;
|
|
309
|
+
attachmentId: z.ZodString;
|
|
310
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
311
|
+
id: z.ZodString;
|
|
312
|
+
name: z.ZodString;
|
|
313
|
+
url: z.ZodString;
|
|
314
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
315
|
+
}, z.core.$loose>, Record<string, never>, {
|
|
316
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
317
|
+
query?: {
|
|
318
|
+
[x: string]: string | number | boolean | undefined;
|
|
319
|
+
};
|
|
320
|
+
}) => Promise<T>;
|
|
321
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
322
|
+
listAll<T extends {
|
|
323
|
+
id: string;
|
|
324
|
+
}>(path: string): Promise<T[]>;
|
|
325
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
326
|
+
listBoards: () => Promise<{
|
|
327
|
+
id: string;
|
|
328
|
+
name: string;
|
|
329
|
+
}[]>;
|
|
330
|
+
listLists: (boardId: string) => Promise<{
|
|
331
|
+
id: string;
|
|
332
|
+
name: string;
|
|
333
|
+
}[]>;
|
|
334
|
+
listLabels: (boardId: string) => Promise<{
|
|
335
|
+
color: string;
|
|
336
|
+
id: string;
|
|
337
|
+
name: string;
|
|
338
|
+
}[]>;
|
|
339
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
340
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
341
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
342
|
+
}, {
|
|
343
|
+
[x: string]: unknown;
|
|
344
|
+
id: string;
|
|
345
|
+
name: string;
|
|
346
|
+
url: string;
|
|
347
|
+
mimeType?: string | undefined;
|
|
348
|
+
}> & {
|
|
349
|
+
slug: "getCardAttachment";
|
|
184
350
|
};
|
|
185
|
-
export declare const deleteCardAttachment: {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
}>): Promise<
|
|
351
|
+
export declare const deleteCardAttachment: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
352
|
+
cardId: z.ZodString;
|
|
353
|
+
attachmentId: z.ZodString;
|
|
354
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$loose>, Record<string, never>, {
|
|
355
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
356
|
+
query?: {
|
|
357
|
+
[x: string]: string | number | boolean | undefined;
|
|
358
|
+
};
|
|
359
|
+
}) => Promise<T>;
|
|
360
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
361
|
+
listAll<T extends {
|
|
362
|
+
id: string;
|
|
363
|
+
}>(path: string): Promise<T[]>;
|
|
364
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
365
|
+
listBoards: () => Promise<{
|
|
366
|
+
id: string;
|
|
367
|
+
name: string;
|
|
368
|
+
}[]>;
|
|
369
|
+
listLists: (boardId: string) => Promise<{
|
|
370
|
+
id: string;
|
|
371
|
+
name: string;
|
|
372
|
+
}[]>;
|
|
373
|
+
listLabels: (boardId: string) => Promise<{
|
|
374
|
+
color: string;
|
|
375
|
+
id: string;
|
|
376
|
+
name: string;
|
|
377
|
+
}[]>;
|
|
378
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
379
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
380
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
381
|
+
}, {
|
|
382
|
+
[x: string]: unknown;
|
|
383
|
+
}> & {
|
|
384
|
+
slug: "deleteCardAttachment";
|
|
198
385
|
};
|
|
199
|
-
declare const
|
|
386
|
+
export declare const customApiCall: import("frogbot").PieceActionDefinition<z.ZodObject<{
|
|
200
387
|
method: z.ZodEnum<{
|
|
201
388
|
POST: "POST";
|
|
202
389
|
DELETE: "DELETE";
|
|
203
|
-
GET: "GET";
|
|
204
390
|
PUT: "PUT";
|
|
391
|
+
GET: "GET";
|
|
205
392
|
PATCH: "PATCH";
|
|
206
393
|
}>;
|
|
207
394
|
path: z.ZodString;
|
|
208
395
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
209
396
|
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
210
397
|
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
211
|
-
}, z.core.$strip
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
398
|
+
}, z.core.$strip>, z.ZodJSONSchema, Record<string, never>, {
|
|
399
|
+
request: <T>(path: string, init?: RequestInit & {
|
|
400
|
+
query?: {
|
|
401
|
+
[x: string]: string | number | boolean | undefined;
|
|
402
|
+
};
|
|
403
|
+
}) => Promise<T>;
|
|
404
|
+
verifyWebhook(body: Buffer, signature: string | null, webhookUrl: string): boolean;
|
|
405
|
+
listAll<T extends {
|
|
406
|
+
id: string;
|
|
407
|
+
}>(path: string): Promise<T[]>;
|
|
408
|
+
getCard: <T = Record<string, unknown>>(cardId: string) => Promise<T>;
|
|
409
|
+
listBoards: () => Promise<{
|
|
410
|
+
id: string;
|
|
411
|
+
name: string;
|
|
412
|
+
}[]>;
|
|
413
|
+
listLists: (boardId: string) => Promise<{
|
|
414
|
+
id: string;
|
|
415
|
+
name: string;
|
|
416
|
+
}[]>;
|
|
417
|
+
listLabels: (boardId: string) => Promise<{
|
|
418
|
+
color: string;
|
|
419
|
+
id: string;
|
|
420
|
+
name: string;
|
|
421
|
+
}[]>;
|
|
422
|
+
listWebhooks: () => Promise<import("./client.js").TrelloWebhook[]>;
|
|
423
|
+
createWebhook: (idModel: string, callbackURL: string) => Promise<import("./client.js").TrelloWebhook>;
|
|
424
|
+
deleteWebhook: (id: string) => Promise<unknown>;
|
|
425
|
+
}, z.core.util.JSONType> & {
|
|
426
|
+
slug: "customApiCall";
|
|
231
427
|
};
|
|
232
|
-
export {};
|
|
233
428
|
//# sourceMappingURL=actions.d.ts.map
|
package/dist/actions.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;aAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BjC,CAAC;AAEH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;aA7Bc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCjC,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;aAxCW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwEjC,CAAC;AAEH,eAAO,MAAM,UAAU;;;;aA1EW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmFjC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;aArFE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8FjC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;aAhGI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8HjC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;aAhII,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyIjC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;aA3IC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsJjC,CAAC;AAUH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;aAhKQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiLjC,CAAC"}
|