@strapi/strapi 4.11.1-beta.0 → 4.11.1-beta.2

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.
@@ -1,7 +1,7 @@
1
1
  import type { Common, Utils } from '@strapi/strapi';
2
2
 
3
3
  // TODO Use actual entities instead of regular object
4
- type Entity = object;
4
+ type Entity = unknown;
5
5
 
6
6
  /**
7
7
  * Base Core-API service type
@@ -11,17 +11,17 @@ export interface Base {
11
11
  }
12
12
 
13
13
  /**
14
- * Generic service structure
14
+ * Generic core api service structure
15
15
  */
16
16
  export type Generic = {
17
- [method: string | number | symbol]: (...args: any) => any;
17
+ [key: keyof any]: unknown;
18
18
  };
19
19
 
20
20
  /**
21
21
  * Core-API collection type service
22
22
  */
23
23
  export interface CollectionType extends Base {
24
- find?(params: object): Promise<Entity[]> | Entity;
24
+ find?(params: object): Promise<Entity[]> | Entity[];
25
25
  findOne?(entityId: string, params: object): Promise<Entity> | Entity;
26
26
  create?(params: object): Promise<Entity> | Entity;
27
27
  update?(entityId: string, params: object): Promise<Entity> | Entity;
@@ -37,12 +37,14 @@ export interface SingleType extends Base {
37
37
  delete?(params: object): Promise<Entity> | Entity;
38
38
  }
39
39
 
40
- export type ContentType<TContentTypeUID extends Common.UID.ContentType> = Utils.Expression.MatchFirst<
41
- [
42
- Utils.Expression.Test<Common.UID.IsCollectionType<TContentTypeUID>, CollectionType>,
43
- Utils.Expression.Test<Common.UID.IsSingleType<TContentTypeUID>, SingleType>
44
- ],
45
- Base
46
- >;
40
+ export type ContentType<TContentTypeUID extends Common.UID.ContentType> =
41
+ Utils.Expression.MatchFirst<
42
+ [
43
+ Utils.Expression.Test<Common.UID.IsCollectionType<TContentTypeUID>, CollectionType>,
44
+ Utils.Expression.Test<Common.UID.IsSingleType<TContentTypeUID>, SingleType>
45
+ ],
46
+ Base
47
+ >;
47
48
 
48
- export type Extendable<TContentTypeUID extends Common.UID.ContentType> = ContentType<TContentTypeUID> & Generic;
49
+ export type Extendable<TContentTypeUID extends Common.UID.ContentType> =
50
+ ContentType<TContentTypeUID> & Generic;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/strapi",
3
- "version": "4.11.1-beta.0",
3
+ "version": "4.11.1-beta.2",
4
4
  "description": "An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MySQL, MariaDB, PostgreSQL, SQLite",
5
5
  "keywords": [
6
6
  "strapi",
@@ -81,19 +81,19 @@
81
81
  "dependencies": {
82
82
  "@koa/cors": "3.4.3",
83
83
  "@koa/router": "10.1.1",
84
- "@strapi/admin": "4.11.1-beta.0",
85
- "@strapi/data-transfer": "4.11.1-beta.0",
86
- "@strapi/database": "4.11.1-beta.0",
87
- "@strapi/generate-new": "4.11.1-beta.0",
88
- "@strapi/generators": "4.11.1-beta.0",
89
- "@strapi/logger": "4.11.1-beta.0",
90
- "@strapi/permissions": "4.11.1-beta.0",
91
- "@strapi/plugin-content-manager": "4.11.1-beta.0",
92
- "@strapi/plugin-content-type-builder": "4.11.1-beta.0",
93
- "@strapi/plugin-email": "4.11.1-beta.0",
94
- "@strapi/plugin-upload": "4.11.1-beta.0",
95
- "@strapi/typescript-utils": "4.11.1-beta.0",
96
- "@strapi/utils": "4.11.1-beta.0",
84
+ "@strapi/admin": "4.11.1-beta.2",
85
+ "@strapi/data-transfer": "4.11.1-beta.2",
86
+ "@strapi/database": "4.11.1-beta.2",
87
+ "@strapi/generate-new": "4.11.1-beta.2",
88
+ "@strapi/generators": "4.11.1-beta.2",
89
+ "@strapi/logger": "4.11.1-beta.2",
90
+ "@strapi/permissions": "4.11.1-beta.2",
91
+ "@strapi/plugin-content-manager": "4.11.1-beta.2",
92
+ "@strapi/plugin-content-type-builder": "4.11.1-beta.2",
93
+ "@strapi/plugin-email": "4.11.1-beta.2",
94
+ "@strapi/plugin-upload": "4.11.1-beta.2",
95
+ "@strapi/typescript-utils": "4.11.1-beta.2",
96
+ "@strapi/utils": "4.11.1-beta.2",
97
97
  "bcryptjs": "2.4.3",
98
98
  "boxen": "5.1.2",
99
99
  "chalk": "4.1.2",
@@ -142,5 +142,5 @@
142
142
  "node": ">=14.19.1 <=18.x.x",
143
143
  "npm": ">=6.0.0"
144
144
  },
145
- "gitHead": "30e56b8376b9cb52c39ecd1c3b7d8706688a1685"
145
+ "gitHead": "0b01fbf9cc6729527d823c9c36c0065d660965c1"
146
146
  }