@strapi/content-manager 5.50.1 → 5.51.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 (66) hide show
  1. package/dist/admin/content-manager.js +31 -4
  2. package/dist/admin/content-manager.js.map +1 -1
  3. package/dist/admin/content-manager.mjs +31 -4
  4. package/dist/admin/content-manager.mjs.map +1 -1
  5. package/dist/admin/index.js +1 -1
  6. package/dist/admin/index.js.map +1 -1
  7. package/dist/admin/index.mjs +1 -1
  8. package/dist/admin/index.mjs.map +1 -1
  9. package/dist/admin/pages/EditView/components/FormInputs/BlocksInput/BlocksEditor.js +29 -9
  10. package/dist/admin/pages/EditView/components/FormInputs/BlocksInput/BlocksEditor.js.map +1 -1
  11. package/dist/admin/pages/EditView/components/FormInputs/BlocksInput/BlocksEditor.mjs +29 -9
  12. package/dist/admin/pages/EditView/components/FormInputs/BlocksInput/BlocksEditor.mjs.map +1 -1
  13. package/dist/admin/pages/EditView/components/FormInputs/BlocksInput/BlocksToolbar.js +5 -13
  14. package/dist/admin/pages/EditView/components/FormInputs/BlocksInput/BlocksToolbar.js.map +1 -1
  15. package/dist/admin/pages/EditView/components/FormInputs/BlocksInput/BlocksToolbar.mjs +5 -13
  16. package/dist/admin/pages/EditView/components/FormInputs/BlocksInput/BlocksToolbar.mjs.map +1 -1
  17. package/dist/admin/pages/EditView/components/FormInputs/Relations/Relations.js +4 -1
  18. package/dist/admin/pages/EditView/components/FormInputs/Relations/Relations.js.map +1 -1
  19. package/dist/admin/pages/EditView/components/FormInputs/Relations/Relations.mjs +4 -1
  20. package/dist/admin/pages/EditView/components/FormInputs/Relations/Relations.mjs.map +1 -1
  21. package/dist/admin/pages/EditView/utils/draftRelationCounts.js +14 -7
  22. package/dist/admin/pages/EditView/utils/draftRelationCounts.js.map +1 -1
  23. package/dist/admin/pages/EditView/utils/draftRelationCounts.mjs +14 -8
  24. package/dist/admin/pages/EditView/utils/draftRelationCounts.mjs.map +1 -1
  25. package/dist/admin/preview/components/PreviewSidePanel.js +46 -9
  26. package/dist/admin/preview/components/PreviewSidePanel.js.map +1 -1
  27. package/dist/admin/preview/components/PreviewSidePanel.mjs +27 -10
  28. package/dist/admin/preview/components/PreviewSidePanel.mjs.map +1 -1
  29. package/dist/admin/src/content-manager.d.ts +1 -1
  30. package/dist/admin/src/history/services/historyVersion.d.ts +1 -1
  31. package/dist/admin/src/index.d.ts +1 -1
  32. package/dist/admin/src/pages/EditView/components/FormInputs/BlocksInput/plugins/withStrapiSchema.d.ts +1 -1
  33. package/dist/admin/src/pages/EditView/components/FormInputs/Relations/Relations.d.ts +9 -1
  34. package/dist/admin/src/pages/EditView/utils/draftRelationCounts.d.ts +1 -0
  35. package/dist/admin/src/services/documents.d.ts +5 -5
  36. package/dist/admin/src/services/uid.d.ts +2 -2
  37. package/dist/admin/translations/ko.json.js +180 -1
  38. package/dist/admin/translations/ko.json.js.map +1 -1
  39. package/dist/admin/translations/ko.json.mjs +180 -1
  40. package/dist/admin/translations/ko.json.mjs.map +1 -1
  41. package/dist/server/src/controllers/index.d.ts +1 -1
  42. package/dist/server/src/controllers/utils/metadata.d.ts +1 -1
  43. package/dist/server/src/history/routes/index.d.ts +3 -1
  44. package/dist/server/src/history/routes/index.d.ts.map +1 -1
  45. package/dist/server/src/history/services/index.d.ts +3 -3
  46. package/dist/server/src/homepage/index.d.ts +7 -3
  47. package/dist/server/src/homepage/index.d.ts.map +1 -1
  48. package/dist/server/src/homepage/routes/index.d.ts +3 -1
  49. package/dist/server/src/homepage/routes/index.d.ts.map +1 -1
  50. package/dist/server/src/homepage/services/index.d.ts +1 -1
  51. package/dist/server/src/index.d.ts +69 -67
  52. package/dist/server/src/index.d.ts.map +1 -1
  53. package/dist/server/src/preview/routes/index.d.ts +3 -1
  54. package/dist/server/src/preview/routes/index.d.ts.map +1 -1
  55. package/dist/server/src/preview/services/index.d.ts +4 -4
  56. package/dist/server/src/preview/services/index.d.ts.map +1 -1
  57. package/dist/server/src/routes/index.d.ts +3 -1
  58. package/dist/server/src/routes/index.d.ts.map +1 -1
  59. package/dist/server/src/services/data-mapper.d.ts +1 -1
  60. package/dist/server/src/services/index.d.ts +63 -63
  61. package/dist/server/src/services/populate-builder.d.ts +1 -1
  62. package/dist/server/src/utils/index.d.ts +2 -2
  63. package/dist/server/src/utils/index.d.ts.map +1 -1
  64. package/dist/server/utils/index.js.map +1 -1
  65. package/dist/server/utils/index.mjs.map +1 -1
  66. package/package.json +15 -11
