@strapi/core 5.1.0 → 5.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.
@@ -24,6 +24,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
24
24
  type: "biginteger";
25
25
  pluginOptions?: object | undefined;
26
26
  searchable?: boolean | undefined;
27
+ column?: Partial<Schema.Attribute.Column> | undefined;
27
28
  configurable?: boolean | undefined;
28
29
  default?: string | (() => string) | undefined;
29
30
  min?: string | undefined;
@@ -37,6 +38,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
37
38
  type: "boolean";
38
39
  pluginOptions?: object | undefined;
39
40
  searchable?: boolean | undefined;
41
+ column?: Partial<Schema.Attribute.Column> | undefined;
40
42
  configurable?: boolean | undefined;
41
43
  default?: boolean | (() => boolean) | undefined;
42
44
  private?: boolean | undefined;
@@ -47,6 +49,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
47
49
  type: "blocks";
48
50
  pluginOptions?: object | undefined;
49
51
  searchable?: boolean | undefined;
52
+ column?: Partial<Schema.Attribute.Column> | undefined;
50
53
  configurable?: boolean | undefined;
51
54
  private?: boolean | undefined;
52
55
  required?: boolean | undefined;
@@ -56,6 +59,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
56
59
  type: "datetime";
57
60
  pluginOptions?: object | undefined;
58
61
  searchable?: boolean | undefined;
62
+ column?: Partial<Schema.Attribute.Column> | undefined;
59
63
  configurable?: boolean | undefined;
60
64
  default?: Schema.Attribute.DateTimeValue | (() => Schema.Attribute.DateTimeValue) | undefined;
61
65
  private?: boolean | undefined;
@@ -67,6 +71,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
67
71
  type: "date";
68
72
  pluginOptions?: object | undefined;
69
73
  searchable?: boolean | undefined;
74
+ column?: Partial<Schema.Attribute.Column> | undefined;
70
75
  configurable?: boolean | undefined;
71
76
  default?: Schema.Attribute.DateValue | (() => Schema.Attribute.DateValue) | undefined;
72
77
  private?: boolean | undefined;
@@ -78,6 +83,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
78
83
  type: "decimal";
79
84
  pluginOptions?: object | undefined;
80
85
  searchable?: boolean | undefined;
86
+ column?: Partial<Schema.Attribute.Column> | undefined;
81
87
  configurable?: boolean | undefined;
82
88
  default?: number | (() => number) | undefined;
83
89
  min?: number | undefined;
@@ -91,6 +97,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
91
97
  type: "email";
92
98
  pluginOptions?: object | undefined;
93
99
  searchable?: boolean | undefined;
100
+ column?: Partial<Schema.Attribute.Column> | undefined;
94
101
  configurable?: boolean | undefined;
95
102
  default?: string | (() => string) | undefined;
96
103
  minLength?: number | undefined;
@@ -104,6 +111,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
104
111
  type: "enumeration";
105
112
  pluginOptions?: object | undefined;
106
113
  searchable?: boolean | undefined;
114
+ column?: Partial<Schema.Attribute.Column> | undefined;
107
115
  enum: string[];
108
116
  enumName?: string | undefined;
109
117
  configurable?: boolean | undefined;
@@ -116,6 +124,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
116
124
  type: "float";
117
125
  pluginOptions?: object | undefined;
118
126
  searchable?: boolean | undefined;
127
+ column?: Partial<Schema.Attribute.Column> | undefined;
119
128
  configurable?: boolean | undefined;
120
129
  default?: number | (() => number) | undefined;
121
130
  min?: number | undefined;
@@ -129,6 +138,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
129
138
  type: "integer";
130
139
  pluginOptions?: object | undefined;
131
140
  searchable?: boolean | undefined;
141
+ column?: Partial<Schema.Attribute.Column> | undefined;
132
142
  configurable?: boolean | undefined;
133
143
  default?: number | (() => number) | undefined;
134
144
  min?: number | undefined;
@@ -142,6 +152,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
142
152
  type: "json";
143
153
  pluginOptions?: object | undefined;
144
154
  searchable?: boolean | undefined;
155
+ column?: Partial<Schema.Attribute.Column> | undefined;
145
156
  configurable?: boolean | undefined;
