@malevich-studio/strapi-sdk-typescript 1.0.15 → 1.0.17
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 +40 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +40 -1
- 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
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { BaseAttribute, FieldType } from "@/generator/attributes/base";
|
|
2
|
+
import BaseRelation from "@/generator/attributes/base-relation";
|
|
3
|
+
export type DynamiczoneAttribute = BaseAttribute & {
|
|
4
|
+
type: 'dynamiczone';
|
|
5
|
+
components: string[];
|
|
6
|
+
};
|
|
7
|
+
export default class Dynamiczone extends BaseRelation {
|
|
8
|
+
protected readonly name: string;
|
|
9
|
+
protected readonly attribute: DynamiczoneAttribute;
|
|
10
|
+
constructor(name: string, attribute: DynamiczoneAttribute);
|
|
11
|
+
getType(): string;
|
|
12
|
+
getInputType(): string;
|
|
13
|
+
getPopulates(): {
|
|
14
|
+
name: string;
|
|
15
|
+
type: string;
|
|
16
|
+
}[];
|
|
17
|
+
getFilters(): FieldType[];
|
|
18
|
+
}
|