@@ -1,10 +1,10 @@
1
1
  declare const _default: () => {
2
2
  register: ({ strapi }: {
3
- strapi: import("@strapi/types/dist/core").Strapi;
3
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
4
4
  }) => void | Promise<void>;
5
5
  bootstrap: () => Promise<void>;
6
6
  destroy: ({ strapi }: {
7
- strapi: import("@strapi/types/dist/core").Strapi;
7
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
8
8
  }) => void | Promise<void>;
9
9
  controllers: {
10
10
  'collection-types': {
@@ -40,7 +40,7 @@ declare const _default: () => {
40
40
  getInitData(ctx: any): void;
41
41
  };
42
42
  relations: {
43
- extractAndValidateRequestInfo(ctx: any, id?: import("@strapi/types/dist/data").ID): Promise<any>;
43
+ extractAndValidateRequestInfo(ctx: any, id?: import("@strapi/types/dist/data/constants.js").ID): Promise<any>;
44
44
  findAvailable(ctx: any): Promise<void>;
45
45
  findExisting(ctx: any): Promise<void>;
46
46
  };
@@ -59,7 +59,9 @@ declare const _default: () => {
59
59
  };
60
60
  };
61
61
  routes: {
62
- homepage: import("@strapi/types/dist/core").Router;
62
+ homepage: import("@strapi/types/dist/core/router.js").Router | ((params: {
63
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
64
+ }) => import("@strapi/types/dist/core/router.js").Router);
63
65
  admin: {
64
66
  type: string;
65
67
  routes: ({
@@ -109,7 +111,7 @@ declare const _default: () => {
109
111
  };
110
112
  services: {
111
113
  homepage: ({ strapi }: {
112
- strapi: import("@strapi/types/dist/core").Strapi;
114
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
113
115
  }) => {
114
116
  addStatusToDocuments(documents: import("../../shared/contracts/homepage").RecentDocument[]): Promise<import("../../shared/contracts/homepage").RecentDocument[]>;
115
117
  queryLastDocuments(additionalQueryParams?: Record<string, unknown>, draftAndPublishOnly?: boolean): Promise<import("../../shared/contracts/homepage").RecentDocument[]>;
@@ -118,11 +120,11 @@ declare const _default: () => {
118
120
  getCountDocuments(): Promise<import("../../shared/contracts/homepage").GetCountDocuments.Response["data"]>;
119
121
  };
120
122
  components: ({ strapi }: {
121
- strapi: import("@strapi/types/dist/core").Strapi;
123
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
122
124
  }) => {
123
125
  findAllComponents(): unknown[];
124
- findComponent(uid: import("@strapi/types/dist/uid").Component): any;
125
- findConfiguration(component: import("@strapi/types/dist/struct").ComponentSchema): Promise<{
126
+ findComponent(uid: import("@strapi/types/dist/uid/index.js").Component): any;
127
+ findConfiguration(component: import("@strapi/types/dist/struct/schema.js").ComponentSchema): Promise<{
126
128
  uid: string;
127
129
  settings: import("../../shared/contracts/content-types").Settings;
128
130
  metadatas: import("../../shared/contracts/content-types").Metadatas;
@@ -130,7 +132,7 @@ declare const _default: () => {
130
132
  options?: object;
131
133
  category: string;
132
134
  }>;
133
- updateConfiguration(component: import("@strapi/types/dist/struct").ComponentSchema, newConfiguration: import("./services/configuration").ConfigurationUpdate): Promise<{
135
+ updateConfiguration(component: import("@strapi/types/dist/struct/schema.js").ComponentSchema, newConfiguration: import("./services/configuration").ConfigurationUpdate): Promise<{
134
136
  uid: string;
135
137
  settings: import("../../shared/contracts/content-types").Settings;
136
138
  metadatas: import("../../shared/contracts/content-types").Metadatas;
@@ -138,52 +140,52 @@ declare const _default: () => {
138
140
  options?: object;
139
141
  category: string;
140
142
  }>;
141
- findComponentsConfigurations(model: import("@strapi/types/dist/struct").ComponentSchema): Promise<Record<string, import("../../shared/contracts/content-types").Configuration & {
143
+ findComponentsConfigurations(model: import("@strapi/types/dist/struct/schema.js").ComponentSchema): Promise<Record<string, import("../../shared/contracts/content-types").Configuration & {
142
144
  category: string;
143
145
  isComponent: boolean;
144
146
  }>>;
145
147
  syncConfigurations(): Promise<void>;
146
148
  };
147
149
  'content-types': ({ strapi }: {
148
- strapi: import("@strapi/types/dist/core").Strapi;
150
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
149
151
  }) => {
150
152
  findAllContentTypes(): unknown[];
151
- findContentType(uid: import("@strapi/types/dist/uid").ContentType): any;
153
+ findContentType(uid: import("@strapi/types/dist/uid/index.js").ContentType): any;
152
154
  findDisplayedContentTypes(): unknown[];
153
155
  findContentTypesByKind(kind: {
154
- kind: import("@strapi/types/dist/struct").ContentTypeKind | undefined;
156
+ kind: import("@strapi/types/dist/struct/schema.js").ContentTypeKind | undefined;
155
157
  }): unknown[];
156
- findConfiguration(contentType: import("@strapi/types/dist/struct").ContentTypeSchema): Promise<any>;
157
- updateConfiguration(contentType: import("@strapi/types/dist/struct").ContentTypeSchema, newConfiguration: import("./services/configuration").ConfigurationUpdate): Promise<any>;
158
- findComponentsConfigurations(contentType: import("@strapi/types/dist/struct").ContentTypeSchema): any;
158
+ findConfiguration(contentType: import("@strapi/types/dist/struct/schema.js").ContentTypeSchema): Promise<any>;
159
+ updateConfiguration(contentType: import("@strapi/types/dist/struct/schema.js").ContentTypeSchema, newConfiguration: import("./services/configuration").ConfigurationUpdate): Promise<any>;
160
+ findComponentsConfigurations(contentType: import("@strapi/types/dist/struct/schema.js").ContentTypeSchema): any;
159
161
  syncConfigurations(): Promise<void>;
160
162
  };
161
163
  'data-mapper': () => {
162
- toContentManagerModel(contentType: import("@strapi/types/dist/struct").ComponentSchema): {
164
+ toContentManagerModel(contentType: import("@strapi/types/dist/struct/schema.js").ComponentSchema): {
163
165
  apiID: string;
164
166
  isDisplayed: boolean;
165
167
  attributes: any;
166
168
  modelType: "component";
167
- uid: import("@strapi/types/dist/uid").Component;
169
+ uid: import("@strapi/types/dist/uid/index.js").Component;
168
170
  category: string;
169
171
  modelName: string;
170
172
  globalId: string;
171
- pluginOptions?: import("@strapi/types/dist/struct").SchemaPluginOptions;
172
- options?: import("@strapi/types/dist/struct").SchemaOptions;
173
+ pluginOptions?: import("@strapi/types/dist/struct/schema.js").SchemaPluginOptions;
174
+ options?: import("@strapi/types/dist/struct/schema.js").SchemaOptions;
173
175
  collectionName?: string;
174
176
  plugin?: string;
175
- info: import("@strapi/types/dist/struct").SchemaInfo;
177
+ info: import("@strapi/types/dist/struct/schema.js").SchemaInfo;
176
178
  };
177
179
  toDto: import("lodash/fp").LodashPick2x1;
178
180
  };
179
181
  'document-metadata': ({ strapi }: {
180
- strapi: import("@strapi/types/dist/core").Strapi;
182
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
181
183
  }) => {
182
- getAvailableLocales(uid: import("@strapi/types/dist/uid").ContentType, version: import("./services/document-metadata").DocumentVersion, allVersions: import("./services/document-metadata").DocumentVersion[]): Promise<import("../../shared/contracts/collection-types").AvailableLocaleDocument[]>;
184
+ getAvailableLocales(uid: import("@strapi/types/dist/uid/index.js").ContentType, version: import("./services/document-metadata").DocumentVersion, allVersions: import("./services/document-metadata").DocumentVersion[]): Promise<import("../../shared/contracts/collection-types").AvailableLocaleDocument[]>;
183
185
  getAvailableStatus(version: import("./services/document-metadata").DocumentVersion, allVersions: import("./services/document-metadata").DocumentVersion[]): Partial<import("./services/document-metadata").DocumentVersion> | undefined;
184
- getManyAvailableStatus(uid: import("@strapi/types/dist/uid").ContentType, documents: import("./services/document-metadata").DocumentVersion[]): Promise<any[]>;
186
+ getManyAvailableStatus(uid: import("@strapi/types/dist/uid/index.js").ContentType, documents: import("./services/document-metadata").DocumentVersion[]): Promise<any[]>;
185
187
  getStatus(version: import("./services/document-metadata").DocumentVersion, otherDocumentStatuses?: import("../../shared/contracts/collection-types").DocumentMetadata["availableStatus"]): string;
186
- getMetadata(uid: import("@strapi/types/dist/uid").ContentType, version: import("./services/document-metadata").DocumentVersion, { availableLocales, availableStatus }?: import("./services/document-metadata").GetMetadataOptions): Promise<{
188
+ getMetadata(uid: import("@strapi/types/dist/uid/index.js").ContentType, version: import("./services/document-metadata").DocumentVersion, { availableLocales, availableStatus }?: import("./services/document-metadata").GetMetadataOptions): Promise<{
187
189
  availableLocales: never[];
188
190
  availableStatus: Pick<any, string>[];
189
191
  versions: import("./services/document-metadata").DocumentVersion[];
@@ -192,11 +194,11 @@ declare const _default: () => {
192
194
  availableStatus: Partial<import("./services/document-metadata").DocumentVersion>[];
193
195
  versions: any[];
194
196
  }>;
195
- formatDocumentWithMetadata(uid: import("@strapi/types/dist/uid").ContentType, document: import("./services/document-metadata").DocumentVersion, opts?: import("./services/document-metadata").GetMetadataOptions): Promise<{
197
+ formatDocumentWithMetadata(uid: import("@strapi/types/dist/uid/index.js").ContentType, document: import("./services/document-metadata").DocumentVersion, opts?: import("./services/document-metadata").GetMetadataOptions): Promise<{
196
198
  data: {
197
199
  status: string | undefined;
198
200
  id: string | number;
199
- documentId: import("@strapi/types/dist/modules/documents").ID;
201
+ documentId: import("@strapi/types/dist/modules/documents/index.js").ID;
200
202
  locale?: string;
201
203
  localizations?: import("./services/document-metadata").DocumentVersion[];
202
204
  updatedAt?: string | null | Date;
@@ -212,47 +214,47 @@ declare const _default: () => {
212
214
  }>;
213
215
  };
214
216
  'document-manager': ({ strapi }: {
215
- strapi: import("@strapi/types/dist/core").Strapi;
217
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
216
218
  }) => {
217
- findOne(id: string, uid: import("@strapi/types/dist/uid").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").FindOne<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | null>;
218
- findLocales(id: string | string[] | undefined, uid: import("@strapi/types/dist/uid").CollectionType, opts: {
219
- populate?: import("@strapi/types/dist/modules/documents/params").Pick<any, "populate">;
219
+ findOne(id: string, uid: import("@strapi/types/dist/uid/index.js").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine.js").FindOne<import("@strapi/types/dist/uid/index.js").ContentType>, "documentId">): Promise<import("@strapi/types/dist/modules/documents/index.js").AnyDocument | null>;
220
+ findLocales(id: string | string[] | undefined, uid: import("@strapi/types/dist/uid/index.js").CollectionType, opts: {
221
+ populate?: import("@strapi/types/dist/modules/documents/params/index.js").Pick<any, "populate">;
220
222
  locale?: string | string[] | "*";
221
223
  isPublished?: boolean;
222
224
  }): Promise<any[]>;
223
- findMany(opts: import("@strapi/types/dist/modules/documents/params/document-engine").FindMany<import("@strapi/types/dist/uid").ContentType> | undefined, uid: import("@strapi/types/dist/uid").CollectionType): Promise<import("@strapi/types/dist/modules/documents").AnyDocument[]>;
224
- findPage(opts: import("@strapi/types/dist/modules/documents/params/document-engine").FindMany<import("@strapi/types/dist/uid").ContentType> | undefined, uid: import("@strapi/types/dist/uid").CollectionType): Promise<{
225
- results: import("@strapi/types/dist/modules/documents").AnyDocument[];
225
+ findMany(opts: import("@strapi/types/dist/modules/documents/params/document-engine.js").FindMany<import("@strapi/types/dist/uid/index.js").ContentType> | undefined, uid: import("@strapi/types/dist/uid/index.js").CollectionType): Promise<import("@strapi/types/dist/modules/documents/index.js").AnyDocument[]>;
226
+ findPage(opts: import("@strapi/types/dist/modules/documents/params/document-engine.js").FindMany<import("@strapi/types/dist/uid/index.js").ContentType> | undefined, uid: import("@strapi/types/dist/uid/index.js").CollectionType): Promise<{
227
+ results: import("@strapi/types/dist/modules/documents/index.js").AnyDocument[];
226
228
  pagination: import("@strapi/utils/dist/pagination").PagePatinationInformation;
227
229
  }>;
228
- create(uid: import("@strapi/types/dist/uid").CollectionType, opts?: import("@strapi/types/dist/modules/documents/params/document-engine").Create<import("@strapi/types/dist/uid").ContentType>): Promise<import("@strapi/types/dist/modules/documents").AnyDocument>;
229
- update(id: import("@strapi/types/dist/modules/documents").ID, uid: import("@strapi/types/dist/uid").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").Update<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | null>;
230
- clone(id: import("@strapi/types/dist/modules/documents").ID, body: Partial<import("@strapi/types/dist/modules/documents/params/data").Input<import("@strapi/types/dist/uid").CollectionType>>, uid: import("@strapi/types/dist/uid").CollectionType): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | undefined>;
231
- exists(uid: import("@strapi/types/dist/uid").CollectionType, id?: string): Promise<boolean>;
232
- delete(id: import("@strapi/types/dist/modules/documents").ID, uid: import("@strapi/types/dist/uid").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").Delete<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<{}>;
233
- deleteMany(documentIds: import("@strapi/types/dist/modules/documents").ID[], uid: import("@strapi/types/dist/uid").CollectionType, opts?: (import("@strapi/types/dist/modules/documents/params/document-engine").FindMany<import("@strapi/types/dist/uid").ContentType> | undefined) & {
230
+ create(uid: import("@strapi/types/dist/uid/index.js").CollectionType, opts?: import("@strapi/types/dist/modules/documents/params/document-engine.js").Create<import("@strapi/types/dist/uid/index.js").ContentType>): Promise<import("@strapi/types/dist/modules/documents/index.js").AnyDocument>;
231
+ update(id: import("@strapi/types/dist/modules/documents/index.js").ID, uid: import("@strapi/types/dist/uid/index.js").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine.js").Update<import("@strapi/types/dist/uid/index.js").ContentType>, "documentId">): Promise<import("@strapi/types/dist/modules/documents/index.js").AnyDocument | null>;
232
+ clone(id: import("@strapi/types/dist/modules/documents/index.js").ID, body: Partial<import("@strapi/types/dist/modules/documents/params/data.js").Input<import("@strapi/types/dist/uid/index.js").CollectionType>>, uid: import("@strapi/types/dist/uid/index.js").CollectionType): Promise<import("@strapi/types/dist/modules/documents/index.js").AnyDocument | undefined>;
233
+ exists(uid: import("@strapi/types/dist/uid/index.js").CollectionType, id?: string): Promise<boolean>;
234
+ delete(id: import("@strapi/types/dist/modules/documents/index.js").ID, uid: import("@strapi/types/dist/uid/index.js").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine.js").Delete<import("@strapi/types/dist/uid/index.js").ContentType>, "documentId">): Promise<{}>;
235
+ deleteMany(documentIds: import("@strapi/types/dist/modules/documents/index.js").ID[], uid: import("@strapi/types/dist/uid/index.js").CollectionType, opts?: (import("@strapi/types/dist/modules/documents/params/document-engine.js").FindMany<import("@strapi/types/dist/uid/index.js").ContentType> | undefined) & {
234
236
  locale?: string;
235
237
  }): Promise<{
236
238
  count: number;
237
239
  }>;
238
- publish(id: import("@strapi/types/dist/modules/documents").ID, uid: import("@strapi/types/dist/uid").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").Publish<import("@strapi/types/dist/uid").ContentType>, "documentId"> & {
240
+ publish(id: import("@strapi/types/dist/modules/documents/index.js").ID, uid: import("@strapi/types/dist/uid/index.js").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine.js").Publish<import("@strapi/types/dist/uid/index.js").ContentType>, "documentId"> & {
239
241
  populate?: object;
240
- }): Promise<import("@strapi/types/dist/modules/documents").AnyDocument[]>;
241
- publishMany(uid: import("@strapi/types/dist/uid").ContentType, documentIds: string[], locale?: string | string[]): Promise<number>;
242
- unpublishMany(documentIds: import("@strapi/types/dist/modules/documents").ID[], uid: import("@strapi/types/dist/uid").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").Unpublish<import("@strapi/types/dist/uid").ContentType>, "documentId">): Promise<{
242
+ }): Promise<import("@strapi/types/dist/modules/documents/index.js").AnyDocument[]>;
243
+ publishMany(uid: import("@strapi/types/dist/uid/index.js").ContentType, documentIds: string[], locale?: string | string[]): Promise<number>;
244
+ unpublishMany(documentIds: import("@strapi/types/dist/modules/documents/index.js").ID[], uid: import("@strapi/types/dist/uid/index.js").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine.js").Unpublish<import("@strapi/types/dist/uid/index.js").ContentType>, "documentId">): Promise<{
243
245
  count: number;
244
246
  }>;
245
- unpublish(id: import("@strapi/types/dist/modules/documents").ID, uid: import("@strapi/types/dist/uid").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").Unpublish<import("@strapi/types/dist/uid").ContentType>, "documentId"> & {
247
+ unpublish(id: import("@strapi/types/dist/modules/documents/index.js").ID, uid: import("@strapi/types/dist/uid/index.js").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine.js").Unpublish<import("@strapi/types/dist/uid/index.js").ContentType>, "documentId"> & {
246
248
  populate?: object;
247
- }): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | undefined>;
248
- discardDraft(id: import("@strapi/types/dist/modules/documents").ID, uid: import("@strapi/types/dist/uid").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine").DiscardDraft<import("@strapi/types/dist/uid").ContentType>, "documentId"> & {
249
+ }): Promise<import("@strapi/types/dist/modules/documents/index.js").AnyDocument | undefined>;
250
+ discardDraft(id: import("@strapi/types/dist/modules/documents/index.js").ID, uid: import("@strapi/types/dist/uid/index.js").CollectionType, opts?: Omit<import("@strapi/types/dist/modules/documents/params/document-engine.js").DiscardDraft<import("@strapi/types/dist/uid/index.js").ContentType>, "documentId"> & {
249
251
  populate?: object;
250
- }): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | undefined>;
251
- countDraftRelations(id: string, uid: import("@strapi/types/dist/uid").ContentType, locale: string): Promise<import("./services/utils/draft-relations").DraftRelationCounts>;
252
- countManyEntriesDraftRelations(documentIds: import("@strapi/types/dist/modules/documents").ID[], uid: import("@strapi/types/dist/uid").CollectionType, locale: string | string[]): Promise<number>;
252
+ }): Promise<import("@strapi/types/dist/modules/documents/index.js").AnyDocument | undefined>;
253
+ countDraftRelations(id: string, uid: import("@strapi/types/dist/uid/index.js").ContentType, locale: string): Promise<import("./services/utils/draft-relations").DraftRelationCounts>;
254
+ countManyEntriesDraftRelations(documentIds: import("@strapi/types/dist/modules/documents/index.js").ID[], uid: import("@strapi/types/dist/uid/index.js").CollectionType, locale: string | string[]): Promise<number>;
253
255
  };
254
256
  'field-sizes': ({ strapi }: {
255
- strapi: import("@strapi/types/dist/core").Strapi;
257
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
256
258
  }) => {
257
259
  getAllFieldSizes(): Record<string, {
258
260
  default: 4 | 6 | 8 | 12;
@@ -270,30 +272,30 @@ declare const _default: () => {
270
272
  setCustomFieldInputSizes(): void;
271
273
  };
272
274
  metrics: ({ strapi }: {
273
- strapi: import("@strapi/types/dist/core").Strapi;
275
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
274
276
  }) => {
275
- sendDidConfigureListView: (contentType: import("@strapi/types/dist/struct").ContentTypeSchema, configuration: import("../../shared/contracts/content-types").Configuration) => Promise<void>;
277
+ sendDidConfigureListView: (contentType: import("@strapi/types/dist/struct/schema.js").ContentTypeSchema, configuration: import("../../shared/contracts/content-types").Configuration) => Promise<void>;
276
278
  };
277
279
  'permission-checker': ({ strapi }: {
278
- strapi: import("@strapi/types/dist/core").Strapi;
280
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
279
281
  }) => {
280
282
  create: ({ userAbility, model }: {
281
283
  userAbility: import("@casl/ability").Ability;
282
284
  model: string;
283
285
  }) => {
284
286
  can: (action: string, entity?: {
285
- id: import("@strapi/types/dist/modules/entity-service/params/attributes").ID;
287
+ id: import("@strapi/types/dist/modules/entity-service/params/attributes/id.js").ID;
286
288
  } & {
287
289
  [key: string]: any;
288
290
  }, field: string) => boolean;
289
291
  cannot: (action: string, entity?: {
290
- id: import("@strapi/types/dist/modules/entity-service/params/attributes").ID;
292
+ id: import("@strapi/types/dist/modules/entity-service/params/attributes/id.js").ID;
291
293
  } & {
292
294
  [key: string]: any;
293
295
  }, field: string) => boolean;
294
296
  requiresEntity: (action: string) => boolean;
295
297
  sanitizeOutput: (data: {
296
- id: import("@strapi/types/dist/modules/entity-service/params/attributes").ID;
298
+ id: import("@strapi/types/dist/modules/entity-service/params/attributes/id.js").ID;
297
299
  } & {
298
300
  [key: string]: any;
299
301
  }, { action }?: {
@@ -308,7 +310,7 @@ declare const _default: () => {
308
310
  }) => any;
309
311
  sanitizeCreateInput: (data: any) => any;
310
312
  sanitizeUpdateInput: (entity: {
311
- id: import("@strapi/types/dist/modules/entity-service/params/attributes").ID;
313
+ id: import("@strapi/types/dist/modules/entity-service/params/attributes/id.js").ID;
312
314
  } & {
313
315
  [key: string]: any;
314
316
  }) => (data: any) => any;
@@ -320,7 +322,7 @@ declare const _default: () => {
320
322
  action?: string;
321
323
  }) => any;
322
324
  validateInput: (action: string, data: any, entity?: {
323
- id: import("@strapi/types/dist/modules/entity-service/params/attributes").ID;
325
+ id: import("@strapi/types/dist/modules/entity-service/params/attributes/id.js").ID;
324
326
  } & {
325
327
  [key: string]: any;
326
328
  }) => any;
@@ -334,15 +336,15 @@ declare const _default: () => {
334
336
  };
335
337
  };
336
338
  permission: ({ strapi }: {
337
- strapi: import("@strapi/types/dist/core").Strapi;
339
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
338
340
  }) => {
339
341
  canConfigureContentType({ userAbility, contentType, }: {
340
342
  userAbility: any;
341
- contentType: import("@strapi/types/dist/struct").ContentTypeSchema;
343
+ contentType: import("@strapi/types/dist/struct/schema.js").ContentTypeSchema;
342
344
  }): any;
343
345
  registerPermissions(): Promise<void>;
344
346
  };
345
- 'populate-builder': () => (uid: import("@strapi/types/dist/uid").Schema) => {
347
+ 'populate-builder': () => (uid: import("@strapi/types/dist/uid/index.js").Schema) => {
346
348
  populateFromQuery(query: object): /*elided*/ any;
347
349
  countRelations({ toMany, toOne }?: {
348
350
  toMany: boolean;
@@ -350,27 +352,27 @@ declare const _default: () => {
350
352
  }): /*elided*/ any;
351
353
  populateDeep(level?: number): /*elided*/ any;
352
354
  withPopulateOverride(overrides: Record<string, any>): /*elided*/ any;
353
- build(): Promise<string | import("@strapi/types/dist/modules/entity-service/params/populate").ArrayNotation<import("@strapi/types/dist/uid").Schema> | {
355
+ build(): Promise<string | import("@strapi/types/dist/modules/entity-service/params/populate.js").ArrayNotation<import("@strapi/types/dist/uid/index.js").Schema> | {
354
356
  [key: string]: boolean | object;
355
357
  } | undefined>;
356
358
  };
357
359
  uid: ({ strapi }: {
358
- strapi: import("@strapi/types/dist/core").Strapi;
360
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
359
361
  }) => {
360
362
  generateUIDField({ contentTypeUID, field, data, locale, }: {
361
- contentTypeUID: import("@strapi/types/dist/uid").ContentType;
363
+ contentTypeUID: import("@strapi/types/dist/uid/index.js").ContentType;
362
364
  field: string;
363
365
  data: Record<string, any>;
364
366
  locale?: string;
365
367
  }): Promise<string>;
366
368
  findUniqueUID({ contentTypeUID, field, value, locale, }: {
367
- contentTypeUID: import("@strapi/types/dist/uid").ContentType;
369
+ contentTypeUID: import("@strapi/types/dist/uid/index.js").ContentType;
368
370
  field: string;
369
371
  value: string;
370
372
  locale?: string;
371
373
  }): Promise<string>;
372
374
  checkUIDAvailability({ contentTypeUID, field, value, locale, }: {
373
- contentTypeUID: import("@strapi/types/dist/uid").ContentType;
375
+ contentTypeUID: import("@strapi/types/dist/uid/index.js").ContentType;
374
376
  field: string;
375
377
  value: string;
376
378
  locale?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../server/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAM2B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAasxB,CAAC;sBAAgE,CAAC;2BAA8C,CAAC;;;;;;;;;;;;;sBAAouH,CAAC;;;;;wBAAkZ,CAAC;;;;;;;wBAAkkD,CAAC;;;wBAAgd,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAAt+J,CAAC;;;;;;;0BAAg4B,CAAC;;;;;;;uBAAw2B,SAAS;;;;;;0BAA5d,CAAC;;;;;;;;;;;;0BAAmvB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHnlI,CAAA;;;;;;sBAGw5B,CAAC;;;;;;sBAAy7C,CAAC;;;;;AAXv1E,wBAUE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../server/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAM2B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAasxB,CAAC;sBAAgE,CAAC;2BAA8C,CAAC;;;;;;;;;;;;;sBAAouH,CAAC;;;;;wBAAkZ,CAAC;;;;;;;wBAAkkD,CAAC;;;wBAAgd,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAAt+J,CAAC;;;;;;;0BAAg4B,CAAC;;;;;;;uBAAw2B,SAAS;;;;;;0BAA5d,CAAC;;;;;;;;;;;;0BAAmvB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHnlI,CAAA;;;;;;sBAGw5B,CAAC;;;;;;sBAAy7C,CAAC;;;;;AAXv1E,wBAUE"}
@@ -3,6 +3,8 @@
3
3
  * so we need to avoid conficts in the router name, and to prefix the path for each route.
4
4
  */
5
5
  export declare const routes: {
6
- preview: import("@strapi/types/dist/core").Router;
6
+ preview: import("@strapi/types/dist/core/router.js").Router | ((params: {
7
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
8
+ }) => import("@strapi/types/dist/core/router.js").Router);
7
9
  };
8
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../server/src/preview/routes/index.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,MAAM;;CAEsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../server/src/preview/routes/index.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;CAEsB,CAAC"}
@@ -1,17 +1,17 @@
1
1
  export declare const services: {
2
2
  preview: ({ strapi }: {
3
- strapi: import("@strapi/types/dist/core").Strapi;
3
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
4
4
  }) => {
5
- getPreviewUrl(uid: import("@strapi/types/dist/uid").ContentType, params: import("./preview-config").HandlerParams): Promise<string | null | undefined>;
5
+ getPreviewUrl(uid: import("@strapi/types/dist/uid/index.js").ContentType, params: import("./preview-config").HandlerParams): Promise<string | null | undefined>;
6
6
  };
7
7
  'preview-config': ({ strapi }: {
8
- strapi: import("@strapi/types/dist/core").Strapi;
8
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
9
9
  }) => {
10
10
  register(): void;
11
11
  isConfigured(): boolean;
12
12
  isEnabled(): boolean;
13
13
  validate(): void;
14
- getPreviewHandler(): NonNullable<import("@strapi/types/dist/core/config").Admin["preview"]>["config"]["handler"];
14
+ getPreviewHandler(): NonNullable<import("@strapi/types/dist/core/config/admin.js").Admin["preview"]>["config"]["handler"];
15
15
  };
16
16
  };
17
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../server/src/preview/services/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;6BAIk5D,gFAAoD;;CADh7D,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../server/src/preview/services/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;6BAIk5D,yFAAoD;;CADh7D,CAAC"}
@@ -1,5 +1,7 @@
1
1
  declare const _default: {
2
- homepage: import("@strapi/types/dist/core").Router;
2
+ homepage: import("@strapi/types/dist/core/router.js").Router | ((params: {
3
+ strapi: import("@strapi/types/dist/core/strapi.js").Strapi;
4
+ }) => import("@strapi/types/dist/core/router.js").Router);
3
5
  admin: {
4
6
  type: string;
5
7
  routes: ({
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/routes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBAKE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/routes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBAKE"}
@@ -5,7 +5,7 @@ declare const _default: () => {
5
5
  isDisplayed: boolean;
6
6
  attributes: any;
7
7
  modelType: "component";
8
- uid: import("@strapi/types/dist/uid").Component;
8
+ uid: import("@strapi/types/dist/uid/index.js").Component;
9
9
  category: string;
10
10
  modelName: string;
11
11
  globalId: string;