146
157
  required?: boolean | undefined;
147
158
  private?: boolean | undefined;
@@ -152,6 +163,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
152
163
  type: "password";
153
164
  pluginOptions?: object | undefined;
154
165
  searchable?: boolean | undefined;
166
+ column?: Partial<Schema.Attribute.Column> | undefined;
155
167
  configurable?: boolean | undefined;
156
168
  default?: string | (() => string) | undefined;
157
169
  minLength?: number | undefined;
@@ -164,6 +176,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
164
176
  type: "relation";
165
177
  pluginOptions?: object | undefined;
166
178
  searchable?: boolean | undefined;
179
+ column?: Partial<Schema.Attribute.Column> | undefined;
167
180
  configurable?: boolean | undefined;
168
181
  private?: boolean | undefined;
169
182
  writable?: boolean | undefined;
@@ -175,6 +188,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
175
188
  type: "relation";
176
189
  pluginOptions?: object | undefined;
177
190
  searchable?: boolean | undefined;
191
+ column?: Partial<Schema.Attribute.Column> | undefined;
178
192
  configurable?: boolean | undefined;
179
193
  private?: boolean | undefined;
180
194
  writable?: boolean | undefined;
@@ -186,6 +200,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
186
200
  type: "relation";
187
201
  pluginOptions?: object | undefined;
188
202
  searchable?: boolean | undefined;
203
+ column?: Partial<Schema.Attribute.Column> | undefined;
189
204
  target: import("@strapi/types/dist/uid").ContentType;
190
205
  inversedBy?: string | undefined;
191
206
  mappedBy?: string | undefined;
@@ -200,6 +215,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
200
215
  type: "relation";
201
216
  pluginOptions?: object | undefined;
202
217
  searchable?: boolean | undefined;
218
+ column?: Partial<Schema.Attribute.Column> | undefined;
203
219
  target: import("@strapi/types/dist/uid").ContentType;
204
220
  inversedBy?: string | undefined;
205
221
  mappedBy?: string | undefined;
@@ -214,6 +230,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
214
230
  type: "relation";
215
231
  pluginOptions?: object | undefined;
216
232
  searchable?: boolean | undefined;
233
+ column?: Partial<Schema.Attribute.Column> | undefined;
217
234
  target: import("@strapi/types/dist/uid").ContentType;
218
235
  inversedBy?: string | undefined;
219
236
  mappedBy?: string | undefined;
@@ -228,6 +245,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
228
245
  type: "relation";
229
246
  pluginOptions?: object | undefined;
230
247
  searchable?: boolean | undefined;
248
+ column?: Partial<Schema.Attribute.Column> | undefined;
231
249
  target: import("@strapi/types/dist/uid").ContentType;
232
250
  inversedBy?: string | undefined;
233
251
  mappedBy?: string | undefined;
@@ -242,6 +260,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
242
260
  type: "relation";
243
261
  pluginOptions?: object | undefined;
244
262
  searchable?: boolean | undefined;
263
+ column?: Partial<Schema.Attribute.Column> | undefined;
245
264
  target: import("@strapi/types/dist/uid").ContentType;
246
265
  configurable?: boolean | undefined;
247
266
  private?: boolean | undefined;
@@ -254,6 +273,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
254
273
  type: "relation";
255
274
  pluginOptions?: object | undefined;
256
275
  searchable?: boolean | undefined;
276
+ column?: Partial<Schema.Attribute.Column> | undefined;
257
277
  target: import("@strapi/types/dist/uid").ContentType;
258
278
  configurable?: boolean | undefined;
259
279
  private?: boolean | undefined;
@@ -266,6 +286,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
266
286
  type: "relation";
267
287
  pluginOptions?: object | undefined;
268
288
  searchable?: boolean | undefined;
289
+ column?: Partial<Schema.Attribute.Column> | undefined;
269
290
  target: import("@strapi/types/dist/uid").ContentType;
270
291
  morphBy?: string | undefined;
271
292
  configurable?: boolean | undefined;
@@ -279,6 +300,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
279
300
  type: "relation";
280
301
  pluginOptions?: object | undefined;
281
302
  searchable?: boolean | undefined;
