@acms-subir/client 0.1.1 → 0.1.3
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/types.d.ts +178 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export type Site = {
|
|
|
7
7
|
"name": string;
|
|
8
8
|
"description": string;
|
|
9
9
|
"logo": string;
|
|
10
|
+
"logoDark": string;
|
|
10
11
|
"icon": string;
|
|
11
12
|
"menu": Array<{
|
|
12
13
|
"label": string;
|
|
@@ -184,6 +185,12 @@ export type Event = {
|
|
|
184
185
|
"name": string;
|
|
185
186
|
"address": string;
|
|
186
187
|
"url": string;
|
|
188
|
+
"lat": number | null;
|
|
189
|
+
"lng": number | null;
|
|
190
|
+
"placeId": string;
|
|
191
|
+
"showMap": boolean;
|
|
192
|
+
"mapImage": string;
|
|
193
|
+
"mapImageDark": string;
|
|
187
194
|
};
|
|
188
195
|
"cta": {
|
|
189
196
|
"label": string;
|
|
@@ -194,6 +201,29 @@ export type Event = {
|
|
|
194
201
|
"fields": {
|
|
195
202
|
[key: string]: string;
|
|
196
203
|
};
|
|
204
|
+
"rsvp": {
|
|
205
|
+
"enabled": boolean;
|
|
206
|
+
"capacity": number;
|
|
207
|
+
"autoConfirm": boolean;
|
|
208
|
+
"maxSeats": number;
|
|
209
|
+
"form"?: {
|
|
210
|
+
"title": string;
|
|
211
|
+
"intro": string;
|
|
212
|
+
"submitLabel": string;
|
|
213
|
+
"confirmation": string;
|
|
214
|
+
"fields": Array<{
|
|
215
|
+
"id": string;
|
|
216
|
+
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading";
|
|
217
|
+
"label": string;
|
|
218
|
+
"required": boolean;
|
|
219
|
+
"help": string;
|
|
220
|
+
"options": Array<string>;
|
|
221
|
+
"placeholder"?: string;
|
|
222
|
+
"width"?: "full" | "half";
|
|
223
|
+
"allowOther"?: boolean;
|
|
224
|
+
}>;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
197
227
|
"url": string;
|
|
198
228
|
"icsUrl": string;
|
|
199
229
|
"repeats": string;
|
|
@@ -240,6 +270,12 @@ export type Events = {
|
|
|
240
270
|
"name": string;
|
|
241
271
|
"address": string;
|
|
242
272
|
"url": string;
|
|
273
|
+
"lat": number | null;
|
|
274
|
+
"lng": number | null;
|
|
275
|
+
"placeId": string;
|
|
276
|
+
"showMap": boolean;
|
|
277
|
+
"mapImage": string;
|
|
278
|
+
"mapImageDark": string;
|
|
243
279
|
};
|
|
244
280
|
"cta": {
|
|
245
281
|
"label": string;
|
|
@@ -250,6 +286,29 @@ export type Events = {
|
|
|
250
286
|
"fields": {
|
|
251
287
|
[key: string]: string;
|
|
252
288
|
};
|
|
289
|
+
"rsvp": {
|
|
290
|
+
"enabled": boolean;
|
|
291
|
+
"capacity": number;
|
|
292
|
+
"autoConfirm": boolean;
|
|
293
|
+
"maxSeats": number;
|
|
294
|
+
"form"?: {
|
|
295
|
+
"title": string;
|
|
296
|
+
"intro": string;
|
|
297
|
+
"submitLabel": string;
|
|
298
|
+
"confirmation": string;
|
|
299
|
+
"fields": Array<{
|
|
300
|
+
"id": string;
|
|
301
|
+
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading";
|
|
302
|
+
"label": string;
|
|
303
|
+
"required": boolean;
|
|
304
|
+
"help": string;
|
|
305
|
+
"options": Array<string>;
|
|
306
|
+
"placeholder"?: string;
|
|
307
|
+
"width"?: "full" | "half";
|
|
308
|
+
"allowOther"?: boolean;
|
|
309
|
+
}>;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
253
312
|
"url": string;
|
|
254
313
|
"icsUrl": string;
|
|
255
314
|
"repeats": string;
|
|
@@ -342,6 +401,29 @@ export type BookingResult = {
|
|
|
342
401
|
"answers": {
|
|
343
402
|
[key: string]: string;
|
|
344
403
|
};
|
|
404
|
+
"formResponse"?: {
|
|
405
|
+
"version": string;
|
|
406
|
+
"definition": {
|
|
407
|
+
"title": string;
|
|
408
|
+
"intro": string;
|
|
409
|
+
"submitLabel": string;
|
|
410
|
+
"confirmation": string;
|
|
411
|
+
"fields": Array<{
|
|
412
|
+
"id": string;
|
|
413
|
+
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading";
|
|
414
|
+
"label": string;
|
|
415
|
+
"required": boolean;
|
|
416
|
+
"help": string;
|
|
417
|
+
"options": Array<string>;
|
|
418
|
+
"placeholder"?: string;
|
|
419
|
+
"width"?: "full" | "half";
|
|
420
|
+
"allowOther"?: boolean;
|
|
421
|
+
}>;
|
|
422
|
+
};
|
|
423
|
+
"answers": {
|
|
424
|
+
[key: string]: string;
|
|
425
|
+
};
|
|
426
|
+
};
|
|
345
427
|
"source": "web" | "admin" | "api" | "agent";
|
|
346
428
|
"start": string;
|
|
347
429
|
"end": string;
|
|
@@ -536,6 +618,12 @@ export type EditorDocument = {
|
|
|
536
618
|
"name": string;
|
|
537
619
|
"address": string;
|
|
538
620
|
"url": string;
|
|
621
|
+
"lat": number | null;
|
|
622
|
+
"lng": number | null;
|
|
623
|
+
"placeId": string;
|
|
624
|
+
"showMap": boolean;
|
|
625
|
+
"mapImage": string;
|
|
626
|
+
"mapImageDark": string;
|
|
539
627
|
};
|
|
540
628
|
"cta": {
|
|
541
629
|
"label": string;
|
|
@@ -551,6 +639,23 @@ export type EditorDocument = {
|
|
|
551
639
|
"capacity": number;
|
|
552
640
|
"autoConfirm": boolean;
|
|
553
641
|
"maxSeats": number;
|
|
642
|
+
"form"?: {
|
|
643
|
+
"title": string;
|
|
644
|
+
"intro": string;
|
|
645
|
+
"submitLabel": string;
|
|
646
|
+
"confirmation": string;
|
|
647
|
+
"fields": Array<{
|
|
648
|
+
"id": string;
|
|
649
|
+
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading";
|
|
650
|
+
"label": string;
|
|
651
|
+
"required": boolean;
|
|
652
|
+
"help": string;
|
|
653
|
+
"options": Array<string>;
|
|
654
|
+
"placeholder"?: string;
|
|
655
|
+
"width"?: "full" | "half";
|
|
656
|
+
"allowOther"?: boolean;
|
|
657
|
+
}>;
|
|
658
|
+
};
|
|
554
659
|
};
|
|
555
660
|
}) | (null);
|
|
556
661
|
"languages": Array<string>;
|
|
@@ -735,6 +840,29 @@ export type EditorBooking = {
|
|
|
735
840
|
"answers": {
|
|
736
841
|
[key: string]: string;
|
|
737
842
|
};
|
|
843
|
+
"formResponse"?: {
|
|
844
|
+
"version": string;
|
|
845
|
+
"definition": {
|
|
846
|
+
"title": string;
|
|
847
|
+
"intro": string;
|
|
848
|
+
"submitLabel": string;
|
|
849
|
+
"confirmation": string;
|
|
850
|
+
"fields": Array<{
|
|
851
|
+
"id": string;
|
|
852
|
+
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading";
|
|
853
|
+
"label": string;
|
|
854
|
+
"required": boolean;
|
|
855
|
+
"help": string;
|
|
856
|
+
"options": Array<string>;
|
|
857
|
+
"placeholder"?: string;
|
|
858
|
+
"width"?: "full" | "half";
|
|
859
|
+
"allowOther"?: boolean;
|
|
860
|
+
}>;
|
|
861
|
+
};
|
|
862
|
+
"answers": {
|
|
863
|
+
[key: string]: string;
|
|
864
|
+
};
|
|
865
|
+
};
|
|
738
866
|
"source": "web" | "admin" | "api" | "agent";
|
|
739
867
|
"notes": string;
|
|
740
868
|
"start": string;
|
|
@@ -759,6 +887,29 @@ export type EditorBookingList = {
|
|
|
759
887
|
"answers": {
|
|
760
888
|
[key: string]: string;
|
|
761
889
|
};
|
|
890
|
+
"formResponse"?: {
|
|
891
|
+
"version": string;
|
|
892
|
+
"definition": {
|
|
893
|
+
"title": string;
|
|
894
|
+
"intro": string;
|
|
895
|
+
"submitLabel": string;
|
|
896
|
+
"confirmation": string;
|
|
897
|
+
"fields": Array<{
|
|
898
|
+
"id": string;
|
|
899
|
+
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading";
|
|
900
|
+
"label": string;
|
|
901
|
+
"required": boolean;
|
|
902
|
+
"help": string;
|
|
903
|
+
"options": Array<string>;
|
|
904
|
+
"placeholder"?: string;
|
|
905
|
+
"width"?: "full" | "half";
|
|
906
|
+
"allowOther"?: boolean;
|
|
907
|
+
}>;
|
|
908
|
+
};
|
|
909
|
+
"answers": {
|
|
910
|
+
[key: string]: string;
|
|
911
|
+
};
|
|
912
|
+
};
|
|
762
913
|
"source": "web" | "admin" | "api" | "agent";
|
|
763
914
|
"notes": string;
|
|
764
915
|
"start": string;
|
|
@@ -832,6 +983,10 @@ export type BookingInput = ({
|
|
|
832
983
|
"phone"?: string;
|
|
833
984
|
"event": string;
|
|
834
985
|
"seats"?: number;
|
|
986
|
+
"answers"?: {
|
|
987
|
+
[key: string]: string;
|
|
988
|
+
};
|
|
989
|
+
"formVersion"?: string;
|
|
835
990
|
});
|
|
836
991
|
export type DeviceInput = {
|
|
837
992
|
"token": string;
|
|
@@ -904,6 +1059,12 @@ export type EditorSaveInput = {
|
|
|
904
1059
|
"name": string;
|
|
905
1060
|
"address": string;
|
|
906
1061
|
"url": string;
|
|
1062
|
+
"lat"?: (number) | (null);
|
|
1063
|
+
"lng"?: (number) | (null);
|
|
1064
|
+
"placeId"?: string;
|
|
1065
|
+
"showMap"?: boolean;
|
|
1066
|
+
"mapImage"?: string;
|
|
1067
|
+
"mapImageDark"?: string;
|
|
907
1068
|
};
|
|
908
1069
|
"cta"?: {
|
|
909
1070
|
"label": string;
|
|
@@ -919,6 +1080,23 @@ export type EditorSaveInput = {
|
|
|
919
1080
|
"capacity": number;
|
|
920
1081
|
"autoConfirm": boolean;
|
|
921
1082
|
"maxSeats": number;
|
|
1083
|
+
"form"?: {
|
|
1084
|
+
"title"?: string;
|
|
1085
|
+
"intro"?: string;
|
|
1086
|
+
"submitLabel"?: string;
|
|
1087
|
+
"confirmation"?: string;
|
|
1088
|
+
"fields"?: Array<{
|
|
1089
|
+
"id": string;
|
|
1090
|
+
"type": "text" | "textarea" | "email" | "phone" | "number" | "select" | "checkbox" | "date" | "radio" | "checkboxes" | "url" | "consent" | "heading";
|
|
1091
|
+
"label": string;
|
|
1092
|
+
"required"?: boolean;
|
|
1093
|
+
"help"?: string;
|
|
1094
|
+
"options"?: Array<string>;
|
|
1095
|
+
"placeholder"?: string;
|
|
1096
|
+
"width"?: "full" | "half";
|
|
1097
|
+
"allowOther"?: boolean;
|
|
1098
|
+
}>;
|
|
1099
|
+
};
|
|
922
1100
|
};
|
|
923
1101
|
});
|
|
924
1102
|
};
|