@malevich-studio/strapi-sdk-typescript 1.0.14 → 1.0.16
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/README.md +4 -0
- package/dist/cli.cjs +42 -2
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +42 -2
- package/dist/cli.mjs.map +1 -1
- package/dist/generator/attributes/dynamiczone.d.ts +18 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -108,6 +108,14 @@ type Query<Fields, Sort, Filters, Populate> = {
|
|
|
108
108
|
limit?: number;
|
|
109
109
|
});
|
|
110
110
|
};
|
|
111
|
+
type DynamiczoneInput<ComponentName, ComponentInputType> = ComponentInputType & {
|
|
112
|
+
__component: ComponentName;
|
|
113
|
+
};
|
|
114
|
+
type DynamiczonePopulate<T> = {
|
|
115
|
+
on: {
|
|
116
|
+
[K in keyof T]: T[K];
|
|
117
|
+
};
|
|
118
|
+
};
|
|
111
119
|
declare class Strapi {
|
|
112
120
|
private readonly url;
|
|
113
121
|
private readonly token;
|
|
@@ -131,4 +139,4 @@ declare class Strapi {
|
|
|
131
139
|
private baseRequest;
|
|
132
140
|
}
|
|
133
141
|
|
|
134
|
-
export { type File, type FilterValue, type Filters, type Folder, type Query, type RelationInput, Strapi };
|
|
142
|
+
export { type DynamiczoneInput, type DynamiczonePopulate, type File, type FilterValue, type Filters, type Folder, type Query, type RelationInput, Strapi };
|