@strapi/core 5.0.6 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,47 +20,379 @@ 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
+ column?: Partial<Schema.Attribute.Column> | undefined;
28
+ configurable?: boolean | undefined;
29
+ default?: string | (() => string) | undefined;
30
+ min?: string | undefined;
31
+ max?: string | undefined;
32
+ private?: boolean | undefined;
33
+ required?: boolean | undefined;
34
+ writable?: boolean | undefined;
35
+ visible?: boolean | undefined;
36
+ unique?: boolean | undefined;
37
+ } | {
38
+ type: "boolean";
39
+ pluginOptions?: object | undefined;
40
+ searchable?: boolean | undefined;
41
+ column?: Partial<Schema.Attribute.Column> | undefined;
42
+ configurable?: boolean | undefined;
43
+ default?: boolean | (() => boolean) | undefined;
44
+ private?: boolean | undefined;
45
+ required?: boolean | undefined;
46
+ writable?: boolean | undefined;
47
+ visible?: boolean | undefined;
48
+ } | {
49
+ type: "blocks";
50
+ pluginOptions?: object | undefined;
51
+ searchable?: boolean | undefined;
52
+ column?: Partial<Schema.Attribute.Column> | undefined;
53
+ configurable?: boolean | undefined;
54
+ private?: boolean | undefined;
55
+ required?: boolean | undefined;
56
+ writable?: boolean | undefined;
57
+ visible?: boolean | undefined;
58
+ } | {
59
+ type: "datetime";
60
+ pluginOptions?: object | undefined;
61
+ searchable?: boolean | undefined;
62
+ column?: Partial<Schema.Attribute.Column> | undefined;
63
+ configurable?: boolean | undefined;
64
+ default?: Schema.Attribute.DateTimeValue | (() => Schema.Attribute.DateTimeValue) | undefined;
65
+ private?: boolean | undefined;
66
+ required?: boolean | undefined;
67
+ unique?: boolean | undefined;
68
+ writable?: boolean | undefined;
69
+ visible?: boolean | undefined;
70
+ } | {
71
+ type: "date";
72
+ pluginOptions?: object | undefined;
73
+ searchable?: boolean | undefined;
74
+ column?: Partial<Schema.Attribute.Column> | undefined;
75
+ configurable?: boolean | undefined;
76
+ default?: Schema.Attribute.DateValue | (() => Schema.Attribute.DateValue) | undefined;
77
+ private?: boolean | undefined;
78
+ required?: boolean | undefined;
79
+ unique?: boolean | undefined;
80
+ writable?: boolean | undefined;
81
+ visible?: boolean | undefined;
82
+ } | {
83
+ type: "decimal";
84
+ pluginOptions?: object | undefined;
85
+ searchable?: boolean | undefined;
86
+ column?: Partial<Schema.Attribute.Column> | undefined;
87
+ configurable?: boolean | undefined;
88
+ default?: number | (() => number) | undefined;
89
+ min?: number | undefined;
90
+ max?: number | undefined;
91
+ private?: boolean | undefined;
92
+ required?: boolean | undefined;
93
+ writable?: boolean | undefined;
94
+ visible?: boolean | undefined;
95
+ unique?: boolean | undefined;
96
+ } | {
97
+ type: "email";
98
+ pluginOptions?: object | undefined;
99
+ searchable?: boolean | undefined;
100
+ column?: Partial<Schema.Attribute.Column> | undefined;
101
+ configurable?: boolean | undefined;
102
+ default?: string | (() => string) | undefined;
103
+ minLength?: number | undefined;
104
+ maxLength?: number | undefined;
105
+ private?: boolean | undefined;
106
+ required?: boolean | undefined;
107
+ unique?: boolean | undefined;
108
+ writable?: boolean | undefined;
109
+ visible?: boolean | undefined;
110
+ } | {
111
+ type: "enumeration";
112
+ pluginOptions?: object | undefined;
113
+ searchable?: boolean | undefined;
114
+ column?: Partial<Schema.Attribute.Column> | undefined;
115
+ enum: string[];
116
+ enumName?: string | undefined;
117
+ configurable?: boolean | undefined;
118
+ default?: string | (() => string) | undefined;
119
+ private?: boolean | undefined;
120
+ required?: boolean | undefined;
121
+ writable?: boolean | undefined;
122
+ visible?: boolean | undefined;
123
+ } | {
124
+ type: "float";
125
+ pluginOptions?: object | undefined;
126
+ searchable?: boolean | undefined;
127
+ column?: Partial<Schema.Attribute.Column> | undefined;
128
+ configurable?: boolean | undefined;
129
+ default?: number | (() => number) | undefined;
130
+ min?: number | undefined;
131
+ max?: number | undefined;
132
+ private?: boolean | undefined;
133
+ required?: boolean | undefined;
134
+ writable?: boolean | undefined;
135
+ visible?: boolean | undefined;
136
+ unique?: boolean | undefined;
137
+ } | {
138
+ type: "integer";
139
+ pluginOptions?: object | undefined;
140
+ searchable?: boolean | undefined;
141
+ column?: Partial<Schema.Attribute.Column> | undefined;
142
+ configurable?: boolean | undefined;
143
+ default?: number | (() => number) | undefined;
144
+ min?: number | undefined;
145
+ max?: number | undefined;
146
+ private?: boolean | undefined;
147
+ required?: boolean | undefined;
148
+ writable?: boolean | undefined;
149
+ visible?: boolean | undefined;
150
+ unique?: boolean | undefined;
151
+ } | {
152
+ type: "json";
153
+ pluginOptions?: object | undefined;
154
+ searchable?: boolean | undefined;
155
+ column?: Partial<Schema.Attribute.Column> | undefined;
156
+ configurable?: boolean | undefined;
157
+ required?: boolean | undefined;
158
+ private?: boolean | undefined;
159
+ writable?: boolean | undefined;
160
+ visible?: boolean | undefined;
161
+ default?: import("@strapi/types/dist/utils").JSONPrimitive | (() => import("@strapi/types/dist/utils").JSONPrimitive) | undefined;
162
+ } | {
163
+ type: "password";
164
+ pluginOptions?: object | undefined;
165
+ searchable?: boolean | undefined;
166
+ column?: Partial<Schema.Attribute.Column> | undefined;
167
+ configurable?: boolean | undefined;
168
+ default?: string | (() => string) | undefined;
169
+ minLength?: number | undefined;
170
+ maxLength?: number | undefined;
171
+ private?: boolean | undefined;
172
+ required?: boolean | undefined;
173
+ writable?: boolean | undefined;
174
+ visible?: boolean | undefined;
175
+ } | {
176
+ type: "relation";
177
+ pluginOptions?: object | undefined;
178
+ searchable?: boolean | undefined;
179
+ column?: Partial<Schema.Attribute.Column> | undefined;
180
+ configurable?: boolean | undefined;
181
+ private?: boolean | undefined;
182
+ writable?: boolean | undefined;
183
+ visible?: boolean | undefined;
184
+ required?: boolean | undefined;
24
185
  useJoinTable?: boolean | undefined;
25
- } & {
26
186
  relation: "morphToOne";
27
- }) | (Schema.Attribute.OfType<"relation"> & Schema.Attribute.ConfigurableOption & Schema.Attribute.PrivateOption & Schema.Attribute.WritableOption & Schema.Attribute.VisibleOption & Schema.Attribute.RequiredOption & {
187
+ } | {
188
+ type: "relation";
189
+ pluginOptions?: object | undefined;
190
+ searchable?: boolean | undefined;
191
+ column?: Partial<Schema.Attribute.Column> | undefined;
192
+ configurable?: boolean | undefined;
193
+ private?: boolean | undefined;
194
+ writable?: boolean | undefined;
195
+ visible?: boolean | undefined;
196
+ required?: boolean | undefined;
28
197
  useJoinTable?: boolean | undefined;
29
- } & {
30
198
  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 & {
199
+ } | {
200
+ type: "relation";
201
+ pluginOptions?: object | undefined;
202
+ searchable?: boolean | undefined;
203
+ column?: Partial<Schema.Attribute.Column> | undefined;
204
+ target: import("@strapi/types/dist/uid").ContentType;
205
+ inversedBy?: string | undefined;
206
+ mappedBy?: string | undefined;
207
+ configurable?: boolean | undefined;
208
+ private?: boolean | undefined;
209
+ writable?: boolean | undefined;
210
+ visible?: boolean | undefined;
211
+ required?: boolean | undefined;
32
212
  useJoinTable?: boolean | undefined;
33
- } & {
34
213
  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 & {
214
+ } | {
215
+ type: "relation";
216
+ pluginOptions?: object | undefined;
217
+ searchable?: boolean | undefined;
218
+ column?: Partial<Schema.Attribute.Column> | undefined;
219
+ target: import("@strapi/types/dist/uid").ContentType;
220
+ inversedBy?: string | undefined;
221
+ mappedBy?: string | undefined;
222
+ configurable?: boolean | undefined;
223
+ private?: boolean | undefined;
224
+ writable?: boolean | undefined;
225
+ visible?: boolean | undefined;
226
+ required?: boolean | undefined;
36
227
  useJoinTable?: boolean | undefined;
37
- } & {
38
228
  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 & {
229
+ } | {
230
+ type: "relation";
231
+ pluginOptions?: object | undefined;
232
+ searchable?: boolean | undefined;
233
+ column?: Partial<Schema.Attribute.Column> | undefined;
234
+ target: import("@strapi/types/dist/uid").ContentType;
235
+ inversedBy?: string | undefined;
236
+ mappedBy?: string | undefined;
237
+ configurable?: boolean | undefined;
238
+ private?: boolean | undefined;
239
+ writable?: boolean | undefined;
240
+ visible?: boolean | undefined;
241
+ required?: boolean | undefined;
40
242
  useJoinTable?: boolean | undefined;
41
- } & {
42
243
  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 & {
244
+ } | {
245
+ type: "relation";
246
+ pluginOptions?: object | undefined;
247
+ searchable?: boolean | undefined;
248
+ column?: Partial<Schema.Attribute.Column> | undefined;
249
+ target: import("@strapi/types/dist/uid").ContentType;
250
+ inversedBy?: string | undefined;
251
+ mappedBy?: string | undefined;
252
+ configurable?: boolean | undefined;
253
+ private?: boolean | undefined;
254
+ writable?: boolean | undefined;
255
+ visible?: boolean | undefined;
256
+ required?: boolean | undefined;
44
257
  useJoinTable?: boolean | undefined;
45
- } & {
46
258
  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 & {
259
+ } | {
260
+ type: "relation";
261
+ pluginOptions?: object | undefined;
262
+ searchable?: boolean | undefined;
263
+ column?: Partial<Schema.Attribute.Column> | undefined;
264
+ target: import("@strapi/types/dist/uid").ContentType;
265
+ configurable?: boolean | undefined;
266
+ private?: boolean | undefined;
267
+ writable?: boolean | undefined;
268
+ visible?: boolean | undefined;
269
+ required?: boolean | undefined;
48
270
  useJoinTable?: boolean | undefined;
49
- } & {
50
271
  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 & {
272
+ } | {
273
+ type: "relation";
274
+ pluginOptions?: object | undefined;
275
+ searchable?: boolean | undefined;
276
+ column?: Partial<Schema.Attribute.Column> | undefined;
277
+ target: import("@strapi/types/dist/uid").ContentType;
278
+ configurable?: boolean | undefined;
279
+ private?: boolean | undefined;
280
+ writable?: boolean | undefined;
281
+ visible?: boolean | undefined;
282
+ required?: boolean | undefined;
52
283
  useJoinTable?: boolean | undefined;
53
- } & {
54
284
  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 & {
285
+ } | {
286
+ type: "relation";
287
+ pluginOptions?: object | undefined;
288
+ searchable?: boolean | undefined;
289
+ column?: Partial<Schema.Attribute.Column> | undefined;
290
+ target: import("@strapi/types/dist/uid").ContentType;
291
+ morphBy?: string | undefined;
292
+ configurable?: boolean | undefined;
293
+ private?: boolean | undefined;
294
+ writable?: boolean | undefined;
295
+ visible?: boolean | undefined;
296
+ required?: boolean | undefined;
56
297
  useJoinTable?: boolean | undefined;
57
- } & {
58
298
  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 & {
299
+ } | {
300
+ type: "relation";
301
+ pluginOptions?: object | undefined;
302
+ searchable?: boolean | undefined;
303
+ column?: Partial<Schema.Attribute.Column> | undefined;
304
+ target: import("@strapi/types/dist/uid").ContentType;
305
+ morphBy?: string | undefined;
306
+ configurable?: boolean | undefined;
307
+ private?: boolean | undefined;
308
+ writable?: boolean | undefined;
309
+ visible?: boolean | undefined;
310
+ required?: boolean | undefined;
60
311
  useJoinTable?: boolean | undefined;
61
- } & {
62
312
  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) | {
313
+ } | {
314
+ type: "richtext";
315
+ pluginOptions?: object | undefined;
316
+ searchable?: boolean | undefined;
317
+ column?: Partial<Schema.Attribute.Column> | undefined;
318
+ configurable?: boolean | undefined;
319
+ default?: string | (() => string) | undefined;
320
+ minLength?: number | undefined;
321
+ maxLength?: number | undefined;
322
+ private?: boolean | undefined;
323
+ required?: boolean | undefined;
324
+ writable?: boolean | undefined;
325
+ visible?: boolean | undefined;
326
+ } | {
327
+ type: "string";
328
+ pluginOptions?: object | undefined;
329
+ searchable?: boolean | undefined;
330
+ column?: Partial<Schema.Attribute.Column> | undefined;
331
+ regex?: RegExp | undefined;
332
+ configurable?: boolean | undefined;
333
+ default?: string | (() => string) | undefined;
334
+ minLength?: number | undefined;
335
+ maxLength?: number | undefined;
336
+ private?: boolean | undefined;
337
+ unique?: boolean | undefined;
338
+ required?: boolean | undefined;
339
+ writable?: boolean | undefined;
340
+ visible?: boolean | undefined;
341
+ } | {
342
+ type: "text";
343
+ pluginOptions?: object | undefined;
344
+ searchable?: boolean | undefined;
345
+ column?: Partial<Schema.Attribute.Column> | undefined;
346
+ regex?: RegExp | undefined;
347
+ configurable?: boolean | undefined;
348
+ default?: string | (() => string) | undefined;
349
+ minLength?: number | undefined;
350
+ maxLength?: number | undefined;
351
+ private?: boolean | undefined;
352
+ unique?: boolean | undefined;
353
+ required?: boolean | undefined;
354
+ writable?: boolean | undefined;
355
+ visible?: boolean | undefined;
356
+ } | {
357
+ type: "time";
358
+ pluginOptions?: object | undefined;
359
+ searchable?: boolean | undefined;
360
+ column?: Partial<Schema.Attribute.Column> | undefined;
361
+ configurable?: boolean | undefined;
362
+ default?: Schema.Attribute.TimeValue | (() => Schema.Attribute.TimeValue) | undefined;
363
+ private?: boolean | undefined;
364
+ required?: boolean | undefined;
365
+ unique?: boolean | undefined;
366
+ writable?: boolean | undefined;
367
+ visible?: boolean | undefined;
368
+ } | {
369
+ type: "timestamp";
370
+ pluginOptions?: object | undefined;
371
+ searchable?: boolean | undefined;
372
+ column?: Partial<Schema.Attribute.Column> | undefined;
373
+ configurable?: boolean | undefined;
374
+ default?: Schema.Attribute.TimestampValue | (() => Schema.Attribute.TimestampValue) | undefined;
375
+ private?: boolean | undefined;
376
+ required?: boolean | undefined;
377
+ unique?: boolean | undefined;
378
+ writable?: boolean | undefined;
379
+ visible?: boolean | undefined;
380
+ } | {
381
+ type: "uid";
382
+ pluginOptions?: object | undefined;
383
+ searchable?: boolean | undefined;
384
+ column?: Partial<Schema.Attribute.Column> | undefined;
385
+ targetField?: string | undefined;
386
+ options?: Schema.Attribute.UIDOptions | undefined;
387
+ configurable?: boolean | undefined;
388
+ default?: string | (() => string) | undefined;
389
+ minLength?: number | undefined;
390
+ maxLength?: number | undefined;
391
+ private?: boolean | undefined;
392
+ required?: boolean | undefined;
393
+ writable?: boolean | undefined;
394
+ visible?: boolean | undefined;
395
+ } | {
64
396
  type: string;
65
397
  relation: string;
66
398
  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.1",
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.1",
59
+ "@strapi/database": "5.1.1",
60
+ "@strapi/generators": "5.1.1",
61
+ "@strapi/logger": "5.1.1",
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.1",
64
+ "@strapi/types": "5.1.1",
65
+ "@strapi/typescript-utils": "5.1.1",
66
+ "@strapi/utils": "5.1.1",
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.1",
130
130
  "supertest": "6.3.3",
131
- "tsconfig": "5.0.6"
131
+ "tsconfig": "5.1.1"
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": "642dabff0ba05c7fb69fbf70a779ef12b766b242"
138
138
  }