@acms-subir/client 0.1.22 → 0.1.24
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/index.d.ts +6 -2
- package/dist/index.js +6 -4
- package/dist/types.d.ts +231 -11
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -325,9 +325,13 @@ export interface AcmsClient {
|
|
|
325
325
|
announcements(o?: AnnouncementOptions): Promise<Announcements>;
|
|
326
326
|
/** One announcement that is up; 404 once it came down. */
|
|
327
327
|
announcement(id: string, o?: RequestOptions): Promise<AnnouncementDetail>;
|
|
328
|
-
/**
|
|
328
|
+
/**
|
|
329
|
+
* A published form's questions, in the client's `locale` where the form has
|
|
330
|
+
* its words (older sites: the main language). 410 when it stopped accepting
|
|
331
|
+
* responses. Requires `site.features.forms`. A `time` answer is HH:mm (24-hour).
|
|
332
|
+
*/
|
|
329
333
|
form(id: string, o?: RequestOptions): Promise<Form>;
|
|
330
|
-
/** Send answers (checkbox groups as arrays). Retries reuse the same Idempotency-Key, so they never duplicate. */
|
|
334
|
+
/** Send answers (checkbox groups as arrays; a choice as it was shown). Retries reuse the same Idempotency-Key, so they never duplicate. The receipt's `confirmation` is in the client's `locale`. */
|
|
331
335
|
submitForm(id: string, input: FormResponseInput & {
|
|
332
336
|
idempotencyKey?: string;
|
|
333
337
|
}, o?: RequestOptions): Promise<FormReceipt>;
|
package/dist/index.js
CHANGED
|
@@ -35,10 +35,12 @@ export const endpoints = {
|
|
|
35
35
|
requestGuestCode: { method: 'POST', path: '/guest/code' }, guestSignIn: { method: 'POST', path: '/guest/token' },
|
|
36
36
|
guestBookings: { method: 'GET', path: '/guest/bookings' }, guestSignOut: { method: 'POST', path: '/guest/revoke' },
|
|
37
37
|
};
|
|
38
|
-
// site: its legal links; pushTopics: topic names
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
// site: its legal links; pushTopics: topic names; form: its questions;
|
|
39
|
+
// submitForm: the receipt's thank-you (any site ignores it on that POST)
|
|
40
|
+
const localized = new Set(['home', 'page', 'content', 'contentById', 'search', 'events', 'rsvpStatus', 'site', 'pushTopics', 'announcements', 'announcement', 'eventDetail', 'form', 'submitForm']);
|
|
41
|
+
// localized later (site, pushTopics: core 0.3.32; form: with form
|
|
42
|
+
// translations); older sites answer ?locale= with a 400, so ask them again without it
|
|
43
|
+
const lateLocalized = new Set(['site', 'pushTopics', 'form']);
|
|
42
44
|
function uuid() {
|
|
43
45
|
if (globalThis.crypto?.randomUUID)
|
|
44
46
|
return globalThis.crypto.randomUUID();
|
package/dist/types.d.ts
CHANGED
|
@@ -186,6 +186,18 @@ export type EventRoom = {
|
|
|
186
186
|
"name": string;
|
|
187
187
|
"color": string | null;
|
|
188
188
|
};
|
|
189
|
+
export type OccurrenceMoved = ({
|
|
190
|
+
"from": {
|
|
191
|
+
"start": string;
|
|
192
|
+
"end": string;
|
|
193
|
+
};
|
|
194
|
+
"note": string;
|
|
195
|
+
"location": ({
|
|
196
|
+
"name": string;
|
|
197
|
+
"address": string;
|
|
198
|
+
"url": string;
|
|
199
|
+
}) | (null);
|
|
200
|
+
}) | (null);
|
|
189
201
|
export type Event = {
|
|
190
202
|
"id": string;
|
|
191
203
|
"slug": string;
|
|
@@ -236,7 +248,7 @@ export type Event = {
|
|
|
236
248
|
"confirmation": string;
|
|
237
249
|
"fields": Array<{
|
|
238
250
|
"id": string;
|
|
239
|
-
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading";
|
|
251
|
+
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading" | "time";
|
|
240
252
|
"label": string;
|
|
241
253
|
"required": boolean;
|
|
242
254
|
"help": string;
|
|
@@ -244,7 +256,23 @@ export type Event = {
|
|
|
244
256
|
"placeholder"?: string;
|
|
245
257
|
"width"?: "full" | "half";
|
|
246
258
|
"allowOther"?: boolean;
|
|
259
|
+
"translations"?: {
|
|
260
|
+
[key: string]: {
|
|
261
|
+
"label"?: string;
|
|
262
|
+
"help"?: string;
|
|
263
|
+
"placeholder"?: string;
|
|
264
|
+
"options"?: Array<string>;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
247
267
|
}>;
|
|
268
|
+
"translations"?: {
|
|
269
|
+
[key: string]: {
|
|
270
|
+
"title"?: string;
|
|
271
|
+
"intro"?: string;
|
|
272
|
+
"submitLabel"?: string;
|
|
273
|
+
"confirmation"?: string;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
248
276
|
};
|
|
249
277
|
};
|
|
250
278
|
"url": string;
|
|
@@ -264,6 +292,13 @@ export type Event = {
|
|
|
264
292
|
"name": string;
|
|
265
293
|
"color": string | null;
|
|
266
294
|
}>;
|
|
295
|
+
"movedDates": {
|
|
296
|
+
[key: string]: {
|
|
297
|
+
"start": string;
|
|
298
|
+
"end": string;
|
|
299
|
+
"note": string;
|
|
300
|
+
};
|
|
301
|
+
};
|
|
267
302
|
"notify": {
|
|
268
303
|
"changes": Array<string>;
|
|
269
304
|
};
|
|
@@ -284,6 +319,18 @@ export type Events = {
|
|
|
284
319
|
"end": string;
|
|
285
320
|
"allDay": boolean;
|
|
286
321
|
"cancelled": boolean;
|
|
322
|
+
"moved": ({
|
|
323
|
+
"from": {
|
|
324
|
+
"start": string;
|
|
325
|
+
"end": string;
|
|
326
|
+
};
|
|
327
|
+
"note": string;
|
|
328
|
+
"location": ({
|
|
329
|
+
"name": string;
|
|
330
|
+
"address": string;
|
|
331
|
+
"url": string;
|
|
332
|
+
}) | (null);
|
|
333
|
+
}) | (null);
|
|
287
334
|
"rooms": Array<{
|
|
288
335
|
"slug": string;
|
|
289
336
|
"name": string;
|
|
@@ -339,7 +386,7 @@ export type Events = {
|
|
|
339
386
|
"confirmation": string;
|
|
340
387
|
"fields": Array<{
|
|
341
388
|
"id": string;
|
|
342
|
-
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading";
|
|
389
|
+
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading" | "time";
|
|
343
390
|
"label": string;
|
|
344
391
|
"required": boolean;
|
|
345
392
|
"help": string;
|
|
@@ -347,7 +394,23 @@ export type Events = {
|
|
|
347
394
|
"placeholder"?: string;
|
|
348
395
|
"width"?: "full" | "half";
|
|
349
396
|
"allowOther"?: boolean;
|
|
397
|
+
"translations"?: {
|
|
398
|
+
[key: string]: {
|
|
399
|
+
"label"?: string;
|
|
400
|
+
"help"?: string;
|
|
401
|
+
"placeholder"?: string;
|
|
402
|
+
"options"?: Array<string>;
|
|
403
|
+
};
|
|
404
|
+
};
|
|
350
405
|
}>;
|
|
406
|
+
"translations"?: {
|
|
407
|
+
[key: string]: {
|
|
408
|
+
"title"?: string;
|
|
409
|
+
"intro"?: string;
|
|
410
|
+
"submitLabel"?: string;
|
|
411
|
+
"confirmation"?: string;
|
|
412
|
+
};
|
|
413
|
+
};
|
|
351
414
|
};
|
|
352
415
|
};
|
|
353
416
|
"url": string;
|
|
@@ -367,6 +430,13 @@ export type Events = {
|
|
|
367
430
|
"name": string;
|
|
368
431
|
"color": string | null;
|
|
369
432
|
}>;
|
|
433
|
+
"movedDates": {
|
|
434
|
+
[key: string]: {
|
|
435
|
+
"start": string;
|
|
436
|
+
"end": string;
|
|
437
|
+
"note": string;
|
|
438
|
+
};
|
|
439
|
+
};
|
|
370
440
|
"notify": {
|
|
371
441
|
"changes": Array<string>;
|
|
372
442
|
};
|
|
@@ -381,6 +451,18 @@ export type EventDetail = {
|
|
|
381
451
|
"end": string;
|
|
382
452
|
"allDay": boolean;
|
|
383
453
|
"cancelled": boolean;
|
|
454
|
+
"moved": ({
|
|
455
|
+
"from": {
|
|
456
|
+
"start": string;
|
|
457
|
+
"end": string;
|
|
458
|
+
};
|
|
459
|
+
"note": string;
|
|
460
|
+
"location": ({
|
|
461
|
+
"name": string;
|
|
462
|
+
"address": string;
|
|
463
|
+
"url": string;
|
|
464
|
+
}) | (null);
|
|
465
|
+
}) | (null);
|
|
384
466
|
"rooms": Array<{
|
|
385
467
|
"slug": string;
|
|
386
468
|
"name": string;
|
|
@@ -437,7 +519,7 @@ export type EventDetail = {
|
|
|
437
519
|
"confirmation": string;
|
|
438
520
|
"fields": Array<{
|
|
439
521
|
"id": string;
|
|
440
|
-
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading";
|
|
522
|
+
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading" | "time";
|
|
441
523
|
"label": string;
|
|
442
524
|
"required": boolean;
|
|
443
525
|
"help": string;
|
|
@@ -445,7 +527,23 @@ export type EventDetail = {
|
|
|
445
527
|
"placeholder"?: string;
|
|
446
528
|
"width"?: "full" | "half";
|
|
447
529
|
"allowOther"?: boolean;
|
|
530
|
+
"translations"?: {
|
|
531
|
+
[key: string]: {
|
|
532
|
+
"label"?: string;
|
|
533
|
+
"help"?: string;
|
|
534
|
+
"placeholder"?: string;
|
|
535
|
+
"options"?: Array<string>;
|
|
536
|
+
};
|
|
537
|
+
};
|
|
448
538
|
}>;
|
|
539
|
+
"translations"?: {
|
|
540
|
+
[key: string]: {
|
|
541
|
+
"title"?: string;
|
|
542
|
+
"intro"?: string;
|
|
543
|
+
"submitLabel"?: string;
|
|
544
|
+
"confirmation"?: string;
|
|
545
|
+
};
|
|
546
|
+
};
|
|
449
547
|
};
|
|
450
548
|
};
|
|
451
549
|
"url": string;
|
|
@@ -465,6 +563,13 @@ export type EventDetail = {
|
|
|
465
563
|
"name": string;
|
|
466
564
|
"color": string | null;
|
|
467
565
|
}>;
|
|
566
|
+
"movedDates": {
|
|
567
|
+
[key: string]: {
|
|
568
|
+
"start": string;
|
|
569
|
+
"end": string;
|
|
570
|
+
"note": string;
|
|
571
|
+
};
|
|
572
|
+
};
|
|
468
573
|
"notify": {
|
|
469
574
|
"changes": Array<string>;
|
|
470
575
|
};
|
|
@@ -532,6 +637,18 @@ export type SearchResults = {
|
|
|
532
637
|
"end": string;
|
|
533
638
|
"allDay": boolean;
|
|
534
639
|
"cancelled": boolean;
|
|
640
|
+
"moved": ({
|
|
641
|
+
"from": {
|
|
642
|
+
"start": string;
|
|
643
|
+
"end": string;
|
|
644
|
+
};
|
|
645
|
+
"note": string;
|
|
646
|
+
"location": ({
|
|
647
|
+
"name": string;
|
|
648
|
+
"address": string;
|
|
649
|
+
"url": string;
|
|
650
|
+
}) | (null);
|
|
651
|
+
}) | (null);
|
|
535
652
|
"rooms": Array<{
|
|
536
653
|
"slug": string;
|
|
537
654
|
"name": string;
|
|
@@ -588,7 +705,7 @@ export type SearchResults = {
|
|
|
588
705
|
"confirmation": string;
|
|
589
706
|
"fields": Array<{
|
|
590
707
|
"id": string;
|
|
591
|
-
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading";
|
|
708
|
+
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading" | "time";
|
|
592
709
|
"label": string;
|
|
593
710
|
"required": boolean;
|
|
594
711
|
"help": string;
|
|
@@ -596,7 +713,23 @@ export type SearchResults = {
|
|
|
596
713
|
"placeholder"?: string;
|
|
597
714
|
"width"?: "full" | "half";
|
|
598
715
|
"allowOther"?: boolean;
|
|
716
|
+
"translations"?: {
|
|
717
|
+
[key: string]: {
|
|
718
|
+
"label"?: string;
|
|
719
|
+
"help"?: string;
|
|
720
|
+
"placeholder"?: string;
|
|
721
|
+
"options"?: Array<string>;
|
|
722
|
+
};
|
|
723
|
+
};
|
|
599
724
|
}>;
|
|
725
|
+
"translations"?: {
|
|
726
|
+
[key: string]: {
|
|
727
|
+
"title"?: string;
|
|
728
|
+
"intro"?: string;
|
|
729
|
+
"submitLabel"?: string;
|
|
730
|
+
"confirmation"?: string;
|
|
731
|
+
};
|
|
732
|
+
};
|
|
600
733
|
};
|
|
601
734
|
};
|
|
602
735
|
"url": string;
|
|
@@ -616,6 +749,13 @@ export type SearchResults = {
|
|
|
616
749
|
"name": string;
|
|
617
750
|
"color": string | null;
|
|
618
751
|
}>;
|
|
752
|
+
"movedDates": {
|
|
753
|
+
[key: string]: {
|
|
754
|
+
"start": string;
|
|
755
|
+
"end": string;
|
|
756
|
+
"note": string;
|
|
757
|
+
};
|
|
758
|
+
};
|
|
619
759
|
"notify": {
|
|
620
760
|
"changes": Array<string>;
|
|
621
761
|
};
|
|
@@ -723,7 +863,7 @@ export type Form = {
|
|
|
723
863
|
"confirmation": string;
|
|
724
864
|
"fields": Array<{
|
|
725
865
|
"id": string;
|
|
726
|
-
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading";
|
|
866
|
+
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading" | "time";
|
|
727
867
|
"label": string;
|
|
728
868
|
"required": boolean;
|
|
729
869
|
"help": string;
|
|
@@ -767,7 +907,7 @@ export type RsvpStatus = {
|
|
|
767
907
|
"confirmation": string;
|
|
768
908
|
"fields": Array<{
|
|
769
909
|
"id": string;
|
|
770
|
-
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading";
|
|
910
|
+
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading" | "time";
|
|
771
911
|
"label": string;
|
|
772
912
|
"required": boolean;
|
|
773
913
|
"help": string;
|
|
@@ -965,7 +1105,7 @@ export type BookingResult = {
|
|
|
965
1105
|
"confirmation": string;
|
|
966
1106
|
"fields": Array<{
|
|
967
1107
|
"id": string;
|
|
968
|
-
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading";
|
|
1108
|
+
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading" | "time";
|
|
969
1109
|
"label": string;
|
|
970
1110
|
"required": boolean;
|
|
971
1111
|
"help": string;
|
|
@@ -973,7 +1113,23 @@ export type BookingResult = {
|
|
|
973
1113
|
"placeholder"?: string;
|
|
974
1114
|
"width"?: "full" | "half";
|
|
975
1115
|
"allowOther"?: boolean;
|
|
1116
|
+
"translations"?: {
|
|
1117
|
+
[key: string]: {
|
|
1118
|
+
"label"?: string;
|
|
1119
|
+
"help"?: string;
|
|
1120
|
+
"placeholder"?: string;
|
|
1121
|
+
"options"?: Array<string>;
|
|
1122
|
+
};
|
|
1123
|
+
};
|
|
976
1124
|
}>;
|
|
1125
|
+
"translations"?: {
|
|
1126
|
+
[key: string]: {
|
|
1127
|
+
"title"?: string;
|
|
1128
|
+
"intro"?: string;
|
|
1129
|
+
"submitLabel"?: string;
|
|
1130
|
+
"confirmation"?: string;
|
|
1131
|
+
};
|
|
1132
|
+
};
|
|
977
1133
|
};
|
|
978
1134
|
"answers": {
|
|
979
1135
|
[key: string]: string;
|
|
@@ -1336,7 +1492,7 @@ export type EditorDocument = {
|
|
|
1336
1492
|
"confirmation": string;
|
|
1337
1493
|
"fields": Array<{
|
|
1338
1494
|
"id": string;
|
|
1339
|
-
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading";
|
|
1495
|
+
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading" | "time";
|
|
1340
1496
|
"label": string;
|
|
1341
1497
|
"required": boolean;
|
|
1342
1498
|
"help": string;
|
|
@@ -1344,7 +1500,23 @@ export type EditorDocument = {
|
|
|
1344
1500
|
"placeholder"?: string;
|
|
1345
1501
|
"width"?: "full" | "half";
|
|
1346
1502
|
"allowOther"?: boolean;
|
|
1503
|
+
"translations"?: {
|
|
1504
|
+
[key: string]: {
|
|
1505
|
+
"label"?: string;
|
|
1506
|
+
"help"?: string;
|
|
1507
|
+
"placeholder"?: string;
|
|
1508
|
+
"options"?: Array<string>;
|
|
1509
|
+
};
|
|
1510
|
+
};
|
|
1347
1511
|
}>;
|
|
1512
|
+
"translations"?: {
|
|
1513
|
+
[key: string]: {
|
|
1514
|
+
"title"?: string;
|
|
1515
|
+
"intro"?: string;
|
|
1516
|
+
"submitLabel"?: string;
|
|
1517
|
+
"confirmation"?: string;
|
|
1518
|
+
};
|
|
1519
|
+
};
|
|
1348
1520
|
};
|
|
1349
1521
|
};
|
|
1350
1522
|
}) | (null);
|
|
@@ -1539,7 +1711,7 @@ export type EditorBooking = {
|
|
|
1539
1711
|
"confirmation": string;
|
|
1540
1712
|
"fields": Array<{
|
|
1541
1713
|
"id": string;
|
|
1542
|
-
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading";
|
|
1714
|
+
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading" | "time";
|
|
1543
1715
|
"label": string;
|
|
1544
1716
|
"required": boolean;
|
|
1545
1717
|
"help": string;
|
|
@@ -1547,7 +1719,23 @@ export type EditorBooking = {
|
|
|
1547
1719
|
"placeholder"?: string;
|
|
1548
1720
|
"width"?: "full" | "half";
|
|
1549
1721
|
"allowOther"?: boolean;
|
|
1722
|
+
"translations"?: {
|
|
1723
|
+
[key: string]: {
|
|
1724
|
+
"label"?: string;
|
|
1725
|
+
"help"?: string;
|
|
1726
|
+
"placeholder"?: string;
|
|
1727
|
+
"options"?: Array<string>;
|
|
1728
|
+
};
|
|
1729
|
+
};
|
|
1550
1730
|
}>;
|
|
1731
|
+
"translations"?: {
|
|
1732
|
+
[key: string]: {
|
|
1733
|
+
"title"?: string;
|
|
1734
|
+
"intro"?: string;
|
|
1735
|
+
"submitLabel"?: string;
|
|
1736
|
+
"confirmation"?: string;
|
|
1737
|
+
};
|
|
1738
|
+
};
|
|
1551
1739
|
};
|
|
1552
1740
|
"answers": {
|
|
1553
1741
|
[key: string]: string;
|
|
@@ -1586,7 +1774,7 @@ export type EditorBookingList = {
|
|
|
1586
1774
|
"confirmation": string;
|
|
1587
1775
|
"fields": Array<{
|
|
1588
1776
|
"id": string;
|
|
1589
|
-
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading";
|
|
1777
|
+
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading" | "time";
|
|
1590
1778
|
"label": string;
|
|
1591
1779
|
"required": boolean;
|
|
1592
1780
|
"help": string;
|
|
@@ -1594,7 +1782,23 @@ export type EditorBookingList = {
|
|
|
1594
1782
|
"placeholder"?: string;
|
|
1595
1783
|
"width"?: "full" | "half";
|
|
1596
1784
|
"allowOther"?: boolean;
|
|
1785
|
+
"translations"?: {
|
|
1786
|
+
[key: string]: {
|
|
1787
|
+
"label"?: string;
|
|
1788
|
+
"help"?: string;
|
|
1789
|
+
"placeholder"?: string;
|
|
1790
|
+
"options"?: Array<string>;
|
|
1791
|
+
};
|
|
1792
|
+
};
|
|
1597
1793
|
}>;
|
|
1794
|
+
"translations"?: {
|
|
1795
|
+
[key: string]: {
|
|
1796
|
+
"title"?: string;
|
|
1797
|
+
"intro"?: string;
|
|
1798
|
+
"submitLabel"?: string;
|
|
1799
|
+
"confirmation"?: string;
|
|
1800
|
+
};
|
|
1801
|
+
};
|
|
1598
1802
|
};
|
|
1599
1803
|
"answers": {
|
|
1600
1804
|
[key: string]: string;
|
|
@@ -2277,7 +2481,7 @@ export type EditorSaveInput = {
|
|
|
2277
2481
|
"confirmation"?: string;
|
|
2278
2482
|
"fields"?: Array<{
|
|
2279
2483
|
"id": string;
|
|
2280
|
-
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading";
|
|
2484
|
+
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading" | "time";
|
|
2281
2485
|
"label": string;
|
|
2282
2486
|
"required"?: boolean;
|
|
2283
2487
|
"help"?: string;
|
|
@@ -2285,7 +2489,23 @@ export type EditorSaveInput = {
|
|
|
2285
2489
|
"placeholder"?: string;
|
|
2286
2490
|
"width"?: "full" | "half";
|
|
2287
2491
|
"allowOther"?: boolean;
|
|
2492
|
+
"translations"?: {
|
|
2493
|
+
[key: string]: {
|
|
2494
|
+
"label"?: string;
|
|
2495
|
+
"help"?: string;
|
|
2496
|
+
"placeholder"?: string;
|
|
2497
|
+
"options"?: Array<string>;
|
|
2498
|
+
};
|
|
2499
|
+
};
|
|
2288
2500
|
}>;
|
|
2501
|
+
"translations"?: {
|
|
2502
|
+
[key: string]: {
|
|
2503
|
+
"title"?: string;
|
|
2504
|
+
"intro"?: string;
|
|
2505
|
+
"submitLabel"?: string;
|
|
2506
|
+
"confirmation"?: string;
|
|
2507
|
+
};
|
|
2508
|
+
};
|
|
2289
2509
|
};
|
|
2290
2510
|
};
|
|
2291
2511
|
});
|