add strapi types
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// Interface automatically generated by schemas-to-ts
|
||||
|
||||
export interface AdminPanelRelationPropertyModification<T> {
|
||||
connect: T[];
|
||||
disconnect: T[];
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
// Interface automatically generated by schemas-to-ts
|
||||
|
||||
import { BeforeRunEvent } from './BeforeRunEvent';
|
||||
|
||||
export interface AfterRunEvent<TState, TResult> extends BeforeRunEvent<TState extends Record<string, unknown> ? TState : never> {
|
||||
result: TResult;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
// Interface automatically generated by schemas-to-ts
|
||||
|
||||
import { Event } from '@strapi/database/dist/lifecycles';
|
||||
|
||||
export interface BeforeRunEvent<TState extends Record<string, unknown>> extends Event {
|
||||
state: TState;
|
||||
}
|
||||
|
||||
44
yoga-cms/generated-strapi-interfaces/common/Media.ts
Normal file
44
yoga-cms/generated-strapi-interfaces/common/Media.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
// Interface automatically generated by schemas-to-ts
|
||||
|
||||
import { MediaFormat } from './MediaFormat';
|
||||
export interface Media {
|
||||
id: number;
|
||||
attributes: {
|
||||
name: string;
|
||||
alternativeText: string;
|
||||
caption: string;
|
||||
width: number;
|
||||
height: number;
|
||||
formats: { thumbnail: MediaFormat; small: MediaFormat; medium: MediaFormat; large: MediaFormat; };
|
||||
hash: string;
|
||||
ext: string;
|
||||
mime: string;
|
||||
size: number;
|
||||
url: string;
|
||||
previewUrl: string;
|
||||
provider: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
}
|
||||
export interface Media_Plain {
|
||||
id: number;
|
||||
name: string;
|
||||
alternativeText: string;
|
||||
caption: string;
|
||||
width: number;
|
||||
height: number;
|
||||
formats: { thumbnail: MediaFormat; small: MediaFormat; medium: MediaFormat; large: MediaFormat; };
|
||||
hash: string;
|
||||
ext: string;
|
||||
mime: string;
|
||||
size: number;
|
||||
url: string;
|
||||
previewUrl: string;
|
||||
provider: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
|
||||
|
||||
|
||||
15
yoga-cms/generated-strapi-interfaces/common/MediaFormat.ts
Normal file
15
yoga-cms/generated-strapi-interfaces/common/MediaFormat.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
// Interface automatically generated by schemas-to-ts
|
||||
|
||||
export interface MediaFormat {
|
||||
name: string;
|
||||
hash: string;
|
||||
ext: string;
|
||||
mime: string;
|
||||
width: number;
|
||||
height: number;
|
||||
size: number;
|
||||
path: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
|
||||
15
yoga-cms/generated-strapi-interfaces/common/Payload.ts
Normal file
15
yoga-cms/generated-strapi-interfaces/common/Payload.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
// Interface automatically generated by schemas-to-ts
|
||||
|
||||
export interface Payload<T> {
|
||||
data: T;
|
||||
meta: {
|
||||
pagination?: {
|
||||
page: number;
|
||||
pageSize: number;
|
||||
pageCount: number;
|
||||
total: number;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
26
yoga-cms/generated-strapi-interfaces/common/User.ts
Normal file
26
yoga-cms/generated-strapi-interfaces/common/User.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
// Interface automatically generated by schemas-to-ts
|
||||
|
||||
export interface User {
|
||||
id: number;
|
||||
attributes: {
|
||||
username: string;
|
||||
email: string;
|
||||
provider: string;
|
||||
confirmed: boolean;
|
||||
blocked: boolean;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
}
|
||||
|
||||
export interface User_Plain {
|
||||
id: number;
|
||||
username: string;
|
||||
email: string;
|
||||
provider: string;
|
||||
confirmed: boolean;
|
||||
blocked: boolean;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user