Skip to content

Commit a8e6c57

Browse files
committed
update schemas
1 parent 1bf71ab commit a8e6c57

16 files changed

Lines changed: 5933 additions & 1993 deletions

tests/endpoints/__snapshots__/ClassAdvertising.banner.main.json

Lines changed: 238 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"content": {
33
"items": [
44
{
5-
"id": 18603,
6-
"slug": "snova-v-skolu-w35-36-sajt",
5+
"id": 18819,
6+
"slug": "hity-perekrestka-w37-sajt",
77
"title": null,
88
"action": "blocks",
99
"color": {
@@ -18,29 +18,29 @@
1818
"images": [
1919
{
2020
"image": {
21-
"id": 2487556,
22-
"originName": "Подборка размер 816х452яыа.png",
21+
"id": 2505633,
22+
"originName": "816x452szgt.png",
2323
"fileType": "image",
24-
"fileSize": 563929,
24+
"fileSize": 479611,
2525
"width": 816,
2626
"height": 452,
27-
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/97/ea/f0a7211f00e3a5cd0400f34e58f1.png",
27+
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/4c/d6/d6934c2f58009xdfa476b6a13ffa.png",
2828
"publicUrl": null,
29-
"uuid": "1ebd3fe8-c5e9-43b6-aa18-eb2f3eb6a099"
29+
"uuid": "936f48d4-4d8f-4a7f-8e9c-2b8222ea6fd3"
3030
},
3131
"scales": [
3232
{
3333
"scaleName": "default",
3434
"image": {
35-
"id": 2487556,
36-
"originName": "Подборка размер 816х452яыа.png",
35+
"id": 2505633,
36+
"originName": "816x452szgt.png",
3737
"fileType": "image",
38-
"fileSize": 563929,
38+
"fileSize": 479611,
3939
"width": 816,
4040
"height": 452,
41-
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/97/ea/f0a7211f00e3a5cd0400f34e58f1.png",
41+
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/4c/d6/d6934c2f58009xdfa476b6a13ffa.png",
4242
"publicUrl": null,
43-
"uuid": "1ebd3fe8-c5e9-43b6-aa18-eb2f3eb6a099"
43+
"uuid": "936f48d4-4d8f-4a7f-8e9c-2b8222ea6fd3"
4444
}
4545
}
4646
],
@@ -60,7 +60,75 @@
6060
{
6161
"name": "bannerName",
6262
"type": "text",
63-
"value": "Снова в школу W35-36 сайт"
63+
"value": "Хиты Перекрестка w37 сайт"
64+
}
65+
],
66+
"positions": [
67+
{
68+
"key": "main_web_banners",
69+
"title": "WEB_Главные в слайдере"
70+
}
71+
],
72+
"key": null,
73+
"deepLink": null
74+
},
75+
{
76+
"id": 18516,
77+
"slug": "rozygrys-bts",
78+
"title": null,
79+
"action": "link",
80+
"color": {
81+
"red": 0,
82+
"green": 0,
83+
"blue": 0,
84+
"alpha": 0
85+
},
86+
"link": "https://promo.perekrestok.ru?utm_source=slider",
87+
"webViewType": "fullScreen",
88+
"textForImage": null,
89+
"images": [
90+
{
91+
"image": {
92+
"id": 2474159,
93+
"originName": "816x452.png",
94+
"fileType": "image",
95+
"fileSize": 3729449,
96+
"width": 2448,
97+
"height": 1356,
98+
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/00/ec/55da56f0e02198b84e10c12aa43d.png",
99+
"publicUrl": null,
100+
"uuid": "52d0590d-a89c-4b3a-9860-5ec78d4fee32"
101+
},
102+
"scales": [
103+
{
104+
"scaleName": "default",
105+
"image": {
106+
"id": 2474159,
107+
"originName": "816x452.png",
108+
"fileType": "image",
109+
"fileSize": 3729449,
110+
"width": 2448,
111+
"height": 1356,
112+
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/00/ec/55da56f0e02198b84e10c12aa43d.png",
113+
"publicUrl": null,
114+
"uuid": "52d0590d-a89c-4b3a-9860-5ec78d4fee32"
115+
}
116+
}
117+
],
118+
"type": "main",
119+
"advToken": null
120+
}
121+
],
122+
"place": "main_web_banners",
123+
"leftSubtitle": null,
124+
"rightSubtitle": null,
125+
"content": null,
126+
"blockTypes": [],
127+
"analyticsInfo": [
128+
{
129+
"name": "bannerName",
130+
"type": "text",
131+
"value": "Розыгрыш БТС"
64132
}
65133
],
66134
"positions": [
@@ -144,8 +212,8 @@
144212
"deepLink": null
145213
},
146214
{
147-
"id": 18727,
148-
"slug": "frov-36-tomaty",
215+
"id": 18834,
216+
"slug": "frov-37-mango",
149217
"title": null,
150218
"action": "blocks",
151219
"color": {
@@ -160,29 +228,172 @@
160228
"images": [
161229
{
162230
"image": {
163-
"id": 2496703,
164-
"originName": "Подборка размер 816х452 (2).png",
231+
"id": 2509367,
232+
"originName": "Подборка размер 816х452-1.png",
165233
"fileType": "image",
166-
"fileSize": 8856727,
234+
"fileSize": 2248970,
235+
"width": 1632,
236+
"height": 904,
237+
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/25/5b/eddfc56c6effa5b93edab06253a7.png",
238+
"publicUrl": null,
239+
"uuid": "98900b34-4fb3-4e4e-b1c0-6e0f926f652b"
240+
},
241+
"scales": [
242+
{
243+
"scaleName": "default",
244+
"image": {
245+
"id": 2509367,
246+
"originName": "Подборка размер 816х452-1.png",
247+
"fileType": "image",
248+
"fileSize": 2248970,
249+
"width": 1632,
250+
"height": 904,
251+
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/25/5b/eddfc56c6effa5b93edab06253a7.png",
252+
"publicUrl": null,
253+
"uuid": "98900b34-4fb3-4e4e-b1c0-6e0f926f652b"
254+
}
255+
}
256+
],
257+
"type": "main",
258+
"advToken": null
259+
}
260+
],
261+
"place": "main_web_banners",
262+
"leftSubtitle": null,
263+
"rightSubtitle": null,
264+
"content": null,
265+
"blockTypes": [
266+
"image",
267+
"product_list"
268+
],
269+
"analyticsInfo": [
270+
{
271+
"name": "bannerName",
272+
"type": "text",
273+
"value": "ФРОВ 37 Манго"
274+
}
275+
],
276+
"positions": [
277+
{
278+
"key": "main_web_banners",
279+
"title": "WEB_Главные в слайдере"
280+
}
281+
],
282+
"key": null,
283+
"deepLink": null
284+
},
285+
{
286+
"id": 18425,
287+
"slug": "supercena-w33",
288+
"title": null,
289+
"action": "blocks",
290+
"color": {
291+
"red": 255,
292+
"green": 255,
293+
"blue": 255,
294+
"alpha": 100
295+
},
296+
"link": null,
297+
"webViewType": "default",
298+
"textForImage": null,
299+
"images": [
300+
{
301+
"image": {
302+
"id": 2516290,
303+
"originName": "816х452.png",
304+
"fileType": "image",
305+
"fileSize": 4502456,
306+
"width": 2448,
307+
"height": 1356,
308+
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/b1/89/796ac02df0067b4d984a4c07d7xd.png",
309+
"publicUrl": null,
310+
"uuid": "3e5598ba-34d2-4b8d-bb5a-010594b82c0a"
311+
},
312+
"scales": [
313+
{
314+
"scaleName": "default",
315+
"image": {
316+
"id": 2516290,
317+
"originName": "816х452.png",
318+
"fileType": "image",
319+
"fileSize": 4502456,
320+
"width": 2448,
321+
"height": 1356,
322+
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/b1/89/796ac02df0067b4d984a4c07d7xd.png",
323+
"publicUrl": null,
324+
"uuid": "3e5598ba-34d2-4b8d-bb5a-010594b82c0a"
325+
}
326+
}
327+
],
328+
"type": "main",
329+
"advToken": null
330+
}
331+
],
332+
"place": "main_web_banners",
333+
"leftSubtitle": null,
334+
"rightSubtitle": null,
335+
"content": null,
336+
"blockTypes": [
337+
"image",
338+
"product_list",
339+
"text"
340+
],
341+
"analyticsInfo": [
342+
{
343+
"name": "bannerName",
344+
"type": "text",
345+
"value": "Суперцена W33"
346+
}
347+
],
348+
"positions": [
349+
{
350+
"key": "main_web_banners",
351+
"title": "WEB_Главные в слайдере"
352+
}
353+
],
354+
"key": null,
355+
"deepLink": null
356+
},
357+
{
358+
"id": 18774,
359+
"slug": "sezonnaa-rasprodaza-36",
360+
"title": null,
361+
"action": "blocks",
362+
"color": {
363+
"red": 0,
364+
"green": 0,
365+
"blue": 0,
366+
"alpha": 0
367+
},
368+
"link": null,
369+
"webViewType": "default",
370+
"textForImage": null,
371+
"images": [
372+
{
373+
"image": {
374+
"id": 2501132,
375+
"originName": "Подб13форка размер 816х452.png",
376+
"fileType": "image",
377+
"fileSize": 4013952,
167378
"width": 3264,
168379
"height": 1808,
169-
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/d8/ab/d7ecd0f4eced19e96856b54d958b.png",
380+
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/6f/da/a5e01d6ba987c16b4b214c182e25.png",
170381
"publicUrl": null,
171-
"uuid": "94910136-aa86-4aae-a9aa-131c23606ee2"
382+
"uuid": "9ce430aa-6273-48b3-9b05-8bc351915a9f"
172383
},
173384
"scales": [
174385
{
175386
"scaleName": "default",
176387
"image": {
177-
"id": 2496703,
178-
"originName": "Подборка размер 816х452 (2).png",
388+
"id": 2501132,
389+
"originName": "Подб13форка размер 816х452.png",
179390
"fileType": "image",
180-
"fileSize": 8856727,
391+
"fileSize": 4013952,
181392
"width": 3264,
182393
"height": 1808,
183-
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/d8/ab/d7ecd0f4eced19e96856b54d958b.png",
394+
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/6f/da/a5e01d6ba987c16b4b214c182e25.png",
184395
"publicUrl": null,
185-
"uuid": "94910136-aa86-4aae-a9aa-131c23606ee2"
396+
"uuid": "9ce430aa-6273-48b3-9b05-8bc351915a9f"
186397
}
187398
}
188399
],
@@ -195,14 +406,13 @@
195406
"rightSubtitle": null,
196407
"content": null,
197408
"blockTypes": [
198-
"image",
199-
"product_list"
409+
"image"
200410
],
201411
"analyticsInfo": [
202412
{
203413
"name": "bannerName",
204414
"type": "text",
205-
"value": "ФРОВ 36 Томаты"
415+
"value": "Сезонная распродажа 36"
206416
}
207417
],
208418
"positions": [

tests/endpoints/__snapshots__/ClassAdvertising.banner.main.schema.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@
4646
]
4747
},
4848
"link": {
49-
"type": "null"
49+
"type": [
50+
"null",
51+
"string"
52+
]
5053
},
5154
"webViewType": {
5255
"type": "string"

tests/endpoints/__snapshots__/ClassAdvertising.main_slider.main.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,17 @@
77
"title": "Сьёсс",
88
"fullTitle": null,
99
"hideCategory": null,
10-
"image": null,
10+
"image": {
11+
"id": 2502835,
12+
"originName": "сьёсс.png",
13+
"fileType": "image",
14+
"fileSize": 22783,
15+
"width": 1600,
16+
"height": 1600,
17+
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/c4/70/ab3e89955b016d5fb6273c4420c4.png",
18+
"publicUrl": null,
19+
"uuid": "1c2dbf6a-7a9d-4bf1-8989-e24b708e7b8f"
20+
},
1121
"productBrand": {
1222
"id": 49,
1323
"sliderImage": {

tests/endpoints/__snapshots__/ClassAdvertising.main_slider.main.schema.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,14 @@
5252
"type": "integer"
5353
},
5454
"cropUrlTemplate": {
55+
"format": "uri",
5556
"type": "string"
5657
},
5758
"publicUrl": {
5859
"type": "null"
5960
},
6061
"uuid": {
62+
"format": "uuid",
6163
"type": "string"
6264
}
6365
},

0 commit comments

Comments
 (0)