@malevich-studio/strapi-sdk-typescript 1.0.4 → 1.0.6

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/index.d.ts CHANGED
@@ -1,4 +1,17 @@
1
- export { RelationInput } from '@/generator/attributes/relation';
1
+ type RelationData = {
2
+ documentId: string;
3
+ before?: string;
4
+ after?: string;
5
+ start?: true;
6
+ end?: true;
7
+ locale?: string;
8
+ status?: 'published' | 'draft';
9
+ } | string;
10
+ type RelationInput = {
11
+ connect?: RelationData[];
12
+ disconnect?: RelationData[];
13
+ set?: RelationData[];
14
+ } | RelationData[];
2
15
 
3
16
  type Response<T> = {
4
17
  data: T;
@@ -116,4 +129,4 @@ declare class Strapi {
116
129
  private baseRequest;
117
130
  }
118
131
 
119
- export { type File, type FilterValue, type Filters, type Folder, type Query, Strapi };
132
+ export { type File, type FilterValue, type Filters, type Folder, type Query, type RelationInput, Strapi };