@localazy/strapi-plugin 0.1.11-rc.0 → 0.1.11-rc.1

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.
Files changed (31) hide show
  1. package/admin/src/modules/plugin-settings/components/ContentTransferSetup/index.js +5 -0
  2. package/admin/src/modules/plugin-settings/components/Tree/index.js +21 -6
  3. package/admin/src/modules/plugin-settings/functions/build-content-transfer-setup-schema.js +1 -1
  4. package/admin/src/modules/plugin-settings/functions/has-model-changed.js +1 -1
  5. package/admin/src/modules/plugin-settings/locale/en.js +1 -1
  6. package/admin/src/modules/plugin-settings/utils/get-filtered-models-schemas.js +1 -7
  7. package/admin/src/modules/plugin-settings/utils/get-models-tree.js +19 -3
  8. package/package.json +4 -4
  9. package/server/controllers/localazy-transfer-controller.js +27 -7
  10. package/server/functions/should-set-downloaded-property.js +48 -3
  11. package/server/services/strapi-i18n-service.js +1 -1
  12. package/server/services/strapi-localazy-i18n-service.js +1 -1
  13. package/server/tests/fixtures/parsed-localazy-entry-to-create-entry-lesson-dz.js +392 -0
  14. package/server/tests/fixtures/parsed-localazy-entry-to-create-entry-sample-json-dz.js +4675 -0
  15. package/server/tests/fixtures/populate-create-update-entry-with-base-entry-lesson-dz.js +309 -0
  16. package/server/tests/fixtures/populate-create-update-entry-with-base-entry-sample-json-dz.js +884 -0
  17. package/server/tests/fixtures/strapi-plugin-all-models.js +844 -37
  18. package/server/utils/__tests__/parsed-localazy-entry-to-create-entry.test.js +211 -62
  19. package/server/utils/__tests__/pick-entries.test.js +936 -56
  20. package/server/utils/__tests__/populate-create-update-entry-with-base-entry.test.js +287 -0
  21. package/server/utils/build-populate.js +5 -0
  22. package/server/utils/model-utils.js +5 -0
  23. package/server/utils/omit-deep.js +7 -0
  24. package/server/utils/parsed-localazy-entry-to-create-entry.js +58 -4
  25. package/server/utils/parsed-localazy-entry-to-update-entry.js +6 -1
  26. package/server/utils/pick-deep.js +22 -0
  27. package/server/utils/pick-entries.js +90 -5
  28. package/server/utils/populate-create-update-entry-with-base-entry.js +51 -3
  29. package/server/tests/fixtures/collection-flattened.js +0 -76
  30. package/server/tests/fixtures/restaurant-flattened.js +0 -46
  31. package/server/tests/fixtures/restaurants-pick-paths.js +0 -15
