@strapi/core 5.0.6 → 5.1.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.
@@ -20,47 +20,351 @@ export declare const getComponentJoinColumnInverseName: (identifiers: Identifier
20
20
  export declare const getComponentTypeColumn: (identifiers: Identifiers) => string;
21
21
  export declare const getComponentFkIndexName: (contentType: string, identifiers: Identifiers) => string;
22
22
  export type LoadedContentTypeModel = Struct.ContentTypeSchema & Required<Pick<Struct.ContentTypeSchema, 'collectionName' | 'uid' | 'modelName'>> & Pick<Model, 'lifecycles'>;
23
- export declare const transformAttribute: (name: string, attribute: Schema.Attribute.AnyAttribute, contentType: LoadedContentTypeModel, identifiers: Identifiers) => (Schema.Attribute.OfType<"biginteger"> & Schema.Attribute.ConfigurableOption & Schema.Attribute.DefaultOption<string> & Schema.Attribute.MinMaxOption<string> & Schema.Attribute.PrivateOption & Schema.Attribute.RequiredOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption & Schema.Attribute.UniqueOption) | (Schema.Attribute.OfType<"boolean"> & Schema.Attribute.ConfigurableOption & Schema.Attribute.DefaultOption<boolean> & Schema.Attribute.PrivateOption & Schema.Attribute.RequiredOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption) | (Schema.Attribute.OfType<"blocks"> & Schema.Attribute.ConfigurableOption & Schema.Attribute.PrivateOption & Schema.Attribute.RequiredOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption) | (Schema.Attribute.OfType<"datetime"> & Schema.Attribute.ConfigurableOption & Schema.Attribute.DefaultOption<Schema.Attribute.DateTimeValue> & Schema.Attribute.PrivateOption & Schema.Attribute.RequiredOption & Schema.Attribute.UniqueOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption) | (Schema.Attribute.OfType<"date"> & Schema.Attribute.ConfigurableOption & Schema.Attribute.DefaultOption<Schema.Attribute.DateValue> & Schema.Attribute.PrivateOption & Schema.Attribute.RequiredOption & Schema.Attribute.UniqueOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption) | (Schema.Attribute.OfType<"decimal"> & Schema.Attribute.ConfigurableOption & Schema.Attribute.DefaultOption<number> & Schema.Attribute.MinMaxOption<number> & Schema.Attribute.PrivateOption & Schema.Attribute.RequiredOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption & Schema.Attribute.UniqueOption) | (Schema.Attribute.OfType<"email"> & Schema.Attribute.ConfigurableOption & Schema.Attribute.DefaultOption<string> & Schema.Attribute.MinMaxLengthOption & Schema.Attribute.PrivateOption & Schema.Attribute.RequiredOption & Schema.Attribute.UniqueOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption) | (Schema.Attribute.OfType<"enumeration"> & Schema.Attribute.EnumerationProperties<string[]> & Schema.Attribute.ConfigurableOption & Schema.Attribute.DefaultOption<string> & Schema.Attribute.PrivateOption & Schema.Attribute.RequiredOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption) | (Schema.Attribute.OfType<"float"> & Schema.Attribute.ConfigurableOption & Schema.Attribute.DefaultOption<number> & Schema.Attribute.MinMaxOption<number> & Schema.Attribute.PrivateOption & Schema.Attribute.RequiredOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption & Schema.Attribute.UniqueOption) | (Schema.Attribute.OfType<"integer"> & Schema.Attribute.ConfigurableOption & Schema.Attribute.DefaultOption<number> & Schema.Attribute.MinMaxOption<number> & Schema.Attribute.PrivateOption & Schema.Attribute.RequiredOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption & Schema.Attribute.UniqueOption) | (Schema.Attribute.OfType<"json"> & Schema.Attribute.ConfigurableOption & Schema.Attribute.RequiredOption & Schema.Attribute.PrivateOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption & Schema.Attribute.DefaultOption<import("@strapi/types/dist/utils").JSONPrimitive>) | (Schema.Attribute.OfType<"password"> & Schema.Attribute.ConfigurableOption & Schema.Attribute.DefaultOption<string> & Schema.Attribute.MinMaxLengthOption & Schema.Attribute.PrivateOption & Schema.Attribute.RequiredOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption) | (Schema.Attribute.OfType<"relation"> & Schema.Attribute.ConfigurableOption & Schema.Attribute.PrivateOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption & Schema.Attribute.RequiredOption & {
23
+ export declare const transformAttribute: (name: string, attribute: Schema.Attribute.AnyAttribute, contentType: LoadedContentTypeModel, identifiers: Identifiers) => {
24
+ type: "biginteger";
25
+ pluginOptions?: object | undefined;
26
+ searchable?: boolean | undefined;
27
+ configurable?: boolean | undefined;
28
+ default?: string | (() => string) | undefined;
29
+ min?: string | undefined;
30
+ max?: string | undefined;
31
+ private?: boolean | undefined;
32
+ required?: boolean | undefined;
33
+ writable?: boolean | undefined;
34
+ visible?: boolean | undefined;
35
+ unique?: boolean | undefined;
36
+ } | {
37
+ type: "boolean";
38
+ pluginOptions?: object | undefined;
39
+ searchable?: boolean | undefined;
40
+ configurable?: boolean | undefined;
41
+ default?: boolean | (() => boolean) | undefined;
42
+ private?: boolean | undefined;
43
+ required?: boolean | undefined;
44
+ writable?: boolean | undefined;
45
+ visible?: boolean | undefined;
46
+ } | {
47
+ type: "blocks";
48
+ pluginOptions?: object | undefined;
49
+ searchable?: boolean | undefined;
50
+ configurable?: boolean | undefined;
51
+ private?: boolean | undefined;
52
+ required?: boolean | undefined;
53
+ writable?: boolean | undefined;
54
+ visible?: boolean | undefined;
55
+ } | {
56
+ type: "datetime";
57
+ pluginOptions?: object | undefined;
58
+ searchable?: boolean | undefined;
59
+ configurable?: boolean | undefined;
60
+ default?: Schema.Attribute.DateTimeValue | (() => Schema.Attribute.DateTimeValue) | undefined;
61
+ private?: boolean | undefined;
62
+ required?: boolean | undefined;
63
+ unique?: boolean | undefined;
64
+ writable?: boolean | undefined;
65
+ visible?: boolean | undefined;
66
+ } | {
67
+ type: "date";
68
+ pluginOptions?: object | undefined;
69
+ searchable?: boolean | undefined;
70
+ configurable?: boolean | undefined;
71
+ default?: Schema.Attribute.DateValue | (() => Schema.Attribute.DateValue) | undefined;
72
+ private?: boolean | undefined;
73
+ required?: boolean | undefined;
74
+ unique?: boolean | undefined;
75
+ writable?: boolean | undefined;
76
+ visible?: boolean | undefined;
77
+ } | {
78
+ type: "decimal";
79
+ pluginOptions?: object | undefined;
80
+ searchable?: boolean | undefined;
81
+ configurable?: boolean | undefined;
82
+ default?: number | (() => number) | undefined;
83
+ min?: number | undefined;
84
+ max?: number | undefined;
85
+ private?: boolean | undefined;
86
+ required?: boolean | undefined;
87
+ writable?: boolean | undefined;
88
+ visible?: boolean | undefined;
89
+ unique?: boolean | undefined;
90
+ } | {
91
+ type: "email";
92
+ pluginOptions?: object | undefined;
93
+ searchable?: boolean | undefined;
94
+ configurable?: boolean | undefined;
95
+ default?: string | (() => string) | undefined;
96
+ minLength?: number | undefined;
97
+ maxLength?: number | undefined;
98
+ private?: boolean | undefined;
99
+ required?: boolean | undefined;
100
+ unique?: boolean | undefined;
101
+ writable?: boolean | undefined;
102
+ visible?: boolean | undefined;
103
+ } | {
104
+ type: "enumeration";
105
+ pluginOptions?: object | undefined;
106
+ searchable?: boolean | undefined;
107
+ enum: string[];
108
+ enumName?: string | undefined;
109
+ configurable?: boolean | undefined;
110
+ default?: string | (() => string) | undefined;
111
+ private?: boolean | undefined;
112
+ required?: boolean | undefined;
113
+ writable?: boolean | undefined;
114
+ visible?: boolean | undefined;
115
+ } | {
116
+ type: "float";
117
+ pluginOptions?: object | undefined;
118
+ searchable?: boolean | undefined;
119
+ configurable?: boolean | undefined;
120
+ default?: number | (() => number) | undefined;
121
+ min?: number | undefined;
122
+ max?: number | undefined;
123
+ private?: boolean | undefined;
124
+ required?: boolean | undefined;
125
+ writable?: boolean | undefined;
126
+ visible?: boolean | undefined;
127
+ unique?: boolean | undefined;
128
+ } | {
129
+ type: "integer";
130
+ pluginOptions?: object | undefined;
131
+ searchable?: boolean | undefined;
132
+ configurable?: boolean | undefined;
133
+ default?: number | (() => number) | undefined;
134
+ min?: number | undefined;
135
+ max?: number | undefined;
136
+ private?: boolean | undefined;
137
+ required?: boolean | undefined;
138
+ writable?: boolean | undefined;
139
+ visible?: boolean | undefined;
140
+ unique?: boolean | undefined;
141
+ } | {
142
+ type: "json";
143
+ pluginOptions?: object | undefined;
144
+ searchable?: boolean | undefined;
145
+ configurable?: boolean | undefined;
146
+ required?: boolean | undefined;
147
+ private?: boolean | undefined;
148
+ writable?: boolean | undefined;
149
+ visible?: boolean | undefined;
150
+ default?: import("@strapi/types/dist/utils").JSONPrimitive | (() => import("@strapi/types/dist/utils").JSONPrimitive) | undefined;
151
+ } | {
152
+ type: "password";
153
+ pluginOptions?: object | undefined;
154
+ searchable?: boolean | undefined;
155
+ configurable?: boolean | undefined;
156
+ default?: string | (() => string) | undefined;
157
+ minLength?: number | undefined;
158
+ maxLength?: number | undefined;
159
+ private?: boolean | undefined;
160
+ required?: boolean | undefined;
161
+ writable?: boolean | undefined;
162
+ visible?: boolean | undefined;
163
+ } | {
164
+ type: "relation";
165
+ pluginOptions?: object | undefined;
166
+ searchable?: boolean | undefined;
167
+ configurable?: boolean | undefined;
168
+ private?: boolean | undefined;
169
+ writable?: boolean | undefined;
170
+ visible?: boolean | undefined;
171
+ required?: boolean | undefined;
24
172
  useJoinTable?: boolean | undefined;
25
- } & {
26
173
  relation: "morphToOne";
27
- }) | (Schema.Attribute.OfType<"relation"> & Schema.Attribute.ConfigurableOption & Schema.Attribute.PrivateOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption & Schema.Attribute.RequiredOption & {
174
+ } | {
175
+ type: "relation";
176
+ pluginOptions?: object | undefined;
177
+ searchable?: boolean | undefined;
178
+ configurable?: boolean | undefined;
179
+ private?: boolean | undefined;
180
+ writable?: boolean | undefined;
181
+ visible?: boolean | undefined;
182
+ required?: boolean | undefined;
28
183
  useJoinTable?: boolean | undefined;
29
- } & {
30
184
  relation: "morphToMany";
31
- }) | (Schema.Attribute.OfType<"relation"> & Schema.Attribute.CommonBidirectionalProperties<import("@strapi/types/dist/uid").ContentType> & Schema.Attribute.ConfigurableOption & Schema.Attribute.PrivateOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption & Schema.Attribute.RequiredOption & {
185
+ } | {
186
+ type: "relation";
187
+ pluginOptions?: object | undefined;
188
+ searchable?: boolean | undefined;
189
+ target: import("@strapi/types/dist/uid").ContentType;
190
+ inversedBy?: string | undefined;
191
+ mappedBy?: string | undefined;
192
+ configurable?: boolean | undefined;
193
+ private?: boolean | undefined;
194
+ writable?: boolean | undefined;
195
+ visible?: boolean | undefined;
196
+ required?: boolean | undefined;
32
197
  useJoinTable?: boolean | undefined;
33
- } & {
34
198
  relation: "oneToOne";
35
- }) | (Schema.Attribute.OfType<"relation"> & Schema.Attribute.CommonBidirectionalProperties<import("@strapi/types/dist/uid").ContentType> & Schema.Attribute.ConfigurableOption & Schema.Attribute.PrivateOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption & Schema.Attribute.RequiredOption & {
199
+ } | {
200
+ type: "relation";
201
+ pluginOptions?: object | undefined;
202
+ searchable?: boolean | undefined;
203
+ target: import("@strapi/types/dist/uid").ContentType;
204
+ inversedBy?: string | undefined;
205
+ mappedBy?: string | undefined;
206
+ configurable?: boolean | undefined;
207
+ private?: boolean | undefined;
208
+ writable?: boolean | undefined;
209
+ visible?: boolean | undefined;
210
+ required?: boolean | undefined;
36
211
  useJoinTable?: boolean | undefined;
37
- } & {
38
212
  relation: "oneToMany";
39
- }) | (Schema.Attribute.OfType<"relation"> & Schema.Attribute.CommonBidirectionalProperties<import("@strapi/types/dist/uid").ContentType> & Schema.Attribute.ConfigurableOption & Schema.Attribute.PrivateOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption & Schema.Attribute.RequiredOption & {
213
+ } | {
214
+ type: "relation";
215
+ pluginOptions?: object | undefined;
216
+ searchable?: boolean | undefined;
217
+ target: import("@strapi/types/dist/uid").ContentType;
218
+ inversedBy?: string | undefined;
219
+ mappedBy?: string | undefined;
220
+ configurable?: boolean | undefined;
221
+ private?: boolean | undefined;
222
+ writable?: boolean | undefined;
223
+ visible?: boolean | undefined;
224
+ required?: boolean | undefined;
40
225
  useJoinTable?: boolean | undefined;
41
- } & {
42
226
  relation: "manyToOne";
43
- }) | (Schema.Attribute.OfType<"relation"> & Schema.Attribute.CommonBidirectionalProperties<import("@strapi/types/dist/uid").ContentType> & Schema.Attribute.ConfigurableOption & Schema.Attribute.PrivateOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption & Schema.Attribute.RequiredOption & {
227
+ } | {
228
+ type: "relation";
229
+ pluginOptions?: object | undefined;
230
+ searchable?: boolean | undefined;
231
+ target: import("@strapi/types/dist/uid").ContentType;
232
+ inversedBy?: string | undefined;
233
+ mappedBy?: string | undefined;
234
+ configurable?: boolean | undefined;
235
+ private?: boolean | undefined;
236
+ writable?: boolean | undefined;
237
+ visible?: boolean | undefined;
238
+ required?: boolean | undefined;
44
239
  useJoinTable?: boolean | undefined;
45
- } & {
46
240
  relation: "manyToMany";
47
- }) | (Schema.Attribute.OfType<"relation"> & Schema.Attribute.XWayCommonProperties<import("@strapi/types/dist/uid").ContentType> & Schema.Attribute.ConfigurableOption & Schema.Attribute.PrivateOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption & Schema.Attribute.RequiredOption & {
241
+ } | {
242
+ type: "relation";
243
+ pluginOptions?: object | undefined;
244
+ searchable?: boolean | undefined;
245
+ target: import("@strapi/types/dist/uid").ContentType;
246
+ configurable?: boolean | undefined;
247
+ private?: boolean | undefined;
248
+ writable?: boolean | undefined;
249
+ visible?: boolean | undefined;
250
+ required?: boolean | undefined;
48
251
  useJoinTable?: boolean | undefined;
49
- } & {
50
252
  relation: "oneWay";
51
- }) | (Schema.Attribute.OfType<"relation"> & Schema.Attribute.XWayCommonProperties<import("@strapi/types/dist/uid").ContentType> & Schema.Attribute.ConfigurableOption & Schema.Attribute.PrivateOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption & Schema.Attribute.RequiredOption & {
253
+ } | {
254
+ type: "relation";
255
+ pluginOptions?: object | undefined;
256
+ searchable?: boolean | undefined;
257
+ target: import("@strapi/types/dist/uid").ContentType;
258
+ configurable?: boolean | undefined;
259
+ private?: boolean | undefined;
260
+ writable?: boolean | undefined;
261
+ visible?: boolean | undefined;
262
+ required?: boolean | undefined;
52
263
  useJoinTable?: boolean | undefined;
53
- } & {
54
264
  relation: "manyWay";
55
- }) | (Schema.Attribute.OfType<"relation"> & Schema.Attribute.MorphReferenceCommonProperties<import("@strapi/types/dist/uid").ContentType> & Schema.Attribute.ConfigurableOption & Schema.Attribute.PrivateOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption & Schema.Attribute.RequiredOption & {
265
+ } | {
266
+ type: "relation";
267
+ pluginOptions?: object | undefined;
268
+ searchable?: boolean | undefined;
269
+ target: import("@strapi/types/dist/uid").ContentType;
270
+ morphBy?: string | undefined;
271
+ configurable?: boolean | undefined;
272
+ private?: boolean | undefined;
273
+ writable?: boolean | undefined;
274
+ visible?: boolean | undefined;
275
+ required?: boolean | undefined;
56
276
  useJoinTable?: boolean | undefined;
57
- } & {
58
277
  relation: "morphOne";
59
- }) | (Schema.Attribute.OfType<"relation"> & Schema.Attribute.MorphReferenceCommonProperties<import("@strapi/types/dist/uid").ContentType> & Schema.Attribute.ConfigurableOption & Schema.Attribute.PrivateOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption & Schema.Attribute.RequiredOption & {
278
+ } | {
279
+ type: "relation";
280
+ pluginOptions?: object | undefined;
281
+ searchable?: boolean | undefined;
282
+ target: import("@strapi/types/dist/uid").ContentType;
283
+ morphBy?: string | undefined;
284
+ configurable?: boolean | undefined;
285
+ private?: boolean | undefined;
286
+ writable?: boolean | undefined;
287
+ visible?: boolean | undefined;
288
+ required?: boolean | undefined;
60
289
  useJoinTable?: boolean | undefined;
61
- } & {
62
290
  relation: "morphMany";
63
- }) | (Schema.Attribute.OfType<"richtext"> & Schema.Attribute.ConfigurableOption & Schema.Attribute.DefaultOption<string> & Schema.Attribute.MinMaxLengthOption & Schema.Attribute.PrivateOption & Schema.Attribute.RequiredOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption) | (Schema.Attribute.OfType<"string"> & Schema.Attribute.StringProperties & Schema.Attribute.ConfigurableOption & Schema.Attribute.DefaultOption<string> & Schema.Attribute.MinMaxLengthOption & Schema.Attribute.PrivateOption & Schema.Attribute.UniqueOption & Schema.Attribute.RequiredOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption) | (Schema.Attribute.OfType<"text"> & Schema.Attribute.TextProperties & Schema.Attribute.ConfigurableOption & Schema.Attribute.DefaultOption<string> & Schema.Attribute.MinMaxLengthOption & Schema.Attribute.PrivateOption & Schema.Attribute.UniqueOption & Schema.Attribute.RequiredOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption) | (Schema.Attribute.OfType<"time"> & Schema.Attribute.ConfigurableOption & Schema.Attribute.DefaultOption<Schema.Attribute.TimeValue> & Schema.Attribute.PrivateOption & Schema.Attribute.RequiredOption & Schema.Attribute.UniqueOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption) | (Schema.Attribute.OfType<"timestamp"> & Schema.Attribute.ConfigurableOption & Schema.Attribute.DefaultOption<Schema.Attribute.TimestampValue> & Schema.Attribute.PrivateOption & Schema.Attribute.RequiredOption & Schema.Attribute.UniqueOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption) | (Schema.Attribute.OfType<"uid"> & Schema.Attribute.UIDProperties<string, Schema.Attribute.UIDOptions> & Schema.Attribute.ConfigurableOption & Schema.Attribute.DefaultOption<string> & Schema.Attribute.MinMaxLengthOption & Schema.Attribute.PrivateOption & Schema.Attribute.RequiredOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption) | {
291
+ } | {
292
+ type: "richtext";
293
+ pluginOptions?: object | undefined;
294
+ searchable?: boolean | undefined;
295
+ configurable?: boolean | undefined;
296
+ default?: string | (() => string) | undefined;
297
+ minLength?: number | undefined;
298
+ maxLength?: number | undefined;
299
+ private?: boolean | undefined;
300
+ required?: boolean | undefined;
301
+ writable?: boolean | undefined;
302
+ visible?: boolean | undefined;
303
+ } | {
304
+ type: "string";
305
+ pluginOptions?: object | undefined;
306
+ searchable?: boolean | undefined;
307
+ regex?: RegExp | undefined;
308
+ configurable?: boolean | undefined;
309
+ default?: string | (() => string) | undefined;
310
+ minLength?: number | undefined;
311
+ maxLength?: number | undefined;
312
+ private?: boolean | undefined;
313
+ unique?: boolean | undefined;
314
+ required?: boolean | undefined;
315
+ writable?: boolean | undefined;
316
+ visible?: boolean | undefined;
317
+ } | {
318
+ type: "text";
319
+ pluginOptions?: object | undefined;
320
+ searchable?: boolean | undefined;
321
+ regex?: RegExp | undefined;
322
+ configurable?: boolean | undefined;
323
+ default?: string | (() => string) | undefined;
324
+ minLength?: number | undefined;
325
+ maxLength?: number | undefined;
326
+ private?: boolean | undefined;
327
+ unique?: boolean | undefined;
328
+ required?: boolean | undefined;
329
+ writable?: boolean | undefined;
330
+ visible?: boolean | undefined;
331
+ } | {
332
+ type: "time";
333
+ pluginOptions?: object | undefined;
334
+ searchable?: boolean | undefined;
335
+ configurable?: boolean | undefined;
336
+ default?: Schema.Attribute.TimeValue | (() => Schema.Attribute.TimeValue) | undefined;
337
+ private?: boolean | undefined;
338
+ required?: boolean | undefined;
339
+ unique?: boolean | undefined;
340
+ writable?: boolean | undefined;
341
+ visible?: boolean | undefined;
342
+ } | {
343
+ type: "timestamp";
344
+ pluginOptions?: object | undefined;
345
+ searchable?: boolean | undefined;
346
+ configurable?: boolean | undefined;
347
+ default?: Schema.Attribute.TimestampValue | (() => Schema.Attribute.TimestampValue) | undefined;
348
+ private?: boolean | undefined;
349
+ required?: boolean | undefined;
350
+ unique?: boolean | undefined;
351
+ writable?: boolean | undefined;
352
+ visible?: boolean | undefined;
353
+ } | {
354
+ type: "uid";
355
+ pluginOptions?: object | undefined;
356
+ searchable?: boolean | undefined;
357
+ targetField?: string | undefined;
358
+ options?: Schema.Attribute.UIDOptions | undefined;
359
+ configurable?: boolean | undefined;
360
+ default?: string | (() => string) | undefined;
361
+ minLength?: number | undefined;
362
+ maxLength?: number | undefined;
363
+ private?: boolean | undefined;
364
+ required?: boolean | undefined;
365
+ writable?: boolean | undefined;
366
+ visible?: boolean | undefined;
367
+ } | {
64
368
  type: string;
65
369
  relation: string;
66
370
  target: string;
@@ -1 +1 @@
1
- {"version":3,"file":"transform-content-types-to-models.d.ts","sourceRoot":"","sources":["../../src/utils/transform-content-types-to-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIhD;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,yBAAyB,mBAAoB,MAAM,eAAe,WAAW,WAKzF,CAAC;AAEF,eAAO,MAAM,kBAAkB,mBAAoB,MAAM,eAAe,WAAW,WAKlF,CAAC;AAEF,eAAO,MAAM,gCAAgC,gBAAiB,WAAW,WAKxE,CAAC;AAEF,eAAO,MAAM,iCAAiC,gBAAiB,WAAW,WAKzE,CAAC;AAEF,eAAO,MAAM,sBAAsB,gBAAiB,WAAW,WAE9D,CAAC;AAEF,eAAO,MAAM,uBAAuB,gBAAiB,MAAM,eAAe,WAAW,WAMpF,CAAC;AAIF,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,iBAAiB,GAC3D,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,gBAAgB,GAAG,KAAK,GAAG,WAAW,CAAC,CAAC,GAChF,IAAI,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;AAG5B,eAAO,MAAM,kBAAkB,SACvB,MAAM,aACD,OAAO,SAAS,CAAC,YAAY,eAC3B,sBAAsB,eACtB,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+FzB,CAAC;AAEF,eAAO,MAAM,mBAAmB,gBACjB,sBAAsB,eACtB,WAAW,OAazB,CAAC;AAEF,eAAO,MAAM,iBAAiB,gBACf,sBAAsB;UACc,aAAa,GAAG,WAAW;CAI7E,CAAC;AAEF,eAAO,MAAM,gBAAgB,iBAAW,CAAC;AAgFzC,eAAO,MAAM,6BAA6B,iBAC1B,sBAAsB,EAAE,eACzB,WAAW,KACvB,KAAK,EAkEP,CAAC"}
1
+ {"version":3,"file":"transform-content-types-to-models.d.ts","sourceRoot":"","sources":["../../src/utils/transform-content-types-to-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIhD;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,yBAAyB,mBAAoB,MAAM,eAAe,WAAW,WAKzF,CAAC;AAEF,eAAO,MAAM,kBAAkB,mBAAoB,MAAM,eAAe,WAAW,WAKlF,CAAC;AAEF,eAAO,MAAM,gCAAgC,gBAAiB,WAAW,WAKxE,CAAC;AAEF,eAAO,MAAM,iCAAiC,gBAAiB,WAAW,WAKzE,CAAC;AAEF,eAAO,MAAM,sBAAsB,gBAAiB,WAAW,WAE9D,CAAC;AAEF,eAAO,MAAM,uBAAuB,gBAAiB,MAAM,eAAe,WAAW,WAMpF,CAAC;AAIF,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,iBAAiB,GAC3D,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,gBAAgB,GAAG,KAAK,GAAG,WAAW,CAAC,CAAC,GAChF,IAAI,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;AAG5B,eAAO,MAAM,kBAAkB,SACvB,MAAM,aACD,OAAO,SAAS,CAAC,YAAY,eAC3B,sBAAsB,eACtB,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+FzB,CAAC;AAEF,eAAO,MAAM,mBAAmB,gBACjB,sBAAsB,eACtB,WAAW,OAazB,CAAC;AAEF,eAAO,MAAM,iBAAiB,gBACf,sBAAsB;UACc,aAAa,GAAG,WAAW;CAI7E,CAAC;AAEF,eAAO,MAAM,gBAAgB,iBAAW,CAAC;AAgFzC,eAAO,MAAM,6BAA6B,iBAC1B,sBAAsB,EAAE,eACzB,WAAW,KACvB,KAAK,EAkEP,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/core",
3
- "version": "5.0.6",
3
+ "version": "5.1.0",
4
4
  "description": "Core of Strapi",
5
5
  "homepage": "https://strapi.io",
6
6
  "bugs": {
@@ -53,17 +53,17 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "@koa/cors": "5.0.0",
56
- "@koa/router": "12.0.1",
56
+ "@koa/router": "12.0.2",
57
57
  "@paralleldrive/cuid2": "2.2.2",
58
- "@strapi/admin": "5.0.6",
59
- "@strapi/database": "5.0.6",
60
- "@strapi/generators": "5.0.6",
61
- "@strapi/logger": "5.0.6",
58
+ "@strapi/admin": "5.1.0",
59
+ "@strapi/database": "5.1.0",
60
+ "@strapi/generators": "5.1.0",
61
+ "@strapi/logger": "5.1.0",
62
62
  "@strapi/pack-up": "5.0.0",
63
- "@strapi/permissions": "5.0.6",
64
- "@strapi/types": "5.0.6",
65
- "@strapi/typescript-utils": "5.0.6",
66
- "@strapi/utils": "5.0.6",
63
+ "@strapi/permissions": "5.1.0",
64
+ "@strapi/types": "5.1.0",
65
+ "@strapi/typescript-utils": "5.1.0",
66
+ "@strapi/utils": "5.1.0",
67
67
  "bcryptjs": "2.4.3",
68
68
  "boxen": "5.1.2",
69
69
  "chalk": "4.1.2",
@@ -126,13 +126,13 @@
126
126
  "@types/node": "18.19.24",
127
127
  "@types/node-schedule": "2.1.7",
128
128
  "@types/statuses": "2.0.1",
129
- "eslint-config-custom": "5.0.6",
129
+ "eslint-config-custom": "5.1.0",
130
130
  "supertest": "6.3.3",
131
- "tsconfig": "5.0.6"
131
+ "tsconfig": "5.1.0"
132
132
  },
133
133
  "engines": {
134
134
  "node": ">=18.0.0 <=22.x.x",
135
135
  "npm": ">=6.0.0"
136
136
  },
137
- "gitHead": "a281e06e9e1520e3f86e18c4ff78b8daa7a33356"
137
+ "gitHead": "e490c81792c93aafbd16fd684394a6f223e5c528"
138
138
  }