@composable-os/pack-forms 0.0.0-stage → 0.1.0-beta.12
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/LICENSE +109 -0
- package/dist/automations.d.ts +22 -0
- package/dist/automations.js +100 -0
- package/dist/blocks/forms-form/form.d.ts +46 -0
- package/dist/blocks/forms-form/form.js +196 -0
- package/dist/blocks/forms-native-form/form-screen.d.ts +35 -0
- package/dist/blocks/forms-native-form/form-screen.js +161 -0
- package/dist/client/index.d.ts +302 -0
- package/dist/client/index.js +431 -0
- package/dist/client/page.d.ts +67 -0
- package/dist/client/page.js +634 -0
- package/dist/index.d.ts +605 -0
- package/dist/index.js +406 -0
- package/dist/routine-mail.d.ts +23 -0
- package/dist/routine-mail.js +25 -0
- package/dist/tools.d.ts +92 -0
- package/dist/tools.js +288 -0
- package/package.json +40 -4
- package/README.md +0 -3
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,605 @@
|
|
|
1
|
+
declare const _default: import("@composable-os/sdk").Extension<{
|
|
2
|
+
readonly id: "forms";
|
|
3
|
+
readonly version: "0.1.0";
|
|
4
|
+
readonly contractVersion: 1;
|
|
5
|
+
readonly label: "Forms";
|
|
6
|
+
readonly description: string;
|
|
7
|
+
readonly permissions: {
|
|
8
|
+
readonly operations: ["intake.open", "intake.submit", "notification.send"];
|
|
9
|
+
readonly modules: ["ops", "routine-mail", "email-send"];
|
|
10
|
+
};
|
|
11
|
+
readonly objects: {
|
|
12
|
+
readonly form: {
|
|
13
|
+
readonly label: "Form";
|
|
14
|
+
readonly plural: "Forms";
|
|
15
|
+
readonly icon: "clipboard-list";
|
|
16
|
+
readonly titleField: "title";
|
|
17
|
+
readonly description: string;
|
|
18
|
+
readonly navigation: "main";
|
|
19
|
+
readonly navigationOrder: 40;
|
|
20
|
+
readonly fields: {
|
|
21
|
+
readonly title: {
|
|
22
|
+
readonly type: "text";
|
|
23
|
+
readonly label: "Title";
|
|
24
|
+
readonly required: true;
|
|
25
|
+
};
|
|
26
|
+
readonly slug: {
|
|
27
|
+
readonly type: "slug";
|
|
28
|
+
readonly label: "Address";
|
|
29
|
+
readonly description: string;
|
|
30
|
+
readonly personApproves: true;
|
|
31
|
+
};
|
|
32
|
+
readonly kind: {
|
|
33
|
+
readonly type: "select";
|
|
34
|
+
readonly label: "Kind";
|
|
35
|
+
readonly default: "enquiry";
|
|
36
|
+
readonly options: readonly [{
|
|
37
|
+
readonly value: "enquiry";
|
|
38
|
+
readonly label: "Enquiry";
|
|
39
|
+
}, {
|
|
40
|
+
readonly value: "signup";
|
|
41
|
+
readonly label: "Sign-up";
|
|
42
|
+
}, {
|
|
43
|
+
readonly value: "survey";
|
|
44
|
+
readonly label: "Survey";
|
|
45
|
+
}, {
|
|
46
|
+
readonly value: "feedback";
|
|
47
|
+
readonly label: "Feedback";
|
|
48
|
+
}, {
|
|
49
|
+
readonly value: "staff";
|
|
50
|
+
readonly label: "Staff form";
|
|
51
|
+
}];
|
|
52
|
+
readonly description: string;
|
|
53
|
+
};
|
|
54
|
+
readonly questions: {
|
|
55
|
+
readonly type: "document";
|
|
56
|
+
readonly label: "Questions";
|
|
57
|
+
readonly schema: import("@composable-os/sdk").DocumentSchema;
|
|
58
|
+
readonly maxBytes: 262144;
|
|
59
|
+
readonly description: string;
|
|
60
|
+
};
|
|
61
|
+
readonly thanks: {
|
|
62
|
+
readonly type: "longText";
|
|
63
|
+
readonly label: "Thank-you words";
|
|
64
|
+
readonly description: "Shown once the answers are sent.";
|
|
65
|
+
};
|
|
66
|
+
readonly answeredBy: {
|
|
67
|
+
readonly type: "select";
|
|
68
|
+
readonly label: "Who may answer";
|
|
69
|
+
readonly default: "public";
|
|
70
|
+
readonly options: readonly [{
|
|
71
|
+
readonly value: "public";
|
|
72
|
+
readonly label: "Anyone";
|
|
73
|
+
}, {
|
|
74
|
+
readonly value: "customers";
|
|
75
|
+
readonly label: "Signed-in customers";
|
|
76
|
+
}, {
|
|
77
|
+
readonly value: "links";
|
|
78
|
+
readonly label: "By personal link";
|
|
79
|
+
}, {
|
|
80
|
+
readonly value: "staff";
|
|
81
|
+
readonly label: "Staff only";
|
|
82
|
+
}];
|
|
83
|
+
readonly description: "Read from the version published: a change counts once it is published.";
|
|
84
|
+
};
|
|
85
|
+
readonly anonymous: {
|
|
86
|
+
readonly type: "boolean";
|
|
87
|
+
readonly label: "Anonymous";
|
|
88
|
+
readonly description: string;
|
|
89
|
+
};
|
|
90
|
+
readonly destination: {
|
|
91
|
+
readonly type: "text";
|
|
92
|
+
readonly label: "Also make";
|
|
93
|
+
readonly description: string;
|
|
94
|
+
};
|
|
95
|
+
readonly notify: {
|
|
96
|
+
readonly type: "user";
|
|
97
|
+
readonly label: "Who is told";
|
|
98
|
+
readonly description: "Told of each answer. Left empty, the admins.";
|
|
99
|
+
};
|
|
100
|
+
readonly receipt: {
|
|
101
|
+
readonly type: "boolean";
|
|
102
|
+
readonly label: "Send a receipt";
|
|
103
|
+
readonly default: true;
|
|
104
|
+
readonly description: string;
|
|
105
|
+
};
|
|
106
|
+
readonly lowRating: {
|
|
107
|
+
readonly type: "number";
|
|
108
|
+
readonly label: "Tell at a rating of";
|
|
109
|
+
readonly min: 0;
|
|
110
|
+
readonly max: 10;
|
|
111
|
+
readonly step: 1;
|
|
112
|
+
readonly description: string;
|
|
113
|
+
};
|
|
114
|
+
readonly opensAt: {
|
|
115
|
+
readonly type: "datetime";
|
|
116
|
+
readonly label: "Open from";
|
|
117
|
+
readonly personApproves: true;
|
|
118
|
+
};
|
|
119
|
+
readonly closesAt: {
|
|
120
|
+
readonly type: "datetime";
|
|
121
|
+
readonly label: "Open until";
|
|
122
|
+
readonly personApproves: true;
|
|
123
|
+
};
|
|
124
|
+
readonly dailyCap: {
|
|
125
|
+
readonly type: "number";
|
|
126
|
+
readonly label: "Answers a day, at most";
|
|
127
|
+
readonly min: 1;
|
|
128
|
+
readonly step: 1;
|
|
129
|
+
readonly description: "Left empty, no limit of its own.";
|
|
130
|
+
readonly personApproves: true;
|
|
131
|
+
};
|
|
132
|
+
readonly status: {
|
|
133
|
+
readonly type: "select";
|
|
134
|
+
readonly label: "Status";
|
|
135
|
+
readonly track: "timeline";
|
|
136
|
+
readonly personApproves: true;
|
|
137
|
+
readonly options: readonly [{
|
|
138
|
+
readonly value: "draft";
|
|
139
|
+
readonly label: "Draft";
|
|
140
|
+
}, {
|
|
141
|
+
readonly value: "open";
|
|
142
|
+
readonly label: "Open";
|
|
143
|
+
}, {
|
|
144
|
+
readonly value: "closed";
|
|
145
|
+
readonly label: "Closed";
|
|
146
|
+
}];
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
readonly states: {
|
|
150
|
+
readonly field: "status";
|
|
151
|
+
readonly initial: "draft";
|
|
152
|
+
readonly moves: readonly [{
|
|
153
|
+
readonly from: "draft";
|
|
154
|
+
readonly to: "open";
|
|
155
|
+
readonly by: readonly ["staff"];
|
|
156
|
+
}, {
|
|
157
|
+
readonly from: "open";
|
|
158
|
+
readonly to: "closed";
|
|
159
|
+
readonly by: readonly ["staff"];
|
|
160
|
+
}, {
|
|
161
|
+
readonly from: "closed";
|
|
162
|
+
readonly to: "open";
|
|
163
|
+
readonly by: readonly ["staff"];
|
|
164
|
+
}];
|
|
165
|
+
};
|
|
166
|
+
readonly publishable: {
|
|
167
|
+
readonly content: readonly ["title", "questions", "thanks", "answeredBy", "anonymous", "destination"];
|
|
168
|
+
readonly slug: "slug";
|
|
169
|
+
};
|
|
170
|
+
readonly intake: {
|
|
171
|
+
readonly role: "form";
|
|
172
|
+
readonly questions: "questions";
|
|
173
|
+
readonly answeredBy: "answeredBy";
|
|
174
|
+
readonly openIn: readonly ["open"];
|
|
175
|
+
readonly anonymous: "anonymous";
|
|
176
|
+
readonly destination: "destination";
|
|
177
|
+
readonly opensAt: "opensAt";
|
|
178
|
+
readonly closesAt: "closesAt";
|
|
179
|
+
readonly dailyCap: "dailyCap";
|
|
180
|
+
readonly notify: "notify";
|
|
181
|
+
readonly hourlyCap: "hourlyCap";
|
|
182
|
+
};
|
|
183
|
+
readonly indexes: readonly [readonly ["status"], readonly ["kind"]];
|
|
184
|
+
};
|
|
185
|
+
readonly submission: {
|
|
186
|
+
readonly label: "Submission";
|
|
187
|
+
readonly plural: "Submissions";
|
|
188
|
+
readonly icon: "inbox";
|
|
189
|
+
readonly titleField: "title";
|
|
190
|
+
readonly titleDefault: {
|
|
191
|
+
readonly from: readonly ["form"];
|
|
192
|
+
};
|
|
193
|
+
readonly description: string;
|
|
194
|
+
readonly navigation: "main";
|
|
195
|
+
readonly navigationOrder: 41;
|
|
196
|
+
readonly owner: "owner";
|
|
197
|
+
readonly fields: {
|
|
198
|
+
readonly title: {
|
|
199
|
+
readonly type: "text";
|
|
200
|
+
readonly label: "Title";
|
|
201
|
+
readonly description: "Left empty, the form's title.";
|
|
202
|
+
};
|
|
203
|
+
readonly form: {
|
|
204
|
+
readonly type: "relation";
|
|
205
|
+
readonly label: "Form";
|
|
206
|
+
readonly to: "forms.form";
|
|
207
|
+
readonly required: true;
|
|
208
|
+
};
|
|
209
|
+
readonly version: {
|
|
210
|
+
readonly type: "number";
|
|
211
|
+
readonly label: "Version";
|
|
212
|
+
readonly description: "The version of the form answered: its questions and words.";
|
|
213
|
+
};
|
|
214
|
+
readonly person: {
|
|
215
|
+
readonly type: "relation";
|
|
216
|
+
readonly label: "Person";
|
|
217
|
+
readonly to: "person";
|
|
218
|
+
readonly description: "Who sent it. None on an anonymous form.";
|
|
219
|
+
};
|
|
220
|
+
readonly certainty: {
|
|
221
|
+
readonly type: "select";
|
|
222
|
+
readonly label: "How sure";
|
|
223
|
+
readonly options: readonly [{
|
|
224
|
+
readonly value: "account";
|
|
225
|
+
readonly label: "Signed in";
|
|
226
|
+
}, {
|
|
227
|
+
readonly value: "link";
|
|
228
|
+
readonly label: "Personal link";
|
|
229
|
+
}, {
|
|
230
|
+
readonly value: "staff";
|
|
231
|
+
readonly label: "Entered by staff";
|
|
232
|
+
}, {
|
|
233
|
+
readonly value: "address";
|
|
234
|
+
readonly label: "Unconfirmed address";
|
|
235
|
+
readonly color: "amber";
|
|
236
|
+
}];
|
|
237
|
+
readonly description: string;
|
|
238
|
+
};
|
|
239
|
+
readonly answers: {
|
|
240
|
+
readonly type: "document";
|
|
241
|
+
readonly label: "Answers";
|
|
242
|
+
readonly schema: import("@composable-os/sdk").DocumentSchema;
|
|
243
|
+
readonly maxBytes: 20480;
|
|
244
|
+
};
|
|
245
|
+
readonly rating: {
|
|
246
|
+
readonly type: "number";
|
|
247
|
+
readonly label: "Rating";
|
|
248
|
+
readonly description: "The first rating answered, for lists and dashboards.";
|
|
249
|
+
};
|
|
250
|
+
readonly marketing: {
|
|
251
|
+
readonly type: "boolean";
|
|
252
|
+
readonly label: "Asked to hear from us";
|
|
253
|
+
readonly description: "They ticked a “keep me updated” line. The words they saw are the version's.";
|
|
254
|
+
};
|
|
255
|
+
readonly via: {
|
|
256
|
+
readonly type: "select";
|
|
257
|
+
readonly label: "Came in";
|
|
258
|
+
readonly options: readonly [{
|
|
259
|
+
readonly value: "site";
|
|
260
|
+
readonly label: "Website";
|
|
261
|
+
}, {
|
|
262
|
+
readonly value: "app";
|
|
263
|
+
readonly label: "App";
|
|
264
|
+
}, {
|
|
265
|
+
readonly value: "page";
|
|
266
|
+
readonly label: "Form page";
|
|
267
|
+
}, {
|
|
268
|
+
readonly value: "link";
|
|
269
|
+
readonly label: "Personal link";
|
|
270
|
+
}, {
|
|
271
|
+
readonly value: "staff";
|
|
272
|
+
readonly label: "Staff";
|
|
273
|
+
}];
|
|
274
|
+
};
|
|
275
|
+
readonly about: {
|
|
276
|
+
readonly type: "text";
|
|
277
|
+
readonly label: "About";
|
|
278
|
+
readonly description: "The record the personal link was about (a booking's id), set by the host.";
|
|
279
|
+
};
|
|
280
|
+
readonly aboutObject: {
|
|
281
|
+
readonly type: "text";
|
|
282
|
+
readonly label: "About (kind)";
|
|
283
|
+
readonly description: "What kind of record that is (bookings.booking), set by the host.";
|
|
284
|
+
};
|
|
285
|
+
readonly owner: {
|
|
286
|
+
readonly type: "user";
|
|
287
|
+
readonly label: "Owner";
|
|
288
|
+
};
|
|
289
|
+
readonly notes: {
|
|
290
|
+
readonly type: "longText";
|
|
291
|
+
readonly label: "Notes";
|
|
292
|
+
};
|
|
293
|
+
readonly status: {
|
|
294
|
+
readonly type: "select";
|
|
295
|
+
readonly label: "Status";
|
|
296
|
+
readonly track: "timeline";
|
|
297
|
+
readonly options: readonly [{
|
|
298
|
+
readonly value: "new";
|
|
299
|
+
readonly label: "New";
|
|
300
|
+
}, {
|
|
301
|
+
readonly value: "inHand";
|
|
302
|
+
readonly label: "In hand";
|
|
303
|
+
}, {
|
|
304
|
+
readonly value: "done";
|
|
305
|
+
readonly label: "Done";
|
|
306
|
+
}, {
|
|
307
|
+
readonly value: "spam";
|
|
308
|
+
readonly label: "Spam";
|
|
309
|
+
readonly color: "gray";
|
|
310
|
+
}];
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
readonly states: {
|
|
314
|
+
readonly field: "status";
|
|
315
|
+
readonly initial: "new";
|
|
316
|
+
readonly moves: readonly [{
|
|
317
|
+
readonly from: "new";
|
|
318
|
+
readonly to: "inHand";
|
|
319
|
+
readonly by: readonly ["staff"];
|
|
320
|
+
}, {
|
|
321
|
+
readonly from: readonly ["new", "inHand"];
|
|
322
|
+
readonly to: "done";
|
|
323
|
+
readonly by: readonly ["staff"];
|
|
324
|
+
}, {
|
|
325
|
+
readonly from: "done";
|
|
326
|
+
readonly to: "inHand";
|
|
327
|
+
readonly by: readonly ["staff"];
|
|
328
|
+
}, {
|
|
329
|
+
readonly from: readonly ["new", "inHand", "done"];
|
|
330
|
+
readonly to: "spam";
|
|
331
|
+
readonly by: readonly ["host"];
|
|
332
|
+
readonly tools: readonly ["markSpam"];
|
|
333
|
+
}, {
|
|
334
|
+
readonly from: "spam";
|
|
335
|
+
readonly to: "new";
|
|
336
|
+
readonly by: readonly ["host"];
|
|
337
|
+
readonly tools: readonly ["notSpam"];
|
|
338
|
+
}];
|
|
339
|
+
};
|
|
340
|
+
readonly intake: {
|
|
341
|
+
readonly role: "submission";
|
|
342
|
+
readonly form: "form";
|
|
343
|
+
readonly version: "version";
|
|
344
|
+
readonly answers: "answers";
|
|
345
|
+
readonly person: "person";
|
|
346
|
+
readonly certainty: "certainty";
|
|
347
|
+
readonly spam: "spam";
|
|
348
|
+
readonly via: "via";
|
|
349
|
+
readonly rating: "rating";
|
|
350
|
+
readonly marketing: "marketing";
|
|
351
|
+
readonly about: "about";
|
|
352
|
+
readonly aboutObject: "aboutObject";
|
|
353
|
+
};
|
|
354
|
+
readonly indexes: readonly [readonly ["form", "createdAt"], readonly ["createdAt"], readonly ["status", "createdAt"], readonly ["person"], readonly ["about"]];
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
readonly views: {
|
|
358
|
+
readonly newAnswers: {
|
|
359
|
+
readonly label: "New answers";
|
|
360
|
+
readonly object: "forms.submission";
|
|
361
|
+
readonly filter: {
|
|
362
|
+
readonly field: "status";
|
|
363
|
+
readonly op: "eq";
|
|
364
|
+
readonly value: "new";
|
|
365
|
+
};
|
|
366
|
+
readonly sort: {
|
|
367
|
+
readonly field: "createdAt";
|
|
368
|
+
readonly direction: "desc";
|
|
369
|
+
};
|
|
370
|
+
readonly columns: string[];
|
|
371
|
+
};
|
|
372
|
+
readonly inHand: {
|
|
373
|
+
readonly label: "In hand";
|
|
374
|
+
readonly object: "forms.submission";
|
|
375
|
+
readonly filter: {
|
|
376
|
+
readonly field: "status";
|
|
377
|
+
readonly op: "eq";
|
|
378
|
+
readonly value: "inHand";
|
|
379
|
+
};
|
|
380
|
+
readonly sort: {
|
|
381
|
+
readonly field: "createdAt";
|
|
382
|
+
readonly direction: "desc";
|
|
383
|
+
};
|
|
384
|
+
readonly columns: string[];
|
|
385
|
+
};
|
|
386
|
+
readonly spam: {
|
|
387
|
+
readonly label: "Spam";
|
|
388
|
+
readonly object: "forms.submission";
|
|
389
|
+
readonly filter: {
|
|
390
|
+
readonly field: "status";
|
|
391
|
+
readonly op: "eq";
|
|
392
|
+
readonly value: "spam";
|
|
393
|
+
};
|
|
394
|
+
readonly sort: {
|
|
395
|
+
readonly field: "createdAt";
|
|
396
|
+
readonly direction: "desc";
|
|
397
|
+
};
|
|
398
|
+
readonly columns: ["title", "person", "via", "createdAt"];
|
|
399
|
+
};
|
|
400
|
+
readonly askedToHear: {
|
|
401
|
+
readonly label: "Asked to hear from us";
|
|
402
|
+
readonly object: "forms.submission";
|
|
403
|
+
readonly filter: {
|
|
404
|
+
readonly and: [{
|
|
405
|
+
readonly field: "marketing";
|
|
406
|
+
readonly op: "eq";
|
|
407
|
+
readonly value: true;
|
|
408
|
+
}, {
|
|
409
|
+
readonly field: "status";
|
|
410
|
+
readonly op: "neq";
|
|
411
|
+
readonly value: "spam";
|
|
412
|
+
}];
|
|
413
|
+
};
|
|
414
|
+
readonly sort: {
|
|
415
|
+
readonly field: "createdAt";
|
|
416
|
+
readonly direction: "desc";
|
|
417
|
+
};
|
|
418
|
+
readonly columns: ["person", "form", "version", "createdAt"];
|
|
419
|
+
};
|
|
420
|
+
readonly openForms: {
|
|
421
|
+
readonly label: "Open forms";
|
|
422
|
+
readonly object: "forms.form";
|
|
423
|
+
readonly filter: {
|
|
424
|
+
readonly field: "status";
|
|
425
|
+
readonly op: "eq";
|
|
426
|
+
readonly value: "open";
|
|
427
|
+
};
|
|
428
|
+
readonly sort: {
|
|
429
|
+
readonly field: "title";
|
|
430
|
+
readonly direction: "asc";
|
|
431
|
+
};
|
|
432
|
+
readonly columns: ["title", "kind", "answeredBy", "publishState", "closesAt"];
|
|
433
|
+
};
|
|
434
|
+
};
|
|
435
|
+
readonly recordTabs: {
|
|
436
|
+
readonly personAnswers: {
|
|
437
|
+
readonly label: "Form answers";
|
|
438
|
+
readonly on: "person";
|
|
439
|
+
readonly view: {
|
|
440
|
+
readonly type: "table";
|
|
441
|
+
readonly object: "forms.submission";
|
|
442
|
+
readonly relation: "person";
|
|
443
|
+
readonly columns: ["title", "status", "certainty", "rating", "createdAt"];
|
|
444
|
+
readonly sort: {
|
|
445
|
+
readonly field: "createdAt";
|
|
446
|
+
readonly direction: "desc";
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
readonly order: 60;
|
|
450
|
+
};
|
|
451
|
+
readonly formAnswers: {
|
|
452
|
+
readonly label: "Answers";
|
|
453
|
+
readonly on: "forms.form";
|
|
454
|
+
readonly view: {
|
|
455
|
+
readonly type: "table";
|
|
456
|
+
readonly object: "forms.submission";
|
|
457
|
+
readonly relation: "form";
|
|
458
|
+
readonly columns: string[];
|
|
459
|
+
readonly sort: {
|
|
460
|
+
readonly field: "createdAt";
|
|
461
|
+
readonly direction: "desc";
|
|
462
|
+
};
|
|
463
|
+
};
|
|
464
|
+
readonly order: 10;
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
readonly settings: {
|
|
468
|
+
readonly hourlyCap: {
|
|
469
|
+
readonly type: "number";
|
|
470
|
+
readonly label: "Answers an hour, at most";
|
|
471
|
+
readonly description: string;
|
|
472
|
+
readonly default: 200;
|
|
473
|
+
readonly min: 1;
|
|
474
|
+
readonly max: 10000;
|
|
475
|
+
readonly personApproves: true;
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
readonly automations: {
|
|
479
|
+
lowRating: import("@composable-os/sdk").AutomationSpec<{
|
|
480
|
+
readonly type: "record";
|
|
481
|
+
readonly object: "forms.submission";
|
|
482
|
+
readonly on: readonly ["created"];
|
|
483
|
+
}>;
|
|
484
|
+
receipt: import("@composable-os/sdk").AutomationSpec<{
|
|
485
|
+
readonly type: "record";
|
|
486
|
+
readonly object: "forms.submission";
|
|
487
|
+
readonly on: readonly ["created"];
|
|
488
|
+
}>;
|
|
489
|
+
};
|
|
490
|
+
readonly routineMail: {
|
|
491
|
+
receipt: {
|
|
492
|
+
label: string;
|
|
493
|
+
description: string;
|
|
494
|
+
about: string;
|
|
495
|
+
receipt: true;
|
|
496
|
+
slots: {
|
|
497
|
+
business: {
|
|
498
|
+
business: true;
|
|
499
|
+
};
|
|
500
|
+
form: {
|
|
501
|
+
field: string;
|
|
502
|
+
max: number;
|
|
503
|
+
};
|
|
504
|
+
};
|
|
505
|
+
messages: {
|
|
506
|
+
received: {
|
|
507
|
+
subject: string;
|
|
508
|
+
text: string;
|
|
509
|
+
};
|
|
510
|
+
};
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
readonly tools: {
|
|
514
|
+
readonly form: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
515
|
+
slug: import("zod").ZodOptional<import("zod").ZodString>;
|
|
516
|
+
link: import("zod").ZodOptional<import("zod").ZodString>;
|
|
517
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
518
|
+
id: import("zod").ZodString;
|
|
519
|
+
version: import("zod").ZodNumber;
|
|
520
|
+
title: import("zod").ZodNullable<import("zod").ZodString>;
|
|
521
|
+
questions: import("zod").ZodObject<{
|
|
522
|
+
items: import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
523
|
+
}, import("zod/v4/core").$strip>;
|
|
524
|
+
thanks: import("zod").ZodNullable<import("zod").ZodString>;
|
|
525
|
+
anonymous: import("zod").ZodBoolean;
|
|
526
|
+
turnstile: import("zod").ZodBoolean;
|
|
527
|
+
shown: import("zod").ZodNullable<import("zod").ZodString>;
|
|
528
|
+
}, import("zod/v4/core").$strip>>;
|
|
529
|
+
readonly submit: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
530
|
+
id: import("zod").ZodString;
|
|
531
|
+
version: import("zod").ZodNumber;
|
|
532
|
+
answers: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
533
|
+
via: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
534
|
+
site: "site";
|
|
535
|
+
app: "app";
|
|
536
|
+
page: "page";
|
|
537
|
+
}>>;
|
|
538
|
+
turnstileToken: import("zod").ZodOptional<import("zod").ZodString>;
|
|
539
|
+
shown: import("zod").ZodOptional<import("zod").ZodString>;
|
|
540
|
+
honeypot: import("zod").ZodOptional<import("zod").ZodString>;
|
|
541
|
+
link: import("zod").ZodOptional<import("zod").ZodString>;
|
|
542
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
543
|
+
received: import("zod").ZodLiteral<true>;
|
|
544
|
+
}, import("zod/v4/core").$strip>>;
|
|
545
|
+
readonly linkedForm: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
546
|
+
linkId: import("zod").ZodString;
|
|
547
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
548
|
+
id: import("zod").ZodString;
|
|
549
|
+
version: import("zod").ZodNumber;
|
|
550
|
+
title: import("zod").ZodNullable<import("zod").ZodString>;
|
|
551
|
+
questions: import("zod").ZodObject<{
|
|
552
|
+
items: import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
553
|
+
}, import("zod/v4/core").$strip>;
|
|
554
|
+
thanks: import("zod").ZodNullable<import("zod").ZodString>;
|
|
555
|
+
anonymous: import("zod").ZodBoolean;
|
|
556
|
+
turnstile: import("zod").ZodBoolean;
|
|
557
|
+
shown: import("zod").ZodNullable<import("zod").ZodString>;
|
|
558
|
+
}, import("zod/v4/core").$strip>>;
|
|
559
|
+
readonly submitLinked: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
560
|
+
linkId: import("zod").ZodString;
|
|
561
|
+
id: import("zod").ZodString;
|
|
562
|
+
version: import("zod").ZodNumber;
|
|
563
|
+
answers: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
564
|
+
honeypot: import("zod").ZodOptional<import("zod").ZodString>;
|
|
565
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
566
|
+
received: import("zod").ZodLiteral<true>;
|
|
567
|
+
}, import("zod/v4/core").$strip>>;
|
|
568
|
+
readonly enter: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
569
|
+
formId: import("zod").ZodString;
|
|
570
|
+
answers: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
571
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
572
|
+
received: import("zod").ZodLiteral<true>;
|
|
573
|
+
}, import("zod/v4/core").$strip>>;
|
|
574
|
+
readonly move: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
575
|
+
submissionId: import("zod").ZodString;
|
|
576
|
+
to: import("zod").ZodEnum<{
|
|
577
|
+
new: "new";
|
|
578
|
+
inHand: "inHand";
|
|
579
|
+
done: "done";
|
|
580
|
+
}>;
|
|
581
|
+
from: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
582
|
+
new: "new";
|
|
583
|
+
inHand: "inHand";
|
|
584
|
+
done: "done";
|
|
585
|
+
spam: "spam";
|
|
586
|
+
}>>;
|
|
587
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
588
|
+
id: import("zod").ZodString;
|
|
589
|
+
status: import("zod").ZodString;
|
|
590
|
+
}, import("zod/v4/core").$strip>>;
|
|
591
|
+
readonly markSpam: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
592
|
+
submissionId: import("zod").ZodString;
|
|
593
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
594
|
+
id: import("zod").ZodString;
|
|
595
|
+
status: import("zod").ZodString;
|
|
596
|
+
}, import("zod/v4/core").$strip>>;
|
|
597
|
+
readonly notSpam: import("@composable-os/sdk").ToolSpec<import("zod").ZodObject<{
|
|
598
|
+
submissionId: import("zod").ZodString;
|
|
599
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
600
|
+
id: import("zod").ZodString;
|
|
601
|
+
status: import("zod").ZodString;
|
|
602
|
+
}, import("zod/v4/core").$strip>>;
|
|
603
|
+
};
|
|
604
|
+
}>;
|
|
605
|
+
export default _default;
|