strapi-plugin-navigation 3.0.16 → 3.2.0

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 (83) hide show
  1. package/README.md +52 -1
  2. package/dist/_chunks/ca-BQn7S09g.js +1 -0
  3. package/dist/_chunks/{ca-Jr1amAtF.mjs → ca-RyBP-sbV.mjs} +25 -3
  4. package/dist/_chunks/{en-DmeenfQT.mjs → en-DBw_pmms.mjs} +25 -3
  5. package/dist/_chunks/en-DO98mdcm.js +1 -0
  6. package/dist/_chunks/fr-CjFMUCWK.js +1 -0
  7. package/dist/_chunks/{fr-CZx3EMw8.mjs → fr-CnAHMC1C.mjs} +25 -3
  8. package/dist/admin/index.js +350 -363
  9. package/dist/admin/index.mjs +11193 -10887
  10. package/dist/admin/src/api/client.d.ts +15 -1
  11. package/dist/admin/src/api/validators.d.ts +137 -17
  12. package/dist/admin/src/pages/HomePage/components/NavigationContentHeader/ManageNavigationItems/index.d.ts +10 -0
  13. package/dist/admin/src/pages/HomePage/components/{Search → NavigationContentHeader/Search}/index.d.ts +1 -1
  14. package/dist/admin/src/pages/HomePage/components/NavigationEmptyState/index.d.ts +12 -0
  15. package/dist/admin/src/pages/HomePage/components/{AdditionalFieldInput → NavigationItemForm/components/AdditionalFields/AdditionalFieldInput}/index.d.ts +1 -1
  16. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/AdditionalFields/AudienceField/index.d.ts +1 -0
  17. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/AdditionalFields/CustomFieldsField/index.d.ts +7 -0
  18. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/AdditionalFields/index.d.ts +1 -0
  19. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/AttachToMenuField/index.d.ts +7 -0
  20. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/CopyFromLocales/index.d.ts +12 -0
  21. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/NavigationItemTypeField/index.d.ts +1 -0
  22. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/PathField/index.d.ts +10 -0
  23. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/ReadFieldsFromRelatedField/index.d.ts +1 -0
  24. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/RelatedEntityField/hooks.d.ts +3 -0
  25. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/RelatedEntityField/index.d.ts +13 -0
  26. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/RelatedTypeField/index.d.ts +13 -0
  27. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/TitleField/index.d.ts +1 -0
  28. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/context/NavigationItemFormContext.d.ts +14 -0
  29. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/utils/form.d.ts +95 -6
  30. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/utils/hooks.d.ts +259 -0
  31. package/dist/admin/src/pages/HomePage/components/NavigationItemList/index.d.ts +2 -5
  32. package/dist/admin/src/pages/HomePage/components/NavigationItemListItem/index.d.ts +2 -0
  33. package/dist/admin/src/pages/HomePage/hooks/index.d.ts +7 -158
  34. package/dist/admin/src/pages/HomePage/hooks/useAPI.d.ts +162 -0
  35. package/dist/admin/src/pages/HomePage/hooks/useI18nCopyNavigationItemsModal.d.ts +8 -0
  36. package/dist/admin/src/pages/HomePage/hooks/useInvalidateQueries.d.ts +1 -0
  37. package/dist/admin/src/pages/HomePage/hooks/useLocales.d.ts +19 -0
  38. package/dist/admin/src/pages/HomePage/hooks/useNavigationItemPopup.d.ts +93 -0
  39. package/dist/admin/src/pages/HomePage/hooks/useSearch.d.ts +11 -0
  40. package/dist/admin/src/pages/HomePage/hooks/useSettingsPermissions.d.ts +5 -0
  41. package/dist/admin/src/pages/HomePage/utils/appendViewId.d.ts +2 -0
  42. package/dist/admin/src/pages/HomePage/utils/parsers.d.ts +1 -1
  43. package/dist/admin/src/pages/SettingsPage/common/const.d.ts +6 -0
  44. package/dist/admin/src/pages/SettingsPage/components/AdditionalSettingsPanel/index.d.ts +1 -0
  45. package/dist/admin/src/pages/SettingsPage/components/{CustomFieldForm → CustomFieldsPanel/CustomFieldForm}/index.d.ts +3 -3
  46. package/dist/admin/src/pages/SettingsPage/components/{CustomFieldModal → CustomFieldsPanel/CustomFieldModal}/index.d.ts +2 -2
  47. package/dist/admin/src/pages/SettingsPage/components/{CustomFieldTable → CustomFieldsPanel/CustomFieldTable}/index.d.ts +2 -2
  48. package/dist/admin/src/pages/SettingsPage/components/CustomFieldsPanel/index.d.ts +1 -0
  49. package/dist/admin/src/pages/SettingsPage/components/GeneralSettingsPanel/ContentTypesField/index.d.ts +1 -0
  50. package/dist/admin/src/pages/SettingsPage/components/GeneralSettingsPanel/ContentTypesSettings/index.d.ts +1 -0
  51. package/dist/admin/src/pages/SettingsPage/components/GeneralSettingsPanel/DefaultContentTypeField/index.d.ts +1 -0
  52. package/dist/admin/src/pages/SettingsPage/components/GeneralSettingsPanel/PreferCustomContentTypeField/index.d.ts +1 -0
  53. package/dist/admin/src/pages/SettingsPage/components/GeneralSettingsPanel/index.d.ts +1 -0
  54. package/dist/admin/src/pages/SettingsPage/components/RestartPanel/index.d.ts +6 -0
  55. package/dist/admin/src/pages/SettingsPage/components/RestorePanel/index.d.ts +6 -0
  56. package/dist/admin/src/pages/SettingsPage/context/index.d.ts +15 -0
  57. package/dist/admin/src/pages/SettingsPage/hooks/index.d.ts +2 -366
  58. package/dist/admin/src/pages/SettingsPage/hooks/useAPI.d.ts +131 -0
  59. package/dist/admin/src/pages/SettingsPage/hooks/useInitialConfig.d.ts +8 -0
  60. package/dist/admin/src/pages/SettingsPage/schemas/index.d.ts +282 -0
  61. package/dist/admin/src/schemas/config.d.ts +96 -3
  62. package/dist/admin/src/translations/ca.d.ts +22 -0
  63. package/dist/admin/src/translations/en.d.ts +22 -0
  64. package/dist/admin/src/translations/es.d.ts +22 -0
  65. package/dist/admin/src/translations/fr.d.ts +22 -0
  66. package/dist/admin/src/translations/tr.d.ts +22 -0
  67. package/dist/server/index.js +35 -35
  68. package/dist/server/index.mjs +3489 -3603
  69. package/dist/server/src/config/index.d.ts +1 -0
  70. package/dist/server/src/config/setup.d.ts +7 -0
  71. package/dist/server/src/controllers/admin.d.ts +882 -2
  72. package/dist/server/src/controllers/client.d.ts +12 -0
  73. package/dist/server/src/controllers/validators.d.ts +2 -2
  74. package/dist/server/src/index.d.ts +893 -0
  75. package/dist/server/src/schemas/config.d.ts +96 -3
  76. package/dist/server/src/schemas/index.d.ts +1305 -2
  77. package/dist/server/src/services/admin/admin.d.ts +1 -0
  78. package/dist/server/src/services/common/common.d.ts +865 -0
  79. package/dist/server/src/services/index.d.ts +891 -0
  80. package/package.json +9 -2
  81. package/dist/_chunks/ca-Gq9Ty_aG.js +0 -1
  82. package/dist/_chunks/en-BP5RWE-N.js +0 -1
  83. package/dist/_chunks/fr-BIJn6QmK.js +0 -1