303
+ column?: Partial<Schema.Attribute.Column> | undefined;
282
304
  target: import("@strapi/types/dist/uid").ContentType;
283
305
  morphBy?: string | undefined;
284
306
  configurable?: boolean | undefined;
@@ -292,6 +314,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
292
314
  type: "richtext";
293
315
  pluginOptions?: object | undefined;
294
316
  searchable?: boolean | undefined;
317
+ column?: Partial<Schema.Attribute.Column> | undefined;
295
318
  configurable?: boolean | undefined;
296
319
  default?: string | (() => string) | undefined;
297
320
  minLength?: number | undefined;
@@ -304,6 +327,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
304
327
  type: "string";
305
328
  pluginOptions?: object | undefined;
306
329
  searchable?: boolean | undefined;
330
+ column?: Partial<Schema.Attribute.Column> | undefined;
307
331
  regex?: RegExp | undefined;
308
332
  configurable?: boolean | undefined;
309
333
  default?: string | (() => string) | undefined;
@@ -318,6 +342,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
318
342
  type: "text";
319
343
  pluginOptions?: object | undefined;
320
344
  searchable?: boolean | undefined;
345
+ column?: Partial<Schema.Attribute.Column> | undefined;
321
346
  regex?: RegExp | undefined;
322
347
  configurable?: boolean | undefined;
323
348
  default?: string | (() => string) | undefined;
@@ -332,6 +357,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
332
357
  type: "time";
333
358
  pluginOptions?: object | undefined;
334
359
  searchable?: boolean | undefined;
360
+ column?: Partial<Schema.Attribute.Column> | undefined;
335
361
  configurable?: boolean | undefined;
336
362
  default?: Schema.Attribute.TimeValue | (() => Schema.Attribute.TimeValue) | undefined;
337
363
  private?: boolean | undefined;
@@ -343,6 +369,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
343
369
  type: "timestamp";
344
370
  pluginOptions?: object | undefined;
345
371
  searchable?: boolean | undefined;
372
+ column?: Partial<Schema.Attribute.Column> | undefined;
346
373
  configurable?: boolean | undefined;
347
374
  default?: Schema.Attribute.TimestampValue | (() => Schema.Attribute.TimestampValue) | undefined;
348
375
  private?: boolean | undefined;
@@ -354,6 +381,7 @@ export declare const transformAttribute: (name: string, attribute: Schema.Attrib
354
381
  type: "uid";
355
382
  pluginOptions?: object | undefined;
356
383
  searchable?: boolean | undefined;
384
+ column?: Partial<Schema.Attribute.Column> | undefined;
357
385
  targetField?: string | undefined;
358
386
  options?: Schema.Attribute.UIDOptions | undefined;
359
387
  configurable?: boolean | undefined;
@@ -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,W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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.1.0",
3
+ "version": "5.2.0",
4
4
  "description": "Core of Strapi",
5
5
  "homepage": "https://strapi.io",
6
6
  "bugs": {
@@ -55,15 +55,15 @@
55
55
  "@koa/cors": "5.0.0",
56
56
  "@koa/router": "12.0.2",
57
57
  "@paralleldrive/cuid2": "2.2.2",
58
- "@strapi/admin": "5.1.0",
59
- "@strapi/database": "5.1.0",
60
- "@strapi/generators": "5.1.0",
61
- "@strapi/logger": "5.1.0",
58
+ "@strapi/admin": "5.2.0",
59
+ "@strapi/database": "5.2.0",
60
+ "@strapi/generators": "5.2.0",
61
+ "@strapi/logger": "5.2.0",
62
62
  "@strapi/pack-up": "5.0.0",
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",
63
+ "@strapi/permissions": "5.2.0",
64
+ "@strapi/types": "5.2.0",
65
+ "@strapi/typescript-utils": "5.2.0",
66
+ "@strapi/utils": "5.2.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.1.0",
129
+ "eslint-config-custom": "5.2.0",
130
130
  "supertest": "6.3.3",
131
- "tsconfig": "5.1.0"
131
+ "tsconfig": "5.2.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": "e490c81792c93aafbd16fd684394a6f223e5c528"
137
+ "gitHead": "c3b3af2ac546ef6c4dab905d9094a12a02060327"
138
138
  }