· 6 years ago · Mar 20, 2020, 09:18 AM
1{
2 "views": [
3 {
4 "type": "navigator-cities",
5 "name": "alfa-cities",
6 "actions": {
7 "load": "load-cities",
8 "tap": "tap-city-open-home"
9 }
10 },
11 {
12 "type": "list",
13 "name": "routes-list",
14 "supported_cells": [
15 "route-card"
16 ],
17 "attributes": {
18 "support_pagination": true,
19 "allow_location": true,
20 "item_height": 120
21 },
22 "actions": {
23 "load": "load-routes-page"
24 }
25 },
26 {
27 "type": "navigator-home",
28 "name": "navigator-home",
29 "subviews": [
30 "full-image-events",
31 "full-image-places",
32 "half-image-events",
33 "half-image-places"
34 ]
35 },
36 {
37 "type": "navigator-home-image",
38 "name": "full-image-events",
39 "attributes": {
40 "title": "События",
41 "height": 120,
42 "width": "full",
43 "image": "https://i.picsum.photos/id/1/1000/300.jpg"
44 },
45 "actions": {
46 "tap": "tap-home-card-open-events"
47 }
48 },
49 {
50 "type": "navigator-home-image",
51 "name": "full-image-places",
52 "attributes": {
53 "title": "Площадки",
54 "height": 120,
55 "width": "full",
56 "image": "https://i.picsum.photos/id/2/1000/300.jpg"
57 },
58 "actions": {
59 "tap": "tap-home-card-open-places"
60 }
61 },
62 {
63 "type": "navigator-home-image",
64 "name": "half-image-events",
65 "attributes": {
66 "title": "События",
67 "height": 120,
68 "width": "half",
69 "image": "https://i.picsum.photos/id/3/500/300.jpg"
70 },
71 "actions": {
72 "tap": "tap-home-card-open-events"
73 }
74 },
75 {
76 "type": "navigator-home-image",
77 "name": "half-image-places",
78 "attributes": {
79 "title": "Площадки",
80 "height": 120,
81 "width": "half",
82 "image": "https://i.picsum.photos/id/4/500/300.jpg"
83 },
84 "actions": {
85 "tap": "tap-home-card-open-places"
86 }
87 },
88 {
89 "type": "list",
90 "name": "places-list",
91 "supported_cells": [
92 "place-card"
93 ],
94 "attributes": {
95 "support_pagination": true,
96 "allow_location": true,
97 "item_height": 120
98 },
99 "actions": {
100 "load": "load-places-page"
101 }
102 },
103 {
104 "type": "list",
105 "name": "events-list",
106 "supported_cells": [
107 "event-card"
108 ],
109 "attributes": {
110 "support_pagination": true,
111 "allow_location": true,
112 "item_height": 230
113 },
114 "actions": {
115 "load": "load-events-page"
116 }
117 },
118 {
119 "type": "horizontal-lists-container",
120 "name": "search-lists-container",
121 "subviews": [
122 "search-events-horizontal-list",
123 "search-places-horizontal-list",
124 "search-restaurants-horizontal-list"
125 ]
126 },
127 {
128 "type": "detail-horizontal-list",
129 "name": "search-events-horizontal-list",
130 "item": "detail-event-item",
131 "attributes": {
132 "item_width": 260,
133 "item_height": 230,
134 "overlap_delta": -10,
135 "title": "Events nearby",
136 "allow_location": false
137 },
138 "actions": {
139 "load": "search-events"
140 }
141 },
142 {
143 "type": "detail-horizontal-list",
144 "name": "search-places-horizontal-list",
145 "item": "detail-place-item",
146 "attributes": {
147 "item_width": 260,
148 "item_height": 120,
149 "overlap_delta": -10,
150 "title": "Places nearby",
151 "allow_location": false
152 },
153 "actions": {
154 "load": "search-places"
155 }
156 },
157 {
158 "type": "detail-horizontal-list",
159 "name": "search-restaurants-horizontal-list",
160 "item": "detail-restaurant-item",
161 "attributes": {
162 "item_width": 190,
163 "item_height": 190,
164 "overlap_delta": -10,
165 "title": "Restaurants nearby",
166 "allow_location": false
167 },
168 "actions": {
169 "load": "search-restaurants"
170 }
171 },
172 {
173 "type": "section-card",
174 "name": "event-card",
175 "attributes": {
176 "is_favorite_enabled": true,
177 "is_sharing_enabled": true,
178 "title_color": "#FFFFFF",
179 "title": "",
180 "entity_type": "events"
181 },
182 "actions": {
183 "tap": "tap-event-card-open-detail",
184 "toggle_favorite": "toggle-detail-favorite",
185 "share": "share-event-detail"
186 }
187 },
188 {
189 "type": "list",
190 "name": "quests-list",
191 "supported_cells": [
192 "quest-card"
193 ],
194 "attributes": {
195 "support_pagination": false,
196 "has_header": true
197 },
198 "actions": {
199 "load": "load-quests-page"
200 }
201 },
202 {
203 "type": "section-card",
204 "name": "route-card",
205 "attributes": {
206 "is_favorite_enabled": true,
207 "is_sharing_enabled": true,
208 "title_color": "#FFFFFF",
209 "title": "",
210 "tap_url": "https://google.com",
211 "entity_type": "routes"
212 },
213 "actions": {
214 "tap": "tap-route-card-open-detail",
215 "toggle_favorite": "toggle-detail-favorite",
216 "share": "share-route-detail"
217 }
218 },
219 {
220 "type": "section-card",
221 "name": "place-card",
222 "attributes": {
223 "is_favorite_enabled": true,
224 "is_sharing_enabled": true,
225 "title_color": "#FFFFFF",
226 "title": "",
227 "tap_url": "https://google.com",
228 "entity_type": "places"
229 },
230 "actions": {
231 "tap": "tap-place-card-open-detail",
232 "toggle_favorite": "toggle-detail-favorite",
233 "share": "share-place-detail"
234 }
235 },
236 {
237 "type": "quest-card",
238 "name": "quest-card",
239 "attributes": {
240 "title_color": "#FFFFFF",
241 "title": "",
242 "tap_url": "https://google.com"
243 },
244 "actions": {
245 "tap": "tap-place-card-open-detail"
246 }
247 },
248 {
249 "type": "webpage",
250 "name": "webpage",
251 "attributes": {
252 "url": "https://google.com"
253 }
254 },
255 {
256 "type": "detail-container",
257 "name": "route-detail",
258 "attributes": {
259 "is_favorite_enabled": true,
260 "is_bottom_button_enabled": false,
261 "bottom_button_title": "Купить билеты",
262 "allow_location": true
263 },
264 "subviews": [
265 "route-share",
266 "route-info",
267 "route-map",
268 "route-places"
269 ],
270 "actions": {
271 "load": "load-route-detail",
272 "toggle_favorite": "toggle-detail-favorite",
273 "share": "share-route-detail"
274 }
275 },
276 {
277 "type": "detail-share",
278 "name": "route-share",
279 "attributes": {
280 "title": "Расскажите друзьям",
281 "button_title": "Поделиться"
282 }
283 },
284 {
285 "type": "detail-info",
286 "name": "route-info",
287 "attributes": {
288 "text": "initial info"
289 }
290 },
291 {
292 "type": "detail-route-places",
293 "name": "route-places",
294 "item": "detail-route-places",
295 "attributes": {
296 "start_route_text": "Начало маршрута",
297 "end_route_text": "Конец маршрута"
298 }
299 },
300 {
301 "type": "detail-route-map",
302 "name": "route-map",
303 "attributes": {
304 },
305 "actions": {
306 "load": "load-route-polyline"
307 }
308 },
309 {
310 "type": "detail-container",
311 "name": "place-detail",
312 "attributes": {
313 "is_favorite_enabled": true,
314 "is_bottom_button_enabled": true,
315 "bottom_button_title": "Купить билеты",
316 "allow_location": true
317 },
318 "subviews": [
319 "place-share",
320 "place-tags",
321 "place-info",
322 "place-location",
323 "place-restaurants",
324 "detail-place-events"
325 ],
326 "actions": {
327 "load": "load-place-detail",
328 "toggle_favorite": "toggle-detail-favorite",
329 "open_module": "tap-section-card-open-url",
330 "share": "share-place-detail"
331 }
332 },
333 {
334 "type": "detail-location",
335 "name": "place-location",
336 "attributes": {
337 "from": "от",
338 "price_ending_title": "руб.",
339 "taxi_title": "Вызвать\nЯндекс.Такси",
340 "title": "Как добраться",
341 "lat": null,
342 "lon": null
343 },
344 "actions": {
345 "load": "load-place-taxi"
346 }
347 },
348 {
349 "type": "detail-share",
350 "name": "place-share",
351 "attributes": {
352 "title": "Расскажите друзьям",
353 "button_title": "Поделиться"
354 }
355 },
356 {
357 "type": "detail-tags",
358 "name": "place-tags",
359 "attributes": {}
360 },
361 {
362 "type": "detail-info",
363 "name": "place-info",
364 "attributes": {
365 "text": "initial info"
366 }
367 },
368 {
369 "type": "detail-map",
370 "name": "place-map",
371 "attributes": {
372 "lat": null,
373 "lon": null
374 }
375 },
376 {
377 "type": "detail-taxi",
378 "name": "place-taxi",
379 "attributes": {}
380 },
381 {
382 "type": "detail-horizontal-list",
383 "name": "place-restaurants",
384 "item": "detail-restaurant-item",
385 "attributes": {
386 "title": "Restaurants nearby",
387 "allow_location": true,
388 "item_height": 145,
389 "item_width": 145,
390 "overlap_delta": -10
391 },
392 "actions": {
393 "load": "load-restaurants-detail"
394 }
395 },
396 {
397 "type": "section-card",
398 "name": "detail-restaurant-item",
399 "attributes": {},
400 "actions": {
401 "tap": "tap-restaurant-card-open-detail"
402 }
403 },
404 {
405 "type": "section-card",
406 "name": "detail-place-item",
407 "attributes": {},
408 "actions": {
409 "tap": "tap-place-card-open-detail"
410 }
411 },
412 {
413 "type": "detail-vertical-list",
414 "name": "detail-place-events",
415 "item": "detail-event-item",
416 "attributes": {
417 "title": "Events",
418 "item_height": 120
419 },
420 "actions": {
421 "load": "load-events-detail"
422 }
423 },
424 {
425 "type": "section-card",
426 "name": "detail-route-places",
427 "attributes": {
428 "is_favorite_enabled": true,
429 "is_sharing_enabled": true,
430 "title_color": "#FFFFFF",
431 "title": "",
432 "entity_type": "places"
433 },
434 "actions": {
435 "tap": "tap-place-card-open-detail",
436 "toggle_favorite": "toggle-detail-favorite",
437 "share": "share-place-detail"
438 }
439 },
440 {
441 "type": "section-card",
442 "name": "detail-event-item",
443 "attributes": {
444 "is_favorite_enabled": true,
445 "is_sharing_enabled": true,
446 "title_color": "#FFFFFF",
447 "title": "",
448 "entity_type": "events"
449 },
450 "actions": {
451 "tap": "tap-event-card-open-detail",
452 "toggle_favorite": "toggle-detail-favorite"
453 }
454 },
455 {
456 "type": "detail-container",
457 "name": "restaurant-detail",
458 "attributes": {
459 "cover_url": "",
460 "title": ""
461 },
462 "subviews": [
463 "restaurant-share",
464 "restaurant-info",
465 "restaurant-map",
466 "restaurant-restaurants"
467 ],
468 "actions": {
469 "load": "load-restaurant-detail",
470 "toggle_favorite": "toggle-detail-favorite",
471 "share": "share-restaurant-detail"
472 }
473 },
474 {
475 "type": "detail-share",
476 "name": "restaurant-share",
477 "attributes": {
478 "title": "Расскажите друзьям",
479 "button_title": "Поделиться"
480 }
481 },
482 {
483 "type": "detail-info",
484 "name": "restaurant-info",
485 "attributes": {
486 "text": "initial info"
487 }
488 },
489 {
490 "type": "detail-map",
491 "name": "restaurant-map",
492 "attributes": {
493 "lat": null,
494 "lon": null
495 }
496 },
497 {
498 "type": "detail-horizontal-list",
499 "name": "restaurant-restaurants",
500 "item": "detail-restaurant-item",
501 "attributes": {
502 "title": "Restaurants nearby",
503 "allow_location": true
504 },
505 "actions": {
506 "load": "load-restaurants-detail"
507 }
508 },
509 {
510 "type": "detail-container",
511 "name": "event-detail",
512 "attributes": {
513 "cover_url": "",
514 "title": "",
515 "bottom_button_title": "Купить билеты",
516 "is_bottom_button_enabled": true
517 },
518 "subviews": [
519 "event-info",
520 "event-map",
521 "event-places",
522 "event-calendar"
523 ],
524 "actions": {
525 "load": "load-event-detail",
526 "toggle_favorite": "toggle-detail-favorite",
527 "open_module": "tap-section-card-open-url"
528 }
529 },
530 {
531 "type": "detail-info",
532 "name": "event-info",
533 "attributes": {
534 "text": "initial info"
535 }
536 },
537 {
538 "type": "detail-map",
539 "name": "event-map",
540 "attributes": {
541 "lat": null,
542 "lon": null
543 }
544 },
545 {
546 "type": "detail-calendar",
547 "name": "event-calendar",
548 "attributes": {
549 "notification_text": "Напомнить о событии",
550 "add_to_calendar_text": "Добавить в календарь",
551 "no_event_text": "На выбранную дату нет событий,\n ближайшее событие"
552 },
553 "actions": {
554 "load": "load-event-schedule"
555 }
556 },
557 {
558 "type": "detail-horizontal-list",
559 "name": "event-places",
560 "item": "detail-place-item",
561 "attributes": {
562 "item_width": 260,
563 "item_height": 120,
564 "overlap_delta": -10,
565 "title": "Venues nearby",
566 "allow_location": true
567 },
568 }
569 ],
570 "actions": [
571 {
572 "name": "load-cities",
573 "type": "load",
574 "request": {
575 "url": "https://at.technolab.com.ru/v1/screens/cities",
576 "headers": {
577 "Content-Type": "application/x-www-form-urlencoded",
578 "x-app-token": "{{shared.x-app-token}}",
579 "X-User-Latitude": "{{action.lat}}",
580 "X-User-Longitude": "{{action.lon}}",
581 "Authorization": "{{shared.Authorization}}"
582 },
583 "type": "get",
584 "parameters": {
585 "page": 1,
586 "pageSize": 9999
587 }
588 },
589 "response": {
590 "deserializer": "cities-deserializer",
591 "deserializers": [
592 {
593 "name": "cities-deserializer",
594 "type": "object",
595 "map": {
596 "objects": {
597 "city.{{iterator#0}}.id": "{{data.items.{{iterator#0}}.id}}",
598 "city.{{iterator#0}}.title": "{{data.items.{{iterator#0}}.title}}",
599 "city.{{iterator#0}}.image_path": "{{data.items.{{iterator#0}}.images.0.source.image}}",
600 "city.{{iterator#0}}.image_color": "{{data.items.{{iterator#0}}.images.0.source.avg}}"
601 }
602 }
603 }
604 ]
605 }
606 },
607 {
608 "name": "load-events-detail",
609 "type": "load",
610 "request": {
611 "url": "https://at.technolab.com.ru/v1/screens/events",
612 "headers": {
613 "Content-Type": "application/x-www-form-urlencoded",
614 "x-app-token": "{{shared.x-app-token}}",
615 "Authorization": "{{shared.Authorization}}"
616 },
617 "type": "get",
618 "parameters": {
619 "query[dictionary_data.place]": "{{action.id}}",
620 "language": "{{shared.language}}"
621 }
622 },
623 "response": {
624 "deserializer": "events-detail-list-deserializer",
625 "deserializers": [
626 {
627 "name": "events-detail-list-deserializer",
628 "type": "object",
629 "map": {
630 "target": "detail-place-events",
631 "objects": {
632 "detail-event-item.{{iterator#0}}.is_favorite": "{{data.items.{{iterator#0}}.is_favorite}}",
633 "detail-event-item.{{iterator#0}}.title": "{{data.items.{{iterator#0}}.title}}",
634 "detail-event-item.{{iterator#0}}.image_path": "{{data.items.{{iterator#0}}.images.0.image}}",
635 "detail-event-item.{{iterator#0}}.id": "{{data.items.{{iterator#0}}.id}}"
636 }
637 }
638 }
639 ]
640 }
641 },
642 {
643 "name": "load-route-detail",
644 "type": "load",
645 "request": {
646 "url": "https://at.technolab.com.ru/v1/screens/route",
647 "headers": {
648 "Content-Type": "application/x-www-form-urlencoded",
649 "x-app-token": "{{shared.x-app-token}}",
650 "Authorization": "{{shared.Authorization}}"
651 },
652 "type": "get",
653 "parameters": {
654 "id": "{{action.id}}",
655 "language": "{{shared.language}}"
656 }
657 },
658 "response": {
659 "deserializer": "load-route-detail-deserializer",
660 "deserializers": [
661 {
662 "name": "load-route-detail-deserializer",
663 "type": "object",
664 "parameters": {
665 "object_name": "item"
666 },
667 "map": {
668 "target": "route-detail",
669 "objects": {
670 "id": "{{data.item.id}}",
671 "entity_type": "routes",
672 "is_favorite": "{{data.item.is_favorite}}",
673 "title": "{{data.item.title}}",
674 "images.{{iterator#0}}.image": "{{data.item.images.{{iterator#0}}.image}}",
675 "route-info.text": "{{data.item.description}}",
676 "route-places.detail-route-places.{{iterator#0}}.title": "{{data.item.route.{{iterator#0}}.title}}",
677 "route-places.detail-route-places.{{iterator#0}}.id": "{{data.item.route.{{iterator#0}}.id}}",
678 "route-places.detail-route-places.{{iterator#0}}.subtitle": "{{data.item.route.{{iterator#0}}.address}}",
679 "route-places.detail-route-places.{{iterator#0}}.route_description": "{{data.item.route.{{iterator#0}}.route_description}}",
680 "route-places.detail-route-places.{{iterator#0}}.is_favorite": "{{data.item.route.{{iterator#0}}.is_favorite}}",
681 "route-places.detail-route-places.{{iterator#0}}.image_path": "{{data.item.route.{{iterator#0}}.images.0.image}}",
682 "route-map.route-locations.{{iterator#0}}.lat": "{{data.item.route.{{iterator#0}}.coordinates.lat}}",
683 "route-map.route-locations.{{iterator#0}}.lng": "{{data.item.route.{{iterator#0}}.coordinates.lng}}"
684 }
685 }
686 }
687 ]
688 }
689 },
690 {
691 "name": "load-place-detail",
692 "type": "load",
693 "request": {
694 "url": "https://at.technolab.com.ru/v1/screens/place",
695 "headers": {
696 "Content-Type": "application/x-www-form-urlencoded",
697 "x-app-token": "{{shared.x-app-token}}",
698 "Authorization": "{{shared.Authorization}}"
699 },
700 "type": "get",
701 "parameters": {
702 "id": "{{action.id}}",
703 "language": "{{shared.language}}"
704 }
705 },
706 "response": {
707 "deserializer": "load-place-detail-deserializer",
708 "deserializers": [
709 {
710 "name": "load-place-detail-deserializer",
711 "type": "object",
712 "parameters": {
713 "object_name": "item"
714 },
715 "map": {
716 "target": "place-detail",
717 "objects": {
718 "id": "{{data.item.id}}",
719 "entity_type": "places",
720 "is_favorite": "{{data.item.is_favorite}}",
721 "title": "{{data.item.title}}",
722 "images.{{iterator#0}}.image": "{{data.item.images.{{iterator#0}}.image}}",
723 "subtitle": "{{data.place_types.0.title}}",
724 "place-info.text": "{{data.item.description}}",
725 "place-location.lat": "{{data.item.coordinates.lat}}",
726 "place-location.lon": "{{data.item.coordinates.lng}}",
727 "place-location.address": "{{data.item.address}}",
728 "place-tags.items.{{iterator#0}}": "{{data.tags.{{iterator#0}}.title}}",
729 "bottom_button_url": "https://google.com"
730 }
731 }
732 }
733 ]
734 }
735 },
736 {
737 "name": "load-event-detail",
738 "type": "load",
739 "request": {
740 "url": "https://at.technolab.com.ru/v1/screens/event",
741 "headers": {
742 "Content-Type": "application/x-www-form-urlencoded",
743 "x-app-token": "{{shared.x-app-token}}",
744 "Authorization": "{{shared.Authorization}}"
745 },
746 "type": "get",
747 "parameters": {
748 "id": "{{action.id}}",
749 "language": "{{shared.language}}"
750 }
751 },
752 "response": {
753 "deserializer": "load-event-detail-deserializer",
754 "deserializers": [
755 {
756 "name": "load-event-detail-deserializer",
757 "type": "object",
758 "parameters": {
759 "object_name": "item"
760 },
761 "map": {
762 "target": "event-detail",
763 "objects": {
764 "id": "{{data.item.id}}",
765 "entity_type": "events",
766 "is_favorite": "{{data.item.is_favorite}}",
767 "title": "{{data.item.title}}",
768 "images.{{iterator#0}}.image": "{{data.item.images.{{iterator#0}}.image}}",
769 "subtitle": "{{data.event_types.0.title}}",
770 "badge": "{{data.item.badge}}",
771 "event-info.text": "{{data.item.description}}",
772 "event-map.lat": "{{data.places.0.coordinates.lat}}",
773 "event-map.lon": "{{data.places.0.coordinates.lng}}",
774 "event-map.address": "{{data.places.0.address}}",
775 "bottom_button_url": "{{data.item.booking_link}}",
776 "event-places.detail-place-item.{{iterator#0}}.title": "{{data.places.{{iterator#0}}.title}}",
777 "event-places.detail-place-item.{{iterator#0}}.image_path": "{{data.places.{{iterator#0}}.images.0.image}}",
778 "event-places.detail-place-item.{{iterator#0}}.id": "{{data.places.{{iterator#0}}.id}}",
779 "event-places.detail-place-item.{{iterator#0}}.lat": "{{data.places.{{iterator#0}}.coordinates.lat}}",
780 "event-places.detail-place-item.{{iterator#0}}.lon": "{{data.places.{{iterator#0}}.coordinates.lng}}",
781 "bottom_button_title": "{{data.item.button_title}}"
782 }
783 }
784 }
785 ]
786 }
787 },
788 {
789 "name": "load-event-schedule",
790 "type": "load",
791 "request": {
792 "url": "https://at.technolab.com.ru/v1/schedule",
793 "headers":
794 {
795 "Content-Type": "application/x-www-form-urlencoded",
796 "x-app-token": "fd31f6e0-ddd7-44c4-bac2-3095a47ff1eb"
797 },
798 "type": "get",
799 "parameters":
800 {
801 "id": "{{action.id}}"
802 }
803 },
804 "response": {
805 "deserializer": "load-event-schedule-deserializer",
806 "deserializers": [
807 {
808 "name": "load-event-schedule-deserializer",
809 "type": "object",
810 "map": {
811 "objects": {
812 "schedule.{{iterator#0}}.main_date": "{{data.{{iterator#0}}.main_date}}",
813 "schedule.{{iterator#0}}.events.{{iterator#1}}.start": "{{data.{{iterator#0}}.events.{{iterator#1}}.start}}",
814 "schedule.{{iterator#0}}.events.{{iterator#1}}.end": "{{data.{{iterator#0}}.events.{{iterator#1}}.end}}",
815 "schedule.{{iterator#0}}.events.{{iterator#1}}.description": "{{data.{{iterator#0}}.events.{{iterator#1}}.description}}"
816 }
817 }
818 }
819 ]
820 }
821 },
822 {
823 "name": "load-restaurant-detail",
824 "type": "load",
825 "request": {
826 "url": "https://at.technolab.com.ru/v1/screens/restaurant",
827 "headers": {
828 "Content-Type": "application/x-www-form-urlencoded",
829 "x-app-token": "{{shared.x-app-token}}",
830 "Authorization": "{{shared.Authorization}}"
831 },
832 "type": "get",
833 "parameters": {
834 "id": "{{action.id}}",
835 "language": "{{shared.language}}"
836 }
837 },
838 "response": {
839 "deserializer": "load-restaurant-detail-deserializer",
840 "deserializers": [
841 {
842 "name": "load-restaurant-detail-deserializer",
843 "type": "object",
844 "parameters": {
845 "object_name": "item"
846 },
847 "map": {
848 "target": "restaurant-detail",
849 "objects": {
850 "id": "{{data.item.id}}",
851 "entity_type": "restaurants",
852 "is_favorite": "{{data.item.is_favorite}}",
853 "title": "{{data.item.title}}",
854 "images.{{iterator#0}}.image": "{{data.item.images.{{iterator#0}}.image}}",
855 "restaurant-info.text": "{{data.item.description}}",
856 "restaurant-map.lat": "{{data.item.coordinates.lat}}",
857 "restaurant-map.lon": "{{data.item.coordinates.lng}}",
858 "restaurant-map.address": "{{data.item.address}}"
859 }
860 }
861 }
862 ]
863 }
864 },
865 {
866 "name": "search-restaurants",
867 "type": "load",
868 "request": {
869 "url": "https://at.technolab.com.ru/v1/screens/restaurants",
870 "headers": {
871 "Content-Type": "application/x-www-form-urlencoded",
872 "x-app-token": "{{shared.x-app-token}}",
873 "Authorization": "{{shared.Authorization}}"
874 },
875 "type": "get",
876 "parameters": {
877 "query[dictionary_data.title][$regex]]": "{{shared.search_query}}",
878 "language": "{{shared.language}}"
879 }
880 },
881 "response": {
882 "deserializer": "load-restaurants-detail-deserializer",
883 "deserializers": [
884 {
885 "name": "load-restaurants-detail-deserializer",
886 "type": "object",
887 "parameters": {
888 "object_name": "item"
889 },
890 "map": {
891 "target": "place-restaurants",
892 "objects": {
893 "detail-restaurant-item.{{iterator#0}}.title": "{{data.items.{{iterator#0}}.title}}",
894 "detail-restaurant-item.{{iterator#0}}.image_path": "{{data.items.{{iterator#0}}.images.0.image}}",
895 "detail-restaurant-item.{{iterator#0}}.id": "{{data.items.{{iterator#0}}.id}}",
896 "detail-restaurant-item.{{iterator#0}}.lat": "{{data.items.{{iterator#0}}.coordinates.lat}}",
897 "detail-restaurant-item.{{iterator#0}}.lon": "{{data.items.{{iterator#0}}.coordinates.lng}}"
898 }
899 }
900 }
901 ]
902 }
903 },
904 {
905 "name": "search-events",
906 "type": "load",
907 "request": {
908 "url": "https://at.technolab.com.ru/v1/screens/events",
909 "headers": {
910 "Content-Type": "application/x-www-form-urlencoded",
911 "x-app-token": "{{shared.x-app-token}}",
912 "Authorization": "{{shared.Authorization}}"
913 },
914 "type": "get",
915 "parameters": {
916 "query[dictionary_data.title][$regex]]": "{{shared.search_query}}",
917 "language": "{{shared.language}}"
918 }
919 },
920 "response": {
921 "deserializer": "load-events-detail-deserializer",
922 "deserializers": [
923 {
924 "name": "load-events-detail-deserializer",
925 "type": "object",
926 "parameters": {
927 "object_name": "item"
928 },
929 "map": {
930 "target": "place-events",
931 "objects": {
932 "detail-event-item.{{iterator#0}}.title": "{{data.items.{{iterator#0}}.title}}",
933 "detail-event-item.{{iterator#0}}.image_path": "{{data.items.{{iterator#0}}.images.0.image}}",
934 "detail-event-item.{{iterator#0}}.id": "{{data.items.{{iterator#0}}.id}}",
935 "detail-event-item.{{iterator#0}}.lat": "{{data.items.{{iterator#0}}.coordinates.lat}}",
936 "detail-event-item.{{iterator#0}}.lon": "{{data.items.{{iterator#0}}.coordinates.lng}}"
937 }
938 }
939 }
940 ]
941 }
942 },
943 {
944 "name": "search-places",
945 "type": "load",
946 "request": {
947 "url": "https://at.technolab.com.ru/v1/screens/places",
948 "headers": {
949 "Content-Type": "application/x-www-form-urlencoded",
950 "x-app-token": "{{shared.x-app-token}}",
951 "Authorization": "{{shared.Authorization}}"
952 },
953 "type": "get",
954 "parameters": {
955 "query[dictionary_data.title][$regex]]": "{{shared.search_query}}",
956 "language": "{{shared.language}}"
957 }
958 },
959 "response": {
960 "deserializer": "load-places-detail-deserializer",
961 "deserializers": [
962 {
963 "name": "load-places-detail-deserializer",
964 "type": "object",
965 "parameters": {
966 "object_name": "item"
967 },
968 "map": {
969 "objects": {
970 "detail-place-item.{{iterator#0}}.title": "{{data.items.{{iterator#0}}.title}}",
971 "detail-place-item.{{iterator#0}}.image_path": "{{data.items.{{iterator#0}}.images.0.image}}",
972 "detail-place-item.{{iterator#0}}.id": "{{data.items.{{iterator#0}}.id}}",
973 "detail-place-item.{{iterator#0}}.lat": "{{data.items.{{iterator#0}}.coordinates.lat}}",
974 "detail-place-item.{{iterator#0}}.lon": "{{data.items.{{iterator#0}}.coordinates.lng}}"
975 }
976 }
977 }
978 ]
979 }
980 },
981 {
982 "name": "load-restaurants-detail",
983 "type": "load",
984 "request": {
985 "url": "https://at.technolab.com.ru/v1/screens/restaurants",
986 "headers": {
987 "Content-Type": "application/x-www-form-urlencoded",
988 "x-app-token": "{{shared.x-app-token}}",
989 "Authorization": "{{shared.Authorization}}"
990 },
991 "type": "get",
992 "parameters": {
993 "query[dictionary_data.restaurants]": "{{action.id}}",
994 "language": "{{shared.language}}"
995 }
996 },
997 "response": {
998 "deserializer": "load-restaurants-detail-deserializer",
999 "deserializers": [
1000 {
1001 "name": "load-restaurants-detail-deserializer",
1002 "type": "object",
1003 "parameters": {
1004 "object_name": "item"
1005 },
1006 "map": {
1007 "target": "place-restaurants",
1008 "objects": {
1009 "detail-restaurant-item.{{iterator#0}}.title": "{{data.items.{{iterator#0}}.title}}",
1010 "detail-restaurant-item.{{iterator#0}}.image_path": "{{data.items.{{iterator#0}}.images.0.image}}",
1011 "detail-restaurant-item.{{iterator#0}}.id": "{{data.items.{{iterator#0}}.id}}",
1012 "detail-restaurant-item.{{iterator#0}}.lat": "{{data.items.{{iterator#0}}.coordinates.lat}}",
1013 "detail-restaurant-item.{{iterator#0}}.lon": "{{data.items.{{iterator#0}}.coordinates.lng}}"
1014 }
1015 }
1016 }
1017 ]
1018 }
1019 },
1020 {
1021 "name": "toggle-detail-favorite",
1022 "type": "load",
1023 "request": {
1024 "url": "https://at.technolab.com.ru/v1/favorites",
1025 "headers": {
1026 "Content-Type": "application/json",
1027 "x-app-token": "{{shared.x-app-token}}",
1028 "Authorization": "{{shared.Authorization}}"
1029 },
1030 "type": "{{action.method_type}}",
1031 "parameters": {
1032 "type": "{{sender.entity_type}}",
1033 "resource": "{{sender.id}}",
1034 "language": "{{shared.language}}"
1035 }
1036 },
1037 "response": {
1038 "deserializer": "favorite-detail-deserializer",
1039 "deserializers": [
1040 {
1041 "name": "favorite-detail-deserializer",
1042 "type": "object",
1043 "parameters": {
1044 "object_name": "item"
1045 },
1046 "map": {
1047 "objects": {
1048 "is_favorite": "{{action.target_state}}"
1049 }
1050 }
1051 }
1052 ]
1053 }
1054 },
1055 {
1056 "name": "tap-city-open-home",
1057 "type": "open-module",
1058 "module_parameters": {
1059 "type": "navigator-home",
1060 "name": "navigator-home",
1061 "attributes.title": "{{sender.title}}"
1062 },
1063 "transition_parameters": {
1064 "transition_type": "push"
1065 }
1066 },
1067 {
1068 "name": "tap-home-card-open-places",
1069 "type": "open-module",
1070 "module_parameters": {
1071 "type": "list",
1072 "name": "places-list"
1073 },
1074 "transition_parameters": {
1075 "transition_type": "push"
1076 }
1077 },
1078 {
1079 "name": "tap-home-card-open-events",
1080 "type": "open-module",
1081 "module_parameters": {
1082 "type": "list",
1083 "name": "events-list"
1084 },
1085 "transition_parameters": {
1086 "transition_type": "push"
1087 }
1088 },
1089 {
1090 "name": "tap-route-card-open-detail",
1091 "type": "open-module",
1092 "module_parameters": {
1093 "type": "detail",
1094 "name": "route-detail",
1095 "attributes.id": "{{sender.id}}"
1096 },
1097 "transition_parameters": {
1098 "transition_type": "modal"
1099 }
1100 },
1101 {
1102 "name": "tap-place-card-open-detail",
1103 "type": "open-module",
1104 "module_parameters": {
1105 "type": "detail",
1106 "name": "place-detail",
1107 "attributes.id": "{{sender.id}}"
1108 },
1109 "transition_parameters": {
1110 "transition_type": "modal"
1111 }
1112 },
1113 {
1114 "name": "tap-restaurant-card-open-detail",
1115 "type": "open-module",
1116 "module_parameters": {
1117 "type": "detail",
1118 "name": "restaurant-detail",
1119 "attributes.id": "{{sender.id}}"
1120 },
1121 "transition_parameters": {
1122 "transition_type": "modal"
1123 }
1124 },
1125 {
1126 "name": "tap-event-card-open-detail",
1127 "type": "open-module",
1128 "module_parameters": {
1129 "type": "detail",
1130 "name": "event-detail",
1131 "attributes.id": "{{sender.id}}"
1132 },
1133 "transition_parameters": {
1134 "transition_type": "modal"
1135 }
1136 },
1137 {
1138 "name": "tap-restaurant-card-open-detail",
1139 "type": "open-module",
1140 "module_parameters": {
1141 "type": "detail",
1142 "name": "restaurant-detail",
1143 "attributes.id": "{{sender.id}}"
1144 },
1145 "transition_parameters": {
1146 "transition_type": "modal"
1147 }
1148 },
1149 {
1150 "name": "tap-event-card-open-detail",
1151 "type": "open-module",
1152 "module_parameters": {
1153 "type": "detail",
1154 "name": "event-detail",
1155 "attributes.id": "{{sender.id}}"
1156 },
1157 "transition_parameters": {
1158 "transition_type": "modal"
1159 }
1160 },
1161 {
1162 "name": "tap-section-card-open-section",
1163 "type": "open-module",
1164 "module_parameters": {
1165 "type": "list",
1166 "name": "places-list"
1167 },
1168 "transition_parameters": {
1169 "transition_type": "modal"
1170 }
1171 },
1172 {
1173 "name": "tap-section-card-open-url",
1174 "type": "open-module",
1175 "module_parameters": {
1176 "type": "webpage",
1177 "name": "webpage",
1178 "attributes.url": "{{sender.tap_url}}"
1179 },
1180 "transition_parameters": {
1181 "transition_type": "modal"
1182 }
1183 },
1184 {
1185 "name": "load-events-page",
1186 "type": "load",
1187 "request": {
1188 "url": "https://at.technolab.com.ru/v1/screens/events",
1189 "headers": {
1190 "Content-Type": "application/x-www-form-urlencoded",
1191 "x-app-token": "{{shared.x-app-token}}",
1192 "Authorization": "{{shared.Authorization}}",
1193 "X-User-Latitude": "{{action.lat}}",
1194 "X-User-Longitude": "{{action.lon}}"
1195 },
1196 "type": "get",
1197 "parameters": {
1198 "language": "{{shared.language}}",
1199 "page": "{{action.page}}",
1200 "query[dictionary_data.city]": "{{shared.city_id}}"
1201 }
1202 },
1203 "response": {
1204 "deserializer": "events-named-list-deserializer",
1205 "deserializers": [
1206 {
1207 "name": "events-named-list-deserializer",
1208 "type": "object",
1209 "map": {
1210 "target": "events-list",
1211 "objects": {
1212 "event-card.{{iterator#0}}.title": "{{data.items.{{iterator#0}}.title}}",
1213 "event-card.{{iterator#0}}.image_path": "{{data.items.{{iterator#0}}.images.0.image}}",
1214 "event-card.{{iterator#0}}.id": "{{data.items.{{iterator#0}}.id}}",
1215 "event-card.{{iterator#0}}.is_favorite": "{{data.items.{{iterator#0}}.is_favorite}}",
1216 "event-card.{{iterator#0}}.lat": "{{data.items.{{iterator#0}}.coordinates.lat}}",
1217 "event-card.{{iterator#0}}.lon": "{{data.items.{{iterator#0}}.coordinates.lng}}",
1218 "event-card.{{iterator#0}}.start_date": "{{data.items.{{iterator#0}}.small_schedule.0}}",
1219 "event-card.{{iterator#0}}.end_date": "{{data.items.{{iterator#0}}.small_schedule.1}}",
1220 "event-card.{{iterator#0}}.badge": "{{data.items.{{iterator#0}}.badge}}"
1221 }
1222 }
1223 }
1224 ]
1225 }
1226 },
1227 {
1228 "name": "load-routes-page",
1229 "type": "load",
1230 "request": {
1231 "url": "https://at.technolab.com.ru/v1/screens/routes",
1232 "headers": {
1233 "Content-Type": "application/json",
1234 "x-app-token": "{{shared.x-app-token}}",
1235 "Authorization": "{{shared.Authorization}}",
1236 "X-User-Latitude": "{{action.lat}}",
1237 "X-User-Longitude": "{{action.lon}}"
1238 },
1239 "type": "get",
1240 "parameters": {
1241 "query[dictionary_data.city]": "{{shared.city_id}}",
1242 "language": "{{shared.language}}",
1243 "page": "{{action.page}}"
1244 }
1245 },
1246 "response": {
1247 "deserializer": "routes-named-list-deserializer",
1248 "deserializers": [
1249 {
1250 "name": "routes-named-list-deserializer",
1251 "type": "object",
1252 "map": {
1253 "target": "routes-list",
1254 "objects": {
1255 "route-card.{{iterator#0}}.title": "{{data.items.{{iterator#0}}.title}}",
1256 "route-card.{{iterator#0}}.image_path": "{{data.items.{{iterator#0}}.images.0.image}}",
1257 "route-card.{{iterator#0}}.id": "{{data.items.{{iterator#0}}.id}}",
1258 "route-card.{{iterator#0}}.is_favorite": "{{data.items.{{iterator#0}}.is_favorite}}",
1259 "route-card.{{iterator#0}}.lat": "{{data.items.{{iterator#0}}.coordinates.lat}}",
1260 "route-card.{{iterator#0}}.lon": "{{data.items.{{iterator#0}}.coordinates.lng}}"
1261 }
1262 }
1263 }
1264 ]
1265 }
1266 },
1267 {
1268 "name": "load-places-page",
1269 "type": "load",
1270 "request": {
1271 "url": "https://at.technolab.com.ru/v1/screens/places",
1272 "headers": {
1273 "Content-Type": "application/x-www-form-urlencoded",
1274 "x-app-token": "{{shared.x-app-token}}",
1275 "Authorization": "{{shared.Authorization}}",
1276 "X-User-Latitude": "{{action.lat}}",
1277 "X-User-Longitude": "{{action.lon}}"
1278 },
1279 "type": "get",
1280 "parameters": {
1281 "query[dictionary_data.city]": "{{shared.city_id}}",
1282 "language": "{{shared.language}}",
1283 "page": "{{action.page}}"
1284 }
1285 },
1286 "response": {
1287 "deserializer": "places-named-list-deserializer",
1288 "deserializers": [
1289 {
1290 "name": "places-named-list-deserializer",
1291 "type": "object",
1292 "map": {
1293 "target": "places-list",
1294 "objects": {
1295 "place-card.{{iterator#0}}.subtitle": "{{data.items.{{iterator#0}}.address}}",
1296 "place-card.{{iterator#0}}.title": "{{data.items.{{iterator#0}}.title}}",
1297 "place-card.{{iterator#0}}.image_path": "{{data.items.{{iterator#0}}.images.0.image}}",
1298 "place-card.{{iterator#0}}.id": "{{data.items.{{iterator#0}}.id}}",
1299 "place-card.{{iterator#0}}.is_favorite": "{{data.items.{{iterator#0}}.is_favorite}}",
1300 "place-card.{{iterator#0}}.lat": "{{data.items.{{iterator#0}}.coordinates.lat}}",
1301 "place-card.{{iterator#0}}.lon": "{{data.items.{{iterator#0}}.coordinates.lng}}"
1302 }
1303 }
1304 }
1305 ]
1306 }
1307 },
1308 {
1309 "name": "share-route-detail",
1310 "type": "share",
1311 "sharing_parameters": {
1312 "type": "branch_object",
1313 "title": "{{sender.title}}",
1314 "image_path": "{{sender.image_path}}"
1315 },
1316 "module_parameters": {
1317 "type": "detail",
1318 "name": "route-detail",
1319 "attributes.id": "{{sender.id}}"
1320 }
1321 },
1322 {
1323 "name": "share-place-detail",
1324 "type": "share",
1325 "sharing_parameters": {
1326 "type": "branch_object",
1327 "title": "{{sender.title}}",
1328 "image_path": "{{sender.image_path}}"
1329 },
1330 "module_parameters": {
1331 "type": "detail",
1332 "name": "place-detail",
1333 "attributes.id": "{{sender.id}}"
1334 }
1335 },
1336 {
1337 "name": "share-restaurant-detail",
1338 "type": "share",
1339 "sharing_parameters": {
1340 "type": "branch_object",
1341 "title": "{{sender.title}}",
1342 "image_path": "{{sender.image_path}}"
1343 },
1344 "module_parameters": {
1345 "type": "detail",
1346 "name": "restaurant-detail",
1347 "attributes.id": "{{sender.id}}"
1348 }
1349 },
1350 {
1351 "name": "share-event-detail",
1352 "type": "share",
1353 "sharing_parameters": {
1354 "type": "branch_object",
1355 "title": "{{sender.title}}",
1356 "image_path": "{{sender.image_path}}"
1357 },
1358 "module_parameters": {
1359 "type": "detail",
1360 "name": "event-detail",
1361 "attributes.id": "{{sender.id}}"
1362 }
1363 },
1364 {
1365 "name": "share-restaurant-detail",
1366 "type": "share",
1367 "sharing_parameters": {
1368 "type": "branch_object",
1369 "title": "{{sender.title}}",
1370 "image_path": "{{sender.image_path}}"
1371 },
1372 "module_parameters": {
1373 "type": "detail",
1374 "name": "restaurant-detail",
1375 "attributes.id": "{{sender.id}}"
1376 }
1377 },
1378 {
1379 "name": "share_url",
1380 "type": "share",
1381 "sharing_parameters": {
1382 "type": "url",
1383 "attributes.url": "{{sender.share_url}}"
1384 },
1385 "module_parameters": {
1386 "type": "url",
1387 "attributes.url": "{{sender.share_url}}"
1388 }
1389 },
1390 {
1391 "name": "load-place-taxi",
1392 "type": "load",
1393 "request": {
1394 "url": "https://at.technolab.com.ru/v1/taxi",
1395 "headers":
1396 {
1397 "Content-Type": "application/x-www-form-urlencoded",
1398 "x-app-token": "fd31f6e0-ddd7-44c4-bac2-3095a47ff1eb"
1399 },
1400 "type": "get",
1401 "parameters":
1402 {
1403 "start_lng": "{{action.start_lng}}",
1404 "start_lat": "{{action.start_lat}}",
1405 "end_lng": "{{action.end_lng}}",
1406 "end_lat": "{{action.end_lat}}"
1407 }
1408 },
1409 "response": {
1410 "deserializer": "load-place-taxi-deserializer",
1411 "deserializers": [
1412 {
1413 "name": "load-place-taxi-deserializer",
1414 "type": "object",
1415 "map": {
1416 "objects": {
1417 "partner": "{{data.partners.0.partner}}",
1418 "price": "{{data.partners.0.price}}",
1419 "url": "{{data.partners.0.url}}"
1420 }
1421 }
1422 }
1423 ]
1424 }
1425 },
1426 {
1427 "name": "load-route-polyline",
1428 "type": "load",
1429 "request": {
1430 "url": "https://maps.googleapis.com/maps/api/directions/json",
1431 "headers": {
1432 "Content-Type": "application/x-www-form-urlencoded",
1433 "x-app-token": "{{shared.x-app-token}}",
1434 "Authorization": "{{shared.Authorization}}"
1435 },
1436 "type": "get",
1437 "parameters": {
1438 "api": 1,
1439 "mode": "walking",
1440 "key": "AIzaSyDqQ2BeQLHna2MOcJu5l0r-vT0hfEut-JA",
1441 "origin": "{{action.origin}}",
1442 "destination": "{{action.destination}}",
1443 "waypoints": "{{action.waypoints}}"
1444 }
1445 },
1446 "response": {
1447 "deserializer": "load-route-polyline-deserializer",
1448 "deserializers": [
1449 {
1450 "name": "load-route-polyline-deserializer",
1451 "type": "object",
1452 "map": {
1453 "objects": {
1454 "polyline": "{{data.routes.0.overview_polyline.points}}"
1455 }
1456 }
1457 }
1458 ]
1459 }
1460 }
1461 ]
1462}