@acms-subir/client 0.1.2 → 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 +177 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -185,6 +185,12 @@ export type Event = {
|
|
|
185
185
|
"name": string;
|
|
186
186
|
"address": string;
|
|
187
187
|
"url": string;
|
|
188
|
+
"lat": number | null;
|
|
189
|
+
"lng": number | null;
|
|
190
|
+
"placeId": string;
|
|
191
|
+
"showMap": boolean;
|
|
192
|
+
"mapImage": string;
|
|
193
|
+
"mapImageDark": string;
|
|
188
194
|
};
|
|
189
195
|
"cta": {
|
|
190
196
|
"label": string;
|
|
@@ -195,6 +201,29 @@ export type Event = {
|
|
|
195
201
|
"fields": {
|
|
196
202
|
[key: string]: string;
|
|
197
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
|
+
};
|
|
198
227
|
"url": string;
|
|
199
228
|
"icsUrl": string;
|
|
200
229
|
"repeats": string;
|
|
@@ -241,6 +270,12 @@ export type Events = {
|
|
|
241
270
|
"name": string;
|
|
242
271
|
"address": string;
|
|
243
272
|
"url": string;
|
|
273
|
+
"lat": number | null;
|
|
274
|
+
"lng": number | null;
|
|
275
|
+
"placeId": string;
|
|
276
|
+
"showMap": boolean;
|
|
277
|
+
"mapImage": string;
|
|
278
|
+
"mapImageDark": string;
|
|
244
279
|
};
|
|
245
280
|
"cta": {
|
|
246
281
|
"label": string;
|
|
@@ -251,6 +286,29 @@ export type Events = {
|
|
|
251
286
|
"fields": {
|
|
252
287
|
[key: string]: string;
|
|
253
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
|
+
};
|
|
254
312
|
"url": string;
|
|
255
313
|
"icsUrl": string;
|
|
256
314
|
"repeats": string;
|
|
@@ -343,6 +401,29 @@ export type BookingResult = {
|
|
|
343
401
|
"answers": {
|
|
344
402
|
[key: string]: string;
|
|
345
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
|
+
};
|
|
346
427
|
"source": "web" | "admin" | "api" | "agent";
|
|
347
428
|
"start": string;
|
|
348
429
|
"end": string;
|
|
@@ -537,6 +618,12 @@ export type EditorDocument = {
|
|
|
537
618
|
"name": string;
|
|
538
619
|
"address": string;
|
|
539
620
|
"url": string;
|
|
621
|
+
"lat": number | null;
|
|
622
|
+
"lng": number | null;
|
|
623
|
+
"placeId": string;
|
|
624
|
+
"showMap": boolean;
|
|
625
|
+
"mapImage": string;
|
|
626
|
+
"mapImageDark": string;
|
|
540
627
|
};
|
|
541
628
|
"cta": {
|
|
542
629
|
"label": string;
|
|
@@ -552,6 +639,23 @@ export type EditorDocument = {
|
|
|
552
639
|
"capacity": number;
|
|
553
640
|
"autoConfirm": boolean;
|
|
554
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
|
+
};
|
|
555
659
|
};
|
|
556
660
|
}) | (null);
|
|
557
661
|
"languages": Array<string>;
|
|
@@ -736,6 +840,29 @@ export type EditorBooking = {
|
|
|
736
840
|
"answers": {
|
|
737
841
|
[key: string]: string;
|
|
738
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
|
+
};
|
|
739
866
|
"source": "web" | "admin" | "api" | "agent";
|
|
740
867
|
"notes": string;
|
|
741
868
|
"start": string;
|
|
@@ -760,6 +887,29 @@ export type EditorBookingList = {
|
|
|
760
887
|
"answers": {
|
|
761
888
|
[key: string]: string;
|
|
762
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
|
+
};
|
|
763
913
|
"source": "web" | "admin" | "api" | "agent";
|
|
764
914
|
"notes": string;
|
|
765
915
|
"start": string;
|
|
@@ -833,6 +983,10 @@ export type BookingInput = ({
|
|
|
833
983
|
"phone"?: string;
|
|
834
984
|
"event": string;
|
|
835
985
|
"seats"?: number;
|
|
986
|
+
"answers"?: {
|
|
987
|
+
[key: string]: string;
|
|
988
|
+
};
|
|
989
|
+
"formVersion"?: string;
|
|
836
990
|
});
|
|
837
991
|
export type DeviceInput = {
|
|
838
992
|
"token": string;
|
|
@@ -905,6 +1059,12 @@ export type EditorSaveInput = {
|
|
|
905
1059
|
"name": string;
|
|
906
1060
|
"address": string;
|
|
907
1061
|
"url": string;
|
|
1062
|
+
"lat"?: (number) | (null);
|
|
1063
|
+
"lng"?: (number) | (null);
|
|
1064
|
+
"placeId"?: string;
|
|
1065
|
+
"showMap"?: boolean;
|
|
1066
|
+
"mapImage"?: string;
|
|
1067
|
+
"mapImageDark"?: string;
|
|
908
1068
|
};
|
|
909
1069
|
"cta"?: {
|
|
910
1070
|
"label": string;
|
|
@@ -920,6 +1080,23 @@ export type EditorSaveInput = {
|
|
|
920
1080
|
"capacity": number;
|
|
921
1081
|
"autoConfirm": boolean;
|
|
922
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
|
+
};
|
|
923
1100
|
};
|
|
924
1101
|
});
|
|
925
1102
|
};
|