@@ -1,5 +1,6 @@
1
1
  import { Core } from '@strapi/strapi';
2
2
  import { Context as KoaContext } from 'koa';
3
+ import * as z from 'zod';
3
4
  export type KoaContextExtension = {
4
5
  request: KoaContext['request'] & {
5
6
  body: unknown;
@@ -42,6 +43,7 @@ export default function adminController(context: {
42
43
  delete({ auditLog, documentId }: import("../services/admin/types").DeleteInput): Promise<void>;
43
44
  restart(): Promise<void>;
44
45
  restoreConfig(): Promise<void>;
46
+ refreshNavigationLocale(newLocale?: string | undefined): Promise<void>;
45
47
  updateConfig({ config: newConfig }: import("../services/admin/types").UpdateConfigInput): Promise<void>;
46
48
  fillFromOtherLocale({ auditLog, source, target, documentId, }: import("../services/admin/types").FillFromOtherLocaleInput): Promise<{
47
49
  name: string;
@@ -103,6 +105,8 @@ export default function adminController(context: {
103
105
  name: string;
104
106
  label: string;
105
107
  options?: string[] | undefined;
108
+ description?: string | undefined;
109
+ placeholder?: string | undefined;
106
110
  required?: boolean | undefined;
107
111
  enabled?: boolean | undefined;
108
112
  multi?: false | undefined;
@@ -111,6 +115,8 @@ export default function adminController(context: {
111
115
  name: string;
112
116
  label: string;
113
117
  options?: string[] | undefined;
118
+ description?: string | undefined;
119
+ placeholder?: string | undefined;
114
120
  required?: boolean | undefined;
115
121
  enabled?: boolean | undefined;
116
122
  multi?: false | undefined;
@@ -120,6 +126,8 @@ export default function adminController(context: {
120
126
  name: string;
121
127
  label: string;
122
128
  multi: boolean;
129
+ description?: string | undefined;
130
+ placeholder?: string | undefined;
123
131
  required?: boolean | undefined;
124
132
  enabled?: boolean | undefined;
125
133
  })[];
@@ -133,6 +141,7 @@ export default function adminController(context: {
133
141
  pathDefaultFields: Record<string, any>;
134
142
  cascadeMenuAttached: boolean;
135
143
  preferCustomContentTypes: boolean;
144
+ defaultContentType?: string | undefined;
136
145
  isCacheEnabled?: boolean | undefined;
137
146
  }>;
138
147
  getBranchName({ item }: import("../services/common/types").GetBranchNameInput): void | import("../types").NavigationActionsCategories;
@@ -147,6 +156,8 @@ export default function adminController(context: {
147
156
  name: string;
148
157
  label: string;
149
158
  options?: string[] | undefined;
159
+ description?: string | undefined;
160
+ placeholder?: string | undefined;
150
161
  required?: boolean | undefined;
151
162
  enabled?: boolean | undefined;
152
163
  multi?: false | undefined;
@@ -155,6 +166,8 @@ export default function adminController(context: {
155
166
  name: string;
156
167
  label: string;
157
168
  options?: string[] | undefined;
169
+ description?: string | undefined;
170
+ placeholder?: string | undefined;
158
171
  required?: boolean | undefined;
159
172
  enabled?: boolean | undefined;
160
173
  multi?: false | undefined;
@@ -164,6 +177,8 @@ export default function adminController(context: {
164
177
  name: string;
165
178
  label: string;
166
179
  multi: boolean;
180
+ description?: string | undefined;
181
+ placeholder?: string | undefined;
167
182
  required?: boolean | undefined;
168
183
  enabled?: boolean | undefined;
169
184
  })[];
@@ -176,6 +191,871 @@ export default function adminController(context: {
176
191
  defaultLocale: string;
177
192
  restLocale: string[];
178
193
  }>;
194
+ updateConfigSchema: (modifier: (base: z.ZodObject<{
195
+ additionalFields: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
196
+ name: z.ZodEffects<z.ZodString, string, string>;
197
+ label: z.ZodString;
198
+ description: z.ZodOptional<z.ZodString>;
199
+ placeholder: z.ZodOptional<z.ZodString>;
200
+ required: z.ZodOptional<z.ZodBoolean>;
201
+ enabled: z.ZodOptional<z.ZodBoolean>;
202
+ } & {
203
+ type: z.ZodEnum<["boolean", "string"]>;
204
+ multi: z.ZodOptional<z.ZodLiteral<false>>;
205
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
206
+ }, "strip", z.ZodTypeAny, {
207
+ type: "string" | "boolean";
208
+ name: string;
209
+ label: string;
210
+ options?: string[] | undefined;
211
+ description?: string | undefined;
212
+ placeholder?: string | undefined;
213
+ required?: boolean | undefined;
214
+ enabled?: boolean | undefined;
215
+ multi?: false | undefined;
216
+ }, {
217
+ type: "string" | "boolean";
218
+ name: string;
219
+ label: string;
220
+ options?: string[] | undefined;
221
+ description?: string | undefined;
222
+ placeholder?: string | undefined;
223
+ required?: boolean | undefined;
224
+ enabled?: boolean | undefined;
225
+ multi?: false | undefined;
226
+ }>, z.ZodObject<{
227
+ name: z.ZodEffects<z.ZodString, string, string>;
228
+ label: z.ZodString;
229
+ description: z.ZodOptional<z.ZodString>;
230
+ placeholder: z.ZodOptional<z.ZodString>;
231
+ required: z.ZodOptional<z.ZodBoolean>;
232
+ enabled: z.ZodOptional<z.ZodBoolean>;
233
+ } & {
234
+ type: z.ZodLiteral<"media">;
235
+ multi: z.ZodOptional<z.ZodLiteral<false>>;
236
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
237
+ }, "strip", z.ZodTypeAny, {
238
+ type: "media";
239
+ name: string;
240
+ label: string;
241
+ options?: string[] | undefined;
242
+ description?: string | undefined;
243
+ placeholder?: string | undefined;
244
+ required?: boolean | undefined;
245
+ enabled?: boolean | undefined;
246
+ multi?: false | undefined;
247
+ }, {
248
+ type: "media";
249
+ name: string;
250
+ label: string;
251
+ options?: string[] | undefined;
252
+ description?: string | undefined;
253
+ placeholder?: string | undefined;
254
+ required?: boolean | undefined;
255
+ enabled?: boolean | undefined;
256
+ multi?: false | undefined;
257
+ }>, z.ZodObject<{
258
+ name: z.ZodEffects<z.ZodString, string, string>;
259
+ label: z.ZodString;
260
+ description: z.ZodOptional<z.ZodString>;
261
+ placeholder: z.ZodOptional<z.ZodString>;
262
+ required: z.ZodOptional<z.ZodBoolean>;
263
+ enabled: z.ZodOptional<z.ZodBoolean>;
264
+ } & {
265
+ type: z.ZodLiteral<"select">;
266
+ multi: z.ZodBoolean;
267
+ options: z.ZodArray<z.ZodString, "many">;
268
+ }, "strip", z.ZodTypeAny, {
269
+ options: string[];
270
+ type: "select";
271
+ name: string;
272
+ label: string;
273
+ multi: boolean;
274
+ description?: string | undefined;
275
+ placeholder?: string | undefined;
276
+ required?: boolean | undefined;
277
+ enabled?: boolean | undefined;
278
+ }, {
279
+ options: string[];
280
+ type: "select";
281
+ name: string;
282
+ label: string;
283
+ multi: boolean;
284
+ description?: string | undefined;
285
+ placeholder?: string | undefined;
286
+ required?: boolean | undefined;
287
+ enabled?: boolean | undefined;
288
+ }>]>]>, "many">;
289
+ allowedLevels: z.ZodNumber;
290
+ contentTypes: z.ZodArray<z.ZodString, "many">;
291
+ defaultContentType: z.ZodOptional<z.ZodString>;
292
+ contentTypesNameFields: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
293
+ contentTypesPopulate: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
294
+ gql: z.ZodObject<{
295
+ navigationItemRelated: z.ZodArray<z.ZodString, "many">;
296
+ }, "strip", z.ZodTypeAny, {
297
+ navigationItemRelated: string[];
298
+ }, {
299
+ navigationItemRelated: string[];
300
+ }>;
301
+ pathDefaultFields: z.ZodRecord<z.ZodString, z.ZodAny>;
302
+ cascadeMenuAttached: z.ZodBoolean;
303
+ preferCustomContentTypes: z.ZodBoolean;
304
+ isCacheEnabled: z.ZodOptional<z.ZodBoolean>;
305
+ }, "strip", z.ZodTypeAny, {
306
+ additionalFields: ("audience" | {
307
+ type: "string" | "boolean";
308
+ name: string;
309
+ label: string;
310
+ options?: string[] | undefined;
311
+ description?: string | undefined;
312
+ placeholder?: string | undefined;
313
+ required?: boolean | undefined;
314
+ enabled?: boolean | undefined;
315
+ multi?: false | undefined;
316
+ } | {
317
+ type: "media";
318
+ name: string;
319
+ label: string;
320
+ options?: string[] | undefined;
321
+ description?: string | undefined;
322
+ placeholder?: string | undefined;
323
+ required?: boolean | undefined;
324
+ enabled?: boolean | undefined;
325
+ multi?: false | undefined;
326
+ } | {
327
+ options: string[];
328
+ type: "select";
329
+ name: string;
330
+ label: string;
331
+ multi: boolean;
332
+ description?: string | undefined;
333
+ placeholder?: string | undefined;
334
+ required?: boolean | undefined;
335
+ enabled?: boolean | undefined;
336
+ })[];
337
+ allowedLevels: number;
338
+ contentTypes: string[];
339
+ contentTypesNameFields: Record<string, string[]>;
340
+ contentTypesPopulate: Record<string, string[]>;
341
+ gql: {
342
+ navigationItemRelated: string[];
343
+ };
344
+ pathDefaultFields: Record<string, any>;
345
+ cascadeMenuAttached: boolean;
346
+ preferCustomContentTypes: boolean;
347
+ defaultContentType?: string | undefined;
348
+ isCacheEnabled?: boolean | undefined;
349
+ }, {
350
+ additionalFields: ("audience" | {
351
+ type: "string" | "boolean";
352
+ name: string;
353
+ label: string;
354
+ options?: string[] | undefined;
355
+ description?: string | undefined;
356
+ placeholder?: string | undefined;
357
+ required?: boolean | undefined;
358
+ enabled?: boolean | undefined;
359
+ multi?: false | undefined;
360
+ } | {
361
+ type: "media";
362
+ name: string;
363
+ label: string;
364
+ options?: string[] | undefined;
365
+ description?: string | undefined;
366
+ placeholder?: string | undefined;
367
+ required?: boolean | undefined;
368
+ enabled?: boolean | undefined;
369
+ multi?: false | undefined;
370
+ } | {
371
+ options: string[];
372
+ type: "select";
373
+ name: string;
374
+ label: string;
375
+ multi: boolean;
376
+ description?: string | undefined;
377
+ placeholder?: string | undefined;
378
+ required?: boolean | undefined;
379
+ enabled?: boolean | undefined;
380
+ })[];
381
+ allowedLevels: number;
382
+ contentTypes: string[];
383
+ contentTypesNameFields: Record<string, string[]>;
384
+ contentTypesPopulate: Record<string, string[]>;
385
+ gql: {
386
+ navigationItemRelated: string[];
387
+ };
388
+ pathDefaultFields: Record<string, any>;
389
+ cascadeMenuAttached: boolean;
390
+ preferCustomContentTypes: boolean;
391
+ defaultContentType?: string | undefined;
392
+ isCacheEnabled?: boolean | undefined;
393
+ }>) => z.ZodObject<{
394
+ additionalFields: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
395
+ name: z.ZodEffects<z.ZodString, string, string>;
396
+ label: z.ZodString;
397
+ description: z.ZodOptional<z.ZodString>;
398
+ placeholder: z.ZodOptional<z.ZodString>;
399
+ required: z.ZodOptional<z.ZodBoolean>;
400
+ enabled: z.ZodOptional<z.ZodBoolean>;
401
+ } & {
402
+ type: z.ZodEnum<["boolean", "string"]>;
403
+ multi: z.ZodOptional<z.ZodLiteral<false>>;
404
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
405
+ }, "strip", z.ZodTypeAny, {
406
+ type: "string" | "boolean";
407
+ name: string;
408
+ label: string;
409
+ options?: string[] | undefined;
410
+ description?: string | undefined;
411
+ placeholder?: string | undefined;
412
+ required?: boolean | undefined;
413
+ enabled?: boolean | undefined;
414
+ multi?: false | undefined;
415
+ }, {
416
+ type: "string" | "boolean";
417
+ name: string;
418
+ label: string;
419
+ options?: string[] | undefined;
420
+ description?: string | undefined;
421
+ placeholder?: string | undefined;
422
+ required?: boolean | undefined;
423
+ enabled?: boolean | undefined;
424
+ multi?: false | undefined;
425
+ }>, z.ZodObject<{
426
+ name: z.ZodEffects<z.ZodString, string, string>;
427
+ label: z.ZodString;
428
+ description: z.ZodOptional<z.ZodString>;
429
+ placeholder: z.ZodOptional<z.ZodString>;
430
+ required: z.ZodOptional<z.ZodBoolean>;
431
+ enabled: z.ZodOptional<z.ZodBoolean>;
432
+ } & {
433
+ type: z.ZodLiteral<"media">;
434
+ multi: z.ZodOptional<z.ZodLiteral<false>>;
435
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
436
+ }, "strip", z.ZodTypeAny, {
437
+ type: "media";
438
+ name: string;
439
+ label: string;
440
+ options?: string[] | undefined;
441
+ description?: string | undefined;
442
+ placeholder?: string | undefined;
443
+ required?: boolean | undefined;
444
+ enabled?: boolean | undefined;
445
+ multi?: false | undefined;
446
+ }, {
447
+ type: "media";
448
+ name: string;
449
+ label: string;
450
+ options?: string[] | undefined;
451
+ description?: string | undefined;
452
+ placeholder?: string | undefined;
453
+ required?: boolean | undefined;
454
+ enabled?: boolean | undefined;
455
+ multi?: false | undefined;
456
+ }>, z.ZodObject<{
457
+ name: z.ZodEffects<z.ZodString, string, string>;
458
+ label: z.ZodString;
459
+ description: z.ZodOptional<z.ZodString>;
460
+ placeholder: z.ZodOptional<z.ZodString>;
461
+ required: z.ZodOptional<z.ZodBoolean>;
462
+ enabled: z.ZodOptional<z.ZodBoolean>;
463
+ } & {
464
+ type: z.ZodLiteral<"select">;
465
+ multi: z.ZodBoolean;
466
+ options: z.ZodArray<z.ZodString, "many">;
467
+ }, "strip", z.ZodTypeAny, {
468
+ options: string[];
469
+ type: "select";
470
+ name: string;
471
+ label: string;
472
+ multi: boolean;
473
+ description?: string | undefined;
474
+ placeholder?: string | undefined;
475
+ required?: boolean | undefined;
476
+ enabled?: boolean | undefined;
477
+ }, {
478
+ options: string[];
479
+ type: "select";
480
+ name: string;
481
+ label: string;
482
+ multi: boolean;
483
+ description?: string | undefined;
484
+ placeholder?: string | undefined;
485
+ required?: boolean | undefined;
486
+ enabled?: boolean | undefined;
487
+ }>]>]>, "many">;
488
+ allowedLevels: z.ZodNumber;
489
+ contentTypes: z.ZodArray<z.ZodString, "many">;
490
+ defaultContentType: z.ZodOptional<z.ZodString>;
491
+ contentTypesNameFields: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
492
+ contentTypesPopulate: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
493
+ gql: z.ZodObject<{
494
+ navigationItemRelated: z.ZodArray<z.ZodString, "many">;
495
+ }, "strip", z.ZodTypeAny, {
496
+ navigationItemRelated: string[];
497
+ }, {
498
+ navigationItemRelated: string[];
499
+ }>;
500
+ pathDefaultFields: z.ZodRecord<z.ZodString, z.ZodAny>;
501
+ cascadeMenuAttached: z.ZodBoolean;
502
+ preferCustomContentTypes: z.ZodBoolean;
503
+ isCacheEnabled: z.ZodOptional<z.ZodBoolean>;
504
+ }, "strip", z.ZodTypeAny, {
505
+ additionalFields: ("audience" | {
506
+ type: "string" | "boolean";
507
+ name: string;
508
+ label: string;
509
+ options?: string[] | undefined;
510
+ description?: string | undefined;
511
+ placeholder?: string | undefined;
512
+ required?: boolean | undefined;
513
+ enabled?: boolean | undefined;
514
+ multi?: false | undefined;
515
+ } | {
516
+ type: "media";
517
+ name: string;
518
+ label: string;
519
+ options?: string[] | undefined;
520
+ description?: string | undefined;
521
+ placeholder?: string | undefined;
522
+ required?: boolean | undefined;
523
+ enabled?: boolean | undefined;
524
+ multi?: false | undefined;
525
+ } | {
526
+ options: string[];
527
+ type: "select";
528
+ name: string;
529
+ label: string;
530
+ multi: boolean;
531
+ description?: string | undefined;
532
+ placeholder?: string | undefined;
533
+ required?: boolean | undefined;
534
+ enabled?: boolean | undefined;
535
+ })[];
536
+ allowedLevels: number;
537
+ contentTypes: string[];
538
+ contentTypesNameFields: Record<string, string[]>;
539
+ contentTypesPopulate: Record<string, string[]>;
540
+ gql: {
541
+ navigationItemRelated: string[];
542
+ };
543
+ pathDefaultFields: Record<string, any>;
544
+ cascadeMenuAttached: boolean;
545
+ preferCustomContentTypes: boolean;
546
+ defaultContentType?: string | undefined;
547
+ isCacheEnabled?: boolean | undefined;
548
+ }, {
549
+ additionalFields: ("audience" | {
550
+ type: "string" | "boolean";
551
+ name: string;
552
+ label: string;
553
+ options?: string[] | undefined;
554
+ description?: string | undefined;
555
+ placeholder?: string | undefined;
556
+ required?: boolean | undefined;
557
+ enabled?: boolean | undefined;
558
+ multi?: false | undefined;
559
+ } | {
560
+ type: "media";
561
+ name: string;
562
+ label: string;
563
+ options?: string[] | undefined;
564
+ description?: string | undefined;
565
+ placeholder?: string | undefined;
566
+ required?: boolean | undefined;
567
+ enabled?: boolean | undefined;
568
+ multi?: false | undefined;
569
+ } | {
570
+ options: string[];
571
+ type: "select";
572
+ name: string;
573
+ label: string;
574
+ multi: boolean;
575
+ description?: string | undefined;
576
+ placeholder?: string | undefined;
577
+ required?: boolean | undefined;
578
+ enabled?: boolean | undefined;
579
+ })[];
580
+ allowedLevels: number;
581
+ contentTypes: string[];
582
+ contentTypesNameFields: Record<string, string[]>;
583
+ contentTypesPopulate: Record<string, string[]>;
584
+ gql: {
585
+ navigationItemRelated: string[];
586
+ };
587
+ pathDefaultFields: Record<string, any>;
588
+ cascadeMenuAttached: boolean;
589
+ preferCustomContentTypes: boolean;
590
+ defaultContentType?: string | undefined;
591
+ isCacheEnabled?: boolean | undefined;
592
+ }>) => void;
593
+ updateCreateNavigationSchema: (modifier: (base: z.ZodObject<Omit<{
594
+ id: z.ZodNumber;
595
+ documentId: z.ZodString;
596
+ name: z.ZodString;
597
+ slug: z.ZodString;
598
+ locale: z.ZodString;
599
+ visible: z.ZodBoolean;
600
+ items: z.ZodArray<z.ZodType<import("../schemas").NavigationItemDBSchema, z.ZodTypeDef, import("../schemas").NavigationItemDBSchema>, "many"> | z.ZodOptional<z.ZodArray<z.ZodType<import("../schemas").NavigationItemDBSchema, z.ZodTypeDef, import("../schemas").NavigationItemDBSchema>, "many">>;
601
+ }, "id" | "documentId" | "slug" | "locale" | "items"> & {
602
+ documentId: z.ZodOptional<z.ZodString>;
603
+ id: z.ZodOptional<z.ZodUndefined>;
604
+ }, "strip", z.ZodTypeAny, {
605
+ name: string;
606
+ visible: boolean;
607
+ id?: undefined;
608
+ documentId?: string | undefined;
609
+ }, {
610
+ name: string;
611
+ visible: boolean;
612
+ id?: undefined;
613
+ documentId?: string | undefined;
614
+ }>) => z.ZodObject<Omit<{
615
+ id: z.ZodNumber;
616
+ documentId: z.ZodString;
617
+ name: z.ZodString;
618
+ slug: z.ZodString;
619
+ locale: z.ZodString;
620
+ visible: z.ZodBoolean;
621
+ items: z.ZodArray<z.ZodType<import("../schemas").NavigationItemDBSchema, z.ZodTypeDef, import("../schemas").NavigationItemDBSchema>, "many"> | z.ZodOptional<z.ZodArray<z.ZodType<import("../schemas").NavigationItemDBSchema, z.ZodTypeDef, import("../schemas").NavigationItemDBSchema>, "many">>;
622
+ }, "id" | "documentId" | "slug" | "locale" | "items"> & {
623
+ documentId: z.ZodOptional<z.ZodString>;
624
+ id: z.ZodOptional<z.ZodUndefined>;
625
+ }, "strip", z.ZodTypeAny, {
626
+ name: string;
627
+ visible: boolean;
628
+ id?: undefined;
629
+ documentId?: string | undefined;
630
+ }, {
631
+ name: string;
632
+ visible: boolean;
633
+ id?: undefined;
634
+ documentId?: string | undefined;
635
+ }>) => void;
636
+ updateNavigationItemAdditionalField: (modifier: (base: z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
637
+ name: z.ZodEffects<z.ZodString, string, string>;
638
+ label: z.ZodString;
639
+ description: z.ZodOptional<z.ZodString>;
640
+ placeholder: z.ZodOptional<z.ZodString>;
641
+ required: z.ZodOptional<z.ZodBoolean>;
642
+ enabled: z.ZodOptional<z.ZodBoolean>;
643
+ } & {
644
+ type: z.ZodEnum<["boolean", "string"]>;
645
+ multi: z.ZodOptional<z.ZodLiteral<false>>;
646
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
647
+ }, "strip", z.ZodTypeAny, {
648
+ type: "string" | "boolean";
649
+ name: string;
650
+ label: string;
651
+ options?: string[] | undefined;
652
+ description?: string | undefined;
653
+ placeholder?: string | undefined;
654
+ required?: boolean | undefined;
655
+ enabled?: boolean | undefined;
656
+ multi?: false | undefined;
657
+ }, {
658
+ type: "string" | "boolean";
659
+ name: string;
660
+ label: string;
661
+ options?: string[] | undefined;
662
+ description?: string | undefined;
663
+ placeholder?: string | undefined;
664
+ required?: boolean | undefined;
665
+ enabled?: boolean | undefined;
666
+ multi?: false | undefined;
667
+ }>, z.ZodObject<{
668
+ name: z.ZodEffects<z.ZodString, string, string>;
669
+ label: z.ZodString;
670
+ description: z.ZodOptional<z.ZodString>;
671
+ placeholder: z.ZodOptional<z.ZodString>;
672
+ required: z.ZodOptional<z.ZodBoolean>;
673
+ enabled: z.ZodOptional<z.ZodBoolean>;
674
+ } & {
675
+ type: z.ZodLiteral<"media">;
676
+ multi: z.ZodOptional<z.ZodLiteral<false>>;
677
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
678
+ }, "strip", z.ZodTypeAny, {
679
+ type: "media";
680
+ name: string;
681
+ label: string;
682
+ options?: string[] | undefined;
683
+ description?: string | undefined;
684
+ placeholder?: string | undefined;
685
+ required?: boolean | undefined;
686
+ enabled?: boolean | undefined;
687
+ multi?: false | undefined;
688
+ }, {
689
+ type: "media";
690
+ name: string;
691
+ label: string;
692
+ options?: string[] | undefined;
693
+ description?: string | undefined;
694
+ placeholder?: string | undefined;
695
+ required?: boolean | undefined;
696
+ enabled?: boolean | undefined;
697
+ multi?: false | undefined;
698
+ }>, z.ZodObject<{
699
+ name: z.ZodEffects<z.ZodString, string, string>;
700
+ label: z.ZodString;
701
+ description: z.ZodOptional<z.ZodString>;
702
+ placeholder: z.ZodOptional<z.ZodString>;
703
+ required: z.ZodOptional<z.ZodBoolean>;
704
+ enabled: z.ZodOptional<z.ZodBoolean>;
705
+ } & {
706
+ type: z.ZodLiteral<"select">;
707
+ multi: z.ZodBoolean;
708
+ options: z.ZodArray<z.ZodString, "many">;
709
+ }, "strip", z.ZodTypeAny, {
710
+ options: string[];
711
+ type: "select";
712
+ name: string;
713
+ label: string;
714
+ multi: boolean;
715
+ description?: string | undefined;
716
+ placeholder?: string | undefined;
717
+ required?: boolean | undefined;
718
+ enabled?: boolean | undefined;
719
+ }, {
720
+ options: string[];
721
+ type: "select";
722
+ name: string;
723
+ label: string;
724
+ multi: boolean;
725
+ description?: string | undefined;
726
+ placeholder?: string | undefined;
727
+ required?: boolean | undefined;
728
+ enabled?: boolean | undefined;
729
+ }>]>]>) => z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
730
+ name: z.ZodEffects<z.ZodString, string, string>;
731
+ label: z.ZodString;
732
+ description: z.ZodOptional<z.ZodString>;
733
+ placeholder: z.ZodOptional<z.ZodString>;
734
+ required: z.ZodOptional<z.ZodBoolean>;
735
+ enabled: z.ZodOptional<z.ZodBoolean>;
736
+ } & {
737
+ type: z.ZodEnum<["boolean", "string"]>;
738
+ multi: z.ZodOptional<z.ZodLiteral<false>>;
739
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
740
+ }, "strip", z.ZodTypeAny, {
741
+ type: "string" | "boolean";
742
+ name: string;
743
+ label: string;
744
+ options?: string[] | undefined;
745
+ description?: string | undefined;
746
+ placeholder?: string | undefined;
747
+ required?: boolean | undefined;
748
+ enabled?: boolean | undefined;
749
+ multi?: false | undefined;
750
+ }, {
751
+ type: "string" | "boolean";
752
+ name: string;
753
+ label: string;
754
+ options?: string[] | undefined;
755
+ description?: string | undefined;
756
+ placeholder?: string | undefined;
757
+ required?: boolean | undefined;
758
+ enabled?: boolean | undefined;
759
+ multi?: false | undefined;
760
+ }>, z.ZodObject<{
761
+ name: z.ZodEffects<z.ZodString, string, string>;
762
+ label: z.ZodString;
763
+ description: z.ZodOptional<z.ZodString>;
764
+ placeholder: z.ZodOptional<z.ZodString>;
765
+ required: z.ZodOptional<z.ZodBoolean>;
766
+ enabled: z.ZodOptional<z.ZodBoolean>;
767
+ } & {
768
+ type: z.ZodLiteral<"media">;
769
+ multi: z.ZodOptional<z.ZodLiteral<false>>;
770
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
771
+ }, "strip", z.ZodTypeAny, {
772
+ type: "media";
773
+ name: string;
774
+ label: string;
775
+ options?: string[] | undefined;
776
+ description?: string | undefined;
777
+ placeholder?: string | undefined;
778
+ required?: boolean | undefined;
779
+ enabled?: boolean | undefined;
780
+ multi?: false | undefined;
781
+ }, {
782
+ type: "media";
783
+ name: string;
784
+ label: string;
785
+ options?: string[] | undefined;
786
+ description?: string | undefined;
787
+ placeholder?: string | undefined;
788
+ required?: boolean | undefined;
789
+ enabled?: boolean | undefined;
790
+ multi?: false | undefined;
791
+ }>, z.ZodObject<{
792
+ name: z.ZodEffects<z.ZodString, string, string>;
793
+ label: z.ZodString;
794
+ description: z.ZodOptional<z.ZodString>;
795
+ placeholder: z.ZodOptional<z.ZodString>;
796
+ required: z.ZodOptional<z.ZodBoolean>;
797
+ enabled: z.ZodOptional<z.ZodBoolean>;
798
+ } & {
799
+ type: z.ZodLiteral<"select">;
800
+ multi: z.ZodBoolean;
801
+ options: z.ZodArray<z.ZodString, "many">;
802
+ }, "strip", z.ZodTypeAny, {
803
+ options: string[];
804
+ type: "select";
805
+ name: string;
806
+ label: string;
807
+ multi: boolean;
808
+ description?: string | undefined;
809
+ placeholder?: string | undefined;
810
+ required?: boolean | undefined;
811
+ enabled?: boolean | undefined;
812
+ }, {
813
+ options: string[];
814
+ type: "select";
815
+ name: string;
816
+ label: string;
817
+ multi: boolean;
818
+ description?: string | undefined;
819
+ placeholder?: string | undefined;
820
+ required?: boolean | undefined;
821
+ enabled?: boolean | undefined;
822
+ }>]>]>) => void;
823
+ updateNavigationItemCustomField: (modifier: (base: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
824
+ name: z.ZodEffects<z.ZodString, string, string>;
825
+ label: z.ZodString;
826
+ description: z.ZodOptional<z.ZodString>;
827
+ placeholder: z.ZodOptional<z.ZodString>;
828
+ required: z.ZodOptional<z.ZodBoolean>;
829
+ enabled: z.ZodOptional<z.ZodBoolean>;
830
+ } & {
831
+ type: z.ZodEnum<["boolean", "string"]>;
832
+ multi: z.ZodOptional<z.ZodLiteral<false>>;
833
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
834
+ }, "strip", z.ZodTypeAny, {
835
+ type: "string" | "boolean";
836
+ name: string;
837
+ label: string;
838
+ options?: string[] | undefined;
839
+ description?: string | undefined;
840
+ placeholder?: string | undefined;
841
+ required?: boolean | undefined;
842
+ enabled?: boolean | undefined;
843
+ multi?: false | undefined;
844
+ }, {
845
+ type: "string" | "boolean";
846
+ name: string;
847
+ label: string;
848
+ options?: string[] | undefined;
849
+ description?: string | undefined;
850
+ placeholder?: string | undefined;
851
+ required?: boolean | undefined;
852
+ enabled?: boolean | undefined;
853
+ multi?: false | undefined;
854
+ }>, z.ZodObject<{
855
+ name: z.ZodEffects<z.ZodString, string, string>;
856
+ label: z.ZodString;
857
+ description: z.ZodOptional<z.ZodString>;
858
+ placeholder: z.ZodOptional<z.ZodString>;
859
+ required: z.ZodOptional<z.ZodBoolean>;
860
+ enabled: z.ZodOptional<z.ZodBoolean>;
861
+ } & {
862
+ type: z.ZodLiteral<"media">;
863
+ multi: z.ZodOptional<z.ZodLiteral<false>>;
864
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
865
+ }, "strip", z.ZodTypeAny, {
866
+ type: "media";
867
+ name: string;
868
+ label: string;
869
+ options?: string[] | undefined;
870
+ description?: string | undefined;
871
+ placeholder?: string | undefined;
872
+ required?: boolean | undefined;
873
+ enabled?: boolean | undefined;
874
+ multi?: false | undefined;
875
+ }, {
876
+ type: "media";
877
+ name: string;
878
+ label: string;
879
+ options?: string[] | undefined;
880
+ description?: string | undefined;
881
+ placeholder?: string | undefined;
882
+ required?: boolean | undefined;
883
+ enabled?: boolean | undefined;
884
+ multi?: false | undefined;
885
+ }>, z.ZodObject<{
886
+ name: z.ZodEffects<z.ZodString, string, string>;
887
+ label: z.ZodString;
888
+ description: z.ZodOptional<z.ZodString>;
889
+ placeholder: z.ZodOptional<z.ZodString>;
890
+ required: z.ZodOptional<z.ZodBoolean>;
891
+ enabled: z.ZodOptional<z.ZodBoolean>;
892
+ } & {
893
+ type: z.ZodLiteral<"select">;
894
+ multi: z.ZodBoolean;
895
+ options: z.ZodArray<z.ZodString, "many">;
896
+ }, "strip", z.ZodTypeAny, {
897
+ options: string[];
898
+ type: "select";
899
+ name: string;
900
+ label: string;
901
+ multi: boolean;
902
+ description?: string | undefined;
903
+ placeholder?: string | undefined;
904
+ required?: boolean | undefined;
905
+ enabled?: boolean | undefined;
906
+ }, {
907
+ options: string[];
908
+ type: "select";
909
+ name: string;
910
+ label: string;
911
+ multi: boolean;
912
+ description?: string | undefined;
913
+ placeholder?: string | undefined;
914
+ required?: boolean | undefined;
915
+ enabled?: boolean | undefined;
916
+ }>]>) => z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
917
+ name: z.ZodEffects<z.ZodString, string, string>;
918
+ label: z.ZodString;
919
+ description: z.ZodOptional<z.ZodString>;
920
+ placeholder: z.ZodOptional<z.ZodString>;
921
+ required: z.ZodOptional<z.ZodBoolean>;
922
+ enabled: z.ZodOptional<z.ZodBoolean>;
923
+ } & {
924
+ type: z.ZodEnum<["boolean", "string"]>;
925
+ multi: z.ZodOptional<z.ZodLiteral<false>>;
926
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
927
+ }, "strip", z.ZodTypeAny, {
928
+ type: "string" | "boolean";
929
+ name: string;
930
+ label: string;
931
+ options?: string[] | undefined;
932
+ description?: string | undefined;
933
+ placeholder?: string | undefined;
934
+ required?: boolean | undefined;
935
+ enabled?: boolean | undefined;
936
+ multi?: false | undefined;
937
+ }, {
938
+ type: "string" | "boolean";
939
+ name: string;
940
+ label: string;
941
+ options?: string[] | undefined;
942
+ description?: string | undefined;
943
+ placeholder?: string | undefined;
944
+ required?: boolean | undefined;
945
+ enabled?: boolean | undefined;
946
+ multi?: false | undefined;
947
+ }>, z.ZodObject<{
948
+ name: z.ZodEffects<z.ZodString, string, string>;
949
+ label: z.ZodString;
950
+ description: z.ZodOptional<z.ZodString>;
951
+ placeholder: z.ZodOptional<z.ZodString>;
952
+ required: z.ZodOptional<z.ZodBoolean>;
953
+ enabled: z.ZodOptional<z.ZodBoolean>;
954
+ } & {
955
+ type: z.ZodLiteral<"media">;
956
+ multi: z.ZodOptional<z.ZodLiteral<false>>;
957
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
958
+ }, "strip", z.ZodTypeAny, {
959
+ type: "media";
960
+ name: string;
961
+ label: string;
962
+ options?: string[] | undefined;
963
+ description?: string | undefined;
964
+ placeholder?: string | undefined;
965
+ required?: boolean | undefined;
966
+ enabled?: boolean | undefined;
967
+ multi?: false | undefined;
968
+ }, {
969
+ type: "media";
970
+ name: string;
971
+ label: string;
972
+ options?: string[] | undefined;
973
+ description?: string | undefined;
974
+ placeholder?: string | undefined;
975
+ required?: boolean | undefined;
976
+ enabled?: boolean | undefined;
977
+ multi?: false | undefined;
978
+ }>, z.ZodObject<{
979
+ name: z.ZodEffects<z.ZodString, string, string>;
980
+ label: z.ZodString;
981
+ description: z.ZodOptional<z.ZodString>;
982
+ placeholder: z.ZodOptional<z.ZodString>;
983
+ required: z.ZodOptional<z.ZodBoolean>;
984
+ enabled: z.ZodOptional<z.ZodBoolean>;
985
+ } & {
986
+ type: z.ZodLiteral<"select">;
987
+ multi: z.ZodBoolean;
988
+ options: z.ZodArray<z.ZodString, "many">;
989
+ }, "strip", z.ZodTypeAny, {
990
+ options: string[];
991
+ type: "select";
992
+ name: string;
993
+ label: string;
994
+ multi: boolean;
995
+ description?: string | undefined;
996
+ placeholder?: string | undefined;
997
+ required?: boolean | undefined;
998
+ enabled?: boolean | undefined;
999
+ }, {
1000
+ options: string[];
1001
+ type: "select";
1002
+ name: string;
1003
+ label: string;
1004
+ multi: boolean;
1005
+ description?: string | undefined;
1006
+ placeholder?: string | undefined;
1007
+ required?: boolean | undefined;
1008
+ enabled?: boolean | undefined;
1009
+ }>]>) => void;
1010
+ updateUpdateNavigationSchema: (modifier: (base: z.ZodObject<{
1011
+ name: z.ZodOptional<z.ZodString>;
1012
+ id: z.ZodNumber;
1013
+ documentId: z.ZodString;
1014
+ slug: z.ZodOptional<z.ZodString>;
1015
+ locale: z.ZodOptional<z.ZodString>;
1016
+ visible: z.ZodOptional<z.ZodBoolean>;
1017
+ items: z.ZodOptional<z.ZodArray<import("../schemas").UpdateNavigationItemSchema, "many">>;
1018
+ }, "strip", z.ZodTypeAny, {
1019
+ id: number;
1020
+ documentId: string;
1021
+ name?: string | undefined;
1022
+ slug?: string | undefined;
1023
+ locale?: string | undefined;
1024
+ visible?: boolean | undefined;
1025
+ items?: Omit<import("../schemas").NavigationItemDBSchema, "id" | "documentId" | "items" | "parent">[] | undefined;
1026
+ }, {
1027
+ id: number;
1028
+ documentId: string;
1029
+ name?: string | undefined;
1030
+ slug?: string | undefined;
1031
+ locale?: string | undefined;
1032
+ visible?: boolean | undefined;
1033
+ items?: Omit<import("../schemas").NavigationItemDBSchema, "id" | "documentId" | "items" | "parent">[] | undefined;
1034
+ }>) => z.ZodObject<{
1035
+ name: z.ZodOptional<z.ZodString>;
1036
+ id: z.ZodNumber;
1037
+ documentId: z.ZodString;
1038
+ slug: z.ZodOptional<z.ZodString>;
1039
+ locale: z.ZodOptional<z.ZodString>;
1040
+ visible: z.ZodOptional<z.ZodBoolean>;
1041
+ items: z.ZodOptional<z.ZodArray<import("../schemas").UpdateNavigationItemSchema, "many">>;
1042
+ }, "strip", z.ZodTypeAny, {
1043
+ id: number;
1044
+ documentId: string;
1045
+ name?: string | undefined;
1046
+ slug?: string | undefined;
1047
+ locale?: string | undefined;
1048
+ visible?: boolean | undefined;
1049
+ items?: Omit<import("../schemas").NavigationItemDBSchema, "id" | "documentId" | "items" | "parent">[] | undefined;
1050
+ }, {
1051
+ id: number;
1052
+ documentId: string;
1053
+ name?: string | undefined;
1054
+ slug?: string | undefined;
1055
+ locale?: string | undefined;
1056
+ visible?: boolean | undefined;
1057
+ items?: Omit<import("../schemas").NavigationItemDBSchema, "id" | "documentId" | "items" | "parent">[] | undefined;
1058
+ }>) => void;
179
1059
  };
180
1060
  get(): Promise<{
181
1061
  name: string;
@@ -186,7 +1066,7 @@ export default function adminController(context: {
186
1066
  visible: boolean;
187
1067
  items?: import("../schemas").NavigationItemDBSchema[] | undefined;
188
1068
  }[]>;
189
- post(ctx: KoaContext & KoaContextExtension): Promise<import("../dtos").NavigationDTO>;
1069
+ post(ctx: KoaContext & KoaContextExtension): Promise<import("../dtos").NavigationDTO | KoaContext>;
190
1070
  put(ctx: KoaContext & KoaContextExtension): Promise<{
191
1071
  name: string;
192
1072
  id: number;
@@ -195,7 +1075,7 @@ export default function adminController(context: {
195
1075
  locale: string;
196
1076
  visible: boolean;
197
1077
  items?: import("../schemas").NavigationItemDBSchema[] | undefined;
198
- }>;
1078
+ } | KoaContext>;
199
1079
  delete(ctx: KoaContext): Promise<{}>;
200
1080
  config(): Promise<import("../dtos").NavigationPluginConfigDTO>;
201
1081
  updateConfig(ctx: KoaContext & KoaContextExtension): Promise<{}>;