Skip to content

Commit 1bf71ab

Browse files
committed
new schemas
1 parent 65c1ab2 commit 1bf71ab

52 files changed

Lines changed: 1871 additions & 1529 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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

Lines changed: 40 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@
144144
"deepLink": null
145145
},
146146
{
147-
"id": 18594,
148-
"slug": "frov-35-mango",
147+
"id": 18727,
148+
"slug": "frov-36-tomaty",
149149
"title": null,
150150
"action": "blocks",
151151
"color": {
@@ -160,29 +160,29 @@
160160
"images": [
161161
{
162162
"image": {
163-
"id": 2481930,
164-
"originName": "Подборка размер 816х452 (1).png",
163+
"id": 2496703,
164+
"originName": "Подборка размер 816х452 (2).png",
165165
"fileType": "image",
166-
"fileSize": 9572620,
166+
"fileSize": 8856727,
167167
"width": 3264,
168168
"height": 1808,
169-
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/97/9a/a7a69ffexd41b88c9a22d1fc5e55.png",
169+
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/d8/ab/d7ecd0f4eced19e96856b54d958b.png",
170170
"publicUrl": null,
171-
"uuid": "0dd88086-a246-436b-a12d-be68ee98988e"
171+
"uuid": "94910136-aa86-4aae-a9aa-131c23606ee2"
172172
},
173173
"scales": [
174174
{
175175
"scaleName": "default",
176176
"image": {
177-
"id": 2481930,
178-
"originName": "Подборка размер 816х452 (1).png",
177+
"id": 2496703,
178+
"originName": "Подборка размер 816х452 (2).png",
179179
"fileType": "image",
180-
"fileSize": 9572620,
180+
"fileSize": 8856727,
181181
"width": 3264,
182182
"height": 1808,
183-
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/97/9a/a7a69ffexd41b88c9a22d1fc5e55.png",
183+
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/d8/ab/d7ecd0f4eced19e96856b54d958b.png",
184184
"publicUrl": null,
185-
"uuid": "0dd88086-a246-436b-a12d-be68ee98988e"
185+
"uuid": "94910136-aa86-4aae-a9aa-131c23606ee2"
186186
}
187187
}
188188
],
@@ -202,7 +202,7 @@
202202
{
203203
"name": "bannerName",
204204
"type": "text",
205-
"value": "ФРОВ 35 Манго"
205+
"value": "ФРОВ 36 Томаты"
206206
}
207207
],
208208
"positions": [
@@ -215,45 +215,45 @@
215215
"deepLink": null
216216
},
217217
{
218-
"id": 18425,
219-
"slug": "supercena-w33",
218+
"id": 18638,
219+
"slug": "loalnost-lk-sentabr",
220220
"title": null,
221-
"action": "blocks",
221+
"action": "deep-link",
222222
"color": {
223-
"red": 255,
224-
"green": 255,
225-
"blue": 255,
226-
"alpha": 100
223+
"red": 0,
224+
"green": 0,
225+
"blue": 0,
226+
"alpha": 0
227227
},
228228
"link": null,
229229
"webViewType": "default",
230230
"textForImage": null,
231231
"images": [
232232
{
233233
"image": {
234-
"id": 2475256,
235-
"originName": "816x452.png",
234+
"id": 2489567,
235+
"originName": "Баннер сларрйдер на сайте_1.png",
236236
"fileType": "image",
237-
"fileSize": 2771567,
238-
"width": 2448,
239-
"height": 1356,
240-
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/f3/29/01b9da3b5db3c591df1e5af65cd3.png",
237+
"fileSize": 2611379,
238+
"width": 3268,
239+
"height": 1808,
240+
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/f6/4b/d7c3396f245dba34f618b77215fa.png",
241241
"publicUrl": null,
242-
"uuid": "86f37b2d-6273-4cd7-bc47-291c77789987"
242+
"uuid": "202158ac-e574-4aee-8d52-94fd75f5578c"
243243
},
244244
"scales": [
245245
{
246246
"scaleName": "default",
247247
"image": {
248-
"id": 2475256,
249-
"originName": "816x452.png",
248+
"id": 2489567,
249+
"originName": "Баннер сларрйдер на сайте_1.png",
250250
"fileType": "image",
251-
"fileSize": 2771567,
252-
"width": 2448,
253-
"height": 1356,
254-
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/f3/29/01b9da3b5db3c591df1e5af65cd3.png",
251+
"fileSize": 2611379,
252+
"width": 3268,
253+
"height": 1808,
254+
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/f6/4b/d7c3396f245dba34f618b77215fa.png",
255255
"publicUrl": null,
256-
"uuid": "86f37b2d-6273-4cd7-bc47-291c77789987"
256+
"uuid": "202158ac-e574-4aee-8d52-94fd75f5578c"
257257
}
258258
}
259259
],
@@ -265,16 +265,12 @@
265265
"leftSubtitle": null,
266266
"rightSubtitle": null,
267267
"content": null,
268-
"blockTypes": [
269-
"image",
270-
"product_list",
271-
"text"
272-
],
268+
"blockTypes": [],
273269
"analyticsInfo": [
274270
{
275271
"name": "bannerName",
276272
"type": "text",
277-
"value": "Суперцена W33"
273+
"value": "Лояльность_ЛК_Сентябрь"
278274
}
279275
],
280276
"positions": [
@@ -284,7 +280,10 @@
284280
}
285281
],
286282
"key": null,
287-
"deepLink": null
283+
"deepLink": {
284+
"url": "https://www.perekrestok.ru/profile/x5-club",
285+
"tsx_type": "internal_webview"
286+
}
288287
}
289288
],
290289
"tags": []

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

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/schema#",
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
33
"type": "object",
44
"properties": {
55
"content": {
@@ -81,15 +81,15 @@
8181
"type": "integer"
8282
},
8383
"cropUrlTemplate": {
84-
"type": "string",
85-
"format": "uri"
84+
"format": "uri",
85+
"type": "string"
8686
},
8787
"publicUrl": {
8888
"type": "null"
8989
},
9090
"uuid": {
91-
"type": "string",
92-
"format": "uuid"
91+
"format": "uuid",
92+
"type": "string"
9393
}
9494
},
9595
"required": [
@@ -134,15 +134,15 @@
134134
"type": "integer"
135135
},
136136
"cropUrlTemplate": {
137-
"type": "string",
138-
"format": "uri"
137+
"format": "uri",
138+
"type": "string"
139139
},
140140
"publicUrl": {
141141
"type": "null"
142142
},
143143
"uuid": {
144-
"type": "string",
145-
"format": "uuid"
144+
"format": "uuid",
145+
"type": "string"
146146
}
147147
},
148148
"required": [
@@ -241,7 +241,26 @@
241241
"type": "null"
242242
},
243243
"deepLink": {
244-
"type": "null"
244+
"anyOf": [
245+
{
246+
"type": "null"
247+
},
248+
{
249+
"type": "object",
250+
"properties": {
251+
"url": {
252+
"type": "string"
253+
},
254+
"tsx_type": {
255+
"type": "string"
256+
}
257+
},
258+
"required": [
259+
"tsx_type",
260+
"url"
261+
]
262+
}
263+
]
245264
}
246265
},
247266
"required": [

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/schema#",
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
33
"type": "object",
44
"properties": {
55
"content": {
@@ -44,15 +44,15 @@
4444
"type": "integer"
4545
},
4646
"cropUrlTemplate": {
47-
"type": "string",
48-
"format": "uri"
47+
"format": "uri",
48+
"type": "string"
4949
},
5050
"publicUrl": {
5151
"type": "null"
5252
},
5353
"uuid": {
54-
"type": "string",
55-
"format": "uuid"
54+
"format": "uuid",
55+
"type": "string"
5656
}
5757
},
5858
"required": [
@@ -68,8 +68,8 @@
6868
]
6969
},
7070
"externalLink": {
71-
"type": "string",
72-
"format": "uri"
71+
"format": "uri",
72+
"type": "string"
7373
}
7474
},
7575
"required": [

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

Lines changed: 52 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,58 @@
11
{
22
"content": {
33
"items": [
4+
{
5+
"id": 57628,
6+
"key": "sess",
7+
"title": "Сьёсс",
8+
"fullTitle": null,
9+
"hideCategory": null,
10+
"image": null,
11+
"productBrand": {
12+
"id": 49,
13+
"sliderImage": {
14+
"id": 2492447,
15+
"originName": "лого карусель копия (2).png",
16+
"fileType": "image",
17+
"fileSize": 14698,
18+
"width": 474,
19+
"height": 300,
20+
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/b9/e0/2458711d8e69ca3f4fdae8617069.png",
21+
"publicUrl": null,
22+
"uuid": "9bff363e-eb07-4b95-bc13-b8d7a1707b08"
23+
},
24+
"mobileBannerImage": {
25+
"id": 2497088,
26+
"originName": "бз 1440х360 2 копия 2.png",
27+
"fileType": "image",
28+
"fileSize": 304604,
29+
"width": 1440,
30+
"height": 360,
31+
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/f0/df/4ee1a90d4a48bf080b85c17bb09e.png",
32+
"publicUrl": null,
33+
"uuid": "52f1a905-91b6-4ac6-be5e-75bdee506dac"
34+
},
35+
"desktopBannerImage": {
36+
"id": 2497087,
37+
"originName": "бз 1440х360 2 копия 2.png",
38+
"fileType": "image",
39+
"fileSize": 304604,
40+
"width": 1440,
41+
"height": 360,
42+
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/f0/df/4ee1a90d4a48bf080b85c17bb09e.png",
43+
"publicUrl": null,
44+
"uuid": "49f78487-3a61-4607-aab0-c3d17413a986"
45+
},
46+
"paidProductCardLogo": true,
47+
"color": {
48+
"red": 0,
49+
"green": 0,
50+
"blue": 0,
51+
"alpha": 100
52+
},
53+
"imageLink": null
54+
}
55+
},
456
{
557
"id": 3382,
658
"key": "titbit",
@@ -218,48 +270,6 @@
218270
},
219271
"imageLink": null
220272
}
221-
},
222-
{
223-
"id": 2334,
224-
"key": "miratorg",
225-
"title": "Мираторг",
226-
"fullTitle": null,
227-
"hideCategory": null,
228-
"image": {
229-
"id": 1086353,
230-
"originName": "Мираторг.jpg",
231-
"fileType": "image",
232-
"fileSize": 30256,
233-
"width": 600,
234-
"height": 600,
235-
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/39/03/008b61e74143c4cdba02e9f80300.jpg",
236-
"publicUrl": null,
237-
"uuid": "b5314f8a-9446-4a5e-8061-8de35cf9e06c"
238-
},
239-
"productBrand": {
240-
"id": 32,
241-
"sliderImage": {
242-
"id": 848214,
243-
"originName": "Frame 29.png",
244-
"fileType": "image",
245-
"fileSize": 8923,
246-
"width": 675,
247-
"height": 550,
248-
"cropUrlTemplate": "https://tsx.x5static.net/i/%s/xdelivery/files/1d/8a/a9b179ff1f1bcd2a6473d7xde7c5.png",
249-
"publicUrl": null,
250-
"uuid": "aa8509a3-6221-46d9-be94-63a77ec10374"
251-
},
252-
"mobileBannerImage": null,
253-
"desktopBannerImage": null,
254-
"paidProductCardLogo": true,
255-
"color": {
256-
"red": 0,
257-
"green": 0,
258-
"blue": 0,
259-
"alpha": 100
260-
},
261-
"imageLink": null
262-
}
263273
}
264274
],
265275
"paginator": {

0 commit comments

Comments
 (0)