@@ -0,0 +1,884 @@
1
+ "use strict";
2
+
3
+ const updateEntry = {
4
+ id: 24,
5
+ purpose: "Bar",
6
+ data: {
7
+ bar: "baz",
8
+ },
9
+ dynamic_property: [
10
+ {
11
+ id: 170,
12
+ image_title: "Nějaký název obrázku",
13
+ image_description: "Nějaký popis obrázku",
14
+ image: {
15
+ id: 11,
16
+ name: "heather-ford-G4LFhuLXhLE-unsplash.jpg",
17
+ alternativeText: "heather-ford-G4LFhuLXhLE-unsplash.jpg",
18
+ caption: "heather-ford-G4LFhuLXhLE-unsplash.jpg",
19
+ width: 6127,
20
+ height: 3844,
21
+ formats: {
22
+ thumbnail: {
23
+ name: "thumbnail_heather-ford-G4LFhuLXhLE-unsplash.jpg",
24
+ hash: "thumbnail_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f",
25
+ ext: ".jpg",
26
+ mime: "image/jpeg",
27
+ path: null,
28
+ width: 245,
29
+ height: 154,
30
+ size: 9.54,
31
+ url: "/uploads/thumbnail_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f.jpg",
32
+ },
33
+ large: {
34
+ name: "large_heather-ford-G4LFhuLXhLE-unsplash.jpg",
35
+ hash: "large_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f",
36
+ ext: ".jpg",
37
+ mime: "image/jpeg",
38
+ path: null,
39
+ width: 1000,
40
+ height: 628,
41
+ size: 117.56,
42
+ url: "/uploads/large_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f.jpg",
43
+ },
44
+ medium: {
45
+ name: "medium_heather-ford-G4LFhuLXhLE-unsplash.jpg",
46
+ hash: "medium_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f",
47
+ ext: ".jpg",
48
+ mime: "image/jpeg",
49
+ path: null,
50
+ width: 750,
51
+ height: 471,
52
+ size: 66.32,
53
+ url: "/uploads/medium_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f.jpg",
54
+ },
55
+ small: {
56
+ name: "small_heather-ford-G4LFhuLXhLE-unsplash.jpg",
57
+ hash: "small_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f",
58
+ ext: ".jpg",
59
+ mime: "image/jpeg",
60
+ path: null,
61
+ width: 500,
62
+ height: 314,
63
+ size: 31.42,
64
+ url: "/uploads/small_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f.jpg",
65
+ },
66
+ },
67
+ hash: "heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f",
68
+ ext: ".jpg",
69
+ mime: "image/jpeg",
70
+ size: 6971.47,
71
+ url: "/uploads/heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f.jpg",
72
+ previewUrl: null,
73
+ provider: "local",
74
+ provider_metadata: null,
75
+ },
76
+ __component: "food.gallery-item",
77
+ },
78
+ {
79
+ id: 191,
80
+ name: "Přísada I",
81
+ amount: null,
82
+ unit: null,
83
+ is_required: true,
84
+ __component: "food.recipe-ingredient",
85
+ },
86
+ {
87
+ id: 36,
88
+ name: "První položka CB",
89
+ recipe: null,
90
+ estimated_cook_time: "00:03:00.000",
91
+ difficulty: "beginner",
92
+ author_name: "Já",
93
+ gallery: [
94
+ {
95
+ id: 171,
96
+ image_title: "Obrázek G Jedna",
97
+ image_description: "Obrázek G Popis Jedna",
98
+ },
99
+ {
100
+ id: 172,
101
+ image_title: "Img G Two",
102
+ image_description: "Img G Desc Two",
103
+ },
104
+ ],
105
+ ingredients: [
106
+ {
107
+ id: 193,
108
+ name: "První Ingr DZ",
109
+ amount: null,
110
+ unit: null,
111
+ is_required: true,
112
+ },
113
+ ],
114
+ __component: "food.cookbook-item",
115
+ },
116
+ {
117
+ id: 192,
118
+ name: "Druhá přísada",
119
+ amount: null,
120
+ unit: null,
121
+ is_required: true,
122
+ __component: "food.recipe-ingredient",
123
+ },
124
+ ],
125
+ repeatable_component_property: [
126
+ {
127
+ id: 61,
128
+ name: "Položka 1",
129
+ price: 1,
130
+ currency: "CZK",
131
+ description: "Nějaký popis",
132
+ is_available: null,
133
+ food_gallery: null,
134
+ },
135
+ {
136
+ id: 62,
137
+ name: "Položka 2",
138
+ price: 2,
139
+ currency: "CZK",
140
+ description: "Nějaký další popis",
141
+ is_available: null,
142
+ food_gallery: [
143
+ {
144
+ id: 6,
145
+ name: "rodrigo-dos-reis-h3AkzboxK4Q-unsplash.jpg",
146
+ alternativeText: "rodrigo-dos-reis-h3AkzboxK4Q-unsplash.jpg",
147
+ caption: "rodrigo-dos-reis-h3AkzboxK4Q-unsplash.jpg",
148
+ width: 2268,
149
+ height: 4032,
150
+ formats: {
151
+ thumbnail: {
152
+ name: "thumbnail_rodrigo-dos-reis-h3AkzboxK4Q-unsplash.jpg",
153
+ hash: "thumbnail_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea",
154
+ ext: ".jpg",
155
+ mime: "image/jpeg",
156
+ path: null,
157
+ width: 88,
158
+ height: 156,
159
+ size: 5.35,
160
+ url: "/uploads/thumbnail_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea.jpg",
161
+ },
162
+ large: {
163
+ name: "large_rodrigo-dos-reis-h3AkzboxK4Q-unsplash.jpg",
164
+ hash: "large_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea",
165
+ ext: ".jpg",
166
+ mime: "image/jpeg",
167
+ path: null,
168
+ width: 563,
169
+ height: 1000,
170
+ size: 108.15,
171
+ url: "/uploads/large_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea.jpg",
172
+ },
173
+ medium: {
174
+ name: "medium_rodrigo-dos-reis-h3AkzboxK4Q-unsplash.jpg",
175
+ hash: "medium_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea",
176
+ ext: ".jpg",
177
+ mime: "image/jpeg",
178
+ path: null,
179
+ width: 422,
180
+ height: 750,
181
+ size: 65.52,
182
+ url: "/uploads/medium_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea.jpg",
183
+ },
184
+ small: {
185
+ name: "small_rodrigo-dos-reis-h3AkzboxK4Q-unsplash.jpg",
186
+ hash: "small_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea",
187
+ ext: ".jpg",
188
+ mime: "image/jpeg",
189
+ path: null,
190
+ width: 281,
191
+ height: 500,
192
+ size: 34.23,
193
+ url: "/uploads/small_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea.jpg",
194
+ },
195
+ },
196
+ hash: "rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea",
197
+ ext: ".jpg",
198
+ mime: "image/jpeg",
199
+ size: 1081.59,
200
+ url: "/uploads/rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea.jpg",
201
+ previewUrl: null,
202
+ provider: "local",
203
+ provider_metadata: null,
204
+ },
205
+ ],
206
+ },
207
+ ],
208
+ };
209
+
210
+ // filtered baseEntry
211
+ const baseEntry = {
212
+ id: 2,
213
+ purpose: "Bar",
214
+ data: {
215
+ bar: "baz",
216
+ },
217
+ dynamic_property: [
218
+ {
219
+ __component: "food.gallery-item",
220
+ id: 159,
221
+ image_title: "Some image title",
222
+ image_description: "Some image description",
223
+ image: {
224
+ id: 11,
225
+ name: "heather-ford-G4LFhuLXhLE-unsplash.jpg",
226
+ alternativeText: "heather-ford-G4LFhuLXhLE-unsplash.jpg",
227
+ caption: "heather-ford-G4LFhuLXhLE-unsplash.jpg",
228
+ width: 6127,
229
+ height: 3844,
230
+ formats: {
231
+ thumbnail: {
232
+ name: "thumbnail_heather-ford-G4LFhuLXhLE-unsplash.jpg",
233
+ hash: "thumbnail_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f",
234
+ ext: ".jpg",
235
+ mime: "image/jpeg",
236
+ path: null,
237
+ width: 245,
238
+ height: 154,
239
+ size: 9.54,
240
+ url: "/uploads/thumbnail_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f.jpg",
241
+ },
242
+ large: {
243
+ name: "large_heather-ford-G4LFhuLXhLE-unsplash.jpg",
244
+ hash: "large_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f",
245
+ ext: ".jpg",
246
+ mime: "image/jpeg",
247
+ path: null,
248
+ width: 1000,
249
+ height: 628,
250
+ size: 117.56,
251
+ url: "/uploads/large_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f.jpg",
252
+ },
253
+ medium: {
254
+ name: "medium_heather-ford-G4LFhuLXhLE-unsplash.jpg",
255
+ hash: "medium_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f",
256
+ ext: ".jpg",
257
+ mime: "image/jpeg",
258
+ path: null,
259
+ width: 750,
260
+ height: 471,
261
+ size: 66.32,
262
+ url: "/uploads/medium_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f.jpg",
263
+ },
264
+ small: {
265
+ name: "small_heather-ford-G4LFhuLXhLE-unsplash.jpg",
266
+ hash: "small_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f",
267
+ ext: ".jpg",
268
+ mime: "image/jpeg",
269
+ path: null,
270
+ width: 500,
271
+ height: 314,
272
+ size: 31.42,
273
+ url: "/uploads/small_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f.jpg",
274
+ },
275
+ },
276
+ hash: "heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f",
277
+ ext: ".jpg",
278
+ mime: "image/jpeg",
279
+ size: 6971.47,
280
+ url: "/uploads/heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f.jpg",
281
+ previewUrl: null,
282
+ provider: "local",
283
+ provider_metadata: null,
284
+ },
285
+ },
286
+ {
287
+ __component: "food.recipe-ingredient",
288
+ id: 176,
289
+ name: "Ingredient I",
290
+ amount: null,
291
+ unit: null,
292
+ is_required: true,
293
+ },
294
+ {
295
+ __component: "food.cookbook-item",
296
+ id: 31,
297
+ name: "First CB item",
298
+ recipe: null,
299
+ estimated_cook_time: "00:03:00.000",
300
+ difficulty: "beginner",
301
+ author_name: "Me",
302
+ gallery: [
303
+ {
304
+ id: 163,
305
+ image_title: "Img G One",
306
+ image_description: "Img G Desc One",
307
+ image: {
308
+ id: 4,
309
+ name: "ting-tian-al9eh9QkdPA-unsplash.jpg",
310
+ alternativeText: "ting-tian-al9eh9QkdPA-unsplash.jpg",
311
+ caption: "ting-tian-al9eh9QkdPA-unsplash.jpg",
312
+ width: 3840,
313
+ height: 5760,
314
+ formats: {
315
+ thumbnail: {
316
+ name: "thumbnail_ting-tian-al9eh9QkdPA-unsplash.jpg",
317
+ hash: "thumbnail_ting_tian_al9eh9_Qkd_PA_unsplash_d5132e8a85",
318
+ ext: ".jpg",
319
+ mime: "image/jpeg",
320
+ path: null,
321
+ width: 104,
322
+ height: 156,
323
+ size: 6.06,
324
+ url: "/uploads/thumbnail_ting_tian_al9eh9_Qkd_PA_unsplash_d5132e8a85.jpg",
325
+ },
326
+ large: {
327
+ name: "large_ting-tian-al9eh9QkdPA-unsplash.jpg",
328
+ hash: "large_ting_tian_al9eh9_Qkd_PA_unsplash_d5132e8a85",
329
+ ext: ".jpg",
330
+ mime: "image/jpeg",
331
+ path: null,
332
+ width: 667,
333
+ height: 1000,
334
+ size: 202.98,
335
+ url: "/uploads/large_ting_tian_al9eh9_Qkd_PA_unsplash_d5132e8a85.jpg",
336
+ },
337
+ medium: {
338
+ name: "medium_ting-tian-al9eh9QkdPA-unsplash.jpg",
339
+ hash: "medium_ting_tian_al9eh9_Qkd_PA_unsplash_d5132e8a85",
340
+ ext: ".jpg",
341
+ mime: "image/jpeg",
342
+ path: null,
343
+ width: 500,
344
+ height: 750,
345
+ size: 120.06,
346
+ url: "/uploads/medium_ting_tian_al9eh9_Qkd_PA_unsplash_d5132e8a85.jpg",
347
+ },
348
+ small: {
349
+ name: "small_ting-tian-al9eh9QkdPA-unsplash.jpg",
350
+ hash: "small_ting_tian_al9eh9_Qkd_PA_unsplash_d5132e8a85",
351
+ ext: ".jpg",
352
+ mime: "image/jpeg",
353
+ path: null,
354
+ width: 333,
355
+ height: 500,
356
+ size: 54.32,
357
+ url: "/uploads/small_ting_tian_al9eh9_Qkd_PA_unsplash_d5132e8a85.jpg",
358
+ },
359
+ },
360
+ hash: "ting_tian_al9eh9_Qkd_PA_unsplash_d5132e8a85",
361
+ ext: ".jpg",
362
+ mime: "image/jpeg",
363
+ size: 5952.03,
364
+ url: "/uploads/ting_tian_al9eh9_Qkd_PA_unsplash_d5132e8a85.jpg",
365
+ previewUrl: null,
366
+ provider: "local",
367
+ provider_metadata: null,
368
+ },
369
+ },
370
+ {
371
+ id: 164,
372
+ image_title: "Img G Two",
373
+ image_description: "Img G Desc Two",
374
+ image: {
375
+ id: 12,
376
+ name: "rishabh-modi-ubEMIKHv9Jk-unsplash.jpg",
377
+ alternativeText: "rishabh-modi-ubEMIKHv9Jk-unsplash.jpg",
378
+ caption: "rishabh-modi-ubEMIKHv9Jk-unsplash.jpg",
379
+ width: 2839,
380
+ height: 3785,
381
+ formats: {
382
+ thumbnail: {
383
+ name: "thumbnail_rishabh-modi-ubEMIKHv9Jk-unsplash.jpg",
384
+ hash: "thumbnail_rishabh_modi_ub_EMIK_Hv9_Jk_unsplash_68bba86c28",
385
+ ext: ".jpg",
386
+ mime: "image/jpeg",
387
+ path: null,
388
+ width: 117,
389
+ height: 156,
390
+ size: 5.26,
391
+ url: "/uploads/thumbnail_rishabh_modi_ub_EMIK_Hv9_Jk_unsplash_68bba86c28.jpg",
392
+ },
393
+ large: {
394
+ name: "large_rishabh-modi-ubEMIKHv9Jk-unsplash.jpg",
395
+ hash: "large_rishabh_modi_ub_EMIK_Hv9_Jk_unsplash_68bba86c28",
396
+ ext: ".jpg",
397
+ mime: "image/jpeg",
398
+ path: null,
399
+ width: 750,
400
+ height: 1000,
401
+ size: 114.8,
402
+ url: "/uploads/large_rishabh_modi_ub_EMIK_Hv9_Jk_unsplash_68bba86c28.jpg",
403
+ },
404
+ medium: {
405
+ name: "medium_rishabh-modi-ubEMIKHv9Jk-unsplash.jpg",
406
+ hash: "medium_rishabh_modi_ub_EMIK_Hv9_Jk_unsplash_68bba86c28",
407
+ ext: ".jpg",
408
+ mime: "image/jpeg",
409
+ path: null,
410
+ width: 562,
411
+ height: 750,
412
+ size: 69.07,
413
+ url: "/uploads/medium_rishabh_modi_ub_EMIK_Hv9_Jk_unsplash_68bba86c28.jpg",
414
+ },
415
+ small: {
416
+ name: "small_rishabh-modi-ubEMIKHv9Jk-unsplash.jpg",
417
+ hash: "small_rishabh_modi_ub_EMIK_Hv9_Jk_unsplash_68bba86c28",
418
+ ext: ".jpg",
419
+ mime: "image/jpeg",
420
+ path: null,
421
+ width: 375,
422
+ height: 500,
423
+ size: 35.47,
424
+ url: "/uploads/small_rishabh_modi_ub_EMIK_Hv9_Jk_unsplash_68bba86c28.jpg",
425
+ },
426
+ },
427
+ hash: "rishabh_modi_ub_EMIK_Hv9_Jk_unsplash_68bba86c28",
428
+ ext: ".jpg",
429
+ mime: "image/jpeg",
430
+ size: 1736.7,
431
+ url: "/uploads/rishabh_modi_ub_EMIK_Hv9_Jk_unsplash_68bba86c28.jpg",
432
+ previewUrl: null,
433
+ provider: "local",
434
+ provider_metadata: null,
435
+ },
436
+ },
437
+ ],
438
+ ingredients: [
439
+ {
440
+ id: 178,
441
+ name: "First ingr DZ",
442
+ amount: null,
443
+ unit: null,
444
+ is_required: true,
445
+ },
446
+ ],
447
+ },
448
+ {
449
+ __component: "food.recipe-ingredient",
450
+ id: 177,
451
+ name: "Ingredient Two",
452
+ amount: null,
453
+ unit: null,
454
+ is_required: true,
455
+ },
456
+ ],
457
+ repeatable_component_property: [
458
+ {
459
+ id: 55,
460
+ name: "Item 1",
461
+ price: 1,
462
+ currency: "CZK",
463
+ description: "Some desc",
464
+ is_available: null,
465
+ food_gallery: null,
466
+ },
467
+ {
468
+ id: 56,
469
+ name: "Item 2",
470
+ price: 2,
471
+ currency: "CZK",
472
+ description: "Some other desc",
473
+ is_available: null,
474
+ food_gallery: [
475
+ {
476
+ id: 6,
477
+ name: "rodrigo-dos-reis-h3AkzboxK4Q-unsplash.jpg",
478
+ alternativeText: "rodrigo-dos-reis-h3AkzboxK4Q-unsplash.jpg",
479
+ caption: "rodrigo-dos-reis-h3AkzboxK4Q-unsplash.jpg",
480
+ width: 2268,
481
+ height: 4032,
482
+ formats: {
483
+ thumbnail: {
484
+ name: "thumbnail_rodrigo-dos-reis-h3AkzboxK4Q-unsplash.jpg",
485
+ hash: "thumbnail_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea",
486
+ ext: ".jpg",
487
+ mime: "image/jpeg",
488
+ path: null,
489
+ width: 88,
490
+ height: 156,
491
+ size: 5.35,
492
+ url: "/uploads/thumbnail_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea.jpg",
493
+ },
494
+ large: {
495
+ name: "large_rodrigo-dos-reis-h3AkzboxK4Q-unsplash.jpg",
496
+ hash: "large_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea",
497
+ ext: ".jpg",
498
+ mime: "image/jpeg",
499
+ path: null,
500
+ width: 563,
501
+ height: 1000,
502
+ size: 108.15,
503
+ url: "/uploads/large_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea.jpg",
504
+ },
505
+ medium: {
506
+ name: "medium_rodrigo-dos-reis-h3AkzboxK4Q-unsplash.jpg",
507
+ hash: "medium_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea",
508
+ ext: ".jpg",
509
+ mime: "image/jpeg",
510
+ path: null,
511
+ width: 422,
512
+ height: 750,
513
+ size: 65.52,
514
+ url: "/uploads/medium_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea.jpg",
515
+ },
516
+ small: {
517
+ name: "small_rodrigo-dos-reis-h3AkzboxK4Q-unsplash.jpg",
518
+ hash: "small_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea",
519
+ ext: ".jpg",
520
+ mime: "image/jpeg",
521
+ path: null,
522
+ width: 281,
523
+ height: 500,
524
+ size: 34.23,
525
+ url: "/uploads/small_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea.jpg",
526
+ },
527
+ },
528
+ hash: "rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea",
529
+ ext: ".jpg",
530
+ mime: "image/jpeg",
531
+ size: 1081.59,
532
+ url: "/uploads/rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea.jpg",
533
+ previewUrl: null,
534
+ provider: "local",
535
+ provider_metadata: null,
536
+ },
537
+ ],
538
+ },
539
+ ],
540
+ };
541
+
542
+ // filtered fullyPopulatedLocalizedEntry
543
+ const fullyPopulatedLocalizedEntry = {
544
+ id: 24,
545
+ purpose: "Bar",
546
+ data: {
547
+ bar: "baz",
548
+ },
549
+ dynamic_property: [
550
+ {
551
+ __component: "food.gallery-item",
552
+ id: 170,
553
+ image_title: "Nějaký název obrázku",
554
+ image_description: "Nějaký popis obrázku",
555
+ image: {
556
+ id: 11,
557
+ name: "heather-ford-G4LFhuLXhLE-unsplash.jpg",
558
+ alternativeText: "heather-ford-G4LFhuLXhLE-unsplash.jpg",
559
+ caption: "heather-ford-G4LFhuLXhLE-unsplash.jpg",
560
+ width: 6127,
561
+ height: 3844,
562
+ formats: {
563
+ thumbnail: {
564
+ name: "thumbnail_heather-ford-G4LFhuLXhLE-unsplash.jpg",
565
+ hash: "thumbnail_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f",
566
+ ext: ".jpg",
567
+ mime: "image/jpeg",
568
+ path: null,
569
+ width: 245,
570
+ height: 154,
571
+ size: 9.54,
572
+ url: "/uploads/thumbnail_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f.jpg",
573
+ },
574
+ large: {
575
+ name: "large_heather-ford-G4LFhuLXhLE-unsplash.jpg",
576
+ hash: "large_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f",
577
+ ext: ".jpg",
578
+ mime: "image/jpeg",
579
+ path: null,
580
+ width: 1000,
581
+ height: 628,
582
+ size: 117.56,
583
+ url: "/uploads/large_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f.jpg",
584
+ },
585
+ medium: {
586
+ name: "medium_heather-ford-G4LFhuLXhLE-unsplash.jpg",
587
+ hash: "medium_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f",
588
+ ext: ".jpg",
589
+ mime: "image/jpeg",
590
+ path: null,
591
+ width: 750,
592
+ height: 471,
593
+ size: 66.32,
594
+ url: "/uploads/medium_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f.jpg",
595
+ },
596
+ small: {
597
+ name: "small_heather-ford-G4LFhuLXhLE-unsplash.jpg",
598
+ hash: "small_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f",
599
+ ext: ".jpg",
600
+ mime: "image/jpeg",
601
+ path: null,
602
+ width: 500,
603
+ height: 314,
604
+ size: 31.42,
605
+ url: "/uploads/small_heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f.jpg",
606
+ },
607
+ },
608
+ hash: "heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f",
609
+ ext: ".jpg",
610
+ mime: "image/jpeg",
611
+ size: 6971.47,
612
+ url: "/uploads/heather_ford_G4_L_Fhu_L_Xh_LE_unsplash_7a2c2cac8f.jpg",
613
+ previewUrl: null,
614
+ provider: "local",
615
+ provider_metadata: null,
616
+ },
617
+ },
618
+ {
619
+ __component: "food.recipe-ingredient",
620
+ id: 191,
621
+ name: "Přísada I",
622
+ amount: null,
623
+ unit: null,
624
+ is_required: true,
625
+ },
626
+ {
627
+ __component: "food.cookbook-item",
628
+ id: 36,
629
+ name: "První položka CB",
630
+ recipe: null,
631
+ estimated_cook_time: "00:03:00.000",
632
+ difficulty: "beginner",
633
+ author_name: "Já",
634
+ gallery: [
635
+ {
636
+ id: 171,
637
+ image_title: "Obrázek G Jedna",
638
+ image_description: "Obrázek G Popis Jedna",
639
+ image: {
640
+ id: 4,
641
+ name: "ting-tian-al9eh9QkdPA-unsplash.jpg",
642
+ alternativeText: "ting-tian-al9eh9QkdPA-unsplash.jpg",
643
+ caption: "ting-tian-al9eh9QkdPA-unsplash.jpg",
644
+ width: 3840,
645
+ height: 5760,
646
+ formats: {
647
+ thumbnail: {
648
+ name: "thumbnail_ting-tian-al9eh9QkdPA-unsplash.jpg",
649
+ hash: "thumbnail_ting_tian_al9eh9_Qkd_PA_unsplash_d5132e8a85",
650
+ ext: ".jpg",
651
+ mime: "image/jpeg",
652
+ path: null,
653
+ width: 104,
654
+ height: 156,
655
+ size: 6.06,
656
+ url: "/uploads/thumbnail_ting_tian_al9eh9_Qkd_PA_unsplash_d5132e8a85.jpg",
657
+ },
658
+ large: {
659
+ name: "large_ting-tian-al9eh9QkdPA-unsplash.jpg",
660
+ hash: "large_ting_tian_al9eh9_Qkd_PA_unsplash_d5132e8a85",
661
+ ext: ".jpg",
662
+ mime: "image/jpeg",
663
+ path: null,
664
+ width: 667,
665
+ height: 1000,
666
+ size: 202.98,
667
+ url: "/uploads/large_ting_tian_al9eh9_Qkd_PA_unsplash_d5132e8a85.jpg",
668
+ },
669
+ medium: {
670
+ name: "medium_ting-tian-al9eh9QkdPA-unsplash.jpg",
671
+ hash: "medium_ting_tian_al9eh9_Qkd_PA_unsplash_d5132e8a85",
672
+ ext: ".jpg",
673
+ mime: "image/jpeg",
674
+ path: null,
675
+ width: 500,
676
+ height: 750,
677
+ size: 120.06,
678
+ url: "/uploads/medium_ting_tian_al9eh9_Qkd_PA_unsplash_d5132e8a85.jpg",
679
+ },
680
+ small: {
681
+ name: "small_ting-tian-al9eh9QkdPA-unsplash.jpg",
682
+ hash: "small_ting_tian_al9eh9_Qkd_PA_unsplash_d5132e8a85",
683
+ ext: ".jpg",
684
+ mime: "image/jpeg",
685
+ path: null,
686
+ width: 333,
687
+ height: 500,
688
+ size: 54.32,
689
+ url: "/uploads/small_ting_tian_al9eh9_Qkd_PA_unsplash_d5132e8a85.jpg",
690
+ },
691
+ },
692
+ hash: "ting_tian_al9eh9_Qkd_PA_unsplash_d5132e8a85",
693
+ ext: ".jpg",
694
+ mime: "image/jpeg",
695
+ size: 5952.03,
696
+ url: "/uploads/ting_tian_al9eh9_Qkd_PA_unsplash_d5132e8a85.jpg",
697
+ previewUrl: null,
698
+ provider: "local",
699
+ provider_metadata: null,
700
+ },
701
+ },
702
+ {
703
+ id: 172,
704
+ image_title: "Img G Two",
705
+ image_description: "Img G Desc Two",
706
+ image: {
707
+ id: 12,
708
+ name: "rishabh-modi-ubEMIKHv9Jk-unsplash.jpg",
709
+ alternativeText: "rishabh-modi-ubEMIKHv9Jk-unsplash.jpg",
710
+ caption: "rishabh-modi-ubEMIKHv9Jk-unsplash.jpg",
711
+ width: 2839,
712
+ height: 3785,
713
+ formats: {
714
+ thumbnail: {
715
+ name: "thumbnail_rishabh-modi-ubEMIKHv9Jk-unsplash.jpg",
716
+ hash: "thumbnail_rishabh_modi_ub_EMIK_Hv9_Jk_unsplash_68bba86c28",
717
+ ext: ".jpg",
718
+ mime: "image/jpeg",
719
+ path: null,
720
+ width: 117,
721
+ height: 156,
722
+ size: 5.26,
723
+ url: "/uploads/thumbnail_rishabh_modi_ub_EMIK_Hv9_Jk_unsplash_68bba86c28.jpg",
724
+ },
725
+ large: {
726
+ name: "large_rishabh-modi-ubEMIKHv9Jk-unsplash.jpg",
727
+ hash: "large_rishabh_modi_ub_EMIK_Hv9_Jk_unsplash_68bba86c28",
728
+ ext: ".jpg",
729
+ mime: "image/jpeg",
730
+ path: null,
731
+ width: 750,
732
+ height: 1000,
733
+ size: 114.8,
734
+ url: "/uploads/large_rishabh_modi_ub_EMIK_Hv9_Jk_unsplash_68bba86c28.jpg",
735
+ },
736
+ medium: {
737
+ name: "medium_rishabh-modi-ubEMIKHv9Jk-unsplash.jpg",
738
+ hash: "medium_rishabh_modi_ub_EMIK_Hv9_Jk_unsplash_68bba86c28",
739
+ ext: ".jpg",
740
+ mime: "image/jpeg",
741
+ path: null,
742
+ width: 562,
743
+ height: 750,
744
+ size: 69.07,
745
+ url: "/uploads/medium_rishabh_modi_ub_EMIK_Hv9_Jk_unsplash_68bba86c28.jpg",
746
+ },
747
+ small: {
748
+ name: "small_rishabh-modi-ubEMIKHv9Jk-unsplash.jpg",
749
+ hash: "small_rishabh_modi_ub_EMIK_Hv9_Jk_unsplash_68bba86c28",
750
+ ext: ".jpg",
751
+ mime: "image/jpeg",
752
+ path: null,
753
+ width: 375,
754
+ height: 500,
755
+ size: 35.47,
756
+ url: "/uploads/small_rishabh_modi_ub_EMIK_Hv9_Jk_unsplash_68bba86c28.jpg",
757
+ },
758
+ },
759
+ hash: "rishabh_modi_ub_EMIK_Hv9_Jk_unsplash_68bba86c28",
760
+ ext: ".jpg",
761
+ mime: "image/jpeg",
762
+ size: 1736.7,
763
+ url: "/uploads/rishabh_modi_ub_EMIK_Hv9_Jk_unsplash_68bba86c28.jpg",
764
+ previewUrl: null,
765
+ provider: "local",
766
+ provider_metadata: null,
767
+ },
768
+ },
769
+ ],
770
+ ingredients: [
771
+ {
772
+ id: 193,
773
+ name: "První Ingr DZ",
774
+ amount: null,
775
+ unit: null,
776
+ is_required: true,
777
+ },
778
+ ],
779
+ },
780
+ {
781
+ __component: "food.recipe-ingredient",
782
+ id: 192,
783
+ name: "Druhá přísada",
784
+ amount: null,
785
+ unit: null,
786
+ is_required: true,
787
+ },
788
+ ],
789
+ repeatable_component_property: [
790
+ {
791
+ id: 61,
792
+ name: "Položka 1",
793
+ price: 1,
794
+ currency: "CZK",
795
+ description: "Nějaký popis",
796
+ is_available: null,
797
+ food_gallery: null,
798
+ },
799
+ {
800
+ id: 62,
801
+ name: "Položka 2",
802
+ price: 2,
803
+ currency: "CZK",
804
+ description: "Nějaký další popis",
805
+ is_available: null,
806
+ food_gallery: [
807
+ {
808
+ id: 6,
809
+ name: "rodrigo-dos-reis-h3AkzboxK4Q-unsplash.jpg",
810
+ alternativeText: "rodrigo-dos-reis-h3AkzboxK4Q-unsplash.jpg",
811
+ caption: "rodrigo-dos-reis-h3AkzboxK4Q-unsplash.jpg",
812
+ width: 2268,
813
+ height: 4032,
814
+ formats: {
815
+ thumbnail: {
816
+ name: "thumbnail_rodrigo-dos-reis-h3AkzboxK4Q-unsplash.jpg",
817
+ hash: "thumbnail_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea",
818
+ ext: ".jpg",
819
+ mime: "image/jpeg",
820
+ path: null,
821
+ width: 88,
822
+ height: 156,
823
+ size: 5.35,
824
+ url: "/uploads/thumbnail_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea.jpg",
825
+ },
826
+ large: {
827
+ name: "large_rodrigo-dos-reis-h3AkzboxK4Q-unsplash.jpg",
828
+ hash: "large_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea",
829
+ ext: ".jpg",
830
+ mime: "image/jpeg",
831
+ path: null,
832
+ width: 563,
833
+ height: 1000,
834
+ size: 108.15,
835
+ url: "/uploads/large_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea.jpg",
836
+ },
837
+ medium: {
838
+ name: "medium_rodrigo-dos-reis-h3AkzboxK4Q-unsplash.jpg",
839
+ hash: "medium_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea",
840
+ ext: ".jpg",
841
+ mime: "image/jpeg",
842
+ path: null,
843
+ width: 422,
844
+ height: 750,
845
+ size: 65.52,
846
+ url: "/uploads/medium_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea.jpg",
847
+ },
848
+ small: {
849
+ name: "small_rodrigo-dos-reis-h3AkzboxK4Q-unsplash.jpg",
850
+ hash: "small_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea",
851
+ ext: ".jpg",
852
+ mime: "image/jpeg",
853
+ path: null,
854
+ width: 281,
855
+ height: 500,
856
+ size: 34.23,
857
+ url: "/uploads/small_rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea.jpg",
858
+ },
859
+ },
860
+ hash: "rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea",
861
+ ext: ".jpg",
862
+ mime: "image/jpeg",
863
+ size: 1081.59,
864
+ url: "/uploads/rodrigo_dos_reis_h3_Akzbox_K4_Q_unsplash_d17e795cea.jpg",
865
+ previewUrl: null,
866
+ provider: "local",
867
+ provider_metadata: null,
868
+ },
869
+ ],
870
+ },
871
+ ],
872
+ };
873
+
874
+ const uid = "api::sample-json.sample-json";
875
+
876
+ const locale = "cs";
877
+
878
+ module.exports = {
879
+ updateEntry,
880
+ baseEntry,
881
+ fullyPopulatedLocalizedEntry,
882
+ uid,
883
+ locale,
884
+ }