@strapi/types 5.0.0-beta.2 → 5.0.0-beta.4
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/core/strapi.d.ts +8 -22
- package/dist/core/strapi.d.ts.map +1 -1
- package/dist/data/component.d.ts +9 -0
- package/dist/data/component.d.ts.map +1 -1
- package/dist/data/constants.d.ts +3 -0
- package/dist/data/constants.d.ts.map +1 -1
- package/dist/data/content-type.d.ts +9 -0
- package/dist/data/content-type.d.ts.map +1 -1
- package/dist/data/entity.d.ts +6 -0
- package/dist/data/entity.d.ts.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/modules/documents/component-extension.d.ts +22 -0
- package/dist/modules/documents/component-extension.d.ts.map +1 -0
- package/dist/modules/documents/document-engine.d.ts +0 -1
- package/dist/modules/documents/index.d.ts +2 -1
- package/dist/modules/documents/index.d.ts.map +1 -1
- package/dist/modules/documents/middleware.d.ts +13 -8
- package/dist/modules/documents/middleware.d.ts.map +1 -1
- package/dist/modules/documents/params/document-engine.d.ts +22 -9
- package/dist/modules/documents/params/document-engine.d.ts.map +1 -1
- package/dist/modules/documents/service-instance.d.ts +38 -32
- package/dist/modules/documents/service-instance.d.ts.map +1 -1
- package/dist/public/registries.d.ts +38 -0
- package/dist/public/registries.d.ts.map +1 -1
- package/dist/public/shared.d.ts +53 -0
- package/dist/public/shared.d.ts.map +1 -1
- package/dist/schema/attribute/base.d.ts +43 -4
- package/dist/schema/attribute/base.d.ts.map +1 -1
- package/dist/schema/attribute/common.d.ts +9 -0
- package/dist/schema/attribute/common.d.ts.map +1 -1
- package/dist/schema/attribute/definitions/biginteger.d.ts +3 -0
- package/dist/schema/attribute/definitions/biginteger.d.ts.map +1 -1
- package/dist/schema/attribute/definitions/blocks.d.ts +3 -0
- package/dist/schema/attribute/definitions/blocks.d.ts.map +1 -1
- package/dist/schema/attribute/definitions/boolean.d.ts +3 -0
- package/dist/schema/attribute/definitions/boolean.d.ts.map +1 -1
- package/dist/schema/attribute/definitions/component.d.ts +3 -0
- package/dist/schema/attribute/definitions/component.d.ts.map +1 -1
- package/dist/schema/attribute/definitions/date-time.d.ts +3 -0
- package/dist/schema/attribute/definitions/date-time.d.ts.map +1 -1
- package/dist/schema/attribute/definitions/date.d.ts +3 -0
- package/dist/schema/attribute/definitions/date.d.ts.map +1 -1
- package/dist/schema/attribute/definitions/decimal.d.ts +3 -0
- package/dist/schema/attribute/definitions/decimal.d.ts.map +1 -1
- package/dist/schema/attribute/definitions/dynamic-zone.d.ts +3 -0
- package/dist/schema/attribute/definitions/dynamic-zone.d.ts.map +1 -1
- package/dist/schema/attribute/definitions/email.d.ts +3 -0
- package/dist/schema/attribute/definitions/email.d.ts.map +1 -1
- package/dist/schema/attribute/definitions/enumeration.d.ts +3 -0
- package/dist/schema/attribute/definitions/enumeration.d.ts.map +1 -1
- package/dist/schema/attribute/definitions/float.d.ts +3 -0
- package/dist/schema/attribute/definitions/float.d.ts.map +1 -1
- package/dist/schema/attribute/definitions/integer.d.ts +3 -0
- package/dist/schema/attribute/definitions/integer.d.ts.map +1 -1
- package/dist/schema/attribute/definitions/json.d.ts +3 -0
- package/dist/schema/attribute/definitions/json.d.ts.map +1 -1
- package/dist/schema/attribute/definitions/media.d.ts +3 -0
- package/dist/schema/attribute/definitions/media.d.ts.map +1 -1
- package/dist/schema/attribute/definitions/password.d.ts +3 -0
- package/dist/schema/attribute/definitions/password.d.ts.map +1 -1
- package/dist/schema/attribute/definitions/relation.d.ts +3 -0
- package/dist/schema/attribute/definitions/relation.d.ts.map +1 -1
- package/dist/schema/attribute/definitions/richtext.d.ts +3 -0
- package/dist/schema/attribute/definitions/richtext.d.ts.map +1 -1
- package/dist/schema/attribute/definitions/string.d.ts +6 -0
- package/dist/schema/attribute/definitions/string.d.ts.map +1 -1
- package/dist/schema/attribute/definitions/text.d.ts +3 -0
- package/dist/schema/attribute/definitions/text.d.ts.map +1 -1
- package/dist/schema/attribute/definitions/time.d.ts +3 -0
- package/dist/schema/attribute/definitions/time.d.ts.map +1 -1
- package/dist/schema/attribute/definitions/timestamp.d.ts +3 -0
- package/dist/schema/attribute/definitions/timestamp.d.ts.map +1 -1
- package/dist/schema/attribute/definitions/uid.d.ts +3 -0
- package/dist/schema/attribute/definitions/uid.d.ts.map +1 -1
- package/dist/schema/attribute/options.d.ts +140 -0
- package/dist/schema/attribute/options.d.ts.map +1 -1
- package/dist/schema/attribute/utils.d.ts +41 -0
- package/dist/schema/attribute/utils.d.ts.map +1 -1
- package/dist/schema/index.d.ts +75 -2
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/struct/schema.d.ts +135 -31
- package/dist/struct/schema.d.ts.map +1 -1
- package/dist/uid/index.d.ts +134 -9
- package/dist/uid/index.d.ts.map +1 -1
- package/package.json +14 -12
|
@@ -1,68 +1,181 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interfaces and types designed for managing attribute options.
|
|
3
|
+
*
|
|
4
|
+
* It includes (but is not limited to) settings for requirements, privacy, uniqueness, default values, configurability,
|
|
5
|
+
* constraints, visibility, and writability of an attribute as well as the provision for custom fields.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Specifies whether an attribute is required to be filled.
|
|
9
|
+
*
|
|
10
|
+
* If not defined, it defaults to false.
|
|
11
|
+
*/
|
|
1
12
|
export interface RequiredOption {
|
|
2
13
|
required?: boolean;
|
|
3
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Specifies whether an attribute is private and should be included in the content API entries.
|
|
17
|
+
*
|
|
18
|
+
* If not defined, it defaults to false.
|
|
19
|
+
*/
|
|
4
20
|
export interface PrivateOption {
|
|
5
21
|
private?: boolean;
|
|
6
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Specifies whether an attribute must have unique values for each entry.
|
|
25
|
+
*
|
|
26
|
+
* If not defined, it defaults to false.
|
|
27
|
+
*/
|
|
7
28
|
export interface UniqueOption {
|
|
8
29
|
unique?: boolean;
|
|
9
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Allow declaring a default value for an attribute's value.
|
|
33
|
+
*
|
|
34
|
+
* If not defined, there is no default value and the field will default to `null`.
|
|
35
|
+
*/
|
|
10
36
|
export interface DefaultOption<T> {
|
|
11
37
|
default?: T | (() => T);
|
|
12
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Specifies whether an attribute can be configured from the admin panel.
|
|
41
|
+
*
|
|
42
|
+
* If not defined, it defaults to false.
|
|
43
|
+
*/
|
|
13
44
|
export interface ConfigurableOption {
|
|
14
45
|
configurable?: boolean;
|
|
15
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Sets a minimum and/or maximum constraint for an attribute.
|
|
49
|
+
*
|
|
50
|
+
* If any of the property is undefined, there won't be any limit.
|
|
51
|
+
*
|
|
52
|
+
* @template T - The min/max type
|
|
53
|
+
*/
|
|
16
54
|
export interface MinMaxOption<T = number> {
|
|
17
55
|
min?: T;
|
|
18
56
|
max?: T;
|
|
19
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Sets a minimum length and/or maximum length constraint for the total length for a text based field.
|
|
60
|
+
*
|
|
61
|
+
* If any of the property is undefined, there won't be any limit.
|
|
62
|
+
*/
|
|
20
63
|
export interface MinMaxLengthOption {
|
|
21
64
|
minLength?: number;
|
|
22
65
|
maxLength?: number;
|
|
23
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Specified whether an attribute's value can be filled using the content API (REST or GraphQL)
|
|
69
|
+
*
|
|
70
|
+
* If not defined, the attribute is considered writable.
|
|
71
|
+
*/
|
|
24
72
|
export interface WritableOption {
|
|
25
73
|
writable?: boolean;
|
|
26
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Specifies whether an attribute should be visible in the content-manager.
|
|
77
|
+
*
|
|
78
|
+
* If not defined, the attribute is considered visible.
|
|
79
|
+
*/
|
|
27
80
|
export interface VisibleOption {
|
|
28
81
|
visible?: boolean;
|
|
29
82
|
}
|
|
30
83
|
/**
|
|
31
84
|
* Setters for the attributes options
|
|
32
85
|
*/
|
|
86
|
+
/**
|
|
87
|
+
* Forces the attribute to be required.
|
|
88
|
+
*
|
|
89
|
+
* @see RequiredOption
|
|
90
|
+
*/
|
|
33
91
|
export type Required = {
|
|
34
92
|
required: true;
|
|
35
93
|
};
|
|
94
|
+
/**
|
|
95
|
+
* Forces the attribute to be optional
|
|
96
|
+
*
|
|
97
|
+
* @see RequiredOption
|
|
98
|
+
*/
|
|
36
99
|
export type NonRequired = {
|
|
37
100
|
required: false;
|
|
38
101
|
};
|
|
102
|
+
/**
|
|
103
|
+
* Forces the attribute to be private
|
|
104
|
+
*
|
|
105
|
+
* @see PrivateOption
|
|
106
|
+
*/
|
|
39
107
|
export type Private = {
|
|
40
108
|
private: true;
|
|
41
109
|
};
|
|
110
|
+
/**
|
|
111
|
+
* Forces the attribute to not be private
|
|
112
|
+
*
|
|
113
|
+
* @see PrivateOption
|
|
114
|
+
*/
|
|
42
115
|
export type NonPrivate = {
|
|
43
116
|
private: false;
|
|
44
117
|
};
|
|
118
|
+
/**
|
|
119
|
+
* Forces the attribute to be unique
|
|
120
|
+
*
|
|
121
|
+
* @see UniqueOption
|
|
122
|
+
*/
|
|
45
123
|
export type Unique = {
|
|
46
124
|
unique: true;
|
|
47
125
|
};
|
|
126
|
+
/**
|
|
127
|
+
* Forces the attribute not to be unique
|
|
128
|
+
*
|
|
129
|
+
* @see UniqueOption
|
|
130
|
+
*/
|
|
48
131
|
export type NonUnique = {
|
|
49
132
|
unique: false;
|
|
50
133
|
};
|
|
134
|
+
/**
|
|
135
|
+
* Forces the attribute not to be configurable
|
|
136
|
+
*
|
|
137
|
+
* @see ConfigurableOption
|
|
138
|
+
*/
|
|
51
139
|
export type Configurable = {
|
|
52
140
|
configurable: true;
|
|
53
141
|
};
|
|
142
|
+
/**
|
|
143
|
+
* Forces the attribute not to be configurable
|
|
144
|
+
*
|
|
145
|
+
* @see ConfigurableOption
|
|
146
|
+
*/
|
|
54
147
|
export type NonConfigurable = {
|
|
55
148
|
configurable: false;
|
|
56
149
|
};
|
|
150
|
+
/**
|
|
151
|
+
* Forces the attribute to be writable
|
|
152
|
+
*
|
|
153
|
+
* @see WritableOption
|
|
154
|
+
*/
|
|
57
155
|
export type Writable = {
|
|
58
156
|
writable: true;
|
|
59
157
|
};
|
|
158
|
+
/**
|
|
159
|
+
* Forces the attribute not to be writable
|
|
160
|
+
*
|
|
161
|
+
* @see WritableOption
|
|
162
|
+
*/
|
|
60
163
|
export type NonWritable = {
|
|
61
164
|
writable: false;
|
|
62
165
|
};
|
|
166
|
+
/**
|
|
167
|
+
* Forces the attribute to be visible
|
|
168
|
+
*
|
|
169
|
+
* @see VisibleOption
|
|
170
|
+
*/
|
|
63
171
|
export type Visible = {
|
|
64
172
|
visible: true;
|
|
65
173
|
};
|
|
174
|
+
/**
|
|
175
|
+
* Forces the attribute to be invisible
|
|
176
|
+
*
|
|
177
|
+
* @see VisibleOption
|
|
178
|
+
*/
|
|
66
179
|
export type NonVisible = {
|
|
67
180
|
visible: false;
|
|
68
181
|
};
|
|
@@ -70,11 +183,38 @@ export type CustomField<TKind extends string, TOptions extends object | undefine
|
|
|
70
183
|
customField: TKind;
|
|
71
184
|
options?: TOptions;
|
|
72
185
|
};
|
|
186
|
+
/**
|
|
187
|
+
* Creates a {@link MinMaxOption} configuration object with the given values.
|
|
188
|
+
*
|
|
189
|
+
* @template TConfig The min/max configuration
|
|
190
|
+
* @template TType The type of the values.
|
|
191
|
+
*
|
|
192
|
+
* @see MinMaxOption
|
|
193
|
+
*/
|
|
73
194
|
export type SetMinMax<TConfig extends MinMaxOption<TType>, TType = number> = TConfig;
|
|
195
|
+
/**
|
|
196
|
+
* Creates a {@link MinMaxLengthOption} configuration object with the given values.
|
|
197
|
+
*
|
|
198
|
+
* @template TConfig The minLength/maxLength configuration
|
|
199
|
+
*
|
|
200
|
+
* @see MinMaxLengthOption
|
|
201
|
+
*/
|
|
74
202
|
export type SetMinMaxLength<TConfig extends MinMaxLengthOption> = TConfig;
|
|
203
|
+
/**
|
|
204
|
+
* Creates a plugin options' configuration object with the given values.
|
|
205
|
+
*
|
|
206
|
+
* @template TConfig The plugin options
|
|
207
|
+
*/
|
|
75
208
|
export type SetPluginOptions<TConfig extends object = object> = {
|
|
76
209
|
pluginOptions?: TConfig;
|
|
77
210
|
};
|
|
211
|
+
/**
|
|
212
|
+
* Sets a default value for a {@link DefaultOption}
|
|
213
|
+
*
|
|
214
|
+
* @template T
|
|
215
|
+
*
|
|
216
|
+
* @see DefaultOption
|
|
217
|
+
*/
|
|
78
218
|
export type DefaultTo<T> = {
|
|
79
219
|
default: T;
|
|
80
220
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/schema/attribute/options.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/schema/attribute/options.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,MAAM;IACtC,GAAG,CAAC,EAAE,CAAC,CAAC;IACR,GAAG,CAAC,EAAE,CAAC,CAAC;CACT;AAED;;;;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I,CAAA;CAAE,CAAC;AAExC;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG;IAAE,OAAO,EAAE,KAAK,CAAA;CAAE,CAAC;AAG5C,MAAM,MAAM,WAAW,CAAC,KAAK,SAAS,MAAM,EAAE,QAAQ,SAAS,MAAM,GAAG,SAAS,GAAG,SAAS,IAAI;IAC/F,WAAW,EAAE,KAAK,CAAC;IACnB,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB,CAAC;AAIF;;;;;;;GAOG;AACH,MAAM,MAAM,SAAS,CAAC,OAAO,SAAS,YAAY,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,IAAI,OAAO,CAAC;AAIrF;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,CAAC,OAAO,SAAS,kBAAkB,IAAI,OAAO,CAAC;AAE1E;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,IAAI;IAAE,aAAa,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE5F;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI;IAAE,OAAO,EAAE,CAAC,CAAA;CAAE,CAAC"}
|
|
@@ -24,14 +24,55 @@ export type IsPopulatable<TAttribute extends Attribute.Attribute> = IsOfType<TAt
|
|
|
24
24
|
* @template TAttribute - Any attribute
|
|
25
25
|
*/
|
|
26
26
|
export type TypeOf<TAttribute extends Attribute.Attribute> = TAttribute['type'];
|
|
27
|
+
/**
|
|
28
|
+
* Extract the target of an attribute.
|
|
29
|
+
*
|
|
30
|
+
* Returns never if the attribute don't have a target.
|
|
31
|
+
*
|
|
32
|
+
* Returns {@link UID.Schema} if a valid target is found
|
|
33
|
+
*
|
|
34
|
+
* @template TAttribute - The attribute to use
|
|
35
|
+
*
|
|
36
|
+
* @remark Targets can only be inferred from relation, component, and media attributes.
|
|
37
|
+
*/
|
|
27
38
|
export type Target<TAttribute extends Attribute.Attribute> = Attribute.RelationTarget<TAttribute> | Attribute.ComponentTarget<TAttribute> | Attribute.MediaTarget<TAttribute>;
|
|
39
|
+
/**
|
|
40
|
+
* Extract the potential targets of a polymorphic attribute.
|
|
41
|
+
*
|
|
42
|
+
* Returns never if the attribute don't have any target.
|
|
43
|
+
*
|
|
44
|
+
* Returns {@link UID.Schema} if valid targets are found
|
|
45
|
+
*
|
|
46
|
+
* @template TAttribute - The attribute to use
|
|
47
|
+
*
|
|
48
|
+
* @remark Morph targets can only be inferred from dynamic-zone attributes.
|
|
49
|
+
*/
|
|
28
50
|
export type MorphTargets<TAttribute extends Attribute.Attribute> = Attribute.DynamicZoneTargets<TAttribute>;
|
|
51
|
+
/**
|
|
52
|
+
* Checks whether an attribute has a valid target.
|
|
53
|
+
*
|
|
54
|
+
* @template TAttribute - The attribute to check
|
|
55
|
+
*
|
|
56
|
+
* @see Target
|
|
57
|
+
*
|
|
58
|
+
* @remark Targets can only be inferred from relation, component, and media attributes.
|
|
59
|
+
*/
|
|
29
60
|
export type HasTarget<TAttribute extends Attribute.Attribute> = Target<TAttribute> extends infer TTarget ? And<IsNotNever<TTarget>, Extends<TTarget, UID.Schema>> : Constants.False;
|
|
61
|
+
/**
|
|
62
|
+
* Checks whether an attribute has valid targets.
|
|
63
|
+
*
|
|
64
|
+
* @template TAttribute - The attribute to check
|
|
65
|
+
*
|
|
66
|
+
* @see MorphTargets
|
|
67
|
+
*
|
|
68
|
+
* @remark Targets can only be inferred from dynamic-zone attributes.
|
|
69
|
+
*/
|
|
30
70
|
export type HasMorphTargets<TAttribute extends Attribute.Attribute> = MorphTargets<TAttribute> extends infer TMaybeTargets ? And<IsNotNever<TMaybeTargets>, Extends<TMaybeTargets, UID.Schema>> : Constants.False;
|
|
31
71
|
/**
|
|
32
72
|
* Represents the actual value of a given attribute {@link TAttribute}.
|
|
33
73
|
*
|
|
34
74
|
* @template TAttribute - The attribute to extract the value from.
|
|
75
|
+
* @template TGuard - The fallback type to use if it's not possible to infer the correct type value.
|
|
35
76
|
*/
|
|
36
77
|
export type Value<TAttribute extends Attribute.Attribute, TGuard = unknown> = Guard.Never<{
|
|
37
78
|
biginteger: Attribute.GetBigIntegerValue<TAttribute>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/schema/attribute/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,GAAG,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEpC;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,CAClB,UAAU,SAAS,SAAS,CAAC,SAAS,EACtC,KAAK,SAAS,SAAS,CAAC,IAAI,IAC1B,UAAU,SAAS;IACrB,IAAI,EAAE,KAAK,CAAC;CACb,GACG,IAAI,GACJ,KAAK,CAAC;AAEV;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,CAAC,UAAU,SAAS,SAAS,CAAC,SAAS,IAAI,QAAQ,CAC1E,UAAU,EACV,SAAS,CAAC,eAAe,CAC1B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,MAAM,CAAC,UAAU,SAAS,SAAS,CAAC,SAAS,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;AAEhF,MAAM,MAAM,MAAM,CAAC,UAAU,SAAS,SAAS,CAAC,SAAS,IACrD,SAAS,CAAC,cAAc,CAAC,UAAU,CAAC,GACpC,SAAS,CAAC,eAAe,CAAC,UAAU,CAAC,GACrC,SAAS,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;AAEtC,MAAM,MAAM,YAAY,CAAC,UAAU,SAAS,SAAS,CAAC,SAAS,IAC7D,SAAS,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;AAE3C,MAAM,MAAM,SAAS,CAAC,UAAU,SAAS,SAAS,CA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
|
|
|
4
4
|
import type * as Attribute from './attribute';
|
|
5
5
|
export { Attribute };
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Combines both content type and component schemas, effectively serving as a consolidated registry of all schemas.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
9
|
+
* Enables mapping between a unique identifier and its corresponding schema.
|
|
10
|
+
*
|
|
11
|
+
@remark Schema definitions are pulled from the public registries
|
|
10
12
|
*/
|
|
11
13
|
export type Schemas = Public.ContentTypeSchemas & Public.ComponentSchemas;
|
|
14
|
+
/**
|
|
15
|
+
* Content-type schema definitions.
|
|
16
|
+
*
|
|
17
|
+
* @remark Schema definitions are pulled from the public content-type registries
|
|
18
|
+
*/
|
|
12
19
|
export type ContentTypes = Public.ContentTypeSchemas;
|
|
20
|
+
/**
|
|
21
|
+
* Component schema definitions.
|
|
22
|
+
*
|
|
23
|
+
* @remark Schema definitions are pulled from the public component registries
|
|
24
|
+
*/
|
|
13
25
|
export type Components = Public.ComponentSchemas;
|
|
14
26
|
export type ContentType<TContentTypeUID extends UID.ContentType = UID.ContentType> = ContentTypes[TContentTypeUID];
|
|
15
27
|
export type Component<TComponentUID extends UID.Component = UID.Component> = Components[TComponentUID];
|
|
@@ -17,18 +29,24 @@ export type Component<TComponentUID extends UID.Component = UID.Component> = Com
|
|
|
17
29
|
* Returns the Schema data structure associated with the given UID
|
|
18
30
|
*
|
|
19
31
|
* @template TSchemaUID - The unique identifier for the schema.
|
|
32
|
+
*
|
|
33
|
+
* @see Schemas
|
|
20
34
|
*/
|
|
21
35
|
export type Schema<TSchemaUID extends UID.Schema = UID.Schema> = Schemas[TSchemaUID];
|
|
22
36
|
/**
|
|
23
37
|
* Returns the `info` property for a given schema.
|
|
24
38
|
*
|
|
25
39
|
* @template TSchemaUID - The targeted schema UID.
|
|
40
|
+
*
|
|
41
|
+
* @see Schema
|
|
26
42
|
*/
|
|
27
43
|
export type Info<TSchemaUID extends UID.Schema> = Schema<TSchemaUID>['info'];
|
|
28
44
|
/**
|
|
29
45
|
* Returns the `modelType` property for a given schema.
|
|
30
46
|
*
|
|
31
47
|
* @template TSchemaUID - The targeted schema UID.
|
|
48
|
+
*
|
|
49
|
+
* @see Schema
|
|
32
50
|
*/
|
|
33
51
|
export type ModelType<TSchemaUID extends UID.Schema> = Schema<TSchemaUID>['modelType'];
|
|
34
52
|
/**
|
|
@@ -59,13 +77,68 @@ export type Attributes<TSchemaUID extends UID.Schema = UID.Schema> = {
|
|
|
59
77
|
* @template TSchemaUID - The Schema's UID used to get the attributes names.
|
|
60
78
|
*/
|
|
61
79
|
export type AttributeNames<TSchemaUID extends UID.Schema> = Extract<keyof Attributes<TSchemaUID>, string>;
|
|
80
|
+
/**
|
|
81
|
+
* Create an attribute record whose types matches the given ones.
|
|
82
|
+
*
|
|
83
|
+
* @template TSchemaUID - The Schema's UID used to get the attribute names.
|
|
84
|
+
* @template TKind - The kind of attribute we are searching for.
|
|
85
|
+
* @template TCondition - Optional. An additional condition to match additional attributes properties.
|
|
86
|
+
*/
|
|
62
87
|
export type AttributesByType<TSchemaUID extends UID.Schema, TKind extends Attribute.Kind, TCondition = never> = Object.PickBy<Attributes<TSchemaUID>, Attribute.OfType<TKind> & Guard.Never<TCondition>>;
|
|
88
|
+
/**
|
|
89
|
+
* Returns a union of attribute names whose type matches the given ones.
|
|
90
|
+
*
|
|
91
|
+
* @template TSchemaUID - The Schema's UID used to get the attribute names.
|
|
92
|
+
* @template TKind - The kind of attribute we are searching for.
|
|
93
|
+
* @template TCondition - Optional. An additional condition to match additional attributes properties.
|
|
94
|
+
*/
|
|
63
95
|
export type AttributeNamesByType<TSchemaUID extends UID.Schema, TKind extends Attribute.Kind, TCondition = never> = Object.KeysBy<Attributes<TSchemaUID>, Attribute.OfType<TKind> & Guard.Never<TCondition, unknown>, AttributeNames<TSchemaUID>>;
|
|
96
|
+
/**
|
|
97
|
+
* Provides the names of non-populatable attributes of a Schema.
|
|
98
|
+
*
|
|
99
|
+
* Non-populatable attributes are those which do not need to be populated to get their final value.
|
|
100
|
+
*
|
|
101
|
+
* @template TSchemaUID - The unique identifier of the schema.
|
|
102
|
+
*/
|
|
64
103
|
export type NonPopulatableAttributeNames<TSchemaUID extends UID.Schema> = AttributeNamesByType<TSchemaUID, Attribute.NonPopulatableKind>;
|
|
104
|
+
/**
|
|
105
|
+
* Provides the names of populatable attributes of a Schema.
|
|
106
|
+
*
|
|
107
|
+
* Populatable attributes are those which need to be populated to get their final value, such as {@link Attribute.Relation}, {@link Attribute.DynamicZone}, {@link Attribute.Component} or {@link Attribute.Media}.
|
|
108
|
+
*
|
|
109
|
+
* @template TSchemaUID - The unique identifier of the schema.
|
|
110
|
+
*/
|
|
65
111
|
export type PopulatableAttributeNames<TSchemaUID extends UID.Schema> = AttributeNamesByType<TSchemaUID, Attribute.PopulatableKind>;
|
|
112
|
+
/**
|
|
113
|
+
* Returns a list of attribute names which have associated targets.
|
|
114
|
+
*
|
|
115
|
+
* @remark `
|
|
116
|
+
AttributeNamesWithTarget` maps over the list of attribute for a given schema and filters those
|
|
117
|
+
* with targets (in other words, attribute names that have associated {@link Attribute.HasTarget} true).
|
|
118
|
+
*
|
|
119
|
+
* @returns a union of each attribute's name matching the condition.
|
|
120
|
+
*
|
|
121
|
+
* @template TSchemaUID - The unique identifier of the schema.
|
|
122
|
+
*/
|
|
66
123
|
export type AttributeNamesWithTarget<TSchemaUID extends UID.Schema> = Extract<Object.Values<{
|
|
67
124
|
[TKey in AttributeNames<TSchemaUID>]: If<Attribute.HasTarget<AttributeByName<TSchemaUID, TKey>>, TKey>;
|
|
68
125
|
}>, AttributeNames<TSchemaUID>>;
|
|
126
|
+
/**
|
|
127
|
+
* Extracts the names of all required attributes from a given schema.
|
|
128
|
+
*
|
|
129
|
+
* @remark `RequiredAttributeNames` screens attributes based on the {@link Attribute.Required} property,
|
|
130
|
+
* determining mandatory attributes from the given schema.
|
|
131
|
+
*
|
|
132
|
+
* @template TSchemaUID - The identifier of the schema.
|
|
133
|
+
*/
|
|
69
134
|
export type RequiredAttributeNames<TSchemaUID extends UID.Schema> = Object.KeysBy<Attributes<TSchemaUID>, Attribute.Required, AttributeNames<TSchemaUID>>;
|
|
135
|
+
/**
|
|
136
|
+
* Returns a union of every optional attribute name by excluding required attribute keys from the given Schema UID.
|
|
137
|
+
*
|
|
138
|
+
* @remark The `
|
|
139
|
+
OptionalAttributeNames` type utilises the {@link Object.KeysExcept} utility that takes a Schema's attributes and excludes the keys of required attributes.
|
|
140
|
+
*
|
|
141
|
+
* @template TSchemaUID - The unique identifier for the schema.
|
|
142
|
+
*/
|
|
70
143
|
export type OptionalAttributeNames<TSchemaUID extends UID.Schema> = Object.KeysExcept<Attributes<TSchemaUID>, Attribute.Required, AttributeNames<TSchemaUID>>;
|
|
71
144
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,KAAK,GAAG,MAAM,QAAQ,CAAC;AACnC,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAElD,OAAO,KAAK,KAAK,SAAS,MAAM,aAAa,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,CAAC;AAErB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,KAAK,GAAG,MAAM,QAAQ,CAAC;AACnC,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAElD,OAAO,KAAK,KAAK,SAAS,MAAM,aAAa,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,CAAC;AAErB;;;;;;GAMG;AACH,MA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