@strapi/content-type-builder 5.50.1 → 5.50.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.
- package/dist/admin/src/components/DataManager/utils/cleanData.d.ts +34 -34
- package/dist/admin/translations/ko.json.js +64 -1
- package/dist/admin/translations/ko.json.js.map +1 -1
- package/dist/admin/translations/ko.json.mjs +64 -1
- package/dist/admin/translations/ko.json.mjs.map +1 -1
- package/dist/server/controllers/validation/schema.js +37 -1
- package/dist/server/controllers/validation/schema.js.map +1 -1
- package/dist/server/controllers/validation/schema.mjs +38 -3
- package/dist/server/controllers/validation/schema.mjs.map +1 -1
- package/dist/server/services/builder.js +11 -66
- package/dist/server/services/builder.js.map +1 -1
- package/dist/server/services/builder.mjs +11 -66
- package/dist/server/services/builder.mjs.map +1 -1
- package/dist/server/src/controllers/validation/schema.d.ts +10 -0
- package/dist/server/src/controllers/validation/schema.d.ts.map +1 -1
- package/dist/server/src/index.d.ts +3 -3
- package/dist/server/src/routes/index.d.ts +1 -1
- package/dist/server/src/services/builder.d.ts +7 -0
- package/dist/server/src/services/builder.d.ts.map +1 -1
- package/dist/server/src/services/schema-builder/component-builder.d.ts +4 -4
- package/dist/server/src/services/schema-builder/content-type-builder.d.ts +4 -4
- package/dist/server/src/services/schema-builder/index.d.ts +18 -18
- package/dist/server/src/services/schema.d.ts +75 -75
- package/dist/server/src/utils/attributes.d.ts +2 -2
- package/dist/server/src/utils/attributes.d.ts.map +1 -1
- package/package.json +16 -12
|
@@ -16,13 +16,13 @@ export default function createComponentBuilder(): {
|
|
|
16
16
|
readonly modelName: string | undefined;
|
|
17
17
|
readonly plugin: string | undefined;
|
|
18
18
|
readonly category: string | undefined;
|
|
19
|
-
readonly kind: import("@strapi/types/dist/struct").ContentTypeKind;
|
|
19
|
+
readonly kind: import("@strapi/types/dist/struct/schema.js").ContentTypeKind;
|
|
20
20
|
readonly uid: `admin::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}` | `strapi::${string}` | undefined;
|
|
21
21
|
readonly writable: boolean;
|
|
22
22
|
setUID(val: Internal.UID.ContentType): /*elided*/ any;
|
|
23
23
|
setDir(val: string): /*elided*/ any;
|
|
24
|
-
readonly schema: import("@strapi/types/dist/struct").ContentTypeSchema;
|
|
25
|
-
setSchema(val: import("@strapi/types/dist/struct").ContentTypeSchema): /*elided*/ any;
|
|
24
|
+
readonly schema: import("@strapi/types/dist/struct/schema.js").ContentTypeSchema;
|
|
25
|
+
setSchema(val: import("@strapi/types/dist/struct/schema.js").ContentTypeSchema): /*elided*/ any;
|
|
26
26
|
get(path: string[]): any;
|
|
27
27
|
set(path: string[] | string, val: unknown): /*elided*/ any;
|
|
28
28
|
unset(path: string[]): /*elided*/ any;
|
|
@@ -30,7 +30,7 @@ export default function createComponentBuilder(): {
|
|
|
30
30
|
getAttribute(key: string): any;
|
|
31
31
|
setAttribute(key: string, attribute: any): /*elided*/ any;
|
|
32
32
|
deleteAttribute(key: string): /*elided*/ any;
|
|
33
|
-
setAttributes(newAttributes: import("@strapi/types/dist/struct").SchemaAttributes): /*elided*/ any;
|
|
33
|
+
setAttributes(newAttributes: import("@strapi/types/dist/struct/schema.js").SchemaAttributes): /*elided*/ any;
|
|
34
34
|
removeContentType(uid: Internal.UID.ContentType): /*elided*/ any;
|
|
35
35
|
removeComponent(uid: Internal.UID.Component): /*elided*/ any;
|
|
36
36
|
updateComponent(uid: Internal.UID.Component, newUID: Internal.UID.Component): /*elided*/ any;
|
|
@@ -15,19 +15,19 @@ export default function createBuilder(): {
|
|
|
15
15
|
uid: string;
|
|
16
16
|
attribute: import("./types").InternalRelationAttribute;
|
|
17
17
|
}): void;
|
|
18
|
-
unsetRelation(this: any, attribute: import("@strapi/types/dist/schema/attribute").Relation<import("@strapi/types/dist/schema/attribute").RelationKind.Any>): any;
|
|
18
|
+
unsetRelation(this: any, attribute: import("@strapi/types/dist/schema/attribute/index.js").Relation<import("@strapi/types/dist/schema/attribute/index.js").RelationKind.Any>): any;
|
|
19
19
|
createContentTypeAttributes(this: any, uid: string, attributes: import("../../controllers/validation/content-type").CreateContentTypeInput["attributes"]): any;
|
|
20
20
|
createContentType(this: any, infos: import("../../controllers/validation/content-type").CreateContentTypeInput): {
|
|
21
21
|
readonly modelName: string | undefined;
|
|
22
22
|
readonly plugin: string | undefined;
|
|
23
23
|
readonly category: string | undefined;
|
|
24
|
-
readonly kind: import("@strapi/types/dist/struct").ContentTypeKind;
|
|
24
|
+
readonly kind: import("@strapi/types/dist/struct/schema.js").ContentTypeKind;
|
|
25
25
|
readonly uid: `admin::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}` | `strapi::${string}` | undefined;
|
|
26
26
|
readonly writable: boolean;
|
|
27
|
-
setUID(val: import("@strapi/types/dist/internal/uid").ContentType): /*elided*/ any;
|
|
27
|
+
setUID(val: import("@strapi/types/dist/internal/uid.js").ContentType): /*elided*/ any;
|
|
28
28
|
setDir(val: string): /*elided*/ any;
|
|
29
|
-
readonly schema: import("@strapi/types/dist/struct").ContentTypeSchema;
|
|
30
|
-
setSchema(val: import("@strapi/types/dist/struct").ContentTypeSchema): /*elided*/ any;
|
|
29
|
+
readonly schema: import("@strapi/types/dist/struct/schema.js").ContentTypeSchema;
|
|
30
|
+
setSchema(val: import("@strapi/types/dist/struct/schema.js").ContentTypeSchema): /*elided*/ any;
|
|
31
31
|
get(path: string[]): any;
|
|
32
32
|
set(path: string[] | string, val: unknown): /*elided*/ any;
|
|
33
33
|
unset(path: string[]): /*elided*/ any;
|
|
@@ -35,10 +35,10 @@ export default function createBuilder(): {
|
|
|
35
35
|
getAttribute(key: string): any;
|
|
36
36
|
setAttribute(key: string, attribute: any): /*elided*/ any;
|
|
37
37
|
deleteAttribute(key: string): /*elided*/ any;
|
|
38
|
-
setAttributes(newAttributes: import("@strapi/types/dist/struct").SchemaAttributes): /*elided*/ any;
|
|
39
|
-
removeContentType(uid: import("@strapi/types/dist/internal/uid").ContentType): /*elided*/ any;
|
|
40
|
-
removeComponent(uid: import("@strapi/types/dist/internal/uid").Component): /*elided*/ any;
|
|
41
|
-
updateComponent(uid: import("@strapi/types/dist/internal/uid").Component, newUID: import("@strapi/types/dist/internal/uid").Component): /*elided*/ any;
|
|
38
|
+
setAttributes(newAttributes: import("@strapi/types/dist/struct/schema.js").SchemaAttributes): /*elided*/ any;
|
|
39
|
+
removeContentType(uid: import("@strapi/types/dist/internal/uid.js").ContentType): /*elided*/ any;
|
|
40
|
+
removeComponent(uid: import("@strapi/types/dist/internal/uid.js").Component): /*elided*/ any;
|
|
41
|
+
updateComponent(uid: import("@strapi/types/dist/internal/uid.js").Component, newUID: import("@strapi/types/dist/internal/uid.js").Component): /*elided*/ any;
|
|
42
42
|
flush(): Promise<void>;
|
|
43
43
|
rollback(): Promise<void>;
|
|
44
44
|
};
|
|
@@ -51,13 +51,13 @@ export default function createBuilder(): {
|
|
|
51
51
|
readonly modelName: string | undefined;
|
|
52
52
|
readonly plugin: string | undefined;
|
|
53
53
|
readonly category: string | undefined;
|
|
54
|
-
readonly kind: import("@strapi/types/dist/struct").ContentTypeKind;
|
|
54
|
+
readonly kind: import("@strapi/types/dist/struct/schema.js").ContentTypeKind;
|
|
55
55
|
readonly uid: `admin::${string}` | `api::${string}.${string}` | `plugin::${string}.${string}` | `strapi::${string}` | undefined;
|
|
56
56
|
readonly writable: boolean;
|
|
57
|
-
setUID(val: import("@strapi/types/dist/internal/uid").ContentType): /*elided*/ any;
|
|
57
|
+
setUID(val: import("@strapi/types/dist/internal/uid.js").ContentType): /*elided*/ any;
|
|
58
58
|
setDir(val: string): /*elided*/ any;
|
|
59
|
-
readonly schema: import("@strapi/types/dist/struct").ContentTypeSchema;
|
|
60
|
-
setSchema(val: import("@strapi/types/dist/struct").ContentTypeSchema): /*elided*/ any;
|
|
59
|
+
readonly schema: import("@strapi/types/dist/struct/schema.js").ContentTypeSchema;
|
|
60
|
+
setSchema(val: import("@strapi/types/dist/struct/schema.js").ContentTypeSchema): /*elided*/ any;
|
|
61
61
|
get(path: string[]): any;
|
|
62
62
|
set(path: string[] | string, val: unknown): /*elided*/ any;
|
|
63
63
|
unset(path: string[]): /*elided*/ any;
|
|
@@ -65,15 +65,15 @@ export default function createBuilder(): {
|
|
|
65
65
|
getAttribute(key: string): any;
|
|
66
66
|
setAttribute(key: string, attribute: any): /*elided*/ any;
|
|
67
67
|
deleteAttribute(key: string): /*elided*/ any;
|
|
68
|
-
setAttributes(newAttributes: import("@strapi/types/dist/struct").SchemaAttributes): /*elided*/ any;
|
|
69
|
-
removeContentType(uid: import("@strapi/types/dist/internal/uid").ContentType): /*elided*/ any;
|
|
70
|
-
removeComponent(uid: import("@strapi/types/dist/internal/uid").Component): /*elided*/ any;
|
|
71
|
-
updateComponent(uid: import("@strapi/types/dist/internal/uid").Component, newUID: import("@strapi/types/dist/internal/uid").Component): /*elided*/ any;
|
|
68
|
+
setAttributes(newAttributes: import("@strapi/types/dist/struct/schema.js").SchemaAttributes): /*elided*/ any;
|
|
69
|
+
removeContentType(uid: import("@strapi/types/dist/internal/uid.js").ContentType): /*elided*/ any;
|
|
70
|
+
removeComponent(uid: import("@strapi/types/dist/internal/uid.js").Component): /*elided*/ any;
|
|
71
|
+
updateComponent(uid: import("@strapi/types/dist/internal/uid.js").Component, newUID: import("@strapi/types/dist/internal/uid.js").Component): /*elided*/ any;
|
|
72
72
|
flush(): Promise<void>;
|
|
73
73
|
rollback(): Promise<void>;
|
|
74
74
|
};
|
|
75
75
|
editComponent(this: any, infos: any): any;
|
|
76
|
-
deleteComponent(this: any, uid: import("@strapi/types/dist/internal/uid").Component): any;
|
|
76
|
+
deleteComponent(this: any, uid: import("@strapi/types/dist/internal/uid.js").Component): any;
|
|
77
77
|
components: Map<any, any>;
|
|
78
78
|
contentTypes: Map<any, any>;
|
|
79
79
|
/**
|